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.007806/0.007805, allocations: 101.8 kB / 15.73 MB, free: 5.516 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.001183/0.001183, allocations: 201.9 kB / 16.68 MB, free: 5.445 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.505/1.505, allocations: 205.1 MB / 222.6 MB, free: 4.332 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04663/0.04663, allocations: 9.096 MB / 279 MB, free: 11.89 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.001503/0.001504, allocations: 64.47 kB / 387 MB, free: 8.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3111, allocations: 48.16 MB / 435.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.1447/0.4558, allocations: 128.7 MB / 0.5506 GB, free: 15.69 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3809/0.8368, allocations: 111.1 MB / 0.6591 GB, free: 236 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006572/0.8375, allocations: 2.906 kB / 0.6591 GB, free: 236 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00325/0.8408, allocations: 1.556 MB / 0.6606 GB, free: 224 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003946/0.8448, allocations: 1.832 MB / 0.6624 GB, free: 176 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.09495/0.9398, allocations: 31.16 MB / 0.6928 GB, free: 6.363 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.9426, allocations: 1.407 MB / 0.6942 GB, free: 5.348 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.943, allocations: 125.3 kB / 0.6943 GB, free: 5.254 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01764/0.9606, allocations: 9.149 MB / 0.7033 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006995/0.9614, allocations: 377.2 kB / 0.7036 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.989e-05/0.9615, allocations: 44 kB / 0.7037 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06955/1.031, allocations: 34.96 MB / 0.7378 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002726/1.031, allocations: 122.9 kB / 0.7379 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005242/1.032, allocations: 304.8 kB / 0.7382 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04771/1.08, allocations: 14.09 MB / 0.752 GB, free: 15.16 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/1.08, allocations: 0 / 0.752 GB, free: 15.16 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.242e-06/1.08, allocations: 0 / 0.752 GB, free: 15.16 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.618e-06/1.08, allocations: 0 / 0.752 GB, free: 15.16 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.006642/1.086, allocations: 2.684 MB / 0.7546 GB, free: 12.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/1.086, allocations: 8.031 kB / 0.7546 GB, free: 12.42 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.272e-05/1.086, allocations: 90.52 kB / 0.7547 GB, free: 12.32 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006647/1.087, allocations: 83.64 kB / 0.7548 GB, free: 12.24 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/1.088, allocations: 354.6 kB / 0.7551 GB, free: 11.86 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/1.088, allocations: 28.66 kB / 0.7551 GB, free: 11.83 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.009e-05/1.088, allocations: 35.94 kB / 0.7552 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/1.089, allocations: 0.601 MB / 0.7557 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/1.089, allocations: 0 / 0.7557 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/1.089, allocations: 16 kB / 0.7558 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/1.089, allocations: 22.17 kB / 0.7558 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/1.09, allocations: 0.5454 MB / 0.7563 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/1.093, allocations: 2.548 MB / 0.7588 GB, free: 7.824 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/1.094, allocations: 0.5037 MB / 0.7593 GB, free: 7.312 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005679/1.095, allocations: 326.3 kB / 0.7596 GB, free: 6.992 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4484/1.543, allocations: 139 MB / 0.8953 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/1.543, allocations: 36.28 kB / 0.8954 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.725e-06/1.543, allocations: 1.906 kB / 0.8954 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005922/1.549, allocations: 2.333 MB / 0.8976 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/1.549, allocations: 57.94 kB / 0.8977 GB, free: 216 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/1.55, allocations: 259.2 kB / 0.898 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/1.55, allocations: 29.7 kB / 0.898 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.298e-05/1.55, allocations: 192.7 kB / 0.8982 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/1.55, allocations: 278.8 kB / 0.8984 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/1.55, allocations: 105.4 kB / 0.8985 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.055e-05/1.55, allocations: 354.8 kB / 0.8989 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/1.55, allocations: 268.6 kB / 0.8991 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004949/1.551, allocations: 393.1 kB / 0.8995 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000902/1.552, allocations: 0.7039 MB / 0.9002 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.552, allocations: 0 / 0.9002 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001266/1.553, allocations: 0.7849 MB / 0.901 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/1.553, allocations: 14.73 kB / 0.901 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/1.553, allocations: 4.938 kB / 0.901 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/1.554, allocations: 53.69 kB / 0.901 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003914/1.554, allocations: 102.6 kB / 0.9011 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06612/1.62, allocations: 17.2 MB / 0.9179 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000519/1.621, allocations: 31.97 kB / 0.9179 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/1.621, allocations: 20 kB / 0.918 GB, free: 194.8 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.000298/1.621, allocations: 194.2 kB / 0.9181 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.71e-05/1.621, allocations: 43.72 kB / 0.9182 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/1.623, allocations: 1.543 MB / 0.9197 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.623, allocations: 12 kB / 0.9197 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/1.623, allocations: 0 / 0.9197 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001158/1.624, allocations: 1.134 MB / 0.9208 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001963/1.626, allocations: 1.593 MB / 0.9224 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/1.626, allocations: 2.812 kB / 0.9224 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003286/1.626, allocations: 83.88 kB / 0.9225 GB, free: 190 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000207/1.626, allocations: 48.83 kB / 0.9225 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/1.627, allocations: 8 kB / 0.9225 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008212/1.627, allocations: 1.423 MB / 0.9239 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/1.627, allocations: 0 / 0.9239 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/1.629, allocations: 1.186 MB / 0.9251 GB, free: 187.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/1.629, allocations: 119.4 kB / 0.9252 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.87e-05/1.629, allocations: 10.67 kB / 0.9252 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/1.629, allocations: 27.97 kB / 0.9252 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.83e-05/1.63, allocations: 39.95 kB / 0.9252 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/1.63, allocations: 19.92 kB / 0.9253 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002182/1.63, allocations: 251.1 kB / 0.9255 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/1.63, allocations: 0 / 0.9255 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01143/1.641, allocations: 3.567 MB / 0.929 GB, free: 183.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.02061/1.662, allocations: 6.211 MB / 0.9351 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001725/1.664, allocations: 0.9533 MB / 0.936 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/1.664, allocations: 0 / 0.936 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007388/1.664, allocations: 499.5 kB / 0.9365 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/1.666, allocations: 375.2 kB / 0.9368 GB, free: 175.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/1.678, allocations: 6.336 MB / 0.943 GB, free: 169.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/1.679, allocations: 0.8564 MB / 0.9438 GB, free: 168.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0005058/1.679, allocations: 159.8 kB / 0.944 GB, free: 168.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/1.679, allocations: 167.4 kB / 0.9442 GB, free: 168.2 MB / 0.6075 GB Notification: Performance of SimCode: time 1.002e-06/1.679, allocations: 4 kB / 0.9442 GB, free: 168.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1901/1.87, allocations: 132 MB / 1.073 GB, free: 36.01 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.74/18.61, allocations: 12.05 kB / 1.073 GB, free: 36 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)