Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB.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.DistributedParameterComponents.TestHeatTransfer2phDB,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestHeatTransfer2phDB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestHeatTransfer2phDB",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.001342/0.001342, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001576/0.001576, allocations: 191 kB / 18 MB, free: 5.098 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.375/1.375, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2735/0.2735, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.001493/0.001493, allocations: 68.47 kB / 450.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1108, allocations: 59.15 MB / 0.4973 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB): time 0.01726/0.1281, allocations: 16.09 MB / 0.513 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2317/0.3599, allocations: 13.55 MB / 0.5262 GB, free: 6.488 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003096/0.3602, allocations: 5 kB / 0.5262 GB, free: 6.488 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000476/0.3608, allocations: 132.9 kB / 0.5264 GB, free: 6.488 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003523/0.3611, allocations: 203.3 kB / 0.5266 GB, free: 6.488 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01455/0.3757, allocations: 5.333 MB / 0.5318 GB, free: 6.449 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002034/0.3778, allocations: 1.947 MB / 0.5337 GB, free: 6.449 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.378, allocations: 114.8 kB / 0.5338 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007387/0.3787, allocations: 0.6193 MB / 0.5344 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001121/0.3799, allocations: 0.782 MB / 0.5351 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002496/0.3801, allocations: 137.8 kB / 0.5353 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01438/0.3945, allocations: 6.795 MB / 0.5419 GB, free: 6.375 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007389/0.3953, allocations: 475.7 kB / 0.5424 GB, free: 6.375 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.3963, allocations: 0.5711 MB / 0.5429 GB, free: 6.281 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01217/0.4085, allocations: 5.044 MB / 0.5478 GB, free: 4.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4086, allocations: 1.125 kB / 0.5478 GB, free: 4.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4086, allocations: 0 / 0.5478 GB, free: 4.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.4086, allocations: 0 / 0.5478 GB, free: 4.5 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.009809/0.4184, allocations: 2.626 MB / 0.5504 GB, free: 2.973 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.4185, allocations: 14.58 kB / 0.5504 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001852/0.4187, allocations: 150 kB / 0.5506 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001638/0.4203, allocations: 298.6 kB / 0.5509 GB, free: 2.707 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.4214, allocations: 0.5895 MB / 0.5514 GB, free: 2.262 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008549/0.4223, allocations: 456.3 kB / 0.5519 GB, free: 1.965 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002541/0.4226, allocations: 74.69 kB / 0.5519 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008654/0.4312, allocations: 3.371 MB / 0.5552 GB, free: 128 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.4313, allocations: 0.9688 kB / 0.5552 GB, free: 128 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001809/0.4315, allocations: 28.03 kB / 0.5553 GB, free: 108 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-05/0.4315, allocations: 55.53 kB / 0.5553 GB, free: 96 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01547/0.447, allocations: 5.396 MB / 0.5606 GB, free: 13.51 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.4631, allocations: 10.09 MB / 0.5704 GB, free: 5.609 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007552/0.4706, allocations: 2.745 MB / 0.5731 GB, free: 3.59 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006373/0.4771, allocations: 2.275 MB / 0.5753 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1562/0.6332, allocations: 53.66 MB / 0.6277 GB, free: 5.289 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.868e-05/0.6333, allocations: 39.56 kB / 0.6278 GB, free: 5.242 MB / 494.1 MB Notification: Performance of pre-optimization done (n=88): time 3.036e-06/0.6333, allocations: 0 / 0.6278 GB, free: 5.242 MB / 494.1 MB Notification: Performance of matching and sorting (n=88): time 0.02148/0.6548, allocations: 6.641 MB / 0.6343 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.6549, allocations: 60.41 kB / 0.6343 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.6552, allocations: 250.4 kB / 0.6346 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000161/0.6554, allocations: 37.7 kB / 0.6346 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.6555, allocations: 257.1 kB / 0.6348 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003695/0.6559, allocations: 312.4 kB / 0.6351 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006752/0.6566, allocations: 290.2 kB / 0.6354 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.6567, allocations: 350.8 kB / 0.6357 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006209/0.6629, allocations: 2.148 MB / 0.6378 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006286/0.6692, allocations: 2.256 MB / 0.64 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01128/0.6805, allocations: 3.399 MB / 0.6434 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/0.6806, allocations: 0 / 0.6434 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.01294/0.6935, allocations: 4.138 MB / 0.6474 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.972e-05/0.6936, allocations: 12.19 kB / 0.6474 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.6936, allocations: 4 kB / 0.6474 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.853e-05/0.6937, allocations: 15.92 kB / 0.6474 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003669/0.6974, allocations: 0.817 MB / 0.6482 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.785e-05/0.6974, allocations: 11.09 kB / 0.6482 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003179/0.7006, allocations: 0.6081 MB / 0.6488 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003734/0.701, allocations: 87.81 kB / 0.6489 GB, free: 15.48 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 (fluidState[6].phase,fluidState[5].phase,fluidState[4].phase,fluidState[3].phase,fluidState[2].phase,fluidState[1].phase,heatTransfer.dew.phase,heatTransfer.bubble.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009986/0.702, allocations: 267.2 kB / 0.6492 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004221/0.7024, allocations: 47.72 kB / 0.6492 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01561/0.7181, allocations: 6.523 MB / 0.6556 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01438/0.7325, allocations: 5.937 MB / 0.6614 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.7325, allocations: 0 / 0.6614 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.7325, allocations: 9.422 kB / 0.6614 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02101/0.7536, allocations: 9.108 MB / 0.6703 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.518e-06/0.7536, allocations: 4 kB / 0.6703 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003589/0.7572, allocations: 0.8037 MB / 0.6711 GB, free: 8.734 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.44e-05/0.7572, allocations: 8 kB / 0.6711 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002555/0.7575, allocations: 78.75 kB / 0.6712 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.7575, allocations: 4 kB / 0.6712 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7575, allocations: 6.719 kB / 0.6712 GB, free: 8.645 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01391/0.7715, allocations: 4.843 MB / 0.6759 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003032/0.7718, allocations: 192 kB / 0.6761 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.7721, allocations: 16 kB / 0.6761 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002931/0.7751, allocations: 0.5617 MB / 0.6767 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003664/0.7754, allocations: 147.9 kB / 0.6768 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000254/0.7757, allocations: 87.81 kB / 0.6769 GB, free: 2.762 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002292/0.7759, allocations: 190 kB / 0.6771 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7759, allocations: 0 / 0.6771 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005187/0.7811, allocations: 1.294 MB / 0.6783 GB, free: 1.281 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 18 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02009/0.8012, allocations: 6.451 MB / 0.6846 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01373/0.815, allocations: 4.881 MB / 0.6894 GB, free: 6.035 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.8151, allocations: 0 / 0.6894 GB, free: 6.035 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007218/0.8223, allocations: 2.719 MB / 0.692 GB, free: 3.336 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002155/0.8245, allocations: 344 kB / 0.6924 GB, free: 3.012 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0499/0.8744, allocations: 18.56 MB / 0.7105 GB, free: 320 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008231/0.8752, allocations: 1.117 MB / 0.7116 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002196/0.8775, allocations: 0.7178 MB / 0.7123 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/0.8789, allocations: 486.9 kB / 0.7128 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of SimCode: time 1.042e-06/0.8789, allocations: 0 / 0.7128 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3169/1.196, allocations: 66.74 MB / 0.7779 GB, free: 226.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.78, allocations: 5.094 kB / 0.7779 GB, free: 226.4 MB / 0.6075 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestHeatTransfer2phDB.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestHeatTransfer2phDB.pipe 2>&1)