Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.000977/0.0009771, allocations: 110.5 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.0009326/0.0009327, allocations: 187.2 kB / 17.35 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.185/1.185, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.005e-05/2.005e-05, allocations: 6.219 kB / 327.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003019/0.003047, allocations: 2.753 MB / 329.9 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.004124, allocations: 0.8577 MB / 330.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.004238, allocations: 11.94 kB / 330.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.004478, allocations: 75.45 kB / 330.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002189/0.004712, allocations: 138.9 kB / 331 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001835/0.004903, allocations: 83.89 kB / 331.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004778/0.00539, allocations: 0.4904 MB / 331.6 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.005572, allocations: 103.3 kB / 331.7 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001544/0.005733, allocations: 159.4 kB / 331.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002064/0.005946, allocations: 191.2 kB / 332 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.494e-05/0.005998, allocations: 28 kB / 332 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.047e-05/0.006095, allocations: 48 kB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004079/0.006508, allocations: 0.5912 MB / 332.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001949/0.00671, allocations: 374.5 kB / 333 MB, free: 13.42 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.656e-05/0.006782, allocations: 59.88 kB / 333.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.977e-05/0.006816, allocations: 11.94 kB / 333.1 MB, free: 13.35 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.001644/0.008465, allocations: 2.043 MB / 335.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000147/0.008619, allocations: 119.8 kB / 335.3 MB, free: 11.07 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005584/0.009184, allocations: 0.6543 MB / 335.9 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simplify1: time 7.847e-05/0.009269, allocations: 71.91 kB / 336 MB, free: 10.32 MB / 286.1 MB Notification: Performance of Alias: time 0.001026/0.0103, allocations: 0.9843 MB / 337 MB, free: 9.188 MB / 286.1 MB Notification: Performance of simplify2: time 4.728e-05/0.01036, allocations: 55.86 kB / 337 MB, free: 9.133 MB / 286.1 MB Notification: Performance of Events: time 0.0002528/0.01062, allocations: 238.7 kB / 337.3 MB, free: 8.898 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003009/0.01093, allocations: 309 kB / 337.6 MB, free: 8.582 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003145/0.01125, allocations: 354.4 kB / 337.9 MB, free: 8.148 MB / 286.1 MB Notification: Performance of Causalize: time 0.001432/0.01269, allocations: 1.571 MB / 339.5 MB, free: 6.492 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006034/0.0133, allocations: 0.7447 MB / 340.2 MB, free: 5.723 MB / 286.1 MB Notification: Performance of Inline: time 0.0009385/0.01425, allocations: 1.089 MB / 341.3 MB, free: 4.594 MB / 286.1 MB Notification: Performance of Partitioning: time 7.21e-05/0.01433, allocations: 76.97 kB / 341.4 MB, free: 4.512 MB / 286.1 MB Notification: Performance of Cleanup: time 4.398e-05/0.01438, allocations: 55.89 kB / 341.4 MB, free: 4.457 MB / 286.1 MB Notification: Performance of Causalize: time 0.002771/0.01715, allocations: 3.212 MB / 344.7 MB, free: 1.301 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!