Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.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.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",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.001547/0.001547, 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.00188/0.00188, allocations: 194.2 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.442/1.442, allocations: 205.1 MB / 222.4 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04679/0.04679, allocations: 9.103 MB / 278.9 MB, free: 12.18 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.002822/0.002822, allocations: 71.83 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1176, allocations: 48.16 MB / 386.3 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.2843/0.4019, allocations: 129.6 MB / 0.5038 GB, free: 4.199 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3322/0.7342, allocations: 111.1 MB / 0.6123 GB, free: 328 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006306/0.7349, allocations: 5.312 kB / 0.6123 GB, free: 328 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003192/0.7381, allocations: 1.365 MB / 0.6137 GB, free: 320 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003709/0.7418, allocations: 1.654 MB / 0.6153 GB, free: 296 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.07598/0.8178, allocations: 29.34 MB / 0.6439 GB, free: 13.63 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002028/0.8199, allocations: 1.407 MB / 0.6453 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002766/0.8202, allocations: 122.6 kB / 0.6454 GB, free: 13.28 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01544/0.8356, allocations: 8.956 MB / 0.6542 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008149/0.8365, allocations: 372.3 kB / 0.6545 GB, free: 9.859 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.8366, allocations: 47.94 kB / 0.6546 GB, free: 9.812 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06203/0.8987, allocations: 33.48 MB / 0.6873 GB, free: 0.8594 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.899, allocations: 130.2 kB / 0.6874 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000598/0.8996, allocations: 306.8 kB / 0.6877 GB, free: 448 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04943/0.949, allocations: 14.07 MB / 0.7014 GB, free: 3.465 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.9491, allocations: 0 / 0.7014 GB, free: 3.465 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.9491, allocations: 0 / 0.7014 GB, free: 3.465 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.9491, allocations: 0 / 0.7014 GB, free: 3.465 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.007475/0.9566, allocations: 2.565 MB / 0.7039 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.9566, allocations: 8.031 kB / 0.7039 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.53e-05/0.9567, allocations: 82.52 kB / 0.704 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006748/0.9574, allocations: 86.39 kB / 0.7041 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/0.9579, allocations: 346 kB / 0.7044 GB, free: 308 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.939e-05/0.9579, allocations: 32.66 kB / 0.7044 GB, free: 276 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.927e-05/0.958, allocations: 39.98 kB / 0.7045 GB, free: 236 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/0.9593, allocations: 0.5963 MB / 0.7051 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.9593, allocations: 7.906 kB / 0.7051 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.78e-05/0.9593, allocations: 12 kB / 0.7051 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.9594, allocations: 15.44 kB / 0.7051 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.9606, allocations: 0.552 MB / 0.7056 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002386/0.963, allocations: 2.553 MB / 0.7081 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.9642, allocations: 0.4966 MB / 0.7086 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005313/0.9647, allocations: 342.3 kB / 0.7089 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4748/1.44, allocations: 139 MB / 0.8447 GB, free: 123.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/1.44, allocations: 38.47 kB / 0.8447 GB, free: 123.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.266e-06/1.44, allocations: 2.312 kB / 0.8447 GB, free: 123.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005729/1.445, allocations: 2.328 MB / 0.847 GB, free: 123.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.226e-05/1.445, allocations: 57.16 kB / 0.847 GB, free: 123.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/1.446, allocations: 252.8 kB / 0.8473 GB, free: 123.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/1.446, allocations: 33.45 kB / 0.8473 GB, free: 123 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.607e-05/1.446, allocations: 185.4 kB / 0.8475 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001337/1.446, allocations: 264.1 kB / 0.8477 GB, free: 122.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/1.446, allocations: 99.86 kB / 0.8478 GB, free: 122.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.327e-05/1.446, allocations: 361.4 kB / 0.8482 GB, free: 122.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004708/1.447, allocations: 259.9 kB / 0.8484 GB, free: 122.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004999/1.447, allocations: 406.4 kB / 0.8488 GB, free: 122.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009696/1.448, allocations: 0.699 MB / 0.8495 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/1.448, allocations: 5.562 kB / 0.8495 GB, free: 122.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001386/1.45, allocations: 0.7818 MB / 0.8503 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/1.45, allocations: 8.781 kB / 0.8503 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/1.45, allocations: 3.656 kB / 0.8503 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/1.45, allocations: 63.8 kB / 0.8503 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003923/1.45, allocations: 100.6 kB / 0.8504 GB, free: 122.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09283/1.543, allocations: 23.05 MB / 0.8729 GB, free: 113 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004246/1.544, allocations: 28.17 kB / 0.873 GB, free: 113 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.861e-05/1.544, allocations: 21.75 kB / 0.873 GB, free: 113 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.0002607/1.544, allocations: 195.8 kB / 0.8732 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/1.544, allocations: 44.22 kB / 0.8732 GB, free: 112.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/1.546, allocations: 1.544 MB / 0.8747 GB, free: 112.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.181e-05/1.546, allocations: 14.94 kB / 0.8747 GB, free: 112.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/1.546, allocations: 3.719 kB / 0.8747 GB, free: 112.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001234/1.547, allocations: 1.132 MB / 0.8758 GB, free: 112.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/1.549, allocations: 1.6 MB / 0.8774 GB, free: 111.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/1.549, allocations: 0 / 0.8774 GB, free: 111.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003237/1.549, allocations: 83.06 kB / 0.8775 GB, free: 111.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001976/1.55, allocations: 45.27 kB / 0.8775 GB, free: 111.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/1.55, allocations: 12.7 kB / 0.8775 GB, free: 111.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007511/1.55, allocations: 1.426 MB / 0.8789 GB, free: 110.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.113e-06/1.55, allocations: 0 / 0.8789 GB, free: 110.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/1.552, allocations: 1.175 MB / 0.8801 GB, free: 110.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/1.552, allocations: 121.2 kB / 0.8802 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.588e-05/1.552, allocations: 9.281 kB / 0.8802 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003158/1.553, allocations: 26.42 kB / 0.8802 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.511e-05/1.553, allocations: 40 kB / 0.8803 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/1.553, allocations: 22.19 kB / 0.8803 GB, free: 110 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001923/1.553, allocations: 241 kB / 0.8805 GB, free: 110 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.31e-07/1.553, allocations: 3.906 kB / 0.8805 GB, free: 110 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007762/1.561, allocations: 3.179 MB / 0.8836 GB, free: 109.9 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.01575/1.577, allocations: 5.739 MB / 0.8892 GB, free: 106.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002041/1.579, allocations: 0.9668 MB / 0.8902 GB, free: 106 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/1.579, allocations: 0 / 0.8902 GB, free: 106 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007736/1.579, allocations: 497.1 kB / 0.8906 GB, free: 105.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001811/1.581, allocations: 392.5 kB / 0.891 GB, free: 105.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/1.592, allocations: 6.146 MB / 0.897 GB, free: 100.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/1.592, allocations: 0.8522 MB / 0.8979 GB, free: 99.92 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004688/1.593, allocations: 154.6 kB / 0.898 GB, free: 99.82 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/1.593, allocations: 171.7 kB / 0.8982 GB, free: 99.77 MB / 0.5919 GB Notification: Performance of SimCode: time 5.91e-07/1.593, allocations: 0 / 0.8982 GB, free: 99.77 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3823/1.975, allocations: 124.6 MB / 1.02 GB, free: 228.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/17.42, allocations: 13.75 kB / 1.02 GB, free: 228.7 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph_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_R134a_ASHRAE_TestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1)