Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.00112/0.00112, allocations: 115.3 kB / 17.75 MB, free: 5.195 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.001118/0.001118, allocations: 189.9 kB / 18.68 MB, free: 4.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.796e-05/1.797e-05, allocations: 2.281 kB / 351.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004882/0.004908, allocations: 5.024 MB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001971/0.006894, allocations: 1.293 MB / 358.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002247/0.007131, allocations: 11.94 kB / 358.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003545/0.007492, allocations: 166.5 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005377/0.008054, allocations: 325.2 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.008419, allocations: 227.6 kB / 359 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.009528, allocations: 1.346 MB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003868/0.009924, allocations: 310 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003896/0.01032, allocations: 466.3 kB / 361.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004441/0.01077, allocations: 0.5251 MB / 361.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001265/0.01091, allocations: 92 kB / 361.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.01111, allocations: 116 kB / 361.8 MB, free: 9.379 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001102/0.01222, allocations: 1.619 MB / 363.4 MB, free: 7.742 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005313/0.01276, allocations: 0.9818 MB / 364.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.01292, allocations: 163.6 kB / 364.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.995e-05/0.01301, allocations: 27.88 kB / 364.6 MB, free: 6.559 MB / 302.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.004212/0.01723, allocations: 5.352 MB / 369.9 MB, free: 1.023 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003978/0.01764, allocations: 429.6 kB / 370.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of Early Inline: time 0.1605/0.1782, allocations: 1.856 MB / 372.2 MB, free: 16.27 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002737/0.1785, allocations: 189.8 kB / 372.4 MB, free: 16.27 MB / 302.1 MB Notification: Performance of Alias: time 0.003362/0.1818, allocations: 3.131 MB / 375.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001463/0.182, allocations: 145.4 kB / 375.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of Events: time 0.0006481/0.1826, allocations: 0.7134 MB / 376.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006668/0.1833, allocations: 0.7334 MB / 377.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007068/0.184, allocations: 0.9572 MB / 378.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Causalize: time 0.002995/0.187, allocations: 3.145 MB / 381.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001646/0.1887, allocations: 2.046 MB / 383.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of Inline: time 0.002839/0.1915, allocations: 3.295 MB / 386.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001879/0.1917, allocations: 198.8 kB / 386.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001338/0.1919, allocations: 158.4 kB / 386.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of Causalize: time 0.009186/0.2011, allocations: 10.1 MB / 397 MB, free: 5.094 MB / 302.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!