Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",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.008462/0.008462, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001742/0.001742, allocations: 194.2 kB / 16.67 MB, free: 5.969 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.526/1.526, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04818/0.04818, allocations: 9.1 MB / 279 MB, free: 12.08 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.001499/0.001499, allocations: 64.47 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3361, allocations: 48.16 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.1435/0.4797, allocations: 128.6 MB / 0.5506 GB, free: 15.76 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4817/0.9615, allocations: 111 MB / 0.659 GB, free: 264 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005967/0.9621, allocations: 5.5 kB / 0.659 GB, free: 264 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003074/0.9652, allocations: 1.554 MB / 0.6605 GB, free: 252 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00367/0.9689, allocations: 1.834 MB / 0.6623 GB, free: 204 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.08265/1.052, allocations: 31.04 MB / 0.6926 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002414/1.054, allocations: 1.401 MB / 0.694 GB, free: 5.512 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/1.054, allocations: 136.8 kB / 0.6941 GB, free: 5.406 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01841/1.073, allocations: 10.68 MB / 0.7046 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005119/1.073, allocations: 373.3 kB / 0.7049 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.813e-05/1.073, allocations: 44 kB / 0.705 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06786/1.141, allocations: 34.53 MB / 0.7387 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003207/1.142, allocations: 117.9 kB / 0.7388 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0007112/1.142, allocations: 314.1 kB / 0.7391 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04901/1.191, allocations: 13.96 MB / 0.7527 GB, free: 14.29 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/1.191, allocations: 3.938 kB / 0.7527 GB, free: 14.28 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.216e-06/1.191, allocations: 0 / 0.7527 GB, free: 14.28 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.485e-05/1.191, allocations: 0 / 0.7527 GB, free: 14.28 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.00848/1.2, allocations: 2.673 MB / 0.7553 GB, free: 11.56 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/1.2, allocations: 12.03 kB / 0.7553 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.339e-05/1.2, allocations: 86.52 kB / 0.7554 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006446/1.201, allocations: 87.62 kB / 0.7555 GB, free: 11.37 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004825/1.201, allocations: 349.5 kB / 0.7558 GB, free: 10.99 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/1.201, allocations: 36.64 kB / 0.7559 GB, free: 10.96 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/1.201, allocations: 31.94 kB / 0.7559 GB, free: 10.93 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/1.203, allocations: 0.6049 MB / 0.7565 GB, free: 10.3 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/1.203, allocations: 0 / 0.7565 GB, free: 10.3 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.379e-05/1.203, allocations: 16 kB / 0.7565 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/1.203, allocations: 12 kB / 0.7565 GB, free: 10.28 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/1.204, allocations: 0.5493 MB / 0.7571 GB, free: 9.73 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/1.207, allocations: 2.461 MB / 0.7595 GB, free: 7.07 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/1.208, allocations: 0.4945 MB / 0.7599 GB, free: 6.57 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005314/1.208, allocations: 334 kB / 0.7603 GB, free: 6.242 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4754/1.684, allocations: 139 MB / 0.896 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/1.684, allocations: 40.8 kB / 0.896 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 4.098e-06/1.684, allocations: 0 / 0.896 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005593/1.69, allocations: 2.339 MB / 0.8983 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/1.69, allocations: 59.16 kB / 0.8984 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/1.69, allocations: 256.7 kB / 0.8986 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/1.69, allocations: 37.7 kB / 0.8987 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.293e-05/1.69, allocations: 198.3 kB / 0.8988 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/1.69, allocations: 274.9 kB / 0.8991 GB, free: 214.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/1.69, allocations: 98.11 kB / 0.8992 GB, free: 214 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.969e-05/1.69, allocations: 350.8 kB / 0.8995 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004236/1.691, allocations: 279.8 kB / 0.8998 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/1.691, allocations: 389.1 kB / 0.9002 GB, free: 213 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009016/1.692, allocations: 0.6927 MB / 0.9008 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/1.692, allocations: 3.188 kB / 0.9009 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001242/1.693, allocations: 0.8025 MB / 0.9016 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/1.693, allocations: 5.094 kB / 0.9016 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/1.693, allocations: 4 kB / 0.9016 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002358/1.694, allocations: 68.48 kB / 0.9017 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000665/1.694, allocations: 139.8 kB / 0.9018 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06605/1.76, allocations: 18.42 MB / 0.9198 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004295/1.761, allocations: 24.02 kB / 0.9199 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/1.761, allocations: 23.98 kB / 0.9199 GB, free: 192.2 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.0002477/1.761, allocations: 194 kB / 0.9201 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-05/1.761, allocations: 47.66 kB / 0.9201 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/1.763, allocations: 1.708 MB / 0.9218 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/1.763, allocations: 12 kB / 0.9218 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/1.763, allocations: 3.984 kB / 0.9218 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001259/1.764, allocations: 1.296 MB / 0.9231 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001925/1.766, allocations: 1.758 MB / 0.9248 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/1.766, allocations: 0 / 0.9248 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/1.766, allocations: 71.89 kB / 0.9248 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000281/1.767, allocations: 166.3 kB / 0.925 GB, free: 186.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/1.767, allocations: 8.5 kB / 0.925 GB, free: 186.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/1.768, allocations: 2.574 MB / 0.9275 GB, free: 184 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.768, allocations: 4.031 kB / 0.9275 GB, free: 184 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/1.77, allocations: 1.378 MB / 0.9289 GB, free: 182.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/1.77, allocations: 128.2 kB / 0.929 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.978e-05/1.77, allocations: 8 kB / 0.929 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003043/1.77, allocations: 23.97 kB / 0.929 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/1.77, allocations: 48 kB / 0.9291 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/1.77, allocations: 15.98 kB / 0.9291 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001905/1.77, allocations: 219.1 kB / 0.9293 GB, free: 182.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.77, allocations: 4 kB / 0.9293 GB, free: 182.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008416/1.779, allocations: 3.567 MB / 0.9328 GB, free: 179 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.01551/1.794, allocations: 6.189 MB / 0.9388 GB, free: 173.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002144/1.797, allocations: 1.06 MB / 0.9399 GB, free: 172.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/1.797, allocations: 0 / 0.9399 GB, free: 172.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007243/1.797, allocations: 0.5113 MB / 0.9404 GB, free: 171.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/1.799, allocations: 400.9 kB / 0.9407 GB, free: 171.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/1.811, allocations: 6.274 MB / 0.9469 GB, free: 164.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/1.811, allocations: 0.8526 MB / 0.9477 GB, free: 164 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004518/1.812, allocations: 151.9 kB / 0.9479 GB, free: 163.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/1.812, allocations: 167.4 kB / 0.948 GB, free: 163.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.363e-06/1.812, allocations: 0 / 0.948 GB, free: 163.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1796/1.991, allocations: 133.1 MB / 1.078 GB, free: 30.36 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.38/18.37, allocations: 11.7 kB / 1.078 GB, free: 30.35 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel_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_IsopentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe 2>&1)