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.001413/0.001413, allocations: 103.4 kB / 17.75 MB, free: 5.305 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.001295/0.001295, allocations: 198.2 kB / 18.69 MB, free: 4.375 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.29/1.29, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.921e-05/1.921e-05, allocations: 5.375 kB / 351.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003488/0.003515, allocations: 2.749 MB / 354.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.004902, allocations: 0.8295 MB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.005116, allocations: 4 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.005396, allocations: 67.42 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003092/0.005713, allocations: 138.9 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002289/0.005964, allocations: 87.83 kB / 355.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005785/0.006552, allocations: 0.4943 MB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.006739, allocations: 91.36 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/0.007012, allocations: 175.3 kB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002784/0.007298, allocations: 191.2 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.01e-05/0.007375, allocations: 32 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.007516, allocations: 40 kB / 356.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004608/0.007982, allocations: 0.5912 MB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002332/0.008223, allocations: 370.5 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.008328, allocations: 59.88 kB / 357.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.011e-05/0.008384, allocations: 11.94 kB / 357.8 MB, free: 13.34 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.001929/0.01032, allocations: 2.057 MB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001935/0.01052, allocations: 115.8 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006302/0.01116, allocations: 0.6503 MB / 360.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001218/0.01129, allocations: 67.91 kB / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of Alias: time 0.001448/0.01274, allocations: 1.085 MB / 361.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simplify2: time 9.94e-05/0.01285, allocations: 47.92 kB / 361.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of Detect States: time 0.000377/0.01324, allocations: 244.2 kB / 362.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of Events: time 0.0003321/0.01358, allocations: 221.6 kB / 362.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0004362/0.01402, allocations: 370.4 kB / 362.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of Causalize: time 0.001432/0.01546, allocations: 1.168 MB / 363.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008516/0.01632, allocations: 0.7452 MB / 364.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of Inline: time 0.001208/0.01754, allocations: 1.086 MB / 365.6 MB, free: 4.961 MB / 302.1 MB Notification: Performance of Partitioning: time 7.681e-05/0.01763, allocations: 76.91 kB / 365.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of Cleanup: time 8.524e-05/0.01772, allocations: 59.86 kB / 365.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of Causalize: time 0.003907/0.02163, allocations: 2.831 MB / 368.6 MB, free: 1.977 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!