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.006788/0.006788, allocations: 99 kB / 15.73 MB, free: 6.441 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.001808/0.001808, allocations: 196.4 kB / 16.67 MB, free: 6.352 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.41/1.41, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05238/0.05238, allocations: 9.104 MB / 279 MB, free: 12.05 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.002075/0.002075, allocations: 67.91 kB / 387 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2185, allocations: 48.16 MB / 435.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.1416/0.3601, allocations: 128.7 MB / 0.5506 GB, free: 15.68 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3093/0.6694, allocations: 111.1 MB / 0.6591 GB, free: 276 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004841/0.67, allocations: 5.875 kB / 0.6591 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002578/0.6726, allocations: 1.369 MB / 0.6604 GB, free: 264 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002772/0.6754, allocations: 1.655 MB / 0.662 GB, free: 216 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.06565/0.741, allocations: 29.37 MB / 0.6907 GB, free: 7.184 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001907/0.7429, allocations: 1.403 MB / 0.6921 GB, free: 6.172 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.7432, allocations: 131.2 kB / 0.6922 GB, free: 6.07 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01491/0.7581, allocations: 8.958 MB / 0.701 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005157/0.7587, allocations: 375.6 kB / 0.7013 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.887e-05/0.7588, allocations: 40 kB / 0.7014 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06332/0.8221, allocations: 34.96 MB / 0.7355 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002561/0.8224, allocations: 118.4 kB / 0.7356 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005324/0.8229, allocations: 310.3 kB / 0.7359 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04083/0.8638, allocations: 14.09 MB / 0.7497 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.8638, allocations: 3.938 kB / 0.7497 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.793e-06/0.8638, allocations: 0 / 0.7497 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.227e-06/0.8638, allocations: 4 kB / 0.7497 GB, free: 1.48 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.006211/0.8701, allocations: 2.677 MB / 0.7523 GB, free: 14.75 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.8701, allocations: 8.031 kB / 0.7523 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.8702, allocations: 86.52 kB / 0.7524 GB, free: 14.65 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006406/0.8709, allocations: 87.62 kB / 0.7525 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.8714, allocations: 351.3 kB / 0.7528 GB, free: 14.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.766e-05/0.8715, allocations: 32.66 kB / 0.7528 GB, free: 14.15 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.8715, allocations: 31.94 kB / 0.7529 GB, free: 14.12 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.8729, allocations: 0.6032 MB / 0.7535 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.873, allocations: 0 / 0.7535 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.98e-05/0.873, allocations: 16 kB / 0.7535 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.873, allocations: 15.36 kB / 0.7535 GB, free: 13.47 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.8745, allocations: 0.5454 MB / 0.754 GB, free: 12.93 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002907/0.8774, allocations: 2.55 MB / 0.7565 GB, free: 10.15 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.8787, allocations: 0.4998 MB / 0.757 GB, free: 9.645 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006071/0.8793, allocations: 337.7 kB / 0.7573 GB, free: 9.316 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4034/1.283, allocations: 139 MB / 0.8931 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/1.283, allocations: 37.22 kB / 0.8931 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.695e-06/1.283, allocations: 2.562 kB / 0.8931 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005284/1.288, allocations: 2.344 MB / 0.8954 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.847e-05/1.288, allocations: 55.03 kB / 0.8954 GB, free: 218 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000193/1.288, allocations: 255.3 kB / 0.8957 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/1.288, allocations: 33.61 kB / 0.8957 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.851e-05/1.288, allocations: 182.9 kB / 0.8959 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/1.289, allocations: 285.5 kB / 0.8962 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/1.289, allocations: 102.9 kB / 0.8963 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.352e-05/1.289, allocations: 347.5 kB / 0.8966 GB, free: 217 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000422/1.289, allocations: 271.9 kB / 0.8968 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004566/1.29, allocations: 390.2 kB / 0.8972 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000911/1.291, allocations: 0.7091 MB / 0.8979 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.291, allocations: 0 / 0.8979 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001205/1.292, allocations: 0.7831 MB / 0.8987 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/1.292, allocations: 8 kB / 0.8987 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/1.292, allocations: 6.375 kB / 0.8987 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002132/1.292, allocations: 61.67 kB / 0.8987 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/1.292, allocations: 103.8 kB / 0.8988 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06565/1.358, allocations: 17.19 MB / 0.9156 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003864/1.358, allocations: 27.97 kB / 0.9157 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/1.358, allocations: 20 kB / 0.9157 GB, free: 196.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.0002043/1.359, allocations: 186.6 kB / 0.9159 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.701e-05/1.359, allocations: 47.77 kB / 0.9159 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/1.36, allocations: 1.552 MB / 0.9174 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/1.36, allocations: 17.84 kB / 0.9174 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/1.36, allocations: 0 / 0.9174 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001111/1.361, allocations: 1.138 MB / 0.9185 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/1.363, allocations: 1.599 MB / 0.9201 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/1.363, allocations: 0 / 0.9201 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/1.364, allocations: 83.88 kB / 0.9202 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001816/1.364, allocations: 36.81 kB / 0.9202 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/1.364, allocations: 20.02 kB / 0.9202 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006336/1.364, allocations: 1.428 MB / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.364, allocations: 0 / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/1.366, allocations: 1.178 MB / 0.9228 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/1.366, allocations: 115.4 kB / 0.9229 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.368e-05/1.366, allocations: 16.06 kB / 0.9229 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002967/1.366, allocations: 27.91 kB / 0.9229 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.11e-05/1.367, allocations: 43.94 kB / 0.923 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/1.367, allocations: 15.98 kB / 0.923 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001758/1.367, allocations: 243 kB / 0.9232 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/1.367, allocations: 0 / 0.9232 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00622/1.373, allocations: 3.579 MB / 0.9267 GB, free: 185.6 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.01389/1.387, allocations: 6.196 MB / 0.9328 GB, free: 179.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0015/1.388, allocations: 0.9495 MB / 0.9337 GB, free: 178.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/1.388, allocations: 0 / 0.9337 GB, free: 178.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007064/1.389, allocations: 0.4953 MB / 0.9342 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/1.391, allocations: 379.8 kB / 0.9345 GB, free: 178 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009002/1.4, allocations: 6.332 MB / 0.9407 GB, free: 171.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/1.4, allocations: 0.8486 MB / 0.9416 GB, free: 170.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003482/1.4, allocations: 160 kB / 0.9417 GB, free: 170.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/1.401, allocations: 179.3 kB / 0.9419 GB, free: 170.3 MB / 0.6075 GB Notification: Performance of SimCode: time 4.4e-07/1.401, allocations: 0 / 0.9419 GB, free: 170.3 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1665/1.567, allocations: 132 MB / 1.071 GB, free: 38.11 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.44/19, allocations: 8.047 kB / 1.071 GB, free: 38.1 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)