Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.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.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",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.001496/0.001496, allocations: 108 kB / 15.6 MB, free: 132 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.001747/0.001747, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.541/1.541, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.08126/0.08126, allocations: 9.101 MB / 278.9 MB, free: 12.19 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.002419/0.002419, allocations: 71.83 kB / 338.1 MB, free: 25.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1065, allocations: 48.16 MB / 386.3 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.3658/0.4724, allocations: 128.7 MB / 0.5029 GB, free: 5.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4543/0.9267, allocations: 111.2 MB / 0.6114 GB, free: 296 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008041/0.9276, allocations: 8.156 kB / 0.6115 GB, free: 296 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003738/0.9313, allocations: 1.38 MB / 0.6128 GB, free: 288 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004086/0.9355, allocations: 1.657 MB / 0.6144 GB, free: 268 kB / 446.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.1242/1.06, allocations: 29.32 MB / 0.6431 GB, free: 13.7 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002473/1.062, allocations: 1.426 MB / 0.6444 GB, free: 13.4 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003558/1.063, allocations: 119.1 kB / 0.6446 GB, free: 13.37 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/1.064, allocations: 0.5836 MB / 0.6451 GB, free: 13.24 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008276/1.065, allocations: 380.8 kB / 0.6455 GB, free: 13.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/1.065, allocations: 45 kB / 0.6455 GB, free: 13.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07181/1.137, allocations: 33.54 MB / 0.6783 GB, free: 9.133 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/1.137, allocations: 115.6 kB / 0.6784 GB, free: 9.02 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006165/1.138, allocations: 302.2 kB / 0.6787 GB, free: 8.727 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04683/1.185, allocations: 13.95 MB / 0.6923 GB, free: 11.87 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/1.185, allocations: 0 / 0.6923 GB, free: 11.87 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.545e-06/1.185, allocations: 0 / 0.6923 GB, free: 11.87 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.79e-05/1.185, allocations: 4 kB / 0.6923 GB, free: 11.87 MB / 494.1 MB 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.007088/1.192, allocations: 2.565 MB / 0.6948 GB, free: 9.258 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/1.192, allocations: 8.031 kB / 0.6948 GB, free: 9.25 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/1.192, allocations: 82.52 kB / 0.6949 GB, free: 9.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006423/1.193, allocations: 87.39 kB / 0.695 GB, free: 9.074 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004697/1.193, allocations: 338.5 kB / 0.6953 GB, free: 8.711 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.248e-05/1.193, allocations: 32.66 kB / 0.6953 GB, free: 8.68 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.178e-05/1.193, allocations: 36 kB / 0.6954 GB, free: 8.645 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/1.194, allocations: 0.5924 MB / 0.696 GB, free: 8.035 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/1.195, allocations: 8 kB / 0.696 GB, free: 8.027 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/1.195, allocations: 16 kB / 0.696 GB, free: 8.012 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/1.195, allocations: 11.44 kB / 0.696 GB, free: 8.004 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/1.196, allocations: 0.552 MB / 0.6965 GB, free: 7.457 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002894/1.199, allocations: 2.558 MB / 0.699 GB, free: 4.676 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/1.2, allocations: 0.4988 MB / 0.6995 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005738/1.201, allocations: 342.3 kB / 0.6998 GB, free: 3.836 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4995/1.7, allocations: 139 MB / 0.8355 GB, free: 130.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/1.7, allocations: 37.69 kB / 0.8356 GB, free: 130.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 4.218e-06/1.7, allocations: 2.531 kB / 0.8356 GB, free: 130.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006007/1.706, allocations: 2.335 MB / 0.8379 GB, free: 130.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/1.706, allocations: 59.38 kB / 0.8379 GB, free: 130.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/1.707, allocations: 252.3 kB / 0.8382 GB, free: 130.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/1.707, allocations: 33.14 kB / 0.8382 GB, free: 130.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/1.707, allocations: 186.2 kB / 0.8384 GB, free: 130 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/1.707, allocations: 272.6 kB / 0.8386 GB, free: 129.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/1.707, allocations: 98.11 kB / 0.8387 GB, free: 129.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.895e-05/1.707, allocations: 355.5 kB / 0.8391 GB, free: 129.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004943/1.708, allocations: 271.4 kB / 0.8393 GB, free: 129.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006007/1.708, allocations: 399.2 kB / 0.8397 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/1.71, allocations: 0.7065 MB / 0.8404 GB, free: 129.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.71, allocations: 0 / 0.8404 GB, free: 129.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001452/1.711, allocations: 0.7874 MB / 0.8412 GB, free: 129.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/1.711, allocations: 9.484 kB / 0.8412 GB, free: 129.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/1.711, allocations: 5.375 kB / 0.8412 GB, free: 129.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002379/1.711, allocations: 62.86 kB / 0.8412 GB, free: 129.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003845/1.712, allocations: 100.9 kB / 0.8413 GB, free: 129.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08981/1.802, allocations: 22.36 MB / 0.8632 GB, free: 120.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004283/1.802, allocations: 31.83 kB / 0.8632 GB, free: 120.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/1.802, allocations: 21.69 kB / 0.8632 GB, free: 120.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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): 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.000236/1.802, allocations: 193.4 kB / 0.8634 GB, free: 120 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.291e-05/1.802, allocations: 40.47 kB / 0.8634 GB, free: 120 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001616/1.804, allocations: 1.545 MB / 0.8649 GB, free: 119.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/1.804, allocations: 7.125 kB / 0.865 GB, free: 119.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/1.804, allocations: 3.844 kB / 0.865 GB, free: 119.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001186/1.805, allocations: 1.147 MB / 0.8661 GB, free: 119.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/1.807, allocations: 1.594 MB / 0.8676 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.807, allocations: 4.031 kB / 0.8676 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003346/1.808, allocations: 82.92 kB / 0.8677 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000209/1.808, allocations: 44.27 kB / 0.8678 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/1.808, allocations: 10.59 kB / 0.8678 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008505/1.809, allocations: 1.422 MB / 0.8692 GB, free: 117.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.809, allocations: 0 / 0.8692 GB, free: 117.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/1.81, allocations: 1.176 MB / 0.8703 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/1.811, allocations: 114.2 kB / 0.8704 GB, free: 117.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/1.811, allocations: 17.16 kB / 0.8704 GB, free: 117.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002913/1.811, allocations: 21.95 kB / 0.8705 GB, free: 117.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/1.811, allocations: 50.75 kB / 0.8705 GB, free: 117.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/1.811, allocations: 11.75 kB / 0.8705 GB, free: 117.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002237/1.811, allocations: 245.3 kB / 0.8707 GB, free: 117.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.4e-07/1.811, allocations: 0 / 0.8707 GB, free: 117.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007682/1.819, allocations: 3.18 MB / 0.8739 GB, free: 117 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01534/1.834, allocations: 5.649 MB / 0.8794 GB, free: 114.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002234/1.837, allocations: 0.9709 MB / 0.8803 GB, free: 114 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/1.837, allocations: 4.188 kB / 0.8803 GB, free: 114 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008514/1.837, allocations: 492.6 kB / 0.8808 GB, free: 113.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/1.839, allocations: 405.6 kB / 0.8812 GB, free: 113.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/1.851, allocations: 6.156 MB / 0.8872 GB, free: 108.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/1.852, allocations: 0.859 MB / 0.888 GB, free: 107.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004576/1.852, allocations: 161.9 kB / 0.8882 GB, free: 107.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/1.852, allocations: 167.2 kB / 0.8883 GB, free: 107.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.012e-06/1.852, allocations: 0 / 0.8883 GB, free: 107.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3696/2.222, allocations: 124.4 MB / 1.01 GB, free: 228.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.45/17.67, allocations: 10.44 kB / 1.01 GB, free: 228.2 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)