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.00563/0.00563, allocations: 99.47 kB / 15.73 MB, free: 6.039 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.001229/0.001229, allocations: 192.8 kB / 16.67 MB, free: 5.965 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.409/1.409, allocations: 205.1 MB / 222.6 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.04672/0.04672, allocations: 9.093 MB / 279 MB, free: 12.07 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.001831/0.001831, allocations: 72.27 kB / 387 MB, free: 8.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2694, allocations: 48.16 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.134/0.4035, allocations: 129.6 MB / 0.5515 GB, free: 14.72 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.347/0.7505, allocations: 111.1 MB / 0.6601 GB, free: 324 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006252/0.7512, allocations: 7.188 kB / 0.6601 GB, free: 324 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003492/0.7547, allocations: 1.554 MB / 0.6616 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004334/0.7591, allocations: 1.834 MB / 0.6634 GB, free: 260 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.08059/0.8397, allocations: 31.18 MB / 0.6938 GB, free: 6.125 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002082/0.8418, allocations: 1.402 MB / 0.6952 GB, free: 5.113 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.8421, allocations: 126.7 kB / 0.6953 GB, free: 5.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01385/0.8559, allocations: 9.145 MB / 0.7042 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005611/0.8565, allocations: 384.1 kB / 0.7046 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.731e-05/0.8566, allocations: 44 kB / 0.7047 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06288/0.9195, allocations: 34.96 MB / 0.7388 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.9198, allocations: 118.6 kB / 0.7389 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006516/0.9205, allocations: 309.4 kB / 0.7392 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0464/0.9669, allocations: 14.09 MB / 0.753 GB, free: 14.79 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.967, allocations: 0 / 0.753 GB, free: 14.79 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.033e-06/0.967, allocations: 0 / 0.753 GB, free: 14.79 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.423e-05/0.967, allocations: 0 / 0.753 GB, free: 14.79 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.006051/0.973, allocations: 2.688 MB / 0.7556 GB, free: 12.06 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.9731, allocations: 8.031 kB / 0.7556 GB, free: 12.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.599e-05/0.9732, allocations: 82.52 kB / 0.7557 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006103/0.9738, allocations: 87.64 kB / 0.7558 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005151/0.9743, allocations: 352.3 kB / 0.7561 GB, free: 11.5 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.217e-05/0.9744, allocations: 28.66 kB / 0.7561 GB, free: 11.47 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.088e-05/0.9745, allocations: 35.94 kB / 0.7562 GB, free: 11.43 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.9757, allocations: 0.6045 MB / 0.7567 GB, free: 10.81 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.9758, allocations: 3.938 kB / 0.7567 GB, free: 10.81 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.9758, allocations: 12 kB / 0.7568 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.9758, allocations: 19.67 kB / 0.7568 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.9772, allocations: 0.5454 MB / 0.7573 GB, free: 10.24 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002596/0.9798, allocations: 2.553 MB / 0.7598 GB, free: 7.457 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.9809, allocations: 0.496 MB / 0.7603 GB, free: 6.953 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005225/0.9815, allocations: 334.2 kB / 0.7606 GB, free: 6.625 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3892/1.371, allocations: 139 MB / 0.8963 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/1.371, allocations: 44.61 kB / 0.8964 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.565e-06/1.371, allocations: 0 / 0.8964 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005441/1.376, allocations: 2.324 MB / 0.8986 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.351e-05/1.376, allocations: 59.34 kB / 0.8987 GB, free: 215.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/1.376, allocations: 257.5 kB / 0.8989 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/1.376, allocations: 38.73 kB / 0.899 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.343e-05/1.377, allocations: 182 kB / 0.8992 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/1.377, allocations: 280.2 kB / 0.8994 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/1.377, allocations: 104.8 kB / 0.8995 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.111e-05/1.377, allocations: 354.8 kB / 0.8999 GB, free: 214 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004126/1.377, allocations: 261.3 kB / 0.9001 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/1.378, allocations: 400.3 kB / 0.9005 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000865/1.379, allocations: 0.6989 MB / 0.9012 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/1.379, allocations: 4 kB / 0.9012 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001205/1.38, allocations: 0.7974 MB / 0.902 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/1.38, allocations: 4 kB / 0.902 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/1.38, allocations: 4.75 kB / 0.902 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002345/1.38, allocations: 61.67 kB / 0.902 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003717/1.381, allocations: 98.06 kB / 0.9021 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06465/1.445, allocations: 17.27 MB / 0.919 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/1.446, allocations: 32.05 kB / 0.919 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/1.446, allocations: 27.92 kB / 0.919 GB, free: 193.9 MB / 0.6075 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.0002081/1.446, allocations: 186.5 kB / 0.9192 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.237e-05/1.446, allocations: 39.77 kB / 0.9193 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001539/1.447, allocations: 1.552 MB / 0.9208 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/1.448, allocations: 23.44 kB / 0.9208 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/1.448, allocations: 0 / 0.9208 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001133/1.449, allocations: 1.138 MB / 0.9219 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001783/1.45, allocations: 1.589 MB / 0.9235 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.45, allocations: 0 / 0.9235 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/1.451, allocations: 83.88 kB / 0.9235 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001824/1.451, allocations: 40.81 kB / 0.9236 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/1.451, allocations: 13.75 kB / 0.9236 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006642/1.452, allocations: 1.424 MB / 0.925 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/1.452, allocations: 0 / 0.925 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/1.453, allocations: 1.178 MB / 0.9261 GB, free: 186.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/1.453, allocations: 119.4 kB / 0.9262 GB, free: 186.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/1.453, allocations: 14.67 kB / 0.9263 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/1.454, allocations: 32.03 kB / 0.9263 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/1.454, allocations: 47.88 kB / 0.9263 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/1.454, allocations: 12 kB / 0.9263 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002105/1.454, allocations: 243 kB / 0.9266 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.454, allocations: 0 / 0.9266 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008414/1.463, allocations: 3.575 MB / 0.9301 GB, free: 182.7 MB / 0.6075 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.0171/1.48, allocations: 6.217 MB / 0.9361 GB, free: 176.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001615/1.481, allocations: 0.9545 MB / 0.9371 GB, free: 175.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/1.481, allocations: 0 / 0.9371 GB, free: 175.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007082/1.482, allocations: 495.1 kB / 0.9375 GB, free: 175.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/1.484, allocations: 384.6 kB / 0.9379 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/1.495, allocations: 6.324 MB / 0.9441 GB, free: 168.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/1.495, allocations: 0.8486 MB / 0.9449 GB, free: 167.7 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0005186/1.496, allocations: 168.2 kB / 0.9451 GB, free: 167.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002204/1.496, allocations: 167.4 kB / 0.9452 GB, free: 167.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.262e-06/1.496, allocations: 4 kB / 0.9452 GB, free: 167.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1591/1.655, allocations: 132.5 MB / 1.075 GB, free: 34.62 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.83/18.48, allocations: 7.938 kB / 1.075 GB, free: 34.62 MB / 0.6075 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)