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: translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 103.8 kB / 16.36 MB, free: 5.547 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.001633/0.001633, allocations: 194.5 kB / 17.31 MB, free: 5.184 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.322/1.322, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04725/0.04725, allocations: 9.1 MB / 279.6 MB, free: 2.973 MB / 222.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.0016/0.0016, allocations: 67.91 kB / 339.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2084, allocations: 48.14 MB / 387.6 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.3609/0.5693, allocations: 197.7 MB / 0.5716 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.117/0.6863, allocations: 143.7 MB / 0.7119 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007523/0.6871, allocations: 11.94 kB / 0.7119 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003832/0.691, allocations: 1.837 MB / 0.7137 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005124/0.6961, allocations: 2.535 MB / 0.7162 GB, free: 2.734 MB / 0.4981 GB [/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.3312/1.027, allocations: 39.1 MB / 0.7544 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002403/1.03, allocations: 1.972 MB / 0.7563 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00031/1.03, allocations: 208.2 kB / 0.7565 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/1.031, allocations: 0.7962 MB / 0.7573 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007725/1.032, allocations: 0.5346 MB / 0.7578 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.596e-05/1.032, allocations: 58.44 kB / 0.7579 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07322/1.105, allocations: 46.69 MB / 0.8035 GB, free: 256 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003683/1.106, allocations: 168.4 kB / 0.8036 GB, free: 120 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0008687/1.107, allocations: 427.2 kB / 0.804 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05365/1.16, allocations: 18.76 MB / 0.8223 GB, free: 14.61 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/1.16, allocations: 0 / 0.8223 GB, free: 14.61 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.433e-06/1.16, allocations: 0 / 0.8223 GB, free: 14.61 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.619e-05/1.16, allocations: 0 / 0.8223 GB, free: 14.61 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.007362/1.168, allocations: 3.342 MB / 0.8256 GB, free: 11.26 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/1.168, allocations: 12.03 kB / 0.8256 GB, free: 11.25 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008008/1.169, allocations: 123 kB / 0.8257 GB, free: 11.13 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006012/1.169, allocations: 406.5 kB / 0.8261 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.755e-05/1.169, allocations: 48.92 kB / 0.8262 GB, free: 10.65 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.303e-05/1.169, allocations: 51.91 kB / 0.8262 GB, free: 10.6 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001683/1.171, allocations: 0.8163 MB / 0.827 GB, free: 9.766 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/1.171, allocations: 8 kB / 0.827 GB, free: 9.758 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.731e-05/1.171, allocations: 16 kB / 0.827 GB, free: 9.742 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/1.171, allocations: 30.64 kB / 0.8271 GB, free: 9.719 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/1.173, allocations: 0.752 MB / 0.8278 GB, free: 8.969 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00327/1.176, allocations: 3.414 MB / 0.8311 GB, free: 5.27 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/1.178, allocations: 0.6841 MB / 0.8318 GB, free: 4.574 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007143/1.178, allocations: 482.7 kB / 0.8323 GB, free: 4.105 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5465/1.725, allocations: 185.3 MB / 1.013 GB, free: 153.8 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/1.725, allocations: 40.81 kB / 1.013 GB, free: 153.8 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 2.515e-06/1.725, allocations: 0 / 1.013 GB, free: 153.8 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.008825/1.734, allocations: 3.414 MB / 1.017 GB, free: 153.2 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/1.734, allocations: 57.62 kB / 1.017 GB, free: 153.2 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/1.734, allocations: 311.5 kB / 1.017 GB, free: 153.1 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/1.734, allocations: 34.23 kB / 1.017 GB, free: 153 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 9.628e-05/1.734, allocations: 231.5 kB / 1.017 GB, free: 152.9 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000195/1.735, allocations: 385.2 kB / 1.018 GB, free: 152.7 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/1.735, allocations: 140.2 kB / 1.018 GB, free: 152.6 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 7.143e-05/1.735, allocations: 372.5 kB / 1.018 GB, free: 152.3 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006354/1.735, allocations: 392.5 kB / 1.018 GB, free: 152.3 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007083/1.736, allocations: 0.5341 MB / 1.019 GB, free: 152.2 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/1.738, allocations: 0.9776 MB / 1.02 GB, free: 152 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/1.738, allocations: 3.656 kB / 1.02 GB, free: 152 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001869/1.739, allocations: 1.127 MB / 1.021 GB, free: 151.9 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/1.739, allocations: 8.422 kB / 1.021 GB, free: 151.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/1.739, allocations: 9.5 kB / 1.021 GB, free: 151.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003664/1.74, allocations: 96.67 kB / 1.021 GB, free: 151.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009463/1.741, allocations: 209.8 kB / 1.021 GB, free: 151.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1316/1.872, allocations: 35.26 MB / 1.056 GB, free: 138.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005906/1.873, allocations: 45.5 kB / 1.056 GB, free: 138.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.55e-05/1.873, allocations: 23.03 kB / 1.056 GB, free: 138.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.0003586/1.874, allocations: 227.7 kB / 1.056 GB, free: 138.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/1.874, allocations: 60.06 kB / 1.056 GB, free: 138.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/1.877, allocations: 2.376 MB / 1.058 GB, free: 138.1 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-05/1.877, allocations: 22.77 kB / 1.058 GB, free: 138.1 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/1.877, allocations: 5.25 kB / 1.058 GB, free: 138.1 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001828/1.878, allocations: 1.647 MB / 1.06 GB, free: 137.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002869/1.881, allocations: 2.46 MB / 1.062 GB, free: 135.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/1.881, allocations: 0 / 1.062 GB, free: 135.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004785/1.882, allocations: 120.1 kB / 1.063 GB, free: 135.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004442/1.882, allocations: 209 kB / 1.063 GB, free: 135.7 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.304e-05/1.882, allocations: 16.69 kB / 1.063 GB, free: 135.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/1.884, allocations: 3.982 MB / 1.067 GB, free: 131.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/1.884, allocations: 0 / 1.067 GB, free: 131.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002509/1.887, allocations: 1.974 MB / 1.069 GB, free: 130.5 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/1.887, allocations: 136.2 kB / 1.069 GB, free: 130.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.797e-05/1.887, allocations: 17.5 kB / 1.069 GB, free: 130.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/1.887, allocations: 36.53 kB / 1.069 GB, free: 130.4 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/1.887, allocations: 69.86 kB / 1.069 GB, free: 130.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-05/1.887, allocations: 18.73 kB / 1.069 GB, free: 130.3 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002094/1.888, allocations: 253.5 kB / 1.069 GB, free: 130.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.3e-07/1.888, allocations: 0.8438 kB / 1.069 GB, free: 130.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01166/1.899, allocations: 5.457 MB / 1.074 GB, free: 125.7 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.02322/1.923, allocations: 6.792 MB / 1.081 GB, free: 120.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002875/1.925, allocations: 1.568 MB / 1.083 GB, free: 119.9 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.925, allocations: 0 / 1.083 GB, free: 119.9 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001081/1.927, allocations: 0.821 MB / 1.083 GB, free: 119.3 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/1.929, allocations: 0.5089 MB / 1.084 GB, free: 119 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/1.931, allocations: 1.747 MB / 1.086 GB, free: 117.7 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/1.931, allocations: 0.9328 MB / 1.087 GB, free: 116.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0004658/1.932, allocations: 180.1 kB / 1.087 GB, free: 116.7 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/1.932, allocations: 55.94 kB / 1.087 GB, free: 116.6 MB / 0.6856 GB Notification: Performance of SimCode: time 3.81e-07/1.932, allocations: 0 / 1.087 GB, free: 116.6 MB / 0.6856 GB Notification: Performance of Templates: time 0.3568/2.289, allocations: 201.9 MB / 1.284 GB, free: 301.2 MB / 0.6856 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)