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.0008337/0.0008336, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.006371/0.006371, allocations: 171.7 kB / 16.26 MB, free: 6.676 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.43/1.43, allocations: 205.4 MB / 222.5 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04467/0.04467, allocations: 9.068 MB / 279.8 MB, free: 12.14 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.0005237/0.0005241, allocations: 16 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07906/0.07959, allocations: 49.19 MB / 388.9 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.2711/0.3508, allocations: 129.6 MB / 0.5064 GB, free: 6.258 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3116/0.6625, allocations: 111.6 MB / 0.6153 GB, free: 1.75 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005474/0.663, allocations: 7.719 kB / 0.6154 GB, free: 1.75 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002735/0.6658, allocations: 1.178 MB / 0.6165 GB, free: 1.742 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003138/0.669, allocations: 1.459 MB / 0.6179 GB, free: 1.73 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05972/0.7287, allocations: 24.97 MB / 0.6423 GB, free: 436 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002246/0.731, allocations: 1.853 MB / 0.6441 GB, free: 0 / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002481/0.7312, allocations: 95.83 kB / 0.6442 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01407/0.7453, allocations: 8.407 MB / 0.6524 GB, free: 13.07 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004845/0.7458, allocations: 376.3 kB / 0.6528 GB, free: 12.99 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.143e-05/0.7459, allocations: 25.92 kB / 0.6528 GB, free: 12.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05491/0.8008, allocations: 31.06 MB / 0.6831 GB, free: 11.73 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.8011, allocations: 92.48 kB / 0.6832 GB, free: 11.68 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005438/0.8016, allocations: 307.4 kB / 0.6835 GB, free: 11.5 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03679/0.8384, allocations: 13.59 MB / 0.6968 GB, free: 1.113 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.8385, allocations: 0 / 0.6968 GB, free: 1.113 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.518e-06/0.8385, allocations: 6.719 kB / 0.6968 GB, free: 1.109 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.8385, allocations: 0 / 0.6968 GB, free: 1.109 MB / 478.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.00601/0.8445, allocations: 2.485 MB / 0.6992 GB, free: 14.67 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.8446, allocations: 8.031 kB / 0.6992 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007069/0.8453, allocations: 91.3 kB / 0.6993 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.8457, allocations: 334.3 kB / 0.6996 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.8458, allocations: 36.09 kB / 0.6997 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.316e-05/0.8459, allocations: 33.44 kB / 0.6997 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.8472, allocations: 0.613 MB / 0.7003 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.8473, allocations: 4 kB / 0.7003 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.629e-05/0.8473, allocations: 11.88 kB / 0.7003 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.8473, allocations: 17.34 kB / 0.7003 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.8488, allocations: 0.5753 MB / 0.7009 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.8514, allocations: 2.562 MB / 0.7034 GB, free: 10.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001178/0.8526, allocations: 0.5139 MB / 0.7039 GB, free: 10.38 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005552/0.8532, allocations: 350.2 kB / 0.7042 GB, free: 10.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3757/1.229, allocations: 135.8 MB / 0.8369 GB, free: 259.1 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/1.229, allocations: 39.31 kB / 0.8369 GB, free: 259.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 2.495e-06/1.229, allocations: 0 / 0.8369 GB, free: 259.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.00537/1.234, allocations: 2.407 MB / 0.8393 GB, free: 258.2 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/1.234, allocations: 62.19 kB / 0.8393 GB, free: 258.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/1.235, allocations: 253.2 kB / 0.8396 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/1.235, allocations: 33.64 kB / 0.8396 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.42e-05/1.235, allocations: 180.6 kB / 0.8398 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/1.235, allocations: 272.2 kB / 0.84 GB, free: 257.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/1.235, allocations: 56.78 kB / 0.8401 GB, free: 257.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.173e-05/1.235, allocations: 354.6 kB / 0.8404 GB, free: 257.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004541/1.235, allocations: 282.7 kB / 0.8407 GB, free: 257 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/1.236, allocations: 411.2 kB / 0.8411 GB, free: 256.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009745/1.237, allocations: 0.7245 MB / 0.8418 GB, free: 256.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/1.237, allocations: 3.906 kB / 0.8418 GB, free: 256.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001304/1.238, allocations: 0.8112 MB / 0.8426 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/1.238, allocations: 11.89 kB / 0.8426 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/1.238, allocations: 3.969 kB / 0.8426 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002399/1.239, allocations: 64.64 kB / 0.8427 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/1.239, allocations: 106.8 kB / 0.8428 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09257/1.332, allocations: 22.69 MB / 0.8649 GB, free: 237.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/1.332, allocations: 51.88 kB / 0.865 GB, free: 237.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/1.332, allocations: 25.41 kB / 0.865 GB, free: 237.6 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.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.0002405/1.332, allocations: 184.5 kB / 0.8652 GB, free: 237.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.218e-05/1.332, allocations: 39.53 kB / 0.8652 GB, free: 237.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/1.334, allocations: 1.58 MB / 0.8668 GB, free: 235.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/1.334, allocations: 13.31 kB / 0.8668 GB, free: 235.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/1.334, allocations: 0 / 0.8668 GB, free: 235.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001166/1.335, allocations: 1.172 MB / 0.8679 GB, free: 234.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/1.337, allocations: 1.618 MB / 0.8695 GB, free: 232.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/1.337, allocations: 3.391 kB / 0.8695 GB, free: 232.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/1.338, allocations: 95.47 kB / 0.8696 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002356/1.338, allocations: 44.8 kB / 0.8696 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/1.338, allocations: 11.94 kB / 0.8696 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006947/1.339, allocations: 1.328 MB / 0.8709 GB, free: 231.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.339, allocations: 0 / 0.8709 GB, free: 231.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/1.34, allocations: 1.223 MB / 0.8721 GB, free: 229.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001091/1.34, allocations: 140.4 kB / 0.8723 GB, free: 229.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.435e-05/1.34, allocations: 8.812 kB / 0.8723 GB, free: 229.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/1.341, allocations: 43.97 kB / 0.8723 GB, free: 229.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.382e-05/1.341, allocations: 43.94 kB / 0.8724 GB, free: 229.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/1.341, allocations: 19.98 kB / 0.8724 GB, free: 229.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000186/1.341, allocations: 235.1 kB / 0.8726 GB, free: 229.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/1.341, allocations: 0 / 0.8726 GB, free: 229.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006614/1.348, allocations: 3.187 MB / 0.8757 GB, free: 226.7 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 (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.362, allocations: 4.116 MB / 0.8797 GB, free: 223 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001532/1.363, allocations: 0.9712 MB / 0.8807 GB, free: 222 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.363, allocations: 0 / 0.8807 GB, free: 222 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006514/1.364, allocations: 491.3 kB / 0.8811 GB, free: 221.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/1.366, allocations: 382.4 kB / 0.8815 GB, free: 221.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/1.367, allocations: 1.437 MB / 0.8829 GB, free: 219.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/1.367, allocations: 0.8488 MB / 0.8837 GB, free: 218.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004064/1.368, allocations: 162.9 kB / 0.8839 GB, free: 218.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.475e-05/1.368, allocations: 49.17 kB / 0.8839 GB, free: 218.6 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/1.368, allocations: 0 / 0.8839 GB, free: 218.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.1172/1.485, allocations: 118 MB / 0.9992 GB, free: 100.4 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: