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.007045/0.007045, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001849/0.00185, allocations: 195.3 kB / 16.67 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.49/1.49, 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.0523/0.0523, allocations: 9.103 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.002117/0.002117, allocations: 72.45 kB / 387 MB, free: 8.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2532, allocations: 48.15 MB / 435.2 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.1493/0.4026, allocations: 129.6 MB / 0.5515 GB, free: 14.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3356/0.7383, allocations: 111.1 MB / 0.6601 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005095/0.7388, allocations: 5.656 kB / 0.6601 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002669/0.7415, allocations: 1.369 MB / 0.6614 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003066/0.7446, allocations: 1.666 MB / 0.663 GB, free: 232 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.07961/0.8242, allocations: 29.34 MB / 0.6917 GB, free: 6.812 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002583/0.8268, allocations: 1.397 MB / 0.6931 GB, free: 5.805 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003354/0.8272, allocations: 123.6 kB / 0.6932 GB, free: 5.711 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02457/0.8518, allocations: 8.955 MB / 0.7019 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008325/0.8527, allocations: 382 kB / 0.7023 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.8528, allocations: 40 kB / 0.7023 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07836/0.9312, allocations: 34.96 MB / 0.7365 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000269/0.9315, allocations: 117.1 kB / 0.7366 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005323/0.932, allocations: 305.5 kB / 0.7369 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0424/0.9744, allocations: 14.1 MB / 0.7506 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.9744, allocations: 0 / 0.7506 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.703e-06/0.9745, allocations: 4 kB / 0.7506 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.883e-05/0.9745, allocations: 0 / 0.7506 GB, free: 1.168 MB / 0.5294 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.006772/0.9813, allocations: 2.673 MB / 0.7533 GB, free: 14.45 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.9813, allocations: 8.031 kB / 0.7533 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.9814, allocations: 86.52 kB / 0.7533 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000701/0.9822, allocations: 99.62 kB / 0.7534 GB, free: 14.25 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005684/0.9827, allocations: 338.9 kB / 0.7538 GB, free: 13.88 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.013e-05/0.9828, allocations: 32.66 kB / 0.7538 GB, free: 13.85 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.07e-05/0.9829, allocations: 43.86 kB / 0.7538 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.9844, allocations: 0.5933 MB / 0.7544 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.9845, allocations: 7.938 kB / 0.7544 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.546e-05/0.9845, allocations: 19.56 kB / 0.7544 GB, free: 13.17 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.9846, allocations: 10.19 kB / 0.7544 GB, free: 13.16 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.9861, allocations: 0.5454 MB / 0.755 GB, free: 12.62 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003193/0.9893, allocations: 2.551 MB / 0.7575 GB, free: 9.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001342/0.9907, allocations: 0.4959 MB / 0.758 GB, free: 9.336 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006187/0.9913, allocations: 334.3 kB / 0.7583 GB, free: 9.008 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4155/1.407, allocations: 139 MB / 0.894 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/1.407, allocations: 36.94 kB / 0.894 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.307e-06/1.407, allocations: 0 / 0.894 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005816/1.413, allocations: 2.348 MB / 0.8963 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/1.413, allocations: 55.25 kB / 0.8964 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/1.413, allocations: 252.5 kB / 0.8966 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/1.413, allocations: 37.7 kB / 0.8967 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.163e-05/1.413, allocations: 182.1 kB / 0.8968 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/1.413, allocations: 284.5 kB / 0.8971 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/1.413, allocations: 98.06 kB / 0.8972 GB, free: 217 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.468e-05/1.413, allocations: 361.8 kB / 0.8976 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004352/1.414, allocations: 261.3 kB / 0.8978 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/1.414, allocations: 398.6 kB / 0.8982 GB, free: 216 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009396/1.415, allocations: 0.7041 MB / 0.8989 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.415, allocations: 0 / 0.8989 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001279/1.417, allocations: 0.786 MB / 0.8996 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/1.417, allocations: 4 kB / 0.8996 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/1.417, allocations: 8.359 kB / 0.8996 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002355/1.417, allocations: 65.11 kB / 0.8997 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003805/1.417, allocations: 99.81 kB / 0.8998 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06506/1.482, allocations: 17.26 MB / 0.9167 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/1.483, allocations: 32.03 kB / 0.9167 GB, free: 196.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/1.483, allocations: 20 kB / 0.9167 GB, free: 196.6 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.0002796/1.483, allocations: 198.2 kB / 0.9169 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001422/1.483, allocations: 43.72 kB / 0.9169 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/1.485, allocations: 1.553 MB / 0.9185 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/1.485, allocations: 13.67 kB / 0.9185 GB, free: 194.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/1.485, allocations: 3.938 kB / 0.9185 GB, free: 194.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001141/1.486, allocations: 1.138 MB / 0.9196 GB, free: 193.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/1.488, allocations: 1.592 MB / 0.9211 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/1.488, allocations: 0 / 0.9211 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/1.489, allocations: 87.91 kB / 0.9212 GB, free: 191.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/1.489, allocations: 44.8 kB / 0.9213 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/1.489, allocations: 8 kB / 0.9213 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007312/1.49, allocations: 1.423 MB / 0.9227 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.49, allocations: 4.156 kB / 0.9227 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/1.491, allocations: 1.178 MB / 0.9238 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.246e-05/1.491, allocations: 119.5 kB / 0.9239 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.076e-05/1.491, allocations: 12 kB / 0.9239 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003234/1.492, allocations: 24.05 kB / 0.924 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.744e-05/1.492, allocations: 47.88 kB / 0.924 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/1.492, allocations: 19.98 kB / 0.924 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001894/1.492, allocations: 247 kB / 0.9243 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.11e-07/1.492, allocations: 0 / 0.9243 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007737/1.5, allocations: 3.572 MB / 0.9278 GB, free: 185.4 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.01774/1.517, allocations: 6.212 MB / 0.9338 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001704/1.519, allocations: 0.9506 MB / 0.9348 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.519, allocations: 0 / 0.9348 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007747/1.52, allocations: 0.4914 MB / 0.9352 GB, free: 178.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/1.522, allocations: 381.7 kB / 0.9356 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/1.534, allocations: 6.325 MB / 0.9418 GB, free: 171.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/1.534, allocations: 0.8526 MB / 0.9426 GB, free: 170.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004107/1.534, allocations: 166 kB / 0.9428 GB, free: 170.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/1.535, allocations: 167.4 kB / 0.9429 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/1.535, allocations: 0 / 0.9429 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1737/1.708, allocations: 132.5 MB / 1.072 GB, free: 37.31 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/18.88, allocations: 0 / 1.072 GB, free: 37.31 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)