Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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.00677/0.00677, allocations: 104.3 kB / 15.73 MB, free: 5.953 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.00142/0.00142, allocations: 190.2 kB / 16.67 MB, free: 5.871 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.496/1.496, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04862/0.04862, allocations: 9.096 MB / 279 MB, free: 12.02 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.001826/0.001826, allocations: 70.25 kB / 387 MB, free: 8.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.272, allocations: 48.16 MB / 435.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.1355/0.4075, allocations: 128.7 MB / 0.5506 GB, free: 15.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3649/0.7725, allocations: 111.1 MB / 0.6591 GB, free: 288 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008087/0.7733, allocations: 9.25 kB / 0.6591 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003687/0.777, allocations: 1.554 MB / 0.6606 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003869/0.781, allocations: 1.827 MB / 0.6624 GB, free: 228 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.07725/0.8583, allocations: 31.16 MB / 0.6928 GB, free: 6.492 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001943/0.8602, allocations: 1.403 MB / 0.6942 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.8605, allocations: 125.5 kB / 0.6943 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0148/0.8753, allocations: 9.144 MB / 0.7033 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004962/0.8758, allocations: 385.6 kB / 0.7036 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.934e-05/0.8759, allocations: 43.94 kB / 0.7037 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06517/0.9411, allocations: 34.96 MB / 0.7378 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003173/0.9414, allocations: 118 kB / 0.7379 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006274/0.9421, allocations: 309.5 kB / 0.7382 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04719/0.9893, allocations: 14.09 MB / 0.752 GB, free: 15.25 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.9893, allocations: 0 / 0.752 GB, free: 15.25 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.774e-06/0.9893, allocations: 0 / 0.752 GB, free: 15.25 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.64e-05/0.9893, allocations: 0 / 0.752 GB, free: 15.25 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.006027/0.9954, allocations: 2.676 MB / 0.7546 GB, free: 12.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.9954, allocations: 12.03 kB / 0.7546 GB, free: 12.51 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.042e-05/0.9955, allocations: 82.52 kB / 0.7547 GB, free: 12.42 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006525/0.9962, allocations: 91.62 kB / 0.7548 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.9966, allocations: 343 kB / 0.7551 GB, free: 11.96 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.9967, allocations: 24.66 kB / 0.7551 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.691e-05/0.9967, allocations: 43.94 kB / 0.7552 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.998, allocations: 0.601 MB / 0.7557 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.9981, allocations: 4 kB / 0.7557 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.9981, allocations: 12 kB / 0.7558 GB, free: 11.26 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.376e-05/0.9981, allocations: 21.84 kB / 0.7558 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.9995, allocations: 0.5493 MB / 0.7563 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/1.002, allocations: 2.541 MB / 0.7588 GB, free: 7.926 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/1.003, allocations: 0.4998 MB / 0.7593 GB, free: 7.418 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005653/1.004, allocations: 338.3 kB / 0.7596 GB, free: 7.086 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.427/1.431, allocations: 139 MB / 0.8953 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/1.431, allocations: 41.27 kB / 0.8954 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.917e-06/1.431, allocations: 0 / 0.8954 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005872/1.437, allocations: 2.338 MB / 0.8977 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/1.437, allocations: 55.41 kB / 0.8977 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/1.437, allocations: 258.8 kB / 0.898 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/1.437, allocations: 33.7 kB / 0.898 GB, free: 216 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/1.437, allocations: 186 kB / 0.8982 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/1.438, allocations: 278.8 kB / 0.8984 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001179/1.438, allocations: 102 kB / 0.8985 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.428e-05/1.438, allocations: 358.3 kB / 0.8989 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004134/1.438, allocations: 261.3 kB / 0.8991 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004556/1.439, allocations: 399.5 kB / 0.8995 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008983/1.44, allocations: 0.702 MB / 0.9002 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.44, allocations: 4 kB / 0.9002 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001306/1.441, allocations: 0.7878 MB / 0.901 GB, free: 212.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/1.441, allocations: 4 kB / 0.901 GB, free: 212.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/1.441, allocations: 8.906 kB / 0.901 GB, free: 212.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/1.441, allocations: 57.69 kB / 0.901 GB, free: 212.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/1.442, allocations: 99.86 kB / 0.9011 GB, free: 212.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06362/1.505, allocations: 17.2 MB / 0.9179 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004009/1.506, allocations: 27.98 kB / 0.9179 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.349e-05/1.506, allocations: 19.98 kB / 0.918 GB, free: 195.1 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.000228/1.506, allocations: 201.1 kB / 0.9182 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/1.506, allocations: 43.72 kB / 0.9182 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/1.508, allocations: 1.541 MB / 0.9197 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/1.508, allocations: 18.02 kB / 0.9197 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/1.508, allocations: 0 / 0.9197 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00115/1.509, allocations: 1.138 MB / 0.9208 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/1.511, allocations: 1.592 MB / 0.9224 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.511, allocations: 4 kB / 0.9224 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/1.511, allocations: 79.92 kB / 0.9225 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001986/1.511, allocations: 48.8 kB / 0.9225 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/1.511, allocations: 9.812 kB / 0.9225 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007706/1.512, allocations: 1.425 MB / 0.9239 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/1.512, allocations: 0 / 0.9239 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/1.514, allocations: 1.182 MB / 0.9251 GB, free: 187.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.728e-05/1.514, allocations: 115.5 kB / 0.9252 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.577e-05/1.514, allocations: 8 kB / 0.9252 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002977/1.514, allocations: 35.97 kB / 0.9252 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.99e-05/1.514, allocations: 44 kB / 0.9253 GB, free: 187.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.628e-05/1.514, allocations: 15.94 kB / 0.9253 GB, free: 187.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001918/1.514, allocations: 243 kB / 0.9255 GB, free: 187 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.2e-07/1.514, allocations: 0 / 0.9255 GB, free: 187 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007602/1.522, allocations: 3.572 MB / 0.929 GB, free: 183.9 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.01645/1.539, allocations: 6.207 MB / 0.9351 GB, free: 178.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001689/1.54, allocations: 0.9533 MB / 0.936 GB, free: 177.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/1.54, allocations: 0 / 0.936 GB, free: 177.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007303/1.541, allocations: 0.4917 MB / 0.9365 GB, free: 176.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/1.543, allocations: 375.8 kB / 0.9368 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/1.554, allocations: 6.331 MB / 0.943 GB, free: 169.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/1.554, allocations: 0.8486 MB / 0.9438 GB, free: 168.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003984/1.554, allocations: 171.9 kB / 0.944 GB, free: 168.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/1.555, allocations: 171.4 kB / 0.9442 GB, free: 168.5 MB / 0.6075 GB Notification: Performance of SimCode: time 5.01e-07/1.555, allocations: 0 / 0.9442 GB, free: 168.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1671/1.722, allocations: 132 MB / 1.073 GB, free: 36.29 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.7/18.42, allocations: 11.97 kB / 1.073 GB, free: 36.28 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel_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_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)