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.0007929/0.0007929, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0008601/0.0008603, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04357/0.04357, allocations: 9.065 MB / 279.5 MB, free: 12.25 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.0004991/0.0004992, allocations: 12 kB / 339.1 MB, free: 26.01 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07057/0.07109, allocations: 49.19 MB / 388.3 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.2612/0.3323, allocations: 120.7 MB / 0.4971 GB, free: 15.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2986/0.631, allocations: 103.9 MB / 0.5986 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000538/0.6315, allocations: 6.906 kB / 0.5986 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002519/0.6341, allocations: 1.068 MB / 0.5996 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002808/0.6369, allocations: 1.328 MB / 0.6009 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05125/0.6881, allocations: 22.46 MB / 0.6228 GB, free: 9.938 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001793/0.69, allocations: 1.572 MB / 0.6244 GB, free: 9.938 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.6901, allocations: 90.95 kB / 0.6245 GB, free: 9.926 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01394/0.7041, allocations: 8.811 MB / 0.6331 GB, free: 8.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004537/0.7046, allocations: 367.6 kB / 0.6334 GB, free: 8.551 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.184e-05/0.7046, allocations: 21.16 kB / 0.6334 GB, free: 8.551 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04629/0.7509, allocations: 27.58 MB / 0.6604 GB, free: 12.17 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.7512, allocations: 91.25 kB / 0.6605 GB, free: 12.11 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003215/0.7515, allocations: 148.2 kB / 0.6606 GB, free: 11.99 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01552/0.767, allocations: 8.563 MB / 0.669 GB, free: 5.16 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.7671, allocations: 7.938 kB / 0.669 GB, free: 5.152 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7671, allocations: 0 / 0.669 GB, free: 5.152 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.7671, allocations: 0 / 0.669 GB, free: 5.152 MB / 462.1 MB 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.005046/0.7721, allocations: 2.49 MB / 0.6714 GB, free: 2.711 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.7722, allocations: 8.031 kB / 0.6714 GB, free: 2.703 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000598/0.7728, allocations: 88.16 kB / 0.6715 GB, free: 2.617 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.7732, allocations: 329.3 kB / 0.6718 GB, free: 2.309 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.161e-05/0.7732, allocations: 29.47 kB / 0.6718 GB, free: 2.293 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.827e-05/0.7732, allocations: 34.66 kB / 0.6719 GB, free: 2.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.7744, allocations: 0.611 MB / 0.6725 GB, free: 1.824 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.7744, allocations: 7.953 kB / 0.6725 GB, free: 1.816 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.7745, allocations: 14.94 kB / 0.6725 GB, free: 1.812 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.7745, allocations: 13.5 kB / 0.6725 GB, free: 1.805 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.7757, allocations: 0.5748 MB / 0.6731 GB, free: 1.395 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002271/0.778, allocations: 2.549 MB / 0.6755 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.779, allocations: 0.5184 MB / 0.676 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004798/0.7795, allocations: 350.5 kB / 0.6764 GB, free: 14.48 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3482/1.128, allocations: 135.8 MB / 0.809 GB, free: 278.1 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/1.128, allocations: 37.97 kB / 0.8091 GB, free: 278.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 3.136e-06/1.128, allocations: 0.5312 kB / 0.8091 GB, free: 278.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.006081/1.134, allocations: 2.392 MB / 0.8114 GB, free: 277.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/1.134, allocations: 62.31 kB / 0.8114 GB, free: 277.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/1.134, allocations: 252.6 kB / 0.8117 GB, free: 277.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/1.134, allocations: 31.92 kB / 0.8117 GB, free: 277.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.776e-05/1.134, allocations: 185.8 kB / 0.8119 GB, free: 277.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/1.135, allocations: 268.5 kB / 0.8122 GB, free: 277.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.965e-05/1.135, allocations: 11.02 kB / 0.8122 GB, free: 277.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.283e-05/1.135, allocations: 352 kB / 0.8125 GB, free: 276.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/1.135, allocations: 279.6 kB / 0.8128 GB, free: 276.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/1.136, allocations: 415.7 kB / 0.8132 GB, free: 276.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/1.136, allocations: 327.9 kB / 0.8135 GB, free: 276.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/1.136, allocations: 1.031 kB / 0.8135 GB, free: 276.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001387/1.138, allocations: 0.8136 MB / 0.8143 GB, free: 276 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.138, allocations: 7.906 kB / 0.8143 GB, free: 276 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/1.138, allocations: 3.75 kB / 0.8143 GB, free: 276 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002369/1.138, allocations: 65.7 kB / 0.8143 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004009/1.138, allocations: 102.2 kB / 0.8144 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08146/1.22, allocations: 22.7 MB / 0.8366 GB, free: 260.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/1.22, allocations: 63.86 kB / 0.8367 GB, free: 260.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/1.22, allocations: 18.08 kB / 0.8367 GB, free: 260.7 MB / 0.5762 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.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002362/1.22, allocations: 181.7 kB / 0.8369 GB, free: 260.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.836e-05/1.221, allocations: 55.38 kB / 0.8369 GB, free: 260.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/1.222, allocations: 1.575 MB / 0.8384 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/1.222, allocations: 19.5 kB / 0.8385 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/1.222, allocations: 0 / 0.8385 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001112/1.223, allocations: 1.158 MB / 0.8396 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/1.225, allocations: 1.614 MB / 0.8412 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/1.225, allocations: 4 kB / 0.8412 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/1.225, allocations: 87.97 kB / 0.8413 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/1.226, allocations: 48.73 kB / 0.8413 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/1.226, allocations: 15.95 kB / 0.8413 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00067/1.226, allocations: 1.327 MB / 0.8426 GB, free: 254.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/1.226, allocations: 32 / 0.8426 GB, free: 254.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/1.228, allocations: 1.221 MB / 0.8438 GB, free: 253 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/1.228, allocations: 143.5 kB / 0.844 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.583e-05/1.228, allocations: 16.83 kB / 0.844 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003394/1.228, allocations: 47.88 kB / 0.844 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.658e-05/1.229, allocations: 43.92 kB / 0.8441 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/1.229, allocations: 15.98 kB / 0.8441 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000187/1.229, allocations: 247 kB / 0.8443 GB, free: 252.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.229, allocations: 0 / 0.8443 GB, free: 252.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006252/1.235, allocations: 3.184 MB / 0.8474 GB, free: 249.8 MB / 0.5762 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01206/1.247, allocations: 4.106 MB / 0.8514 GB, free: 246.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001328/1.248, allocations: 0.9555 MB / 0.8524 GB, free: 245.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.248, allocations: 0 / 0.8524 GB, free: 245.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005918/1.249, allocations: 0.4913 MB / 0.8528 GB, free: 244.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/1.25, allocations: 339.3 kB / 0.8532 GB, free: 244.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001423/1.252, allocations: 1.386 MB / 0.8545 GB, free: 242.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/1.252, allocations: 0.8564 MB / 0.8554 GB, free: 242 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003968/1.253, allocations: 154.3 kB / 0.8555 GB, free: 241.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.038e-05/1.253, allocations: 39.44 kB / 0.8555 GB, free: 241.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4.01e-07/1.253, allocations: 0 / 0.8555 GB, free: 241.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.1137/1.366, allocations: 117 MB / 0.9698 GB, free: 124.6 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: