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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001305/0.001306, allocations: 182.7 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04587/0.04587, allocations: 9.086 MB / 25.82 MB, free: 3.406 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.1 MB / 233.2 MB, free: 14.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000993/0.0009929, allocations: 100 kB / 282.1 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 51.92 kB / 341.1 MB, free: 4.098 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2617, allocations: 48.16 MB / 389.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.4069/0.6686, allocations: 131.3 MB / 0.5084 GB, free: 1.562 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.106/0.7747, allocations: 112.9 MB / 0.6186 GB, free: 14.79 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006509/0.7754, allocations: 7.938 kB / 0.6186 GB, free: 14.79 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003015/0.7785, allocations: 1.171 MB / 0.6197 GB, free: 13.61 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003592/0.7821, allocations: 1.466 MB / 0.6212 GB, free: 12.14 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.08868/0.8708, allocations: 24.91 MB / 0.6455 GB, free: 3.148 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002284/0.8731, allocations: 1.839 MB / 0.6473 GB, free: 1.305 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002935/0.8734, allocations: 101.7 kB / 0.6474 GB, free: 1.207 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01895/0.8923, allocations: 8.394 MB / 0.6556 GB, free: 8.797 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005713/0.893, allocations: 390.4 kB / 0.656 GB, free: 8.414 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 6.185e-05/0.893, allocations: 20 kB / 0.656 GB, free: 8.395 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3745/1.268, allocations: 31.06 MB / 0.6863 GB, free: 39.86 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002802/1.268, allocations: 96.69 kB / 0.6864 GB, free: 39.86 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005715/1.268, allocations: 292 kB / 0.6867 GB, free: 39.86 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05183/1.32, allocations: 13.64 MB / 0.7 GB, free: 39.75 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/1.32, allocations: 3.344 kB / 0.7 GB, free: 39.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.32, allocations: 0 / 0.7 GB, free: 39.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/1.32, allocations: 0 / 0.7 GB, free: 39.75 MB / 490.7 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.009745/1.33, allocations: 2.567 MB / 0.7025 GB, free: 38.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/1.33, allocations: 10.09 kB / 0.7025 GB, free: 38.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009557/1.331, allocations: 86.84 kB / 0.7026 GB, free: 38.34 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005492/1.332, allocations: 334.8 kB / 0.7029 GB, free: 38.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.915e-05/1.332, allocations: 34.41 kB / 0.7029 GB, free: 38.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.421e-05/1.332, allocations: 34.5 kB / 0.703 GB, free: 38.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001733/1.334, allocations: 0.5917 MB / 0.7036 GB, free: 38.02 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/1.334, allocations: 9.875 kB / 0.7036 GB, free: 38.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.704e-05/1.334, allocations: 17.62 kB / 0.7036 GB, free: 38.02 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/1.334, allocations: 20.19 kB / 0.7036 GB, free: 38.02 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/1.336, allocations: 0.5473 MB / 0.7041 GB, free: 38.02 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002981/1.339, allocations: 2.543 MB / 0.7066 GB, free: 36.29 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/1.34, allocations: 0.4991 MB / 0.7071 GB, free: 36.26 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000718/1.341, allocations: 337.5 kB / 0.7074 GB, free: 36.25 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3181/1.659, allocations: 139 MB / 0.8432 GB, free: 14.17 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.268e-05/1.659, allocations: 43.39 kB / 0.8432 GB, free: 14.12 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=79): time 4.498e-06/1.659, allocations: 0 / 0.8432 GB, free: 14.12 MB / 0.5886 GB Notification: Performance of matching and sorting (n=83): time 0.01002/1.669, allocations: 2.33 MB / 0.8455 GB, free: 12.32 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/1.669, allocations: 55.41 kB / 0.8455 GB, free: 12.25 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000441/1.67, allocations: 254.2 kB / 0.8458 GB, free: 12.03 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.699e-05/1.67, allocations: 35.27 kB / 0.8458 GB, free: 12 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/1.67, allocations: 181.5 kB / 0.846 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002257/1.67, allocations: 268.7 kB / 0.8462 GB, free: 11.62 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/1.671, allocations: 103.7 kB / 0.8463 GB, free: 11.55 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000205/1.671, allocations: 357 kB / 0.8467 GB, free: 11.21 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007996/1.672, allocations: 260.5 kB / 0.8469 GB, free: 11.06 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009192/1.673, allocations: 405.8 kB / 0.8473 GB, free: 10.74 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001779/1.674, allocations: 0.7003 MB / 0.848 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/1.674, allocations: 4 kB / 0.848 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002378/1.677, allocations: 0.7841 MB / 0.8488 GB, free: 9.727 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/1.677, allocations: 5.5 kB / 0.8488 GB, free: 9.723 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/1.677, allocations: 9.719 kB / 0.8488 GB, free: 9.715 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004101/1.677, allocations: 57.12 kB / 0.8488 GB, free: 9.664 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000693/1.678, allocations: 101.6 kB / 0.8489 GB, free: 9.574 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1196/1.798, allocations: 22.76 MB / 0.8712 GB, free: 2.707 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/1.798, allocations: 50.88 kB / 0.8712 GB, free: 2.664 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.607e-05/1.798, allocations: 19.67 kB / 0.8712 GB, free: 2.648 MB / 0.6042 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.0003384/1.799, allocations: 190.4 kB / 0.8714 GB, free: 2.5 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/1.799, allocations: 43.47 kB / 0.8714 GB, free: 2.457 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002106/1.801, allocations: 1.541 MB / 0.873 GB, free: 1.371 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.236e-05/1.801, allocations: 14.62 kB / 0.873 GB, free: 1.363 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.801, allocations: 7.984 kB / 0.873 GB, free: 1.355 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001704/1.803, allocations: 1.136 MB / 0.8741 GB, free: 408 kB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002767/1.805, allocations: 1.599 MB / 0.8756 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/1.805, allocations: 1.859 kB / 0.8756 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/1.806, allocations: 79.89 kB / 0.8757 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002174/1.806, allocations: 40.42 kB / 0.8758 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/1.806, allocations: 11 kB / 0.8758 GB, free: 15.13 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001137/1.807, allocations: 1.322 MB / 0.8771 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.807, allocations: 4.062 kB / 0.8771 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03818/1.845, allocations: 11.05 MB / 0.8879 GB, free: 3.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/1.846, allocations: 124.8 kB / 0.888 GB, free: 3.684 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/1.846, allocations: 11.09 kB / 0.888 GB, free: 3.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/1.846, allocations: 43.31 kB / 0.888 GB, free: 3.641 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/1.846, allocations: 42.88 kB / 0.8881 GB, free: 3.605 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/1.846, allocations: 15.42 kB / 0.8881 GB, free: 3.594 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002589/1.847, allocations: 246.1 kB / 0.8883 GB, free: 3.402 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/1.847, allocations: 0 / 0.8883 GB, free: 3.402 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01142/1.858, allocations: 3.287 MB / 0.8915 GB, free: 272 kB / 0.6198 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.2595/2.118, allocations: 4.112 MB / 0.8955 GB, free: 194.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001937/2.12, allocations: 0.9567 MB / 0.8965 GB, free: 194.7 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/2.12, allocations: 0 / 0.8965 GB, free: 194.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0008664/2.121, allocations: 488.2 kB / 0.8969 GB, free: 194.6 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/2.123, allocations: 380.8 kB / 0.8973 GB, free: 194.6 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/2.126, allocations: 1.982 MB / 0.8992 GB, free: 193.7 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/2.126, allocations: 0.8712 MB / 0.9001 GB, free: 193 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0006082/2.127, allocations: 165.2 kB / 0.9002 GB, free: 193 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/2.127, allocations: 46.09 kB / 0.9003 GB, free: 193 MB / 0.6198 GB Notification: Performance of SimCode: time 6.41e-07/2.127, allocations: 0 / 0.9003 GB, free: 193 MB / 0.6198 GB Notification: Performance of Templates: time 0.136/2.263, allocations: 119.3 MB / 1.017 GB, free: 107.2 MB / 0.6198 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)