Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001079/0.001078, allocations: 110.7 kB / 16.42 MB, free: 6.52 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.001218/0.001218, allocations: 189.9 kB / 17.35 MB, free: 5.754 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.275/1.275, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.152e-05/2.152e-05, allocations: 6.219 kB / 327.2 MB, free: 3.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006126/0.006156, allocations: 5.032 MB / 332.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.009194, allocations: 1.337 MB / 333.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008113/0.01002, allocations: 11.94 kB / 333.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005376/0.01056, allocations: 154.6 kB / 333.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000797/0.01137, allocations: 325.2 kB / 334 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004801/0.01187, allocations: 231.6 kB / 334.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001151/0.01303, allocations: 1.343 MB / 335.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003784/0.01342, allocations: 306.1 kB / 335.9 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004119/0.01384, allocations: 470.2 kB / 336.4 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004523/0.0143, allocations: 0.5096 MB / 336.9 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.01441, allocations: 92 kB / 337 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.0146, allocations: 116 kB / 337.1 MB, free: 9.414 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009855/0.01559, allocations: 1.631 MB / 338.7 MB, free: 7.766 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004712/0.01607, allocations: 0.9741 MB / 339.7 MB, free: 6.777 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.01622, allocations: 155.6 kB / 339.8 MB, free: 6.625 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.075e-05/0.01629, allocations: 31.88 kB / 339.9 MB, free: 6.594 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.003946/0.02024, allocations: 5.356 MB / 345.2 MB, free: 1.051 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0004084/0.02065, allocations: 465.4 kB / 345.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of Early Inline: time 0.00162/0.02228, allocations: 1.846 MB / 347.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001659/0.02246, allocations: 195.7 kB / 347.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Alias: time 0.002871/0.02533, allocations: 2.845 MB / 350.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001322/0.02548, allocations: 151.8 kB / 350.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Events: time 0.000738/0.02622, allocations: 0.715 MB / 351.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006386/0.02687, allocations: 0.7216 MB / 352.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008581/0.02774, allocations: 0.9642 MB / 353.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Causalize: time 0.003976/0.03172, allocations: 4.479 MB / 357.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001805/0.03354, allocations: 2.028 MB / 359.6 MB, free: 1.84 MB / 302.1 MB Notification: Performance of Inline: time 0.0031/0.03665, allocations: 3.287 MB / 362.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002231/0.03688, allocations: 211.6 kB / 363.1 MB, free: 14.28 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001353/0.03702, allocations: 155.7 kB / 363.2 MB, free: 14.13 MB / 318.1 MB Notification: Performance of Causalize: time 0.01021/0.04723, allocations: 11.78 MB / 375 MB, free: 2.965 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!