Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_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.0.0_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.001062/0.001062, allocations: 113.1 kB / 17.75 MB, free: 5.309 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.001058/0.001058, allocations: 192.6 kB / 18.68 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.181/1.181, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.397e-05/1.398e-05, allocations: 2.281 kB / 351.9 MB, free: 3.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002928/0.00295, allocations: 2.744 MB / 354.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.003998, allocations: 0.8256 MB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.004116, allocations: 4 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002119/0.004334, allocations: 71.39 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.004583, allocations: 134.9 kB / 355.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001695/0.004761, allocations: 91.81 kB / 355.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004598/0.005229, allocations: 0.4904 MB / 356.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.005399, allocations: 95.34 kB / 356.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.005544, allocations: 167.4 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001966/0.005747, allocations: 191.2 kB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.005797, allocations: 28 kB / 356.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.356e-05/0.005897, allocations: 44 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003929/0.006295, allocations: 0.5951 MB / 357.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001888/0.006491, allocations: 378.5 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.84e-05/0.006555, allocations: 63.88 kB / 357.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.239e-05/0.006593, allocations: 11.94 kB / 357.8 MB, free: 13.38 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.001524/0.008121, allocations: 2.043 MB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001213/0.008249, allocations: 115.8 kB / 360 MB, free: 11.1 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0005505/0.008806, allocations: 0.6581 MB / 360.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simplify1: time 6.145e-05/0.008874, allocations: 63.92 kB / 360.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of Alias: time 0.001131/0.01001, allocations: 1.081 MB / 361.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of simplify2: time 4.683e-05/0.01007, allocations: 51.94 kB / 361.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of Events: time 0.0002503/0.01033, allocations: 230.8 kB / 362.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of Detect States: time 0.000359/0.01069, allocations: 315.5 kB / 362.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003182/0.01102, allocations: 358.4 kB / 362.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of Causalize: time 0.001168/0.01219, allocations: 1.153 MB / 363.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.000614/0.01282, allocations: 0.7483 MB / 364.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of Inline: time 0.0009719/0.0138, allocations: 1.093 MB / 365.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of Partitioning: time 7.288e-05/0.01388, allocations: 76.97 kB / 365.8 MB, free: 4.863 MB / 302.1 MB Notification: Performance of Cleanup: time 4.473e-05/0.01393, allocations: 55.88 kB / 365.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of Causalize: time 0.002976/0.01691, allocations: 2.842 MB / 368.7 MB, free: 1.953 MB / 302.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!