Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001243/0.001243, allocations: 109.5 kB / 17.75 MB, free: 5.348 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.001244/0.001244, allocations: 184.2 kB / 18.68 MB, free: 4.426 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.208/1.208, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/1.985e-05, allocations: 2.281 kB / 328.5 MB, free: 3.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003352/0.00338, allocations: 2.754 MB / 331.2 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.004618, allocations: 0.8694 MB / 332.1 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.004743, allocations: 4 kB / 332.1 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000237/0.004986, allocations: 71.41 kB / 332.2 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.005245, allocations: 134.9 kB / 332.3 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001759/0.005429, allocations: 91.81 kB / 332.4 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004617/0.005899, allocations: 0.4904 MB / 332.9 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.006077, allocations: 95.36 kB / 333 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.006228, allocations: 163.4 kB / 333.1 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001886/0.006423, allocations: 179.2 kB / 333.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.006478, allocations: 43.88 kB / 333.4 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.221e-05/0.006576, allocations: 44 kB / 333.4 MB, free: 14.41 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004101/0.006992, allocations: 0.5912 MB / 334 MB, free: 13.82 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000192/0.007192, allocations: 374.5 kB / 334.4 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.896e-05/0.007256, allocations: 55.88 kB / 334.4 MB, free: 13.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.751e-05/0.007299, allocations: 19.86 kB / 334.4 MB, free: 13.37 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.00173/0.009033, allocations: 2.039 MB / 336.5 MB, free: 11.22 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001577/0.009199, allocations: 131.7 kB / 336.6 MB, free: 11.09 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005753/0.009781, allocations: 0.6426 MB / 337.2 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simplify1: time 7.646e-05/0.009864, allocations: 75.89 kB / 337.3 MB, free: 10.34 MB / 286.1 MB Notification: Performance of Alias: time 0.001074/0.01095, allocations: 0.9882 MB / 338.3 MB, free: 9.203 MB / 286.1 MB Notification: Performance of simplify2: time 5.009e-05/0.01101, allocations: 55.92 kB / 338.4 MB, free: 9.148 MB / 286.1 MB Notification: Performance of Events: time 0.000259/0.01127, allocations: 230.7 kB / 338.6 MB, free: 8.922 MB / 286.1 MB Notification: Performance of Detect States: time 0.00041/0.01169, allocations: 307.9 kB / 338.9 MB, free: 8.609 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003333/0.01203, allocations: 366.4 kB / 339.2 MB, free: 8.164 MB / 286.1 MB Notification: Performance of Causalize: time 0.001439/0.01348, allocations: 1.563 MB / 340.8 MB, free: 6.516 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006288/0.01412, allocations: 0.7445 MB / 341.5 MB, free: 5.746 MB / 286.1 MB Notification: Performance of Inline: time 0.0009933/0.01512, allocations: 1.097 MB / 342.6 MB, free: 4.609 MB / 286.1 MB Notification: Performance of Partitioning: time 6.816e-05/0.01519, allocations: 68.98 kB / 342.7 MB, free: 4.535 MB / 286.1 MB Notification: Performance of Cleanup: time 5.663e-05/0.01526, allocations: 60.03 kB / 342.8 MB, free: 4.477 MB / 286.1 MB Notification: Performance of Causalize: time 0.002949/0.01821, allocations: 3.216 MB / 346 MB, free: 1.316 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!