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.005099/0.005099, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001322/0.001322, allocations: 193.5 kB / 16.67 MB, free: 5.977 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.218/1.218, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04247/0.04247, allocations: 9.088 MB / 279 MB, free: 12.08 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.001315/0.001315, allocations: 64.45 kB / 387.5 MB, free: 7.961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.215, allocations: 48.15 MB / 435.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.1141/0.3292, allocations: 129.6 MB / 0.552 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2931/0.6223, allocations: 111.1 MB / 0.6605 GB, free: 280 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000513/0.6228, allocations: 13.44 kB / 0.6606 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002624/0.6255, allocations: 1.551 MB / 0.6621 GB, free: 268 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002763/0.6283, allocations: 1.836 MB / 0.6639 GB, free: 212 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.06419/0.6925, allocations: 31.16 MB / 0.6943 GB, free: 6.113 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001797/0.6943, allocations: 1.4 MB / 0.6957 GB, free: 5.102 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.6946, allocations: 129.3 kB / 0.6958 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01429/0.7089, allocations: 9.145 MB / 0.7047 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004927/0.7094, allocations: 379.5 kB / 0.7051 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.588e-05/0.7095, allocations: 44 kB / 0.7051 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05478/0.7643, allocations: 34.96 MB / 0.7393 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002803/0.7646, allocations: 119.3 kB / 0.7394 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005836/0.7652, allocations: 304.6 kB / 0.7397 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03835/0.8036, allocations: 14.06 MB / 0.7534 GB, free: 14.87 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.8036, allocations: 0 / 0.7534 GB, free: 14.87 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8036, allocations: 0 / 0.7534 GB, free: 14.87 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.719e-05/0.8036, allocations: 0 / 0.7534 GB, free: 14.87 MB / 0.545 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.005677/0.8093, allocations: 2.578 MB / 0.7559 GB, free: 12.25 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.8094, allocations: 8.031 kB / 0.7559 GB, free: 12.24 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006041/0.81, allocations: 83.39 kB / 0.756 GB, free: 12.16 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004735/0.8105, allocations: 343.1 kB / 0.7563 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.8105, allocations: 28.66 kB / 0.7563 GB, free: 11.76 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/0.8106, allocations: 32 kB / 0.7564 GB, free: 11.73 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.8118, allocations: 0.604 MB / 0.757 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.8118, allocations: 0 / 0.757 GB, free: 11.11 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.8119, allocations: 16 kB / 0.757 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.028e-05/0.8119, allocations: 22.8 kB / 0.757 GB, free: 11.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.8132, allocations: 0.5481 MB / 0.7575 GB, free: 10.53 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.8155, allocations: 2.551 MB / 0.76 GB, free: 7.754 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.8166, allocations: 0.498 MB / 0.7605 GB, free: 7.25 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005056/0.8171, allocations: 335.8 kB / 0.7608 GB, free: 6.922 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.366/1.183, allocations: 139 MB / 0.8966 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/1.183, allocations: 45.58 kB / 0.8966 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.745e-06/1.183, allocations: 0 / 0.8966 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005051/1.188, allocations: 2.33 MB / 0.8989 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.945e-05/1.188, allocations: 55.41 kB / 0.8989 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/1.188, allocations: 256.7 kB / 0.8992 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.609e-05/1.188, allocations: 33.7 kB / 0.8992 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.638e-05/1.189, allocations: 185.1 kB / 0.8994 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.614e-05/1.189, allocations: 262.3 kB / 0.8996 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.924e-05/1.189, allocations: 104.5 kB / 0.8997 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.207e-05/1.189, allocations: 350.8 kB / 0.9001 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003993/1.189, allocations: 270 kB / 0.9003 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004295/1.19, allocations: 395.8 kB / 0.9007 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000844/1.191, allocations: 0.7011 MB / 0.9014 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.191, allocations: 0 / 0.9014 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001154/1.192, allocations: 0.7859 MB / 0.9022 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/1.192, allocations: 8 kB / 0.9022 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/1.192, allocations: 7.969 kB / 0.9022 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000202/1.192, allocations: 58.62 kB / 0.9022 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003511/1.192, allocations: 103.8 kB / 0.9023 GB, free: 212.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05935/1.252, allocations: 17.26 MB / 0.9192 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003906/1.252, allocations: 27.98 kB / 0.9192 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/1.252, allocations: 19.98 kB / 0.9192 GB, free: 194.8 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.0002302/1.252, allocations: 204.1 kB / 0.9194 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.172e-05/1.252, allocations: 39.53 kB / 0.9195 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/1.254, allocations: 1.543 MB / 0.921 GB, free: 193 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/1.254, allocations: 15.98 kB / 0.921 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/1.254, allocations: 0 / 0.921 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001062/1.255, allocations: 1.138 MB / 0.9221 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/1.257, allocations: 1.598 MB / 0.9237 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/1.257, allocations: 0 / 0.9237 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000303/1.257, allocations: 79.89 kB / 0.9237 GB, free: 190 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001831/1.257, allocations: 48.83 kB / 0.9238 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/1.257, allocations: 8 kB / 0.9238 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006717/1.258, allocations: 1.425 MB / 0.9252 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.258, allocations: 0 / 0.9252 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001406/1.26, allocations: 1.178 MB / 0.9263 GB, free: 187.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.147e-05/1.26, allocations: 116.6 kB / 0.9264 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.064e-05/1.26, allocations: 8 kB / 0.9264 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/1.26, allocations: 31.91 kB / 0.9265 GB, free: 187 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.393e-05/1.26, allocations: 46.7 kB / 0.9265 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/1.26, allocations: 8 kB / 0.9265 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001726/1.26, allocations: 247 kB / 0.9268 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.26, allocations: 4 kB / 0.9268 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00687/1.267, allocations: 3.517 MB / 0.9302 GB, free: 183.6 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.01297/1.28, allocations: 4.539 MB / 0.9346 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001539/1.282, allocations: 0.9559 MB / 0.9356 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.282, allocations: 0.6875 kB / 0.9356 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006699/1.282, allocations: 495.1 kB / 0.936 GB, free: 178.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/1.284, allocations: 377.4 kB / 0.9364 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/1.285, allocations: 1.146 MB / 0.9375 GB, free: 176.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/1.286, allocations: 0.8487 MB / 0.9384 GB, free: 175.7 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003018/1.286, allocations: 171.8 kB / 0.9385 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.434e-05/1.286, allocations: 39.44 kB / 0.9386 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of SimCode: time 4.01e-07/1.286, allocations: 0 / 0.9386 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.11/1.396, allocations: 126 MB / 1.062 GB, free: 49.34 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)