Trouble with Impact Methods Import & Calculations

ethansoloviev
Posts: 6
Joined: 30 Aug 2016 21:58

Trouble with Impact Methods Import & Calculations

Post by ethansoloviev » 30 Aug 2016 22:17

Hi, I'm having trouble with OpenLCA 1.4.2, having to do with importing Impact Methods into new databases and running calculations with them.

I have attempted to import the OpenLCA Impact Methods (openlca_lcia_methods_1_5_5.zolca) into EcoInvent 3.2 Consequential database, and even though it appears to show up in the database, I do not think it is working.

When I create a product system and attempt to run a calculation it says "Calculation Failed". I've tried many different options on the calculation screen. Also tried a different product system with same results.

Please advise.

Thank you,
Ethan
Attachments
Screen Shot 2016-08-30 at 4.16.18 PM.png
Screen Shot 2016-08-30 at 4.16.18 PM.png (206.16 KiB) Viewed 12942 times

aciroth
Posts: 750
Joined: 09 May 2010 23:28

Re: Trouble with Impact Methods Import & Calculations

Post by aciroth » 31 Aug 2016 11:19

Hi Ethan,
thank you for also sending the log file to us; as said in direct communication too, the calculation did not work because you did not provide sufficient memory - therefore this is maybe good to have also on the forum here:
- if an error message occurs, then check the log file;
- either you understand this yourself or you can contact us (in your case, it stated: caused by: out of memory exception)
- for adjusting the memory, go in openLCA to preferences/configuration in the menu
- since openLCA is a Java application, it runs completely "isolated" from the rest of your operation system, in a "sandbox" (this is a technical term..) - and therefore is not able to request additional memory if it needs more for large systems, but instead is bound to a maximum allowed memory specified.
- the amount of memory you should permit depends on your computer and on the database/product systems; for ecoinvent 3, you typically need 4GB, more is better, which means you should also use a64 bit operation system.
Hope this helps!
Andreas

ethansoloviev
Posts: 6
Joined: 30 Aug 2016 21:58

Re: Trouble with Impact Methods Import & Calculations

Post by ethansoloviev » 01 Sep 2016 15:52

Thank you Andreas!

This (and your prompt email reply) were very helpful - I've added the additional memory and OpenLCA is working great.

Eco3
Posts: 7
Joined: 08 Sep 2016 16:51

Re: Trouble with Impact Methods Import & Calculations

Post by Eco3 » 08 Sep 2016 17:11

Hi all

I'm having exactly the same issue.

I though I might be making mistakes with parameters so took all those out of the process and used discrete figures for the inputs. Still the same.

For the calculation errors I get this at the start of the log:

java.lang.reflect.InvocationTargetException

then lots of lines of stuff and this at the end of the log:

Caused by: java.lang.NullPointerException
at org.openlca.core.math.SystemCalculator.doSetUp(SystemCalculator.java:63)
at org.openlca.core.math.SystemCalculator.calculateFull(SystemCalculator.java:47)
at org.openlca.app.editors.systems.CalculationWizard$Calculation.analyse(Unknown Source)
at org.openlca.app.editors.systems.CalculationWizard$Calculation.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)



My memory was set at 3GB so I tried to increase it to 5GB and when I did I got another error. 'Failed to write openLCA.ini file.

For the fail to write to ini file I get this at the start of the log

java.nio.file.AccessDeniedException: C:\Program Files (x86)\openLCA\openLCA.ini


I'm running Windows 7

Could anyone suggest anything else?

Many thanks

Leigh

aciroth
Posts: 750
Joined: 09 May 2010 23:28

Re: Trouble with Impact Methods Import & Calculations

Post by aciroth » 08 Sep 2016 21:32

Hi Leigh,
hm - since you have openLCA installed in the X86 program folder you have a 32 bit version, and maybe you do not have write access there because openLCA was installed by an admin? But anyhow, setting the memory to 5GB will not work on a 32 bit version.
Hope this helps,
Andreas

Eco3
Posts: 7
Joined: 08 Sep 2016 16:51

Re: Trouble with Impact Methods Import & Calculations

Post by Eco3 » 08 Sep 2016 22:58

Hi Andreas

Not sure why I've installed the 32 bit version. I'll install the 64 bit when I get back to the office in the morning.

Can I import the data across to the 64 bit version somehow or will I have to redo the model? It's only very small so not a big issue to be honest.

Thnaks for your help.

Regards

Leigh

Eco3
Posts: 7
Joined: 08 Sep 2016 16:51

Re: Trouble with Impact Methods Import & Calculations

Post by Eco3 » 09 Sep 2016 10:35

Hi Andreas

I've installed the 64 bit version. Upped the memory to 5gb (which worked fine).

Still get an error when asking it to calculate.

Any other suggestions?

Thanks

Leigh

aciroth
Posts: 750
Joined: 09 May 2010 23:28

Re: Trouble with Impact Methods Import & Calculations

Post by aciroth » 09 Sep 2016 10:42

Hi Leigh,
Maybe you can post the log file, or send it directly to me - from what you say it is hard to say what the issue could be.
Best wishes,
Andreas

Eco3
Posts: 7
Joined: 08 Sep 2016 16:51

Re: Trouble with Impact Methods Import & Calculations

Post by Eco3 » 09 Sep 2016 11:20

Hi Andreas

Last entry in log file is:

2999643 main ERROR org.openlca.app.editors.systems.CalculationWizard Calculation failed

java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:423)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
at org.openlca.app.editors.systems.CalculationWizard.performFinish(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
at org.eclipse.jface.window.Window.open(Window.java:808)
at org.openlca.app.editors.systems.CalculationWizard.open(Unknown Source)
at org.openlca.app.editors.systems.ProductSystemInfoPage.lambda$4(Unknown Source)
at org.openlca.app.editors.systems.ProductSystemInfoPage$$Lambda$44/201210119.accept(Unknown Source)
at org.openlca.app.util.Controls$1.widgetSelected(Unknown Source)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.openlca.app.rcp.RcpApplication.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Caused by: java.lang.NullPointerException
at org.openlca.core.math.SystemCalculator.doSetUp(SystemCalculator.java:63)
at org.openlca.core.math.SystemCalculator.calculateFull(SystemCalculator.java:47)
at org.openlca.app.editors.systems.CalculationWizard$Calculation.analyse(Unknown Source)
at org.openlca.app.editors.systems.CalculationWizard$Calculation.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

Eco3
Posts: 7
Joined: 08 Sep 2016 16:51

Re: Trouble with Impact Methods Import & Calculations

Post by Eco3 » 12 Sep 2016 11:51

Could anyone offer any advise please?

Tried the same thing on another computer and get exactly the same error on the calculation method. I have changed some of the input data as a test but it still won't work.

Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests