Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009579/0.0009582, allocations: 105.2 kB / 18.41 MB, free: 4.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 193.4 kB / 19.35 MB, free: 3.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.692e-05, allocations: 3.125 kB / 329.1 MB, free: 3.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003983/0.004018, allocations: 2.742 MB / 331.9 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.005572, allocations: 0.8655 MB / 332.8 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.005724, allocations: 4 kB / 332.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002675/0.005998, allocations: 75.39 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002829/0.006289, allocations: 126.9 kB / 333 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002276/0.006547, allocations: 95.81 kB / 333.1 MB, free: 15.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006338/0.00719, allocations: 498.2 kB / 333.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.007414, allocations: 99.34 kB / 333.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.007603, allocations: 163.4 kB / 333.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002312/0.007843, allocations: 195.2 kB / 334 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.969e-05/0.007899, allocations: 28 kB / 334 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.008009, allocations: 44 kB / 334.1 MB, free: 14.43 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005003/0.008516, allocations: 0.599 MB / 334.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002198/0.008742, allocations: 370.5 kB / 335 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.067e-05/0.008818, allocations: 59.88 kB / 335.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.126e-05/0.008886, allocations: 15.92 kB / 335.1 MB, free: 13.38 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 (50) * Number of variables: 50 (50) Notification: Performance of Bindings: time 0.001977/0.01087, allocations: 2.039 MB / 337.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000186/0.01106, allocations: 127.7 kB / 337.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006838/0.01175, allocations: 0.6465 MB / 337.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of simplify1: time 8.38e-05/0.01185, allocations: 71.91 kB / 338 MB, free: 10.36 MB / 286.1 MB Notification: Performance of Alias: time 0.001468/0.01332, allocations: 1.065 MB / 339 MB, free: 9.141 MB / 286.1 MB Notification: Performance of simplify2: time 7.25e-05/0.01341, allocations: 63.86 kB / 339.1 MB, free: 9.078 MB / 286.1 MB Notification: Performance of Events: time 0.0003151/0.01373, allocations: 234.7 kB / 339.3 MB, free: 8.848 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003634/0.0141, allocations: 301 kB / 339.6 MB, free: 8.539 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004072/0.01452, allocations: 358.4 kB / 340 MB, free: 8.102 MB / 286.1 MB Notification: Performance of Causalize: time 0.001387/0.01591, allocations: 1.156 MB / 341.1 MB, free: 6.855 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007137/0.01664, allocations: 0.7449 MB / 341.9 MB, free: 6.086 MB / 286.1 MB Notification: Performance of Inline: time 0.001103/0.01775, allocations: 1.097 MB / 343 MB, free: 4.949 MB / 286.1 MB Notification: Performance of Partitioning: time 7.674e-05/0.01784, allocations: 76.91 kB / 343 MB, free: 4.867 MB / 286.1 MB Notification: Performance of Cleanup: time 5.183e-05/0.01789, allocations: 63.81 kB / 343.1 MB, free: 4.805 MB / 286.1 MB Notification: Performance of Causalize: time 0.003415/0.02131, allocations: 2.832 MB / 345.9 MB, free: 1.961 MB / 286.1 MB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if $SEV_3 then [----] [SCAL] (1) pipe.pressureDrop = (pipe.dpLaminar / pipe.V_flowLaminar) * V_flow + pipe.k * (V_flow - pipe.V_flowLaminar) ^ 2.0 ($RES_SIM_14) [----] elseif $SEV_4 then [----] [SCAL] (1) pipe.pressureDrop = (pipe.dpLaminar / pipe.V_flowLaminar) * V_flow - pipe.k * (V_flow + pipe.V_flowLaminar) ^ 2.0 ($RES_SIM_15) [----] else [----] [SCAL] (1) pipe.pressureDrop = (pipe.dpLaminar / pipe.V_flowLaminar) * V_flow ($RES_SIM_16) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!