Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005939/0.005939, allocations: 98.67 kB / 15.73 MB, free: 5.988 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.001283/0.001283, allocations: 199.3 kB / 16.68 MB, free: 5.918 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.426/1.426, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04663/0.04663, allocations: 9.096 MB / 279 MB, free: 12.1 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.001513/0.001513, allocations: 67.91 kB / 387.5 MB, free: 7.953 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2439, allocations: 48.15 MB / 435.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4181/0.662, allocations: 197.7 MB / 0.6185 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1115/0.7736, allocations: 143.7 MB / 0.7589 GB, free: 9.48 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007885/0.7744, allocations: 15.94 kB / 0.7589 GB, free: 9.465 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.004246/0.7787, allocations: 1.836 MB / 0.7607 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006072/0.7848, allocations: 2.535 MB / 0.7631 GB, free: 5.074 MB / 0.5294 GB [/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.09156/0.8764, allocations: 39.09 MB / 0.8013 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002538/0.879, allocations: 1.982 MB / 0.8032 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003183/0.8793, allocations: 194.6 kB / 0.8034 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001374/0.8807, allocations: 0.8136 MB / 0.8042 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000686/0.8814, allocations: 0.533 MB / 0.8047 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.323e-05/0.8815, allocations: 64 kB / 0.8048 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3369/1.218, allocations: 46.6 MB / 0.8503 GB, free: 43.86 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002865/1.219, allocations: 167.3 kB / 0.8505 GB, free: 43.86 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000592/1.219, allocations: 427.7 kB / 0.8509 GB, free: 43.86 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04842/1.268, allocations: 18.76 MB / 0.8692 GB, free: 43.6 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/1.268, allocations: 1.219 kB / 0.8692 GB, free: 43.6 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.653e-06/1.268, allocations: 3.156 kB / 0.8692 GB, free: 43.6 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.963e-05/1.268, allocations: 0 / 0.8692 GB, free: 43.6 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.00816/1.276, allocations: 3.343 MB / 0.8725 GB, free: 41.85 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/1.276, allocations: 7.5 kB / 0.8725 GB, free: 41.85 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007849/1.277, allocations: 123.2 kB / 0.8726 GB, free: 41.81 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/1.277, allocations: 409.5 kB / 0.873 GB, free: 41.58 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/1.277, allocations: 41.06 kB / 0.873 GB, free: 41.58 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.771e-05/1.278, allocations: 46.41 kB / 0.8731 GB, free: 41.58 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/1.279, allocations: 0.8183 MB / 0.8739 GB, free: 41.46 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/1.279, allocations: 9.844 kB / 0.8739 GB, free: 41.46 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.832e-05/1.279, allocations: 17.06 kB / 0.8739 GB, free: 41.46 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/1.279, allocations: 24.3 kB / 0.8739 GB, free: 41.46 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/1.281, allocations: 0.7585 MB / 0.8747 GB, free: 41.46 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/1.284, allocations: 3.418 MB / 0.878 GB, free: 39.21 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/1.285, allocations: 0.6837 MB / 0.8787 GB, free: 39.17 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006511/1.286, allocations: 487.6 kB / 0.8791 GB, free: 39.15 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3184/1.604, allocations: 185.3 MB / 1.06 GB, free: 9.145 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/1.604, allocations: 37.78 kB / 1.06 GB, free: 9.105 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.707e-06/1.604, allocations: 0 / 1.06 GB, free: 9.105 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009619/1.614, allocations: 3.424 MB / 1.063 GB, free: 6.516 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/1.614, allocations: 59.97 kB / 1.064 GB, free: 6.441 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/1.614, allocations: 300.9 kB / 1.064 GB, free: 6.191 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.299e-05/1.614, allocations: 38.14 kB / 1.064 GB, free: 6.156 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/1.614, allocations: 233.1 kB / 1.064 GB, free: 5.965 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002973/1.615, allocations: 383.4 kB / 1.064 GB, free: 5.641 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/1.615, allocations: 132.4 kB / 1.065 GB, free: 5.551 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001423/1.615, allocations: 379.5 kB / 1.065 GB, free: 5.199 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007155/1.616, allocations: 389.7 kB / 1.065 GB, free: 4.973 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/1.616, allocations: 0.5338 MB / 1.066 GB, free: 4.566 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/1.618, allocations: 0.9723 MB / 1.067 GB, free: 3.918 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.618, allocations: 2.156 kB / 1.067 GB, free: 3.918 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002137/1.62, allocations: 1.128 MB / 1.068 GB, free: 3.156 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/1.62, allocations: 10.91 kB / 1.068 GB, free: 3.148 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/1.62, allocations: 10.97 kB / 1.068 GB, free: 3.141 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003834/1.621, allocations: 104.2 kB / 1.068 GB, free: 3.051 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/1.622, allocations: 207.2 kB / 1.068 GB, free: 2.867 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4135/2.035, allocations: 35.25 MB / 1.103 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006002/2.036, allocations: 37.91 kB / 1.103 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.556e-05/2.036, allocations: 25.78 kB / 1.103 GB, free: 224.7 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003433/2.036, allocations: 224.8 kB / 1.103 GB, free: 224.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/2.036, allocations: 55.59 kB / 1.103 GB, free: 224.6 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/2.039, allocations: 2.382 MB / 1.105 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.689e-05/2.039, allocations: 21.45 kB / 1.105 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/2.04, allocations: 2.375 kB / 1.105 GB, free: 224.3 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002087/2.042, allocations: 1.644 MB / 1.107 GB, free: 223.9 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003298/2.045, allocations: 2.46 MB / 1.109 GB, free: 223.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/2.045, allocations: 3.188 kB / 1.109 GB, free: 223.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004792/2.045, allocations: 122.7 kB / 1.109 GB, free: 223.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004623/2.046, allocations: 207.6 kB / 1.11 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/2.046, allocations: 14.66 kB / 1.11 GB, free: 223.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/2.048, allocations: 3.983 MB / 1.114 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/2.048, allocations: 3.938 kB / 1.114 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002876/2.051, allocations: 1.979 MB / 1.115 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/2.051, allocations: 128.5 kB / 1.116 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.19e-05/2.051, allocations: 18.77 kB / 1.116 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/2.051, allocations: 34.77 kB / 1.116 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/2.052, allocations: 65.84 kB / 1.116 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-05/2.052, allocations: 22.06 kB / 1.116 GB, free: 219.5 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002532/2.052, allocations: 256.6 kB / 1.116 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.6e-07/2.052, allocations: 0 / 1.116 GB, free: 219.4 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01332/2.065, allocations: 5.462 MB / 1.121 GB, free: 219.3 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02743/2.093, allocations: 6.792 MB / 1.128 GB, free: 218.4 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00306/2.096, allocations: 1.562 MB / 1.129 GB, free: 218 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/2.096, allocations: 3.188 kB / 1.129 GB, free: 218 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001114/2.097, allocations: 0.8319 MB / 1.13 GB, free: 217.8 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/2.099, allocations: 0.5052 MB / 1.131 GB, free: 217.7 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/2.102, allocations: 1.728 MB / 1.132 GB, free: 217 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/2.102, allocations: 0.9376 MB / 1.133 GB, free: 216.2 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004961/2.102, allocations: 182.9 kB / 1.134 GB, free: 216.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/2.103, allocations: 57.23 kB / 1.134 GB, free: 216.2 MB / 0.7637 GB Notification: Performance of SimCode: time 4.61e-07/2.103, allocations: 0 / 1.134 GB, free: 216.2 MB / 0.7637 GB Notification: Performance of Templates: time 0.3938/2.496, allocations: 202.4 MB / 1.331 GB, free: 413.2 MB / 0.7637 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)