Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001094/0.001094, allocations: 108.8 kB / 16.42 MB, free: 6.461 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.001122/0.001122, allocations: 189.5 kB / 17.36 MB, free: 5.73 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.245/1.245, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.808e-05/1.809e-05, allocations: 6.219 kB / 327.2 MB, free: 3.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004802/0.004827, allocations: 5.033 MB / 332.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.00669, allocations: 1.337 MB / 333.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.006923, allocations: 11.94 kB / 333.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003333/0.007264, allocations: 158.5 kB / 333.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004774/0.007771, allocations: 317.2 kB / 334 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.008124, allocations: 231.6 kB / 334.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001029/0.009163, allocations: 1.343 MB / 335.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004694/0.009641, allocations: 310.1 kB / 335.9 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000483/0.01013, allocations: 466.2 kB / 336.3 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005881/0.01073, allocations: 0.5135 MB / 336.9 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.01088, allocations: 92 kB / 337 MB, free: 9.523 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.0111, allocations: 116 kB / 337.1 MB, free: 9.41 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001172/0.01228, allocations: 1.627 MB / 338.7 MB, free: 7.766 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006161/0.0129, allocations: 0.9779 MB / 339.7 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.01306, allocations: 159.6 kB / 339.8 MB, free: 6.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.856e-05/0.01314, allocations: 19.94 kB / 339.8 MB, free: 6.598 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.004254/0.0174, allocations: 5.363 MB / 345.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0003779/0.01778, allocations: 465.4 kB / 345.7 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001607/0.0194, allocations: 1.846 MB / 347.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001673/0.01957, allocations: 187.8 kB / 347.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of Alias: time 0.002798/0.02238, allocations: 2.852 MB / 350.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001237/0.02251, allocations: 147.8 kB / 350.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of Events: time 0.000704/0.02322, allocations: 0.7188 MB / 351.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006331/0.02386, allocations: 0.7177 MB / 352.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0009089/0.02478, allocations: 0.9681 MB / 353.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of Causalize: time 0.003834/0.02862, allocations: 4.468 MB / 357.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001828/0.03046, allocations: 2.04 MB / 359.6 MB, free: 1.836 MB / 302.1 MB Notification: Performance of Inline: time 0.003063/0.03353, allocations: 3.299 MB / 362.9 MB, free: 14.48 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002161/0.03376, allocations: 203.6 kB / 363.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of Cleanup: time 0.000148/0.03392, allocations: 159.7 kB / 363.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of Causalize: time 0.009447/0.04337, allocations: 11.77 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!