Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.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.R134a_ASHRAE_TestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 113.2 kB / 16.37 MB, free: 6.012 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.001169/0.001169, allocations: 191.2 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.726/1.726, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04878/0.04878, allocations: 9.092 MB / 279.6 MB, free: 2.98 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.001596/0.001597, allocations: 67.91 kB / 339.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2706, allocations: 48.15 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.126/0.3966, allocations: 129.6 MB / 0.5051 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.4867/0.8834, allocations: 111.1 MB / 0.6136 GB, free: 14.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008517/0.8843, allocations: 8.5 kB / 0.6136 GB, free: 14.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004056/0.8884, allocations: 1.374 MB / 0.615 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005995/0.8944, allocations: 1.646 MB / 0.6166 GB, free: 13.8 MB / 430.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.1293/1.024, allocations: 29.35 MB / 0.6452 GB, free: 9.773 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002418/1.026, allocations: 1.4 MB / 0.6466 GB, free: 8.402 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003056/1.027, allocations: 133.8 kB / 0.6467 GB, free: 8.281 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0175/1.044, allocations: 8.957 MB / 0.6555 GB, free: 15.72 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007033/1.045, allocations: 378.3 kB / 0.6558 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.827e-05/1.045, allocations: 44 kB / 0.6559 GB, free: 15.33 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07819/1.123, allocations: 34.95 MB / 0.69 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/1.123, allocations: 126.6 kB / 0.6901 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007616/1.124, allocations: 302.3 kB / 0.6904 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05743/1.182, allocations: 14.06 MB / 0.7042 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.707e-06/1.182, allocations: 3.984 kB / 0.7042 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.565e-06/1.182, allocations: 0 / 0.7042 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.617e-05/1.182, allocations: 0 / 0.7042 GB, free: 15.35 MB / 0.4981 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.008198/1.19, allocations: 2.562 MB / 0.7067 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/1.19, allocations: 12.03 kB / 0.7067 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007105/1.191, allocations: 87.33 kB / 0.7068 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006314/1.191, allocations: 338.1 kB / 0.7071 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/1.191, allocations: 32.59 kB / 0.7071 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.29e-05/1.192, allocations: 39.94 kB / 0.7071 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/1.193, allocations: 0.596 MB / 0.7077 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/1.193, allocations: 8.906 kB / 0.7077 GB, free: 11.58 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.776e-05/1.193, allocations: 12 kB / 0.7078 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/1.193, allocations: 23.97 kB / 0.7078 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/1.194, allocations: 0.5444 MB / 0.7083 GB, free: 11 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002734/1.197, allocations: 2.543 MB / 0.7108 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/1.198, allocations: 0.4997 MB / 0.7113 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000533/1.199, allocations: 340.7 kB / 0.7116 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4454/1.644, allocations: 139 MB / 0.8473 GB, free: 86.05 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.434e-05/1.644, allocations: 38.84 kB / 0.8474 GB, free: 86.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=79): time 4.719e-06/1.644, allocations: 3.281 kB / 0.8474 GB, free: 86.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=83): time 0.005715/1.65, allocations: 2.325 MB / 0.8496 GB, free: 83.64 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/1.65, allocations: 59.34 kB / 0.8497 GB, free: 83.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/1.65, allocations: 252.9 kB / 0.8499 GB, free: 83.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/1.65, allocations: 41.08 kB / 0.85 GB, free: 83.28 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.883e-05/1.651, allocations: 185.2 kB / 0.8501 GB, free: 83.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/1.651, allocations: 266.9 kB / 0.8504 GB, free: 82.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/1.651, allocations: 98.11 kB / 0.8505 GB, free: 82.73 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.638e-05/1.651, allocations: 354.8 kB / 0.8508 GB, free: 82.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/1.651, allocations: 269.3 kB / 0.8511 GB, free: 82.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004495/1.652, allocations: 400.4 kB / 0.8515 GB, free: 81.68 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009021/1.653, allocations: 0.6923 MB / 0.8521 GB, free: 80.95 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.653, allocations: 7.938 kB / 0.8522 GB, free: 80.94 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001199/1.654, allocations: 0.7939 MB / 0.8529 GB, free: 80.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/1.654, allocations: 4 kB / 0.8529 GB, free: 80.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/1.654, allocations: 4 kB / 0.8529 GB, free: 80.12 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002557/1.654, allocations: 61.67 kB / 0.853 GB, free: 80.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003795/1.655, allocations: 100.1 kB / 0.8531 GB, free: 79.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06213/1.717, allocations: 17.26 MB / 0.8699 GB, free: 62.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005465/1.717, allocations: 36.03 kB / 0.87 GB, free: 62.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/1.717, allocations: 20 kB / 0.87 GB, free: 62.24 MB / 0.4981 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.0003489/1.718, allocations: 193.4 kB / 0.8702 GB, free: 62.05 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.195e-05/1.718, allocations: 39.53 kB / 0.8702 GB, free: 62.01 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/1.72, allocations: 1.541 MB / 0.8717 GB, free: 60.39 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/1.72, allocations: 12 kB / 0.8717 GB, free: 60.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/1.72, allocations: 3.938 kB / 0.8717 GB, free: 60.38 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001184/1.721, allocations: 1.143 MB / 0.8729 GB, free: 59.15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/1.723, allocations: 1.59 MB / 0.8744 GB, free: 57.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/1.723, allocations: 0.8125 kB / 0.8744 GB, free: 57.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/1.723, allocations: 87.91 kB / 0.8745 GB, free: 57.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/1.723, allocations: 48.73 kB / 0.8745 GB, free: 57.38 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/1.724, allocations: 8 kB / 0.8745 GB, free: 57.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008543/1.724, allocations: 1.422 MB / 0.8759 GB, free: 55.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/1.724, allocations: 4.156 kB / 0.8759 GB, free: 55.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/1.726, allocations: 1.178 MB / 0.8771 GB, free: 54.61 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/1.726, allocations: 119.2 kB / 0.8772 GB, free: 54.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.464e-05/1.726, allocations: 11.94 kB / 0.8772 GB, free: 54.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/1.726, allocations: 28.05 kB / 0.8772 GB, free: 54.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/1.727, allocations: 47.88 kB / 0.8773 GB, free: 54.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/1.727, allocations: 11.98 kB / 0.8773 GB, free: 54.38 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002351/1.727, allocations: 251 kB / 0.8775 GB, free: 54.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.727, allocations: 0 / 0.8775 GB, free: 54.12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01242/1.739, allocations: 3.511 MB / 0.881 GB, free: 51.07 MB / 0.4981 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.02152/1.761, allocations: 4.538 MB / 0.8854 GB, free: 47.05 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002306/1.763, allocations: 0.9606 MB / 0.8863 GB, free: 46.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/1.763, allocations: 4 kB / 0.8863 GB, free: 46.06 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008197/1.764, allocations: 487.1 kB / 0.8868 GB, free: 45.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/1.766, allocations: 373.5 kB / 0.8872 GB, free: 45.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/1.768, allocations: 1.155 MB / 0.8883 GB, free: 44.06 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/1.768, allocations: 0.8486 MB / 0.8891 GB, free: 43.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003828/1.769, allocations: 166.8 kB / 0.8893 GB, free: 43.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.477e-05/1.769, allocations: 43.42 kB / 0.8893 GB, free: 42.98 MB / 0.4981 GB Notification: Performance of SimCode: time 8.52e-07/1.769, allocations: 0 / 0.8893 GB, free: 42.98 MB / 0.4981 GB Notification: Performance of Templates: time 0.4672/2.236, allocations: 125.9 MB / 1.012 GB, free: 152.3 MB / 0.4981 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1)