Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 105.3 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.0009102/0.0009102, allocations: 192.2 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.333/1.333, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.81e-05/2.811e-05, allocations: 6.219 kB / 327.2 MB, free: 3.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003643/0.00368, allocations: 2.753 MB / 329.9 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.004988, allocations: 0.8654 MB / 330.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.005123, allocations: 4 kB / 330.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.005373, allocations: 75.41 kB / 330.9 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.005646, allocations: 138.9 kB / 331 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000191/0.005844, allocations: 83.83 kB / 331.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005084/0.006361, allocations: 498.3 kB / 331.6 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.006555, allocations: 99.34 kB / 331.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.006714, allocations: 159.4 kB / 331.8 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.006927, allocations: 191.2 kB / 332 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/0.006979, allocations: 35.94 kB / 332 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.507e-05/0.00708, allocations: 44 kB / 332.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004488/0.007534, allocations: 0.5951 MB / 332.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002062/0.007747, allocations: 374.5 kB / 333 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.33e-05/0.007816, allocations: 55.88 kB / 333.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-05/0.007855, allocations: 11.94 kB / 333.1 MB, free: 13.38 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: 50 (50) * Number of variables: 50 (50) Notification: Performance of Bindings: time 0.001766/0.009625, allocations: 2.047 MB / 335.2 MB, free: 11.22 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001512/0.009783, allocations: 119.7 kB / 335.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005912/0.01038, allocations: 0.6542 MB / 335.9 MB, free: 10.42 MB / 286.1 MB Notification: Performance of simplify1: time 6.855e-05/0.01046, allocations: 71.91 kB / 336 MB, free: 10.35 MB / 286.1 MB Notification: Performance of Alias: time 0.001136/0.0116, allocations: 0.9882 MB / 337 MB, free: 9.211 MB / 286.1 MB Notification: Performance of simplify2: time 6.448e-05/0.01167, allocations: 55.92 kB / 337 MB, free: 9.156 MB / 286.1 MB Notification: Performance of Events: time 0.0002758/0.01196, allocations: 226.8 kB / 337.3 MB, free: 8.934 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003202/0.01229, allocations: 304.9 kB / 337.6 MB, free: 8.621 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003615/0.01266, allocations: 366.4 kB / 337.9 MB, free: 8.176 MB / 286.1 MB Notification: Performance of Causalize: time 0.001553/0.01422, allocations: 1.571 MB / 339.5 MB, free: 6.52 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006806/0.01491, allocations: 0.7405 MB / 340.2 MB, free: 5.754 MB / 286.1 MB Notification: Performance of Inline: time 0.001068/0.01599, allocations: 1.097 MB / 341.3 MB, free: 4.617 MB / 286.1 MB Notification: Performance of Partitioning: time 6.702e-05/0.01606, allocations: 68.98 kB / 341.4 MB, free: 4.543 MB / 286.1 MB Notification: Performance of Cleanup: time 4.998e-05/0.01612, allocations: 55.89 kB / 341.4 MB, free: 4.488 MB / 286.1 MB Notification: Performance of Causalize: time 0.003044/0.01917, allocations: 3.216 MB / 344.7 MB, free: 1.328 MB / 286.1 MB Error: Internal error NBEquation.Equation.setLHS failed because LHS could not be set for: [-IF-] (1)if $SEV_3 then [----] [SCAL] (1) pipe.pressureDrop = (pipe.dpLaminar / pipe.V_flowLaminar) * V_flow + pipe.k * (V_flow - pipe.V_flowLaminar) ^ 2.0 ($RES_SIM_14) [----] elseif $SEV_4 then [----] [SCAL] (1) pipe.pressureDrop = (pipe.dpLaminar / pipe.V_flowLaminar) * V_flow - pipe.k * (V_flow + pipe.V_flowLaminar) ^ 2.0 ($RES_SIM_15) [----] else [----] [SCAL] (1) pipe.pressureDrop = (pipe.dpLaminar / pipe.V_flowLaminar) * V_flow ($RES_SIM_16) [----] end if; Error: Internal error NBInitialization.main failed to apply modules!