Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia 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(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.001346/0.001346, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001408/0.001409, allocations: 191.5 kB / 16.67 MB, free: 6.582 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.444/1.444, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0519/0.0519, allocations: 9.107 MB / 279 MB, free: 12.1 MB / 238.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.002168/0.002168, allocations: 71.89 kB / 387 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2761, allocations: 48.15 MB / 435.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1483/0.4245, allocations: 128.9 MB / 0.5508 GB, free: 15.35 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3723/0.7968, allocations: 111.1 MB / 0.6593 GB, free: 332 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000591/0.7974, allocations: 8.906 kB / 0.6593 GB, free: 328 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002785/0.8002, allocations: 1.371 MB / 0.6607 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003123/0.8034, allocations: 1.654 MB / 0.6623 GB, free: 268 kB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.0867/0.8901, allocations: 30.12 MB / 0.6917 GB, free: 6.344 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0023/0.8924, allocations: 1.41 MB / 0.6931 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002866/0.8927, allocations: 124.7 kB / 0.6932 GB, free: 5.234 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02309/0.9158, allocations: 11.68 MB / 0.7046 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006274/0.9165, allocations: 385.6 kB / 0.705 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.342e-05/0.9166, allocations: 44 kB / 0.705 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07467/0.9913, allocations: 36.98 MB / 0.7411 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.00026/0.9916, allocations: 114.3 kB / 0.7412 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006139/0.9922, allocations: 310 kB / 0.7415 GB, free: 8.938 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04917/1.041, allocations: 14.56 MB / 0.7558 GB, free: 11.46 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/1.041, allocations: 0 / 0.7558 GB, free: 11.46 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.843e-06/1.041, allocations: 0 / 0.7558 GB, free: 11.46 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.708e-06/1.041, allocations: 0 / 0.7558 GB, free: 11.46 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.006655/1.048, allocations: 2.668 MB / 0.7584 GB, free: 8.742 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/1.048, allocations: 12.03 kB / 0.7584 GB, free: 8.73 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/1.048, allocations: 78.52 kB / 0.7584 GB, free: 8.645 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006233/1.049, allocations: 95.62 kB / 0.7585 GB, free: 8.551 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005685/1.049, allocations: 344.1 kB / 0.7589 GB, free: 8.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/1.05, allocations: 32.66 kB / 0.7589 GB, free: 8.148 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/1.05, allocations: 39.88 kB / 0.7589 GB, free: 8.109 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/1.051, allocations: 0.5972 MB / 0.7595 GB, free: 7.492 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/1.051, allocations: 3.938 kB / 0.7595 GB, free: 7.488 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.387e-05/1.051, allocations: 20 kB / 0.7595 GB, free: 7.469 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/1.051, allocations: 10.5 kB / 0.7595 GB, free: 7.461 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/1.053, allocations: 0.5454 MB / 0.7601 GB, free: 6.918 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003291/1.056, allocations: 2.466 MB / 0.7625 GB, free: 4.25 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/1.057, allocations: 495.2 kB / 0.763 GB, free: 3.758 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000608/1.058, allocations: 338 kB / 0.7633 GB, free: 3.426 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4468/1.505, allocations: 139 MB / 0.899 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/1.505, allocations: 40.78 kB / 0.8991 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.445e-06/1.505, allocations: 0 / 0.8991 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005422/1.51, allocations: 2.341 MB / 0.9013 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/1.51, allocations: 59.16 kB / 0.9014 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/1.51, allocations: 260.7 kB / 0.9016 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/1.51, allocations: 35.7 kB / 0.9017 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/1.511, allocations: 197.8 kB / 0.9019 GB, free: 211 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/1.511, allocations: 273 kB / 0.9021 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/1.511, allocations: 98.11 kB / 0.9022 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.628e-05/1.511, allocations: 360.7 kB / 0.9026 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/1.511, allocations: 273.3 kB / 0.9028 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005144/1.512, allocations: 392.7 kB / 0.9032 GB, free: 209.7 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009191/1.513, allocations: 0.6931 MB / 0.9039 GB, free: 208.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/1.513, allocations: 0 / 0.9039 GB, free: 208.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001237/1.514, allocations: 0.8014 MB / 0.9047 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/1.514, allocations: 4 kB / 0.9047 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.557e-06/1.514, allocations: 7.938 kB / 0.9047 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002442/1.514, allocations: 65.09 kB / 0.9047 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006795/1.515, allocations: 139.8 kB / 0.9049 GB, free: 207.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06847/1.583, allocations: 22.97 MB / 0.9273 GB, free: 184.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/1.584, allocations: 27.97 kB / 0.9273 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.294e-05/1.584, allocations: 16 kB / 0.9273 GB, free: 184.4 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002803/1.584, allocations: 198.5 kB / 0.9275 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/1.584, allocations: 51.59 kB / 0.9276 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/1.586, allocations: 1.708 MB / 0.9292 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/1.586, allocations: 11.98 kB / 0.9293 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/1.586, allocations: 4 kB / 0.9293 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001265/1.588, allocations: 1.292 MB / 0.9305 GB, free: 181 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/1.59, allocations: 1.762 MB / 0.9322 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/1.59, allocations: 3.688 kB / 0.9322 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/1.59, allocations: 79.88 kB / 0.9323 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002861/1.59, allocations: 162.3 kB / 0.9325 GB, free: 178.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/1.59, allocations: 12 kB / 0.9325 GB, free: 178.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/1.591, allocations: 2.569 MB / 0.935 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.591, allocations: 0 / 0.935 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/1.593, allocations: 1.378 MB / 0.9363 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/1.593, allocations: 119.3 kB / 0.9365 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.032e-05/1.593, allocations: 15.98 kB / 0.9365 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002939/1.594, allocations: 19.98 kB / 0.9365 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.377e-05/1.594, allocations: 51.98 kB / 0.9365 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/1.594, allocations: 12 kB / 0.9366 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001839/1.594, allocations: 219.1 kB / 0.9368 GB, free: 174.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.594, allocations: 0 / 0.9368 GB, free: 174.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009076/1.603, allocations: 3.576 MB / 0.9403 GB, free: 171.2 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01985/1.623, allocations: 6.501 MB / 0.9466 GB, free: 165.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002268/1.625, allocations: 1.061 MB / 0.9476 GB, free: 164.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.625, allocations: 0 / 0.9476 GB, free: 164.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006947/1.626, allocations: 0.5033 MB / 0.9481 GB, free: 163.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/1.628, allocations: 400 kB / 0.9485 GB, free: 163.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/1.641, allocations: 6.277 MB / 0.9546 GB, free: 156.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/1.641, allocations: 0.8526 MB / 0.9555 GB, free: 155.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004166/1.641, allocations: 135.2 kB / 0.9556 GB, free: 155.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/1.642, allocations: 175.4 kB / 0.9558 GB, free: 155.5 MB / 0.6075 GB Notification: Performance of SimCode: time 8.21e-07/1.642, allocations: 4 kB / 0.9558 GB, free: 155.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1829/1.825, allocations: 133.3 MB / 1.086 GB, free: 21.98 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.92/21.74, allocations: 8 kB / 1.086 GB, free: 21.97 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)