Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",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.005179/0.005179, allocations: 101.2 kB / 15.73 MB, free: 6.062 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.00131/0.00131, allocations: 194.3 kB / 16.68 MB, free: 5.973 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.457/1.457, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.103 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.003528/0.003528, allocations: 67.91 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2553, allocations: 48.15 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4351/0.6904, allocations: 197.7 MB / 0.6181 GB, free: 1.016 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1175/0.808, allocations: 143.7 MB / 0.7584 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000666/0.8087, allocations: 4 kB / 0.7584 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.004132/0.8128, allocations: 1.839 MB / 0.7602 GB, free: 7.699 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005689/0.8185, allocations: 2.535 MB / 0.7627 GB, free: 5.152 MB / 0.5294 GB [/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.1003/0.9189, allocations: 39.11 MB / 0.8008 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002938/0.9219, allocations: 1.971 MB / 0.8028 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003621/0.9222, allocations: 198.6 kB / 0.803 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001505/0.9237, allocations: 0.8057 MB / 0.8037 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000768/0.9245, allocations: 0.5252 MB / 0.8043 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.357e-05/0.9246, allocations: 60 kB / 0.8043 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3541/1.279, allocations: 46.6 MB / 0.8498 GB, free: 43.86 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002727/1.279, allocations: 170.5 kB / 0.85 GB, free: 43.86 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006186/1.28, allocations: 431.6 kB / 0.8504 GB, free: 43.86 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05133/1.331, allocations: 18.8 MB / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/1.331, allocations: 0 / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.475e-06/1.331, allocations: 1.562 kB / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.973e-05/1.331, allocations: 2.766 kB / 0.8688 GB, free: 43.3 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.009296/1.34, allocations: 3.499 MB / 0.8722 GB, free: 41.38 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/1.34, allocations: 11.75 kB / 0.8722 GB, free: 41.38 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/1.341, allocations: 102 kB / 0.8723 GB, free: 41.34 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008155/1.341, allocations: 124.8 kB / 0.8724 GB, free: 41.3 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004833/1.342, allocations: 410.4 kB / 0.8728 GB, free: 41.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/1.342, allocations: 43 kB / 0.8728 GB, free: 41.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/1.342, allocations: 51.75 kB / 0.8729 GB, free: 41.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/1.344, allocations: 0.821 MB / 0.8737 GB, free: 40.95 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.501e-05/1.344, allocations: 7.141 kB / 0.8737 GB, free: 40.95 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.182e-05/1.344, allocations: 26.53 kB / 0.8737 GB, free: 40.94 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/1.344, allocations: 21.17 kB / 0.8737 GB, free: 40.94 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/1.345, allocations: 0.7512 MB / 0.8745 GB, free: 40.93 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002686/1.348, allocations: 3.419 MB / 0.8778 GB, free: 38.68 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/1.349, allocations: 0.6809 MB / 0.8785 GB, free: 38.65 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006612/1.35, allocations: 489.3 kB / 0.8789 GB, free: 38.63 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3427/1.693, allocations: 185.3 MB / 1.06 GB, free: 8.59 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.961e-05/1.693, allocations: 42.95 kB / 1.06 GB, free: 8.551 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.537e-06/1.693, allocations: 4.938 kB / 1.06 GB, free: 8.547 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009872/1.703, allocations: 3.421 MB / 1.063 GB, free: 5.957 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/1.703, allocations: 67.95 kB / 1.063 GB, free: 5.875 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003771/1.703, allocations: 308 kB / 1.064 GB, free: 5.621 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.755e-05/1.703, allocations: 37.2 kB / 1.064 GB, free: 5.586 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/1.704, allocations: 232.4 kB / 1.064 GB, free: 5.395 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003261/1.704, allocations: 398.6 kB / 1.064 GB, free: 5.055 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/1.704, allocations: 136.5 kB / 1.064 GB, free: 4.961 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002082/1.704, allocations: 372.3 kB / 1.065 GB, free: 4.617 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007648/1.705, allocations: 397.2 kB / 1.065 GB, free: 4.387 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008769/1.706, allocations: 0.5341 MB / 1.066 GB, free: 3.977 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001675/1.708, allocations: 0.9755 MB / 1.067 GB, free: 3.328 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/1.708, allocations: 0.7656 kB / 1.067 GB, free: 3.328 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002197/1.71, allocations: 1.134 MB / 1.068 GB, free: 2.562 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/1.71, allocations: 8 kB / 1.068 GB, free: 2.555 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/1.71, allocations: 5.312 kB / 1.068 GB, free: 2.551 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000411/1.71, allocations: 108.5 kB / 1.068 GB, free: 2.461 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001069/1.711, allocations: 205.8 kB / 1.068 GB, free: 2.281 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4344/2.146, allocations: 35.27 MB / 1.102 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006517/2.147, allocations: 45.45 kB / 1.103 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/2.147, allocations: 23.66 kB / 1.103 GB, free: 224.3 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003428/2.147, allocations: 223.7 kB / 1.103 GB, free: 224.2 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/2.147, allocations: 62.08 kB / 1.103 GB, free: 224.2 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002905/2.15, allocations: 2.382 MB / 1.105 GB, free: 224 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-05/2.15, allocations: 24.78 kB / 1.105 GB, free: 224 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/2.15, allocations: 0.875 kB / 1.105 GB, free: 224 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002083/2.152, allocations: 1.648 MB / 1.107 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/2.155, allocations: 2.463 MB / 1.109 GB, free: 223.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/2.155, allocations: 4.875 kB / 1.109 GB, free: 223.2 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005303/2.156, allocations: 119.5 kB / 1.109 GB, free: 223.2 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004805/2.156, allocations: 207.4 kB / 1.11 GB, free: 223.1 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/2.156, allocations: 15 kB / 1.11 GB, free: 223.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001915/2.158, allocations: 3.987 MB / 1.113 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/2.158, allocations: 2.422 kB / 1.113 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002914/2.161, allocations: 1.973 MB / 1.115 GB, free: 219.2 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/2.161, allocations: 138.8 kB / 1.115 GB, free: 219 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.232e-05/2.162, allocations: 17.12 kB / 1.115 GB, free: 219 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/2.162, allocations: 33.31 kB / 1.116 GB, free: 219 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/2.162, allocations: 66.89 kB / 1.116 GB, free: 219 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/2.162, allocations: 24.98 kB / 1.116 GB, free: 219 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002579/2.162, allocations: 252.9 kB / 1.116 GB, free: 218.9 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.21e-07/2.162, allocations: 0 / 1.116 GB, free: 218.9 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0148/2.177, allocations: 5.545 MB / 1.121 GB, free: 218.8 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.03262/2.21, allocations: 9.143 MB / 1.13 GB, free: 216.9 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003208/2.213, allocations: 1.581 MB / 1.132 GB, free: 216.5 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/2.213, allocations: 0 / 1.132 GB, free: 216.5 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001155/2.214, allocations: 0.8292 MB / 1.133 GB, free: 216.3 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/2.217, allocations: 0.4964 MB / 1.133 GB, free: 216.2 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01917/2.236, allocations: 8.649 MB / 1.141 GB, free: 213.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/2.236, allocations: 0.9329 MB / 1.142 GB, free: 212.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006185/2.237, allocations: 183.5 kB / 1.143 GB, free: 212.3 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003314/2.237, allocations: 255.2 kB / 1.143 GB, free: 212.3 MB / 0.7637 GB Notification: Performance of SimCode: time 9.22e-07/2.237, allocations: 0 / 1.143 GB, free: 212.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4931/2.731, allocations: 210.7 MB / 1.349 GB, free: 409.2 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.33/23.07, allocations: 6.344 kB / 1.349 GB, free: 409.2 MB / 0.7637 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2_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_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)