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.0008468/0.0008468, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006328/0.006328, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.398/1.398, allocations: 205.4 MB / 222.5 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04332/0.04332, allocations: 9.067 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.0004958/0.0004957, allocations: 16.83 kB / 339.7 MB, free: 25.63 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09158, allocations: 49.18 MB / 388.9 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4129/0.5045, allocations: 198 MB / 0.5732 GB, free: 1.578 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3374/0.8419, allocations: 144.2 MB / 0.714 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.843, allocations: 7 kB / 0.714 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003886/0.8469, allocations: 1.589 MB / 0.7155 GB, free: 10.44 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00526/0.8522, allocations: 2.251 MB / 0.7177 GB, free: 8.234 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.09609/0.9483, allocations: 33.27 MB / 0.7502 GB, free: 6.879 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002983/0.9513, allocations: 2.603 MB / 0.7528 GB, free: 4.266 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002945/0.9516, allocations: 146.8 kB / 0.7529 GB, free: 4.109 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.9529, allocations: 0.6923 MB / 0.7536 GB, free: 3.414 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006514/0.9535, allocations: 0.5368 MB / 0.7541 GB, free: 2.875 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.862e-05/0.9536, allocations: 28 kB / 0.7541 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3158/1.269, allocations: 41.41 MB / 0.7946 GB, free: 32.38 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002924/1.27, allocations: 132.3 kB / 0.7947 GB, free: 32.38 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007422/1.27, allocations: 418 kB / 0.7951 GB, free: 32.35 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05504/1.326, allocations: 18.13 MB / 0.8128 GB, free: 32.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/1.326, allocations: 0 / 0.8128 GB, free: 32.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.184e-06/1.326, allocations: 0 / 0.8128 GB, free: 32.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.107e-05/1.326, allocations: 0 / 0.8128 GB, free: 32.2 MB / 0.5137 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.009728/1.335, allocations: 3.239 MB / 0.816 GB, free: 30.45 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/1.335, allocations: 9.5 kB / 0.816 GB, free: 30.45 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008381/1.336, allocations: 120.8 kB / 0.8161 GB, free: 30.42 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/1.337, allocations: 398.7 kB / 0.8165 GB, free: 30.18 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.927e-05/1.337, allocations: 39.69 kB / 0.8165 GB, free: 30.18 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.845e-05/1.337, allocations: 48.03 kB / 0.8166 GB, free: 30.18 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/1.338, allocations: 0.8363 MB / 0.8174 GB, free: 30.07 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/1.338, allocations: 5.875 kB / 0.8174 GB, free: 30.07 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/1.338, allocations: 21.06 kB / 0.8174 GB, free: 30.07 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/1.339, allocations: 25.58 kB / 0.8174 GB, free: 30.07 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/1.34, allocations: 0.7822 MB / 0.8182 GB, free: 30.07 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002624/1.343, allocations: 3.435 MB / 0.8215 GB, free: 27.83 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/1.344, allocations: 0.7049 MB / 0.8222 GB, free: 27.8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006697/1.345, allocations: 498.7 kB / 0.8227 GB, free: 27.79 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3043/1.649, allocations: 181.1 MB / 0.9996 GB, free: 6.207 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.086e-05/1.649, allocations: 41.38 kB / 0.9996 GB, free: 6.164 MB / 0.67 GB Notification: Performance of pre-optimization done (n=109): time 3.497e-06/1.649, allocations: 0 / 0.9996 GB, free: 6.164 MB / 0.67 GB Notification: Performance of matching and sorting (n=117): time 0.009844/1.659, allocations: 3.53 MB / 1.003 GB, free: 3.461 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/1.659, allocations: 59.97 kB / 1.003 GB, free: 3.391 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/1.659, allocations: 306.4 kB / 1.003 GB, free: 3.133 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/1.66, allocations: 40.27 kB / 1.003 GB, free: 3.098 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/1.66, allocations: 229.5 kB / 1.004 GB, free: 2.906 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.000256/1.66, allocations: 378 kB / 1.004 GB, free: 2.586 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.418e-05/1.66, allocations: 82.42 kB / 1.004 GB, free: 2.527 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001536/1.66, allocations: 373.4 kB / 1.004 GB, free: 2.18 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007356/1.661, allocations: 413.4 kB / 1.005 GB, free: 1.93 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008348/1.662, allocations: 0.5516 MB / 1.005 GB, free: 1.508 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/1.663, allocations: 1.012 MB / 1.006 GB, free: 0.832 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.663, allocations: 0.9844 kB / 1.006 GB, free: 0.832 MB / 0.67 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002191/1.666, allocations: 1.164 MB / 1.008 GB, free: 32 kB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/1.666, allocations: 8 kB / 1.008 GB, free: 24 kB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/1.666, allocations: 4 kB / 1.008 GB, free: 20 kB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1663/1.832, allocations: 105.1 kB / 1.008 GB, free: 386.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/1.833, allocations: 213.2 kB / 1.008 GB, free: 386.5 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1873/2.021, allocations: 46.29 MB / 1.053 GB, free: 363.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006846/2.021, allocations: 77.19 kB / 1.053 GB, free: 363.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.83e-05/2.021, allocations: 29.75 kB / 1.053 GB, free: 363.7 MB / 0.67 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.0003353/2.022, allocations: 228.3 kB / 1.053 GB, free: 363.5 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/2.022, allocations: 54.31 kB / 1.053 GB, free: 363.5 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002716/2.025, allocations: 2.425 MB / 1.056 GB, free: 361.1 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/2.025, allocations: 19.81 kB / 1.056 GB, free: 361.1 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/2.025, allocations: 0 / 1.056 GB, free: 361.1 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001922/2.027, allocations: 1.685 MB / 1.057 GB, free: 359.3 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003031/2.03, allocations: 2.506 MB / 1.06 GB, free: 356.8 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/2.03, allocations: 0 / 1.06 GB, free: 356.8 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/2.03, allocations: 127.8 kB / 1.06 GB, free: 356.7 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005812/2.031, allocations: 223.2 kB / 1.06 GB, free: 356.4 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.923e-05/2.031, allocations: 15.98 kB / 1.06 GB, free: 356.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001821/2.033, allocations: 3.792 MB / 1.064 GB, free: 352.3 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/2.033, allocations: 4.719 kB / 1.064 GB, free: 352.3 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/2.035, allocations: 2.019 MB / 1.066 GB, free: 350.3 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001706/2.035, allocations: 156.2 kB / 1.066 GB, free: 350.1 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.401e-05/2.036, allocations: 19.94 kB / 1.066 GB, free: 350.1 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/2.036, allocations: 63.8 kB / 1.066 GB, free: 350 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/2.036, allocations: 74.89 kB / 1.066 GB, free: 349.9 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.532e-05/2.036, allocations: 19.31 kB / 1.066 GB, free: 349.9 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002227/2.036, allocations: 259.1 kB / 1.066 GB, free: 349.7 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/2.036, allocations: 0 / 1.066 GB, free: 349.7 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01199/2.048, allocations: 4.82 MB / 1.071 GB, free: 345.5 MB / 0.67 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.02515/2.074, allocations: 5.948 MB / 1.077 GB, free: 340.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002856/2.076, allocations: 1.549 MB / 1.078 GB, free: 338.6 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/2.077, allocations: 4 kB / 1.079 GB, free: 338.6 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.00111/2.078, allocations: 0.8447 MB / 1.079 GB, free: 337.8 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002642/2.08, allocations: 0.5193 MB / 1.08 GB, free: 337.3 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/2.083, allocations: 2.129 MB / 1.082 GB, free: 335.1 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/2.083, allocations: 0.9295 MB / 1.083 GB, free: 334.2 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005707/2.084, allocations: 191.1 kB / 1.083 GB, free: 334 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/2.084, allocations: 51.44 kB / 1.083 GB, free: 333.9 MB / 0.67 GB Notification: Performance of SimCode: time 8.71e-07/2.084, allocations: 0 / 1.083 GB, free: 333.9 MB / 0.67 GB Notification: Performance of Templates: time 0.1909/2.275, allocations: 186.3 MB / 1.265 GB, free: 147.4 MB / 0.67 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: