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.005071/0.005071, allocations: 102 kB / 15.73 MB, free: 6.035 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.001196/0.001196, allocations: 196.2 kB / 16.68 MB, free: 5.953 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.23/1.23, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04251/0.04251, allocations: 9.092 MB / 279 MB, free: 12.07 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.001357/0.001357, allocations: 67.89 kB / 387.5 MB, free: 7.949 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2085, allocations: 48.15 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.366/0.5745, allocations: 197.7 MB / 0.6185 GB, free: 1.023 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1023/0.6769, allocations: 143.7 MB / 0.7588 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006654/0.6776, allocations: 8 kB / 0.7589 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003813/0.6814, allocations: 2.093 MB / 0.7609 GB, free: 7.434 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.004984/0.6864, allocations: 2.801 MB / 0.7636 GB, free: 4.621 MB / 0.5294 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.0838/0.7702, allocations: 41.52 MB / 0.8042 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002178/0.7724, allocations: 1.978 MB / 0.8061 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002745/0.7727, allocations: 192.4 kB / 0.8063 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009865/0.7737, allocations: 0.8213 MB / 0.8071 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005885/0.7743, allocations: 0.5369 MB / 0.8076 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.668e-05/0.7744, allocations: 64 kB / 0.8077 GB, free: 7.352 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3043/1.079, allocations: 46.59 MB / 0.8532 GB, free: 43.17 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003287/1.079, allocations: 172.2 kB / 0.8533 GB, free: 43.17 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005685/1.08, allocations: 427.9 kB / 0.8538 GB, free: 43.17 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04663/1.126, allocations: 18.75 MB / 0.8721 GB, free: 42.89 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/1.126, allocations: 0 / 0.8721 GB, free: 42.89 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.733e-06/1.126, allocations: 3.062 kB / 0.8721 GB, free: 42.89 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.041e-05/1.126, allocations: 0 / 0.8721 GB, free: 42.89 MB / 0.5919 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.007612/1.134, allocations: 3.349 MB / 0.8753 GB, free: 41.13 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/1.134, allocations: 9.797 kB / 0.8754 GB, free: 41.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007311/1.135, allocations: 119.2 kB / 0.8755 GB, free: 41.1 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/1.135, allocations: 417.9 kB / 0.8759 GB, free: 40.86 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/1.135, allocations: 38.78 kB / 0.8759 GB, free: 40.86 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/1.135, allocations: 48.22 kB / 0.8759 GB, free: 40.86 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/1.137, allocations: 0.8153 MB / 0.8767 GB, free: 40.74 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/1.137, allocations: 8.062 kB / 0.8768 GB, free: 40.74 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.871e-05/1.137, allocations: 23.09 kB / 0.8768 GB, free: 40.74 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.226e-05/1.137, allocations: 23.83 kB / 0.8768 GB, free: 40.74 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/1.138, allocations: 0.7505 MB / 0.8775 GB, free: 40.73 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002405/1.141, allocations: 3.42 MB / 0.8809 GB, free: 38.49 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/1.142, allocations: 0.6897 MB / 0.8815 GB, free: 38.45 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006166/1.143, allocations: 483.8 kB / 0.882 GB, free: 38.43 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2865/1.429, allocations: 185.3 MB / 1.063 GB, free: 6.508 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/1.429, allocations: 42.5 kB / 1.063 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 2.755e-06/1.429, allocations: 0 / 1.063 GB, free: 6.461 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.00849/1.438, allocations: 3.414 MB / 1.066 GB, free: 3.879 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/1.438, allocations: 59.95 kB / 1.066 GB, free: 3.805 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/1.438, allocations: 306.7 kB / 1.067 GB, free: 3.551 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/1.438, allocations: 33.92 kB / 1.067 GB, free: 3.52 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/1.438, allocations: 235.7 kB / 1.067 GB, free: 3.324 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002171/1.439, allocations: 386.9 kB / 1.067 GB, free: 2.996 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/1.439, allocations: 134.2 kB / 1.067 GB, free: 2.906 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.439, allocations: 369.6 kB / 1.068 GB, free: 2.562 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006537/1.44, allocations: 396.9 kB / 1.068 GB, free: 2.332 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007286/1.44, allocations: 0.5336 MB / 1.069 GB, free: 1.926 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/1.442, allocations: 0.9734 MB / 1.07 GB, free: 1.277 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/1.442, allocations: 4 kB / 1.07 GB, free: 1.273 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001909/1.444, allocations: 1.137 MB / 1.071 GB, free: 0.5078 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/1.444, allocations: 7 kB / 1.071 GB, free: 0.5039 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/1.444, allocations: 5.312 kB / 1.071 GB, free: 0.5 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003635/1.444, allocations: 100.2 kB / 1.071 GB, free: 424 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009653/1.445, allocations: 205.6 kB / 1.071 GB, free: 236 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3725/1.817, allocations: 35.24 MB / 1.105 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005774/1.818, allocations: 38.22 kB / 1.106 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/1.818, allocations: 28.28 kB / 1.106 GB, free: 224.7 MB / 0.7637 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.0003071/1.818, allocations: 228.1 kB / 1.106 GB, free: 224.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/1.819, allocations: 61.72 kB / 1.106 GB, free: 224.6 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002642/1.821, allocations: 2.386 MB / 1.108 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/1.821, allocations: 26.95 kB / 1.108 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/1.821, allocations: 0 / 1.108 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001865/1.823, allocations: 1.641 MB / 1.11 GB, free: 223.9 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/1.826, allocations: 2.475 MB / 1.112 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/1.826, allocations: 0 / 1.112 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004521/1.826, allocations: 115.9 kB / 1.112 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004136/1.827, allocations: 207.5 kB / 1.113 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/1.827, allocations: 9.969 kB / 1.113 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001646/1.829, allocations: 3.989 MB / 1.116 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.829, allocations: 1.438 kB / 1.116 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/1.831, allocations: 1.979 MB / 1.118 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/1.831, allocations: 132.1 kB / 1.118 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.238e-05/1.831, allocations: 13.34 kB / 1.118 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003788/1.832, allocations: 36.09 kB / 1.119 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/1.832, allocations: 61.47 kB / 1.119 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.588e-05/1.832, allocations: 25.59 kB / 1.119 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002236/1.832, allocations: 256.3 kB / 1.119 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.3e-07/1.832, allocations: 0 / 1.119 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01207/1.844, allocations: 5.455 MB / 1.124 GB, free: 219.3 MB / 0.7637 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.02081/1.865, allocations: 6.794 MB / 1.131 GB, free: 218.2 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002774/1.868, allocations: 1.577 MB / 1.132 GB, free: 217.8 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.868, allocations: 0 / 1.132 GB, free: 217.8 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0009968/1.869, allocations: 0.8301 MB / 1.133 GB, free: 217.6 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/1.871, allocations: 0.4969 MB / 1.134 GB, free: 217.5 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001981/1.873, allocations: 1.726 MB / 1.135 GB, free: 216.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/1.873, allocations: 0.9365 MB / 1.136 GB, free: 216.1 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003956/1.874, allocations: 191.5 kB / 1.136 GB, free: 216.1 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/1.874, allocations: 53.25 kB / 1.136 GB, free: 216.1 MB / 0.7637 GB Notification: Performance of SimCode: time 2.5e-07/1.874, allocations: 0 / 1.136 GB, free: 216.1 MB / 0.7637 GB Notification: Performance of Templates: time 0.3416/2.215, allocations: 202.1 MB / 1.334 GB, free: 413.4 MB / 0.7637 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)