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.001085/0.001085, allocations: 114.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.001096/0.001096, allocations: 193.2 kB / 17.31 MB, free: 5.602 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.317/1.317, 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.04665/0.04665, allocations: 9.092 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.001487/0.001487, allocations: 75.89 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.201, 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.1107/0.3117, allocations: 129.6 MB / 0.5051 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.26/0.5718, allocations: 111.1 MB / 0.6136 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004882/0.5723, allocations: 8.344 kB / 0.6136 GB, free: 14.45 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00251/0.5748, allocations: 1.367 MB / 0.615 GB, free: 14.13 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002855/0.5777, allocations: 1.647 MB / 0.6166 GB, free: 13.75 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.06619/0.6439, allocations: 29.35 MB / 0.6452 GB, free: 9.734 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.6457, allocations: 1.4 MB / 0.6466 GB, free: 8.363 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002247/0.6459, allocations: 134.6 kB / 0.6467 GB, free: 8.242 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01369/0.6596, allocations: 8.964 MB / 0.6555 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004648/0.6601, allocations: 370.5 kB / 0.6558 GB, free: 15.34 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.854e-05/0.6602, allocations: 44 kB / 0.6559 GB, free: 15.3 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05615/0.7163, allocations: 34.96 MB / 0.69 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.7166, allocations: 126.6 kB / 0.6901 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004726/0.7171, allocations: 313.4 kB / 0.6904 GB, free: 13.01 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03813/0.7552, allocations: 14.05 MB / 0.7042 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.7553, allocations: 3.938 kB / 0.7042 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.7553, allocations: 0 / 0.7042 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.906e-06/0.7553, allocations: 0 / 0.7042 GB, free: 15.31 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.005243/0.7605, allocations: 2.571 MB / 0.7067 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.7606, allocations: 8.031 kB / 0.7067 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000594/0.7612, allocations: 83.39 kB / 0.7068 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/0.7616, allocations: 342.1 kB / 0.7071 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/0.7617, allocations: 28.66 kB / 0.7071 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.7617, allocations: 35.94 kB / 0.7071 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.763, allocations: 0.5961 MB / 0.7077 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.763, allocations: 11.89 kB / 0.7077 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.7631, allocations: 16 kB / 0.7078 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.7631, allocations: 15.98 kB / 0.7078 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.7644, allocations: 0.5484 MB / 0.7083 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.7669, allocations: 2.547 MB / 0.7108 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.768, allocations: 0.5035 MB / 0.7113 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005299/0.7686, allocations: 331.8 kB / 0.7116 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3423/1.111, allocations: 139 MB / 0.8473 GB, free: 118 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/1.111, allocations: 38.83 kB / 0.8474 GB, free: 118 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=79): time 2.074e-06/1.111, allocations: 0 / 0.8474 GB, free: 118 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83): time 0.005292/1.116, allocations: 2.341 MB / 0.8496 GB, free: 115.6 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.75e-05/1.116, allocations: 55.41 kB / 0.8497 GB, free: 115.5 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002051/1.117, allocations: 252.9 kB / 0.8499 GB, free: 115.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/1.117, allocations: 33.7 kB / 0.85 GB, free: 115.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.972e-05/1.117, allocations: 188.7 kB / 0.8501 GB, free: 115 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/1.117, allocations: 263.2 kB / 0.8504 GB, free: 114.8 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/1.117, allocations: 102.1 kB / 0.8505 GB, free: 114.7 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.688e-05/1.117, allocations: 350.8 kB / 0.8508 GB, free: 114.3 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/1.117, allocations: 265.3 kB / 0.8511 GB, free: 114.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004762/1.118, allocations: 396.5 kB / 0.8515 GB, free: 113.6 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009321/1.119, allocations: 0.7085 MB / 0.8521 GB, free: 112.9 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/1.119, allocations: 3.938 kB / 0.8522 GB, free: 112.9 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001409/1.12, allocations: 0.7979 MB / 0.8529 GB, free: 112.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/1.12, allocations: 8 kB / 0.8529 GB, free: 112.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/1.12, allocations: 4 kB / 0.8529 GB, free: 112.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/1.121, allocations: 61.34 kB / 0.853 GB, free: 112 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004087/1.121, allocations: 103.8 kB / 0.8531 GB, free: 111.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06531/1.186, allocations: 17.25 MB / 0.8699 GB, free: 94.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/1.187, allocations: 29.86 kB / 0.87 GB, free: 94.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/1.187, allocations: 24.05 kB / 0.87 GB, free: 94.19 MB / 0.5137 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.0002257/1.187, allocations: 195.6 kB / 0.8702 GB, free: 93.99 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/1.187, allocations: 39.53 kB / 0.8702 GB, free: 93.95 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/1.189, allocations: 1.541 MB / 0.8717 GB, free: 92.35 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/1.189, allocations: 11.98 kB / 0.8717 GB, free: 92.34 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/1.189, allocations: 4 kB / 0.8717 GB, free: 92.33 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001119/1.19, allocations: 1.136 MB / 0.8728 GB, free: 91.11 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/1.192, allocations: 1.593 MB / 0.8744 GB, free: 89.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.192, allocations: 4 kB / 0.8744 GB, free: 89.45 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003213/1.192, allocations: 79.92 kB / 0.8745 GB, free: 89.38 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/1.192, allocations: 52.7 kB / 0.8745 GB, free: 89.32 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/1.192, allocations: 4 kB / 0.8745 GB, free: 89.32 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006754/1.193, allocations: 1.423 MB / 0.8759 GB, free: 87.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.193, allocations: 4.188 kB / 0.8759 GB, free: 87.75 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/1.195, allocations: 1.174 MB / 0.8771 GB, free: 86.56 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.892e-05/1.195, allocations: 112.6 kB / 0.8772 GB, free: 86.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.181e-05/1.195, allocations: 11.94 kB / 0.8772 GB, free: 86.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/1.195, allocations: 27.97 kB / 0.8772 GB, free: 86.39 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.692e-05/1.195, allocations: 54.19 kB / 0.8773 GB, free: 86.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.634e-05/1.195, allocations: 13.12 kB / 0.8773 GB, free: 86.33 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001895/1.195, allocations: 243 kB / 0.8775 GB, free: 86.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.5e-07/1.195, allocations: 3.938 kB / 0.8775 GB, free: 86.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006802/1.202, allocations: 3.511 MB / 0.881 GB, free: 83.03 MB / 0.5137 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.01388/1.216, allocations: 4.544 MB / 0.8854 GB, free: 78.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001594/1.218, allocations: 0.9607 MB / 0.8863 GB, free: 77.98 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/1.218, allocations: 0 / 0.8863 GB, free: 77.98 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007536/1.218, allocations: 491.1 kB / 0.8868 GB, free: 77.48 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00167/1.22, allocations: 376.9 kB / 0.8872 GB, free: 77.13 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/1.222, allocations: 1.157 MB / 0.8883 GB, free: 75.97 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/1.222, allocations: 0.8525 MB / 0.8891 GB, free: 75.09 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003534/1.222, allocations: 163 kB / 0.8893 GB, free: 74.93 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.923e-05/1.222, allocations: 39.42 kB / 0.8893 GB, free: 74.89 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/1.222, allocations: 0 / 0.8893 GB, free: 74.89 MB / 0.5137 GB Notification: Performance of Templates: time 0.2878/1.51, allocations: 125.9 MB / 1.012 GB, free: 201.2 MB / 0.5137 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 gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1)