Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001223/0.001223, allocations: 183 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.04652/0.04652, allocations: 9.096 MB / 25.83 MB, free: 3.41 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.334/1.334, 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.001172/0.001173, allocations: 97.81 kB / 282.1 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001015/0.001015, allocations: 51.86 kB / 341.1 MB, free: 4.098 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2393, allocations: 48.16 MB / 389.2 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.4171/0.6565, allocations: 130.4 MB / 0.5075 GB, free: 1.59 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.09941/0.7559, allocations: 112.8 MB / 0.6176 GB, free: 15.84 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007003/0.7567, allocations: 4 kB / 0.6176 GB, free: 15.84 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003129/0.7598, allocations: 1.175 MB / 0.6188 GB, free: 14.66 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00404/0.7639, allocations: 1.462 MB / 0.6202 GB, free: 13.19 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.08526/0.8492, allocations: 24.92 MB / 0.6445 GB, free: 4.195 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.8518, allocations: 1.827 MB / 0.6463 GB, free: 2.363 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002852/0.8521, allocations: 105.7 kB / 0.6464 GB, free: 2.262 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01796/0.8701, allocations: 8.393 MB / 0.6546 GB, free: 9.852 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005751/0.8707, allocations: 398.3 kB / 0.655 GB, free: 9.461 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 5.524e-05/0.8708, allocations: 20 kB / 0.655 GB, free: 9.441 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3711/1.242, allocations: 31.05 MB / 0.6853 GB, free: 40.53 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003068/1.242, allocations: 101.8 kB / 0.6854 GB, free: 40.53 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006771/1.243, allocations: 284.3 kB / 0.6857 GB, free: 40.53 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05208/1.295, allocations: 13.64 MB / 0.699 GB, free: 40.42 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/1.295, allocations: 0 / 0.699 GB, free: 40.42 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.295, allocations: 1.969 kB / 0.699 GB, free: 40.42 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.666e-06/1.295, allocations: 2.906 kB / 0.699 GB, free: 40.42 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.00879/1.304, allocations: 2.571 MB / 0.7015 GB, free: 39.03 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.304, allocations: 9.375 kB / 0.7016 GB, free: 39.03 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006302/1.305, allocations: 88.19 kB / 0.7016 GB, free: 39.01 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004385/1.305, allocations: 333.4 kB / 0.702 GB, free: 38.78 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/1.305, allocations: 30.66 kB / 0.702 GB, free: 38.78 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/1.305, allocations: 34.31 kB / 0.702 GB, free: 38.78 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/1.306, allocations: 0.5988 MB / 0.7026 GB, free: 38.69 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/1.306, allocations: 6.062 kB / 0.7026 GB, free: 38.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/1.306, allocations: 20.44 kB / 0.7026 GB, free: 38.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-05/1.306, allocations: 14.53 kB / 0.7026 GB, free: 38.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/1.308, allocations: 0.5464 MB / 0.7032 GB, free: 38.68 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/1.31, allocations: 2.546 MB / 0.7057 GB, free: 36.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/1.311, allocations: 0.501 MB / 0.7061 GB, free: 36.93 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005281/1.312, allocations: 343.2 kB / 0.7065 GB, free: 36.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2664/1.578, allocations: 139 MB / 0.8422 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.446e-05/1.578, allocations: 48.83 kB / 0.8422 GB, free: 15.7 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=79): time 4.829e-06/1.578, allocations: 0 / 0.8422 GB, free: 15.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=83): time 0.006619/1.585, allocations: 2.335 MB / 0.8445 GB, free: 13.89 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/1.585, allocations: 55.41 kB / 0.8446 GB, free: 13.82 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/1.585, allocations: 253.5 kB / 0.8448 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.223e-05/1.585, allocations: 36.27 kB / 0.8449 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/1.585, allocations: 180.6 kB / 0.845 GB, free: 13.42 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/1.585, allocations: 263.1 kB / 0.8453 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/1.586, allocations: 103.5 kB / 0.8454 GB, free: 13.12 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001555/1.586, allocations: 361.9 kB / 0.8457 GB, free: 12.78 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/1.586, allocations: 257.4 kB / 0.846 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005629/1.587, allocations: 408.2 kB / 0.8464 GB, free: 12.31 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009996/1.588, allocations: 0.699 MB / 0.847 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/1.588, allocations: 4 kB / 0.847 GB, free: 11.83 MB / 0.5886 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001408/1.589, allocations: 0.7814 MB / 0.8478 GB, free: 11.3 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/1.589, allocations: 5.5 kB / 0.8478 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/1.589, allocations: 4 kB / 0.8478 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/1.59, allocations: 63.5 kB / 0.8479 GB, free: 11.23 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003912/1.59, allocations: 98.61 kB / 0.848 GB, free: 11.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1248/1.715, allocations: 22.64 MB / 0.8701 GB, free: 4.402 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007931/1.716, allocations: 50.41 kB / 0.8701 GB, free: 4.359 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.927e-05/1.716, allocations: 15.5 kB / 0.8701 GB, free: 4.348 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.0005082/1.716, allocations: 193.8 kB / 0.8703 GB, free: 4.191 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002658/1.716, allocations: 45.41 kB / 0.8704 GB, free: 4.148 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003011/1.719, allocations: 1.542 MB / 0.8719 GB, free: 3.062 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-05/1.72, allocations: 10.31 kB / 0.8719 GB, free: 3.059 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/1.72, allocations: 4.984 kB / 0.8719 GB, free: 3.055 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001938/1.721, allocations: 1.138 MB / 0.873 GB, free: 2.094 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003317/1.725, allocations: 1.598 MB / 0.8746 GB, free: 0.9414 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/1.725, allocations: 8.031 kB / 0.8746 GB, free: 0.9336 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004787/1.725, allocations: 80.09 kB / 0.8746 GB, free: 0.8633 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/1.726, allocations: 44.42 kB / 0.8747 GB, free: 0.8203 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/1.726, allocations: 8.375 kB / 0.8747 GB, free: 0.8203 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/1.727, allocations: 1.325 MB / 0.876 GB, free: 15.45 MB / 0.6199 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.727, allocations: 0 / 0.876 GB, free: 15.45 MB / 0.6199 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05315/1.78, allocations: 11.02 MB / 0.8867 GB, free: 5.551 MB / 0.6199 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/1.781, allocations: 120.5 kB / 0.8869 GB, free: 5.414 MB / 0.6199 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/1.781, allocations: 11.06 kB / 0.8869 GB, free: 5.41 MB / 0.6199 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006629/1.782, allocations: 47.16 kB / 0.8869 GB, free: 5.371 MB / 0.6199 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/1.782, allocations: 41.72 kB / 0.887 GB, free: 5.336 MB / 0.6199 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.047e-05/1.782, allocations: 15.42 kB / 0.887 GB, free: 5.324 MB / 0.6199 GB Notification: Performance of sorting global known variables: time 0.0004135/1.782, allocations: 240.2 kB / 0.8872 GB, free: 5.141 MB / 0.6199 GB Notification: Performance of sort global known variables: time 3.31e-07/1.782, allocations: 0 / 0.8872 GB, free: 5.141 MB / 0.6199 GB Notification: Performance of remove unused functions: time 0.01632/1.799, allocations: 3.295 MB / 0.8904 GB, free: 1.996 MB / 0.6199 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.2793/2.078, allocations: 4.096 MB / 0.8944 GB, free: 341.4 MB / 0.6199 GB Notification: Performance of simCode: created initialization part: time 0.002181/2.08, allocations: 0.9508 MB / 0.8953 GB, free: 341.2 MB / 0.6199 GB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/2.08, allocations: 0 / 0.8953 GB, free: 341.2 MB / 0.6199 GB Notification: Performance of simCode: created simulation system equations: time 0.0008682/2.081, allocations: 492.1 kB / 0.8958 GB, free: 341.1 MB / 0.6199 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/2.083, allocations: 396.9 kB / 0.8962 GB, free: 341 MB / 0.6199 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/2.086, allocations: 1.964 MB / 0.8981 GB, free: 340.2 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/2.087, allocations: 0.8742 MB / 0.899 GB, free: 339.5 MB / 0.6199 GB Notification: Performance of simCode: alias equations: time 0.0005701/2.087, allocations: 172.7 kB / 0.8991 GB, free: 339.5 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/2.087, allocations: 44.22 kB / 0.8992 GB, free: 339.5 MB / 0.6199 GB Notification: Performance of SimCode: time 1.092e-06/2.087, allocations: 0 / 0.8992 GB, free: 339.5 MB / 0.6199 GB Notification: Performance of Templates: time 0.1705/2.258, allocations: 118.9 MB / 1.015 GB, free: 236.2 MB / 0.6199 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)