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.007388/0.007388, allocations: 100.5 kB / 15.73 MB, free: 6.027 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.00173/0.001731, allocations: 187 kB / 16.67 MB, free: 5.969 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.387/1.387, allocations: 205.1 MB / 222.6 MB, free: 4.371 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04535/0.04535, allocations: 9.088 MB / 279 MB, free: 11.95 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.001504/0.001504, allocations: 79.88 kB / 387.5 MB, free: 7.934 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2463, allocations: 48.14 MB / 435.7 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.1347/0.381, allocations: 129.6 MB / 0.552 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.334/0.715, allocations: 111.1 MB / 0.6605 GB, free: 288 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006233/0.7157, allocations: 6.812 kB / 0.6606 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002919/0.7187, allocations: 1.361 MB / 0.6619 GB, free: 280 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003618/0.7223, allocations: 1.666 MB / 0.6635 GB, free: 224 kB / 478.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.06963/0.792, allocations: 29.34 MB / 0.6922 GB, free: 6.855 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001902/0.7939, allocations: 1.403 MB / 0.6935 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.7941, allocations: 133.5 kB / 0.6937 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0142/0.8083, allocations: 8.958 MB / 0.7024 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005261/0.8089, allocations: 382.7 kB / 0.7028 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.153e-05/0.809, allocations: 40 kB / 0.7028 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05934/0.8683, allocations: 34.95 MB / 0.737 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.8686, allocations: 115.2 kB / 0.7371 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005296/0.8691, allocations: 313.6 kB / 0.7374 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03934/0.9085, allocations: 14.06 MB / 0.7511 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.9085, allocations: 0 / 0.7511 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9085, allocations: 0 / 0.7511 GB, free: 1.246 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.15e-05/0.9086, allocations: 0 / 0.7511 GB, free: 1.246 MB / 0.5294 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.006147/0.9147, allocations: 2.578 MB / 0.7536 GB, free: 14.62 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.9148, allocations: 8.031 kB / 0.7536 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006271/0.9154, allocations: 87.39 kB / 0.7537 GB, free: 14.53 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/0.916, allocations: 338.7 kB / 0.754 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.89e-05/0.916, allocations: 32.66 kB / 0.7541 GB, free: 14.13 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-05/0.9161, allocations: 36 kB / 0.7541 GB, free: 14.1 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.9174, allocations: 0.604 MB / 0.7547 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.9175, allocations: 0 / 0.7547 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.137e-05/0.9175, allocations: 17.12 kB / 0.7547 GB, free: 13.46 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.038e-05/0.9176, allocations: 15.12 kB / 0.7547 GB, free: 13.45 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.9189, allocations: 0.5481 MB / 0.7552 GB, free: 12.91 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.9216, allocations: 2.55 MB / 0.7577 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.9228, allocations: 0.4941 MB / 0.7582 GB, free: 9.633 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.9234, allocations: 347.8 kB / 0.7585 GB, free: 9.293 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4098/1.333, allocations: 139 MB / 0.8943 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/1.333, allocations: 40.81 kB / 0.8943 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.385e-06/1.333, allocations: 3.094 kB / 0.8943 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005355/1.339, allocations: 2.325 MB / 0.8966 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.924e-05/1.339, allocations: 55.41 kB / 0.8966 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/1.339, allocations: 256.7 kB / 0.8969 GB, free: 218 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/1.339, allocations: 33.7 kB / 0.8969 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.573e-05/1.339, allocations: 189.1 kB / 0.8971 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.882e-05/1.339, allocations: 267 kB / 0.8973 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/1.339, allocations: 98.11 kB / 0.8974 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.505e-05/1.339, allocations: 350.8 kB / 0.8978 GB, free: 217 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000427/1.34, allocations: 273.2 kB / 0.898 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004541/1.34, allocations: 394.9 kB / 0.8984 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008976/1.341, allocations: 0.7019 MB / 0.8991 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.341, allocations: 1.5 kB / 0.8991 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001219/1.342, allocations: 0.7868 MB / 0.8999 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/1.342, allocations: 4 kB / 0.8999 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/1.342, allocations: 4.844 kB / 0.8999 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002363/1.343, allocations: 63.27 kB / 0.8999 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003761/1.343, allocations: 102.5 kB / 0.9 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06426/1.407, allocations: 17.26 MB / 0.9169 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/1.408, allocations: 27.97 kB / 0.9169 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/1.408, allocations: 20 kB / 0.9169 GB, free: 196.9 MB / 0.6075 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.0002069/1.408, allocations: 180.7 kB / 0.9171 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.293e-05/1.408, allocations: 58 kB / 0.9172 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001579/1.41, allocations: 1.543 MB / 0.9187 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/1.41, allocations: 15.92 kB / 0.9187 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/1.41, allocations: 0 / 0.9187 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001142/1.411, allocations: 1.134 MB / 0.9198 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/1.412, allocations: 1.592 MB / 0.9213 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.413, allocations: 3.938 kB / 0.9213 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003242/1.413, allocations: 83.88 kB / 0.9214 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001844/1.413, allocations: 40.84 kB / 0.9215 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/1.413, allocations: 19.98 kB / 0.9215 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006557/1.414, allocations: 1.418 MB / 0.9229 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/1.414, allocations: 0 / 0.9229 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001554/1.415, allocations: 1.182 MB / 0.924 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.072e-05/1.415, allocations: 123.8 kB / 0.9241 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/1.415, allocations: 8 kB / 0.9242 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/1.416, allocations: 27.97 kB / 0.9242 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.265e-05/1.416, allocations: 39.94 kB / 0.9242 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/1.416, allocations: 15.98 kB / 0.9242 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001778/1.416, allocations: 243 kB / 0.9245 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/1.416, allocations: 0 / 0.9245 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007/1.423, allocations: 3.522 MB / 0.9279 GB, free: 185.7 MB / 0.6075 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.0128/1.436, allocations: 4.543 MB / 0.9323 GB, free: 181.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001578/1.437, allocations: 0.9451 MB / 0.9333 GB, free: 180.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.437, allocations: 0 / 0.9333 GB, free: 180.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007198/1.438, allocations: 0.4914 MB / 0.9337 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/1.44, allocations: 380.8 kB / 0.9341 GB, free: 179.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/1.441, allocations: 1.15 MB / 0.9352 GB, free: 178.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/1.442, allocations: 0.8565 MB / 0.9361 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003331/1.442, allocations: 154.6 kB / 0.9362 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/1.442, allocations: 43.38 kB / 0.9363 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/1.442, allocations: 0 / 0.9363 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of Templates: time 0.1216/1.564, allocations: 126.2 MB / 1.059 GB, free: 51.3 MB / 0.6075 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1)