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.002263/0.002263, allocations: 112.6 kB / 16.37 MB, free: 6 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.002445/0.002445, allocations: 196 kB / 17.31 MB, free: 5.613 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.824/1.824, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04999/0.04999, allocations: 9.091 MB / 279.6 MB, free: 2.984 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.00197/0.00197, allocations: 67.91 kB / 339.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4362/0.4382, allocations: 48.15 MB / 387.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.7595/1.198, allocations: 197.7 MB / 0.5716 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1597/1.358, allocations: 143.7 MB / 0.7119 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/1.359, allocations: 11.94 kB / 0.7119 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.005551/1.365, allocations: 1.845 MB / 0.7137 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007882/1.373, allocations: 2.531 MB / 0.7162 GB, free: 2.73 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.737/2.11, allocations: 39.09 MB / 0.7544 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00527/2.115, allocations: 1.972 MB / 0.7563 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006612/2.116, allocations: 209 kB / 0.7565 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002922/2.119, allocations: 0.8002 MB / 0.7573 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001304/2.12, allocations: 0.5358 MB / 0.7578 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001277/2.12, allocations: 58.72 kB / 0.7579 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.1299/2.25, allocations: 46.7 MB / 0.8035 GB, free: 296 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0007211/2.251, allocations: 168.6 kB / 0.8036 GB, free: 156 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001621/2.252, allocations: 425.7 kB / 0.804 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.1313/2.384, allocations: 18.76 MB / 0.8224 GB, free: 14.64 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.148e-06/2.384, allocations: 2.812 kB / 0.8224 GB, free: 14.64 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.716e-06/2.384, allocations: 0 / 0.8224 GB, free: 14.64 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.437e-05/2.384, allocations: 0 / 0.8224 GB, free: 14.64 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.01201/2.396, allocations: 3.34 MB / 0.8256 GB, free: 11.29 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/2.396, allocations: 12.03 kB / 0.8256 GB, free: 11.28 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009765/2.397, allocations: 127 kB / 0.8258 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007999/2.398, allocations: 414.9 kB / 0.8261 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.314e-05/2.398, allocations: 38.09 kB / 0.8262 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.086e-05/2.398, allocations: 51.91 kB / 0.8262 GB, free: 10.63 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0019/2.4, allocations: 0.8152 MB / 0.827 GB, free: 9.797 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.58e-05/2.4, allocations: 0 / 0.827 GB, free: 9.797 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.766e-05/2.4, allocations: 28 kB / 0.8271 GB, free: 9.77 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.471e-05/2.4, allocations: 28.84 kB / 0.8271 GB, free: 9.746 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/2.402, allocations: 0.752 MB / 0.8278 GB, free: 8.996 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003767/2.405, allocations: 3.422 MB / 0.8312 GB, free: 5.293 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001512/2.407, allocations: 0.6841 MB / 0.8318 GB, free: 4.598 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007485/2.408, allocations: 477.5 kB / 0.8323 GB, free: 4.133 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7787/3.186, allocations: 185.3 MB / 1.013 GB, free: 153.9 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/3.187, allocations: 42.41 kB / 1.013 GB, free: 153.8 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 5.48e-06/3.187, allocations: 1.312 kB / 1.013 GB, free: 153.8 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.0104/3.197, allocations: 3.416 MB / 1.017 GB, free: 153.3 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/3.197, allocations: 59 kB / 1.017 GB, free: 153.3 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004085/3.197, allocations: 309.2 kB / 1.017 GB, free: 153.2 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.567e-05/3.198, allocations: 39.73 kB / 1.017 GB, free: 153.1 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/3.198, allocations: 232.1 kB / 1.017 GB, free: 153 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/3.198, allocations: 375.9 kB / 1.018 GB, free: 152.7 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/3.198, allocations: 143.8 kB / 1.018 GB, free: 152.7 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001145/3.198, allocations: 370.5 kB / 1.018 GB, free: 152.4 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008001/3.199, allocations: 395.4 kB / 1.018 GB, free: 152.4 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009169/3.2, allocations: 0.5361 MB / 1.019 GB, free: 152.3 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/3.202, allocations: 0.9774 MB / 1.02 GB, free: 152.1 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/3.202, allocations: 2.781 kB / 1.02 GB, free: 152.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002159/3.204, allocations: 1.123 MB / 1.021 GB, free: 152 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/3.204, allocations: 8.281 kB / 1.021 GB, free: 152 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/3.204, allocations: 3.875 kB / 1.021 GB, free: 152 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000429/3.204, allocations: 102.1 kB / 1.021 GB, free: 152 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/3.205, allocations: 208.8 kB / 1.021 GB, free: 152 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.134/3.339, allocations: 35.26 MB / 1.056 GB, free: 138.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007205/3.34, allocations: 40.16 kB / 1.056 GB, free: 138.7 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/3.34, allocations: 25.39 kB / 1.056 GB, free: 138.7 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.0004041/3.341, allocations: 226.4 kB / 1.056 GB, free: 138.6 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/3.341, allocations: 60.47 kB / 1.056 GB, free: 138.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003094/3.344, allocations: 2.376 MB / 1.058 GB, free: 138.2 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.241e-05/3.344, allocations: 21.52 kB / 1.058 GB, free: 138.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/3.344, allocations: 5.156 kB / 1.058 GB, free: 138.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001938/3.346, allocations: 1.648 MB / 1.06 GB, free: 137.4 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003173/3.349, allocations: 2.463 MB / 1.062 GB, free: 136.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/3.349, allocations: 0 / 1.062 GB, free: 136.1 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004632/3.35, allocations: 118.7 kB / 1.063 GB, free: 136 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004634/3.35, allocations: 217.2 kB / 1.063 GB, free: 135.9 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/3.35, allocations: 11.12 kB / 1.063 GB, free: 135.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/3.352, allocations: 3.979 MB / 1.067 GB, free: 131.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/3.352, allocations: 80 / 1.067 GB, free: 131.9 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002819/3.355, allocations: 1.973 MB / 1.069 GB, free: 130.7 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002073/3.355, allocations: 132.2 kB / 1.069 GB, free: 130.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.113e-05/3.355, allocations: 11.38 kB / 1.069 GB, free: 130.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000401/3.356, allocations: 37.98 kB / 1.069 GB, free: 130.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/3.356, allocations: 68.48 kB / 1.069 GB, free: 130.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.98e-05/3.356, allocations: 26.44 kB / 1.069 GB, free: 130.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002598/3.356, allocations: 250.5 kB / 1.069 GB, free: 130.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.3e-07/3.356, allocations: 1.219 kB / 1.069 GB, free: 130.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01618/3.372, allocations: 5.462 MB / 1.074 GB, free: 125.9 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.03169/3.404, allocations: 6.791 MB / 1.081 GB, free: 121.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003372/3.408, allocations: 1.571 MB / 1.083 GB, free: 120.1 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/3.408, allocations: 0 / 1.083 GB, free: 120.1 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001178/3.409, allocations: 0.8218 MB / 1.083 GB, free: 119.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/3.411, allocations: 0.5174 MB / 1.084 GB, free: 119.2 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003027/3.414, allocations: 1.731 MB / 1.086 GB, free: 117.9 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/3.415, allocations: 0.9315 MB / 1.087 GB, free: 117 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005782/3.415, allocations: 185.3 kB / 1.087 GB, free: 116.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/3.416, allocations: 50.12 kB / 1.087 GB, free: 116.8 MB / 0.6856 GB Notification: Performance of SimCode: time 1.383e-06/3.416, allocations: 0 / 1.087 GB, free: 116.8 MB / 0.6856 GB Notification: Performance of Templates: time 0.5857/4.001, allocations: 201.9 MB / 1.284 GB, free: 301.3 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 cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)