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.00754/0.00754, allocations: 95.61 kB / 15.73 MB, free: 6.055 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.001768/0.001768, allocations: 197.8 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.39/1.39, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04845/0.04845, allocations: 9.098 MB / 279 MB, free: 12.07 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.001409/0.001409, allocations: 67.89 kB / 387.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2327, allocations: 48.16 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.1267/0.3595, allocations: 129.6 MB / 0.552 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.302/0.6615, allocations: 111.1 MB / 0.6605 GB, free: 304 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00053/0.6621, allocations: 6.719 kB / 0.6605 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002586/0.6647, allocations: 1.362 MB / 0.6619 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002976/0.6677, allocations: 1.667 MB / 0.6635 GB, free: 240 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.06878/0.7365, allocations: 29.37 MB / 0.6922 GB, free: 6.848 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001807/0.7384, allocations: 1.403 MB / 0.6936 GB, free: 5.836 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002526/0.7386, allocations: 122.8 kB / 0.6937 GB, free: 5.742 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01406/0.7527, allocations: 8.951 MB / 0.7024 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004986/0.7532, allocations: 388.1 kB / 0.7028 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.856e-05/0.7533, allocations: 44 kB / 0.7028 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0595/0.8128, allocations: 34.95 MB / 0.737 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002298/0.8131, allocations: 131.4 kB / 0.7371 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004571/0.8135, allocations: 297.7 kB / 0.7374 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04162/0.8552, allocations: 14.1 MB / 0.7511 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.8552, allocations: 0 / 0.7511 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8552, allocations: 0 / 0.7511 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.463e-05/0.8553, allocations: 0 / 0.7511 GB, free: 1.133 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.006266/0.8615, allocations: 2.679 MB / 0.7537 GB, free: 14.41 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.8616, allocations: 12.03 kB / 0.7538 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006319/0.8622, allocations: 83.64 kB / 0.7538 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.8627, allocations: 350 kB / 0.7542 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.824e-05/0.8627, allocations: 28.66 kB / 0.7542 GB, free: 13.91 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.049e-05/0.8628, allocations: 35.56 kB / 0.7542 GB, free: 13.88 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.8642, allocations: 0.606 MB / 0.7548 GB, free: 13.26 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.8642, allocations: 4 kB / 0.7548 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/0.8642, allocations: 12 kB / 0.7548 GB, free: 13.24 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.133e-05/0.8643, allocations: 22.75 kB / 0.7549 GB, free: 13.22 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.8656, allocations: 0.5415 MB / 0.7554 GB, free: 12.68 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002615/0.8682, allocations: 2.553 MB / 0.7579 GB, free: 9.902 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.8694, allocations: 0.5044 MB / 0.7584 GB, free: 9.391 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006252/0.87, allocations: 330.3 kB / 0.7587 GB, free: 9.066 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3967/1.267, allocations: 139 MB / 0.8944 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/1.267, allocations: 38.47 kB / 0.8945 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.366e-06/1.267, allocations: 0 / 0.8945 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005799/1.273, allocations: 2.343 MB / 0.8967 GB, free: 218 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/1.273, allocations: 55.41 kB / 0.8968 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002156/1.273, allocations: 256.7 kB / 0.897 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/1.273, allocations: 29.7 kB / 0.8971 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.577e-05/1.273, allocations: 190.3 kB / 0.8973 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/1.273, allocations: 283.8 kB / 0.8975 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/1.273, allocations: 102.1 kB / 0.8976 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.245e-05/1.273, allocations: 350.8 kB / 0.898 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/1.274, allocations: 271 kB / 0.8982 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004927/1.274, allocations: 393.7 kB / 0.8986 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008926/1.275, allocations: 0.6958 MB / 0.8993 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/1.275, allocations: 0 / 0.8993 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001276/1.276, allocations: 0.7975 MB / 0.9 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/1.276, allocations: 11.47 kB / 0.9001 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/1.276, allocations: 4 kB / 0.9001 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000235/1.277, allocations: 62.61 kB / 0.9001 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/1.277, allocations: 95.88 kB / 0.9002 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0652/1.342, allocations: 17.27 MB / 0.9171 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/1.343, allocations: 35.91 kB / 0.9171 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.162e-05/1.343, allocations: 24 kB / 0.9171 GB, free: 196.7 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.0002267/1.343, allocations: 200.1 kB / 0.9173 GB, free: 196.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/1.343, allocations: 43.72 kB / 0.9174 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/1.345, allocations: 1.534 MB / 0.9189 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/1.345, allocations: 15.98 kB / 0.9189 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.345, allocations: 0 / 0.9189 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001171/1.346, allocations: 1.138 MB / 0.92 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001865/1.348, allocations: 1.589 MB / 0.9215 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/1.348, allocations: 4 kB / 0.9216 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/1.348, allocations: 87.91 kB / 0.9216 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001863/1.348, allocations: 44.81 kB / 0.9217 GB, free: 191.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/1.348, allocations: 11.98 kB / 0.9217 GB, free: 191.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000692/1.349, allocations: 1.418 MB / 0.9231 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/1.349, allocations: 0 / 0.9231 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/1.351, allocations: 1.19 MB / 0.9242 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.353e-05/1.351, allocations: 115.4 kB / 0.9243 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.026e-05/1.351, allocations: 4 kB / 0.9243 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/1.351, allocations: 34.92 kB / 0.9244 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.482e-05/1.351, allocations: 44 kB / 0.9244 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/1.351, allocations: 15.98 kB / 0.9244 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001912/1.352, allocations: 243 kB / 0.9247 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.352, allocations: 0 / 0.9247 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007873/1.359, allocations: 3.572 MB / 0.9282 GB, free: 185.4 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.01578/1.375, allocations: 4.602 MB / 0.9327 GB, free: 181.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001699/1.377, allocations: 0.9489 MB / 0.9336 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/1.377, allocations: 4.062 kB / 0.9336 GB, free: 180.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007751/1.378, allocations: 495 kB / 0.9341 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/1.38, allocations: 376.9 kB / 0.9344 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001598/1.381, allocations: 1.169 MB / 0.9356 GB, free: 178.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/1.382, allocations: 0.8526 MB / 0.9364 GB, free: 177.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003951/1.382, allocations: 172.1 kB / 0.9366 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/1.382, allocations: 35.44 kB / 0.9366 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of SimCode: time 5.72e-07/1.382, allocations: 0 / 0.9366 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of Templates: time 0.1217/1.504, allocations: 126 MB / 1.06 GB, free: 51.02 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)