Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009296/0.0009296, allocations: 114.5 kB / 18.42 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 216.6 kB / 19.37 MB, free: 3.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.13e-05/2.139e-05, allocations: 5.781 kB / 308.3 MB, free: 15.95 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.00526/0.005302, allocations: 5.042 MB / 313.3 MB, free: 10.89 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.007421, allocations: 1.334 MB / 314.7 MB, free: 9.559 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.007663, allocations: 11.94 kB / 314.7 MB, free: 9.547 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003839/0.008054, allocations: 166.5 kB / 314.9 MB, free: 9.383 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005224/0.008625, allocations: 321.2 kB / 315.2 MB, free: 9.066 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.00902, allocations: 231.6 kB / 315.4 MB, free: 8.84 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.001117/0.01015, allocations: 1.343 MB / 316.7 MB, free: 7.492 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003901/0.01055, allocations: 314.1 kB / 317 MB, free: 7.176 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003733/0.01093, allocations: 458.3 kB / 317.5 MB, free: 6.723 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004058/0.01134, allocations: 0.5212 MB / 318 MB, free: 6.199 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.01145, allocations: 92 kB / 318.1 MB, free: 6.109 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.01163, allocations: 116 kB / 318.2 MB, free: 5.996 MB / 254.1 MB Notification: Performance of combineBinaries: time 0.001003/0.01264, allocations: 1.627 MB / 319.8 MB, free: 4.352 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004676/0.01312, allocations: 0.9779 MB / 320.8 MB, free: 3.359 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.01327, allocations: 167.6 kB / 321 MB, free: 3.195 MB / 254.1 MB Notification: Performance of FrontEnd: time 5.787e-05/0.01333, allocations: 19.94 kB / 321 MB, free: 3.176 MB / 254.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.003915/0.01725, allocations: 5.352 MB / 326.4 MB, free: 13.64 MB / 270.1 MB Notification: Performance of FunctionAlias: time 0.0004074/0.01767, allocations: 453.6 kB / 326.8 MB, free: 13.19 MB / 270.1 MB Notification: Performance of Early Inline: time 0.001588/0.01926, allocations: 1.861 MB / 328.7 MB, free: 11.29 MB / 270.1 MB Notification: Performance of simplify1: time 0.00016/0.01943, allocations: 183.8 kB / 328.8 MB, free: 11.11 MB / 270.1 MB Notification: Performance of Alias: time 0.002901/0.02234, allocations: 2.849 MB / 331.7 MB, free: 7.93 MB / 270.1 MB Notification: Performance of simplify2: time 0.0001254/0.02248, allocations: 147.8 kB / 331.8 MB, free: 7.785 MB / 270.1 MB Notification: Performance of Events: time 0.0006894/0.02317, allocations: 0.7149 MB / 332.5 MB, free: 7.059 MB / 270.1 MB Notification: Performance of Detect States: time 0.0006192/0.0238, allocations: 0.7216 MB / 333.3 MB, free: 6.316 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0008362/0.02464, allocations: 0.9603 MB / 334.2 MB, free: 5.117 MB / 270.1 MB Notification: Performance of Causalize: time 0.003806/0.02846, allocations: 4.442 MB / 338.7 MB, free: 0.543 MB / 270.1 MB Notification: Performance of After Index Reduction Inline: time 0.001782/0.03025, allocations: 2.028 MB / 340.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of Inline: time 0.003028/0.03329, allocations: 3.226 MB / 343.9 MB, free: 11.2 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002104/0.03351, allocations: 203.6 kB / 344.1 MB, free: 10.99 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001524/0.03367, allocations: 163.7 kB / 344.3 MB, free: 10.83 MB / 286.1 MB Notification: Performance of Causalize: time 0.01063/0.04431, allocations: 11.67 MB / 356 MB, free: 15.79 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!