Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002094/0.002094, allocations: 108.5 kB / 19.05 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002249/0.002249, allocations: 210.5 kB / 20.03 MB, free: 2.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.212/1.212, allocations: 230.4 MB / 251.3 MB, free: 8.73 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.608e-06/9.608e-06, allocations: 2.281 kB / 368.8 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003203/0.003213, allocations: 2.784 MB / 371.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.004334, allocations: 0.8568 MB / 372.4 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.067e-05/0.004425, allocations: 4 kB / 372.4 MB, free: 2.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001953/0.00462, allocations: 71.41 kB / 372.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002327/0.004853, allocations: 142.9 kB / 372.7 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.005014, allocations: 87.83 kB / 372.7 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005139/0.005528, allocations: 0.5055 MB / 373.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.005653, allocations: 63.23 kB / 373.3 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.005826, allocations: 175.4 kB / 373.5 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.006045, allocations: 183.2 kB / 373.7 MB, free: 1.758 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.623e-05/0.006091, allocations: 36 kB / 373.7 MB, free: 1.723 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.937e-05/0.00618, allocations: 48 kB / 373.7 MB, free: 1.676 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004446/0.006625, allocations: 0.5911 MB / 374.3 MB, free: 1.078 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002244/0.006849, allocations: 382.5 kB / 374.7 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.691e-05/0.006906, allocations: 59.81 kB / 374.8 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.593e-05/0.006932, allocations: 8 kB / 374.8 MB, free: 0.6328 MB / 302.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.1156/0.1225, allocations: 1.689 MB / 376.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001541/0.1227, allocations: 145.6 kB / 376.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0003557/0.123, allocations: 473.5 kB / 377.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Simplify 1: time 0.0001647/0.1232, allocations: 172.6 kB / 377.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of Alias: time 0.0009687/0.1241, allocations: 0.9523 MB / 378.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of Simplify 2: time 0.0001169/0.1243, allocations: 144.8 kB / 378.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of Remove Stream: time 8.988e-05/0.1244, allocations: 122.5 kB / 378.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002204/0.1246, allocations: 230.9 kB / 378.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of Events: time 0.0002119/0.1248, allocations: 211.8 kB / 378.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002798/0.1251, allocations: 435 kB / 379.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of Causalize: time 0.0009976/0.1261, allocations: 1.099 MB / 380.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003464/0.1264, allocations: 491.9 kB / 380.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of Simplify: time 0.0003471/0.1268, allocations: 367.3 kB / 381.2 MB, free: 9.531 MB / 302.1 MB Notification: Performance of Inline: time 0.0004529/0.1272, allocations: 0.6498 MB / 381.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of Partitioning: time 3.134e-05/0.1272, allocations: 31.58 kB / 381.9 MB, free: 9.137 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001027/0.1273, allocations: 175.1 kB / 382.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of Causalize: time 0.002164/0.1295, allocations: 2.111 MB / 384.2 MB, free: 8.367 MB / 302.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [-IF-] (1) ($RES_SIM_13) [----] if $SEV_0 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_1 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!