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.001529/0.001529, allocations: 112.8 kB / 17.06 MB, free: 5.773 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.001741/0.001741, allocations: 200 kB / 18.01 MB, free: 4.914 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.349/1.349, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2717/0.2717, allocations: 48.85 MB / 320.1 MB, free: 10.99 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.001378/0.001378, allocations: 71.91 kB / 450.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, 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.02036/0.1245, allocations: 16.09 MB / 0.513 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2617/0.3862, allocations: 13.55 MB / 0.5262 GB, free: 6.48 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002637/0.3865, allocations: 4.844 kB / 0.5262 GB, free: 6.48 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004522/0.3871, allocations: 131.1 kB / 0.5264 GB, free: 6.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003602/0.3874, allocations: 206.6 kB / 0.5266 GB, free: 6.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0153/0.4027, allocations: 5.326 MB / 0.5318 GB, free: 6.441 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002271/0.405, allocations: 1.951 MB / 0.5337 GB, free: 6.438 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002619/0.4053, allocations: 116.4 kB / 0.5338 GB, free: 6.422 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.4064, allocations: 0.6181 MB / 0.5344 GB, free: 6.422 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00133/0.4077, allocations: 0.7871 MB / 0.5351 GB, free: 6.422 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002494/0.408, allocations: 136.4 kB / 0.5353 GB, free: 6.422 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01586/0.4238, allocations: 6.787 MB / 0.5419 GB, free: 6.367 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006153/0.4245, allocations: 476.4 kB / 0.5424 GB, free: 6.367 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009179/0.4254, allocations: 0.5711 MB / 0.5429 GB, free: 6.273 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4368, allocations: 5.041 MB / 0.5478 GB, free: 4.512 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4369, allocations: 4 kB / 0.5478 GB, free: 4.508 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4369, allocations: 1.375 kB / 0.5478 GB, free: 4.508 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.4369, allocations: 0 / 0.5478 GB, free: 4.508 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.01054/0.4475, allocations: 2.624 MB / 0.5504 GB, free: 2.98 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.4475, allocations: 13.55 kB / 0.5504 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002249/0.4478, allocations: 153.7 kB / 0.5506 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001791/0.4496, allocations: 297.6 kB / 0.5509 GB, free: 2.715 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.4507, allocations: 0.5885 MB / 0.5514 GB, free: 2.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008818/0.4515, allocations: 457.2 kB / 0.5519 GB, free: 1.973 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002805/0.4518, allocations: 72.33 kB / 0.5519 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008599/0.4604, allocations: 3.372 MB / 0.5552 GB, free: 140 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.4605, allocations: 0 / 0.5552 GB, free: 140 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001968/0.4607, allocations: 26.97 kB / 0.5553 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.52e-05/0.4608, allocations: 59.7 kB / 0.5553 GB, free: 108 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01568/0.4764, allocations: 5.4 MB / 0.5606 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01708/0.4935, allocations: 10.09 MB / 0.5704 GB, free: 5.617 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007861/0.5015, allocations: 2.731 MB / 0.5731 GB, free: 3.598 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00658/0.5081, allocations: 2.284 MB / 0.5753 GB, free: 1.312 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1134/0.6214, allocations: 53.65 MB / 0.6277 GB, free: 5.301 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.6215, allocations: 46.75 kB / 0.6278 GB, free: 5.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=88): time 3.417e-06/0.6215, allocations: 4 kB / 0.6278 GB, free: 5.246 MB / 494.1 MB Notification: Performance of matching and sorting (n=88): time 0.02221/0.6438, allocations: 6.63 MB / 0.6343 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.6438, allocations: 64.41 kB / 0.6343 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.6443, allocations: 254.6 kB / 0.6346 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003246/0.6446, allocations: 37.7 kB / 0.6346 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.6449, allocations: 253.1 kB / 0.6348 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006395/0.6455, allocations: 318.6 kB / 0.6351 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008461/0.6464, allocations: 286.2 kB / 0.6354 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001542/0.6466, allocations: 350.8 kB / 0.6357 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006152/0.6527, allocations: 2.148 MB / 0.6378 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006306/0.659, allocations: 2.258 MB / 0.64 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01136/0.6704, allocations: 3.399 MB / 0.6434 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.6704, allocations: 0 / 0.6434 GB, free: 5.168 MB / 0.4981 GB Notification: Performance of matching and sorting (n=97) (initialization): time 0.01291/0.6834, allocations: 4.138 MB / 0.6474 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/0.6834, allocations: 7.906 kB / 0.6474 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.6834, allocations: 6.625 kB / 0.6474 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.287e-05/0.6835, allocations: 11.92 kB / 0.6474 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00369/0.6872, allocations: 0.8198 MB / 0.6482 GB, free: 200 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.73e-05/0.6872, allocations: 11.19 kB / 0.6482 GB, free: 192 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003081/0.6903, allocations: 0.6043 MB / 0.6488 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00024/0.6906, allocations: 91.81 kB / 0.6489 GB, free: 15.49 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.0007808/0.6914, allocations: 271.8 kB / 0.6492 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004188/0.6918, allocations: 47.72 kB / 0.6492 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01542/0.7072, allocations: 6.521 MB / 0.6556 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0143/0.7216, allocations: 5.94 MB / 0.6614 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.7216, allocations: 0 / 0.6614 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.7216, allocations: 7.969 kB / 0.6614 GB, free: 2.684 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02056/0.7422, allocations: 9.101 MB / 0.6703 GB, free: 9.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.7423, allocations: 4 kB / 0.6703 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003632/0.7459, allocations: 0.8064 MB / 0.6711 GB, free: 8.738 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.09e-05/0.7459, allocations: 4 kB / 0.6711 GB, free: 8.734 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002257/0.7462, allocations: 75.81 kB / 0.6712 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.7462, allocations: 4 kB / 0.6712 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.7462, allocations: 4 kB / 0.6712 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/0.7598, allocations: 4.85 MB / 0.6759 GB, free: 3.781 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002941/0.7601, allocations: 196 kB / 0.6761 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003134/0.7604, allocations: 16 kB / 0.6761 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002992/0.7634, allocations: 0.5655 MB / 0.6767 GB, free: 2.992 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003324/0.7638, allocations: 141.2 kB / 0.6768 GB, free: 2.852 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002413/0.764, allocations: 83.81 kB / 0.6769 GB, free: 2.77 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002455/0.7643, allocations: 194 kB / 0.6771 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.71e-07/0.7643, allocations: 0 / 0.6771 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006291/0.7706, allocations: 1.294 MB / 0.6783 GB, free: 1.285 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.02337/0.794, allocations: 6.448 MB / 0.6846 GB, free: 10.92 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01462/0.8087, allocations: 4.883 MB / 0.6894 GB, free: 6.043 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.8087, allocations: 0 / 0.6894 GB, free: 6.043 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007643/0.8164, allocations: 2.718 MB / 0.692 GB, free: 3.344 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.8189, allocations: 346.1 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.05298/0.8719, allocations: 18.55 MB / 0.7105 GB, free: 328 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/0.8728, allocations: 1.129 MB / 0.7116 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00251/0.8754, allocations: 0.7165 MB / 0.7123 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001597/0.877, allocations: 486.9 kB / 0.7128 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of SimCode: time 6.71e-07/0.877, allocations: 4 kB / 0.7128 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3509/1.228, allocations: 66.73 MB / 0.7779 GB, free: 226.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.94, allocations: 9.453 kB / 0.7779 GB, free: 226.5 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)