Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) 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: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestBarometricCondenser,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001302, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001283/0.001283, allocations: 191 kB / 18 MB, free: 5.09 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.46/1.46, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2881/0.2881, allocations: 48.85 MB / 320.1 MB, free: 11.02 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 67.91 kB / 450 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1214, allocations: 59.16 MB / 0.4973 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestBarometricCondenser): time 0.2742/0.3956, allocations: 50.95 MB / 0.547 GB, free: 4.574 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01769/0.4133, allocations: 17.12 MB / 0.5637 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005106/0.4138, allocations: 8.844 kB / 0.5637 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008833/0.4148, allocations: 265.4 kB / 0.564 GB, free: 9.883 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007987/0.4228, allocations: 2.367 MB / 0.5663 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01299/0.4358, allocations: 3.241 MB / 0.5695 GB, free: 7.352 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001745/0.4376, allocations: 0.8645 MB / 0.5703 GB, free: 6.875 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000508/0.4381, allocations: 295.2 kB / 0.5706 GB, free: 6.703 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.4386, allocations: 352 kB / 0.5709 GB, free: 6.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004851/0.4391, allocations: 368 kB / 0.5713 GB, free: 6.324 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.54e-05/0.4392, allocations: 33 kB / 0.5713 GB, free: 6.324 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01633/0.4555, allocations: 7.516 MB / 0.5787 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001875/0.4557, allocations: 98.83 kB / 0.5788 GB, free: 2.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000522/0.4562, allocations: 253.1 kB / 0.579 GB, free: 2.188 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.468, allocations: 4.619 MB / 0.5835 GB, free: 15.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.468, allocations: 0 / 0.5835 GB, free: 15.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.468, allocations: 0 / 0.5835 GB, free: 15.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.468, allocations: 0 / 0.5835 GB, free: 15.29 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003518/0.4716, allocations: 1.407 MB / 0.5849 GB, free: 14.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.4716, allocations: 14.23 kB / 0.5849 GB, free: 14.21 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.17e-05/0.4717, allocations: 73.53 kB / 0.585 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009475/0.4727, allocations: 154.6 kB / 0.5851 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004979/0.4732, allocations: 368.2 kB / 0.5855 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.4732, allocations: 28.72 kB / 0.5855 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.078e-05/0.4733, allocations: 34.81 kB / 0.5855 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008395/0.4741, allocations: 482.3 kB / 0.586 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.4741, allocations: 5.375 kB / 0.586 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.4742, allocations: 16.25 kB / 0.586 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.4742, allocations: 9.062 kB / 0.586 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005936/0.4748, allocations: 305.8 kB / 0.5863 GB, free: 13.23 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.477, allocations: 2.509 MB / 0.5888 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005612/0.4776, allocations: 280 kB / 0.589 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.4778, allocations: 157.4 kB / 0.5892 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06469/0.5425, allocations: 32.59 MB / 0.621 GB, free: 7.391 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007003/0.5433, allocations: 310.8 kB / 0.6213 GB, free: 7.062 MB / 478.1 MB Notification: Performance of pre-optimization done (n=32): time 2.896e-06/0.5433, allocations: 0 / 0.6213 GB, free: 7.062 MB / 478.1 MB Notification: Performance of matching and sorting (n=36): time 0.003796/0.5471, allocations: 1.706 MB / 0.623 GB, free: 5.238 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.998e-05/0.5472, allocations: 140.5 kB / 0.6231 GB, free: 5.07 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000451/0.5476, allocations: 409.9 kB / 0.6235 GB, free: 4.664 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.5477, allocations: 29.7 kB / 0.6235 GB, free: 4.629 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.5479, allocations: 240.5 kB / 0.6237 GB, free: 4.391 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.548, allocations: 122.9 kB / 0.6239 GB, free: 4.27 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.5481, allocations: 81.97 kB / 0.6239 GB, free: 4.184 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5483, allocations: 350.8 kB / 0.6243 GB, free: 3.832 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002139/0.5485, allocations: 136.7 kB / 0.6244 GB, free: 3.699 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/0.5488, allocations: 219.7 kB / 0.6246 GB, free: 3.457 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005228/0.5493, allocations: 471 kB / 0.6251 GB, free: 2.945 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.5493, allocations: 0 / 0.6251 GB, free: 2.945 MB / 478.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00103/0.5503, allocations: 0.6196 MB / 0.6257 GB, free: 2.301 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.483e-05/0.5504, allocations: 79.23 kB / 0.6257 GB, free: 2.211 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.5505, allocations: 0 / 0.6257 GB, free: 2.211 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.5516, allocations: 162.8 kB / 0.6259 GB, free: 2.047 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.5519, allocations: 56.17 kB / 0.626 GB, free: 1.992 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009183/0.5528, allocations: 1.136 MB / 0.6271 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002739/0.5531, allocations: 17.03 kB / 0.6271 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.5532, allocations: 16 kB / 0.6271 GB, free: 0.7734 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 15 (coolingFlowRate.nextEventScaled,coolingFlowRate.nextEvent,$PRE.coolingFlowRate.nextEvent,coolingFlowRate.last,coolingFlowRate.b,coolingFlowRate.a,steamFlowRate.nextEventScaled,steamFlowRate.nextEvent,$PRE.steamFlowRate.nextEvent,steamFlowRate.last,steamFlowRate.b,steamFlowRate.a,$whenCondition2,$whenCondition1,tank.liquidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000283/0.5535, allocations: 244.9 kB / 0.6273 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.915e-05/0.5536, allocations: 66.36 kB / 0.6274 GB, free: 460 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.5557, allocations: 1.579 MB / 0.6289 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.133e-05/0.5557, allocations: 23.91 kB / 0.629 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.5557, allocations: 0 / 0.629 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5557, allocations: 3.984 kB / 0.629 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008859/0.5566, allocations: 0.7361 MB / 0.6297 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.555e-06/0.5566, allocations: 4 kB / 0.6297 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.5569, allocations: 43.91 kB / 0.6297 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005609/0.5574, allocations: 244.4 kB / 0.63 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.659e-05/0.5575, allocations: 11.98 kB / 0.63 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008967/0.5584, allocations: 1.347 MB / 0.6313 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5584, allocations: 0 / 0.6313 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002101/0.5605, allocations: 1.711 MB / 0.633 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002338/0.5608, allocations: 188.4 kB / 0.6331 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.524e-05/0.5609, allocations: 12 kB / 0.6331 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.5611, allocations: 8 kB / 0.6332 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.51e-05/0.5611, allocations: 23.97 kB / 0.6332 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.5612, allocations: 27.92 kB / 0.6332 GB, free: 10.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003052/0.5615, allocations: 275.1 kB / 0.6335 GB, free: 10.04 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5615, allocations: 0 / 0.6335 GB, free: 10.04 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003679/0.5652, allocations: 1.119 MB / 0.6346 GB, free: 8.918 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (barometricCondenser.hl,tank.y,tank.h) * Number of discrete variables: 22 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$whenCondition1,$whenCondition2,steamFlowRate.a,steamFlowRate.b,steamFlowRate.last,steamFlowRate.nextEvent,steamFlowRate.nextEventScaled,coolingFlowRate.a,coolingFlowRate.b,coolingFlowRate.last,coolingFlowRate.nextEvent,coolingFlowRate.nextEventScaled) * Number of discrete states: 12 (steamFlowRate.nextEvent,steamFlowRate.last,steamFlowRate.nextEventScaled,steamFlowRate.b,steamFlowRate.a,$whenCondition1,coolingFlowRate.nextEvent,coolingFlowRate.last,coolingFlowRate.nextEventScaled,coolingFlowRate.b,coolingFlowRate.a,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008785/0.574, allocations: 3.338 MB / 0.6378 GB, free: 5.539 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.5757, allocations: 0.744 MB / 0.6385 GB, free: 4.773 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.5758, allocations: 4 kB / 0.6385 GB, free: 4.77 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008467/0.5766, allocations: 0.5989 MB / 0.6391 GB, free: 4.145 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001183/0.5778, allocations: 193.1 kB / 0.6393 GB, free: 3.953 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009848/0.5877, allocations: 5.255 MB / 0.6444 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.5883, allocations: 0.9111 MB / 0.6453 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003377/0.5887, allocations: 95.12 kB / 0.6454 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.589, allocations: 215.4 kB / 0.6456 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of SimCode: time 1.974e-06/0.589, allocations: 4 kB / 0.6456 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/0.6906, allocations: 47.55 MB / 0.6921 GB, free: 13.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.38/15.07, allocations: 7.875 kB / 0.6921 GB, free: 13.6 MB / 0.545 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 ThermoPower_ThermoPower_Test_WaterComponents_TestBarometricCondenser.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestBarometricCondenser.pipe 2>&1)