Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009805/0.0009806, allocations: 101.2 kB / 18.38 MB, free: 4.566 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.001094/0.001094, allocations: 191 kB / 19.32 MB, free: 3.641 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.263/1.263, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.952e-05/1.953e-05, allocations: 2.281 kB / 329.1 MB, free: 3.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005298/0.005326, allocations: 5.021 MB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.007727, allocations: 1.333 MB / 335.5 MB, free: 13 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005041/0.008244, allocations: 11.94 kB / 335.5 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004399/0.008691, allocations: 166.5 kB / 335.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006561/0.009384, allocations: 321.2 kB / 336 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.009818, allocations: 235.6 kB / 336.2 MB, free: 12.28 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.01092, allocations: 1.339 MB / 337.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003645/0.0113, allocations: 314.1 kB / 337.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003703/0.01167, allocations: 458.3 kB / 338.3 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.0121, allocations: 0.5213 MB / 338.8 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.01222, allocations: 92 kB / 338.9 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001848/0.01241, allocations: 112 kB / 339 MB, free: 9.453 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001021/0.01344, allocations: 1.623 MB / 340.6 MB, free: 7.812 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004838/0.01393, allocations: 0.9779 MB / 341.6 MB, free: 6.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.01407, allocations: 167.6 kB / 341.8 MB, free: 6.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.884e-05/0.01414, allocations: 23.88 kB / 341.8 MB, free: 6.633 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: 137 (137) * Number of variables: 137 (137) Notification: Performance of Bindings: time 0.004/0.01815, allocations: 5.36 MB / 347.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0003991/0.01855, allocations: 457.5 kB / 347.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001589/0.02015, allocations: 1.854 MB / 349.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001691/0.02033, allocations: 187.8 kB / 349.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of Alias: time 0.002831/0.02317, allocations: 2.844 MB / 352.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001311/0.02331, allocations: 147.8 kB / 352.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of Events: time 0.0007222/0.02404, allocations: 0.7158 MB / 353.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006315/0.02468, allocations: 0.728 MB / 354.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000867/0.02556, allocations: 0.9642 MB / 355 MB, free: 8.555 MB / 302.1 MB Notification: Performance of Causalize: time 0.003978/0.02954, allocations: 4.479 MB / 359.5 MB, free: 3.945 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.00181/0.03137, allocations: 2.028 MB / 361.5 MB, free: 1.883 MB / 302.1 MB Notification: Performance of Inline: time 0.003077/0.03446, allocations: 3.291 MB / 364.8 MB, free: 14.54 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002253/0.0347, allocations: 199.6 kB / 365 MB, free: 14.33 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001583/0.03486, allocations: 159.7 kB / 365.2 MB, free: 14.18 MB / 318.1 MB Notification: Performance of Causalize: time 0.0106/0.04546, allocations: 11.78 MB / 377 MB, free: 3.012 MB / 318.1 MB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if $SEV_13 then [----] [SCAL] (1) pipe1.pressureDrop = (pipe1.dpLaminar / pipe1.V_flowLaminar) * pipe1.volumeFlow + pipe1.k * (pipe1.volumeFlow - pipe1.V_flowLaminar) ^ 2.0 ($RES_SIM_79) [----] elseif $SEV_14 then [----] [SCAL] (1) pipe1.pressureDrop = (pipe1.dpLaminar / pipe1.V_flowLaminar) * pipe1.volumeFlow - pipe1.k * (pipe1.volumeFlow + pipe1.V_flowLaminar) ^ 2.0 ($RES_SIM_80) [----] else [----] [SCAL] (1) pipe1.pressureDrop = (pipe1.dpLaminar / pipe1.V_flowLaminar) * pipe1.volumeFlow ($RES_SIM_81) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!