Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",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.00121/0.00121, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.424/1.424, allocations: 205.1 MB / 222.4 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04616/0.04616, allocations: 9.099 MB / 278.9 MB, free: 12.18 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.001496/0.001497, allocations: 63.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07461/0.07613, allocations: 48.17 MB / 386.3 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.351/0.4272, allocations: 197.7 MB / 0.5703 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3239/0.7511, allocations: 143.7 MB / 0.7106 GB, free: 10.95 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008869/0.752, allocations: 11.38 kB / 0.7106 GB, free: 10.94 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004129/0.7561, allocations: 1.84 MB / 0.7124 GB, free: 9.418 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005317/0.7615, allocations: 2.532 MB / 0.7149 GB, free: 7.34 MB / 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.103/0.8645, allocations: 39.11 MB / 0.7531 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002286/0.8668, allocations: 1.976 MB / 0.755 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00037/0.8672, allocations: 202.6 kB / 0.7552 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.8685, allocations: 0.798 MB / 0.756 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008367/0.8693, allocations: 0.5291 MB / 0.7565 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.8695, allocations: 64 kB / 0.7566 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07798/0.9475, allocations: 44.64 MB / 0.8001 GB, free: 208 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000306/0.9478, allocations: 163.5 kB / 0.8003 GB, free: 44 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.2534/1.201, allocations: 425 kB / 0.8007 GB, free: 47.25 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.05276/1.254, allocations: 18.75 MB / 0.819 GB, free: 47.1 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/1.254, allocations: 1.562 kB / 0.819 GB, free: 47.1 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.623e-06/1.254, allocations: 0 / 0.819 GB, free: 47.1 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.133e-05/1.254, allocations: 2.469 kB / 0.819 GB, free: 47.1 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: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.009291/1.263, allocations: 3.351 MB / 0.8223 GB, free: 45.38 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/1.263, allocations: 8.844 kB / 0.8223 GB, free: 45.38 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/1.264, allocations: 109.3 kB / 0.8224 GB, free: 45.34 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007896/1.264, allocations: 119.1 kB / 0.8225 GB, free: 45.31 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/1.265, allocations: 407.6 kB / 0.8229 GB, free: 45.06 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.364e-05/1.265, allocations: 46.19 kB / 0.823 GB, free: 45.06 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.424e-05/1.265, allocations: 43.66 kB / 0.823 GB, free: 45.06 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001504/1.266, allocations: 0.8172 MB / 0.8238 GB, free: 44.95 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/1.266, allocations: 2.438 kB / 0.8238 GB, free: 44.95 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.854e-05/1.267, allocations: 23.66 kB / 0.8238 GB, free: 44.95 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.801e-05/1.267, allocations: 28.03 kB / 0.8238 GB, free: 44.95 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/1.268, allocations: 0.7552 MB / 0.8246 GB, free: 44.95 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/1.271, allocations: 3.427 MB / 0.8279 GB, free: 42.71 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/1.272, allocations: 0.682 MB / 0.8286 GB, free: 42.69 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006559/1.273, allocations: 481.4 kB / 0.8291 GB, free: 42.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.317/1.59, allocations: 185.3 MB / 1.01 GB, free: 10.24 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.147e-05/1.59, allocations: 40.25 kB / 1.01 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 3.517e-06/1.59, allocations: 0 / 1.01 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.008773/1.599, allocations: 3.419 MB / 1.013 GB, free: 7.605 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/1.599, allocations: 59.97 kB / 1.013 GB, free: 7.535 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/1.599, allocations: 302.7 kB / 1.014 GB, free: 7.281 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.478e-05/1.599, allocations: 36.95 kB / 1.014 GB, free: 7.246 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/1.599, allocations: 231.3 kB / 1.014 GB, free: 7.055 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002535/1.6, allocations: 383.4 kB / 1.014 GB, free: 6.73 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/1.6, allocations: 148.3 kB / 1.015 GB, free: 6.633 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001403/1.6, allocations: 364.5 kB / 1.015 GB, free: 6.289 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000659/1.601, allocations: 391.7 kB / 1.015 GB, free: 6.059 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007679/1.601, allocations: 0.5384 MB / 1.016 GB, free: 5.648 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/1.603, allocations: 0.971 MB / 1.017 GB, free: 5.008 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.603, allocations: 4 kB / 1.017 GB, free: 5.004 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002028/1.605, allocations: 1.126 MB / 1.018 GB, free: 4.242 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/1.605, allocations: 12.03 kB / 1.018 GB, free: 4.23 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/1.605, allocations: 4 kB / 1.018 GB, free: 4.227 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003906/1.605, allocations: 106.3 kB / 1.018 GB, free: 4.137 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009793/1.606, allocations: 206.4 kB / 1.018 GB, free: 3.953 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3392/1.946, allocations: 46.88 MB / 1.064 GB, free: 383.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006653/1.946, allocations: 40.03 kB / 1.064 GB, free: 383.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/1.946, allocations: 27.98 kB / 1.064 GB, free: 383.6 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003076/1.947, allocations: 224.8 kB / 1.064 GB, free: 383.4 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/1.947, allocations: 65.67 kB / 1.064 GB, free: 383.4 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00255/1.949, allocations: 2.386 MB / 1.067 GB, free: 380.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.368e-05/1.949, allocations: 20.2 kB / 1.067 GB, free: 380.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/1.949, allocations: 0 / 1.067 GB, free: 380.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001904/1.951, allocations: 1.65 MB / 1.068 GB, free: 379.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/1.954, allocations: 2.461 MB / 1.071 GB, free: 376.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/1.954, allocations: 0 / 1.071 GB, free: 376.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/1.955, allocations: 126.6 kB / 1.071 GB, free: 376.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004406/1.955, allocations: 203.2 kB / 1.071 GB, free: 376.3 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/1.955, allocations: 23.98 kB / 1.071 GB, free: 376.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/1.957, allocations: 3.98 MB / 1.075 GB, free: 372 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/1.957, allocations: 0 / 1.075 GB, free: 372 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002526/1.96, allocations: 1.972 MB / 1.077 GB, free: 370 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/1.96, allocations: 132.3 kB / 1.077 GB, free: 369.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.939e-05/1.96, allocations: 19.94 kB / 1.077 GB, free: 369.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003898/1.96, allocations: 33.34 kB / 1.077 GB, free: 369.8 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/1.96, allocations: 64.41 kB / 1.077 GB, free: 369.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/1.96, allocations: 27.98 kB / 1.077 GB, free: 369.7 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002191/1.961, allocations: 259.2 kB / 1.077 GB, free: 369.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/1.961, allocations: 0 / 1.077 GB, free: 369.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01378/1.974, allocations: 4.816 MB / 1.082 GB, free: 365.3 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0308/2.005, allocations: 8.213 MB / 1.09 GB, free: 357.8 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003395/2.009, allocations: 1.553 MB / 1.092 GB, free: 356.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/2.009, allocations: 0 / 1.092 GB, free: 356.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001079/2.01, allocations: 0.8253 MB / 1.092 GB, free: 355.3 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/2.012, allocations: 0.5209 MB / 1.093 GB, free: 354.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01725/2.03, allocations: 8.359 MB / 1.101 GB, free: 346.3 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/2.03, allocations: 0.9293 MB / 1.102 GB, free: 345.4 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005765/2.03, allocations: 183.2 kB / 1.102 GB, free: 345.2 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/2.031, allocations: 255.3 kB / 1.102 GB, free: 345 MB / 0.6856 GB Notification: Performance of SimCode: time 6.62e-07/2.031, allocations: 0 / 1.102 GB, free: 345 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2607/2.291, allocations: 195.2 MB / 1.293 GB, free: 149.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.59/20.88, allocations: 0.625 kB / 1.293 GB, free: 149.4 MB / 0.6856 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2_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_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)