Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002894/0.002894, allocations: 182.2 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.05224/0.05224, allocations: 9.09 MB / 25.82 MB, free: 3.426 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.506/1.506, 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.001118/0.001118, allocations: 106.6 kB / 282.1 MB, free: 15.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.001121, allocations: 47.92 kB / 341.1 MB, free: 4.082 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2753, allocations: 48.16 MB / 389.2 MB, free: 38.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.3757/0.6511, allocations: 129.3 MB / 0.5064 GB, free: 1.527 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.09386/0.745, allocations: 111.3 MB / 0.6151 GB, free: 2.332 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006637/0.7457, allocations: 7.938 kB / 0.6151 GB, free: 2.324 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.7481, allocations: 0.8521 MB / 0.6159 GB, free: 1.469 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002118/0.7502, allocations: 0.9452 MB / 0.6169 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.07498/0.8252, allocations: 24.53 MB / 0.6408 GB, free: 7.906 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002289/0.8275, allocations: 1.8 MB / 0.6426 GB, free: 6.102 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003744/0.8279, allocations: 101.7 kB / 0.6427 GB, free: 6.004 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02093/0.8489, allocations: 11.29 MB / 0.6537 GB, free: 10.69 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005852/0.8495, allocations: 382.4 kB / 0.6541 GB, free: 10.32 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.8496, allocations: 20 kB / 0.6541 GB, free: 10.3 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3362/1.186, allocations: 29.53 MB / 0.6829 GB, free: 42.11 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003203/1.186, allocations: 103.8 kB / 0.683 GB, free: 42.11 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006503/1.187, allocations: 282 kB / 0.6833 GB, free: 42.11 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05188/1.239, allocations: 13.68 MB / 0.6966 GB, free: 42.02 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.239, allocations: 0 / 0.6966 GB, free: 42.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.239, allocations: 0 / 0.6966 GB, free: 42.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/1.239, allocations: 0 / 0.6966 GB, free: 42.02 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.007561/1.246, allocations: 2.574 MB / 0.6992 GB, free: 40.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/1.246, allocations: 11.84 kB / 0.6992 GB, free: 40.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006278/1.247, allocations: 83.72 kB / 0.6992 GB, free: 40.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000432/1.247, allocations: 333.6 kB / 0.6996 GB, free: 40.37 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.929e-05/1.248, allocations: 29.28 kB / 0.6996 GB, free: 40.37 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.473e-05/1.248, allocations: 33.31 kB / 0.6996 GB, free: 40.37 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/1.249, allocations: 0.6013 MB / 0.7002 GB, free: 40.28 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/1.249, allocations: 3.906 kB / 0.7002 GB, free: 40.28 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.905e-05/1.249, allocations: 17.12 kB / 0.7002 GB, free: 40.28 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/1.249, allocations: 15.3 kB / 0.7002 GB, free: 40.28 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/1.25, allocations: 0.5495 MB / 0.7008 GB, free: 40.28 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/1.252, allocations: 2.544 MB / 0.7033 GB, free: 38.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/1.253, allocations: 0.5075 MB / 0.7038 GB, free: 38.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005152/1.254, allocations: 337.2 kB / 0.7041 GB, free: 38.51 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2467/1.5, allocations: 139 MB / 0.8398 GB, free: 18.15 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/1.501, allocations: 35.53 kB / 0.8399 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=79): time 3.145e-06/1.501, allocations: 0 / 0.8399 GB, free: 18.11 MB / 0.5886 GB Notification: Performance of matching and sorting (n=83): time 0.006071/1.507, allocations: 2.34 MB / 0.8421 GB, free: 16.3 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/1.507, allocations: 55.41 kB / 0.8422 GB, free: 16.23 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/1.507, allocations: 259.5 kB / 0.8424 GB, free: 16.01 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/1.507, allocations: 29.52 kB / 0.8425 GB, free: 15.98 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/1.507, allocations: 181.6 kB / 0.8426 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/1.507, allocations: 265.9 kB / 0.8429 GB, free: 15.61 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/1.507, allocations: 104 kB / 0.843 GB, free: 15.53 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001104/1.508, allocations: 354.7 kB / 0.8433 GB, free: 15.2 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000448/1.508, allocations: 264.2 kB / 0.8436 GB, free: 15.04 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005052/1.509, allocations: 396.2 kB / 0.844 GB, free: 14.73 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009772/1.51, allocations: 0.7091 MB / 0.8447 GB, free: 14.24 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/1.51, allocations: 0 / 0.8447 GB, free: 14.24 MB / 0.5886 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001405/1.511, allocations: 0.7797 MB / 0.8454 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/1.511, allocations: 5.938 kB / 0.8454 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/1.511, allocations: 8 kB / 0.8454 GB, free: 13.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002465/1.511, allocations: 63.73 kB / 0.8455 GB, free: 13.64 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/1.512, allocations: 96.97 kB / 0.8456 GB, free: 13.56 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09829/1.61, allocations: 22.66 MB / 0.8677 GB, free: 6.793 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005043/1.611, allocations: 50.61 kB / 0.8678 GB, free: 6.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.635e-05/1.611, allocations: 15.69 kB / 0.8678 GB, free: 6.738 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.0003115/1.611, allocations: 193.1 kB / 0.868 GB, free: 6.586 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/1.611, allocations: 43.47 kB / 0.868 GB, free: 6.543 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/1.613, allocations: 1.538 MB / 0.8695 GB, free: 5.461 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/1.613, allocations: 8.875 kB / 0.8695 GB, free: 5.453 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/1.613, allocations: 4 kB / 0.8695 GB, free: 5.449 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001437/1.614, allocations: 1.141 MB / 0.8706 GB, free: 4.488 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/1.617, allocations: 1.596 MB / 0.8722 GB, free: 3.336 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/1.617, allocations: 1.5 kB / 0.8722 GB, free: 3.336 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003455/1.617, allocations: 81.94 kB / 0.8723 GB, free: 3.262 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001994/1.617, allocations: 44.44 kB / 0.8723 GB, free: 3.227 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.984e-05/1.617, allocations: 12.11 kB / 0.8723 GB, free: 3.219 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009698/1.618, allocations: 1.326 MB / 0.8736 GB, free: 1.844 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/1.618, allocations: 4.156 kB / 0.8736 GB, free: 1.84 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.208/1.826, allocations: 11.03 MB / 0.8844 GB, free: 324.7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/1.826, allocations: 118.1 kB / 0.8845 GB, free: 324.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/1.827, allocations: 14 kB / 0.8845 GB, free: 324.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/1.827, allocations: 36.75 kB / 0.8845 GB, free: 324.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/1.827, allocations: 43.36 kB / 0.8846 GB, free: 324.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/1.827, allocations: 17.23 kB / 0.8846 GB, free: 324.6 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0002247/1.827, allocations: 238.5 kB / 0.8848 GB, free: 324.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/1.827, allocations: 3.344 kB / 0.8848 GB, free: 324.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009963/1.837, allocations: 3.295 MB / 0.8881 GB, free: 324.3 MB / 0.6042 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.01657/1.854, allocations: 4.12 MB / 0.8921 GB, free: 323.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001721/1.856, allocations: 0.9576 MB / 0.893 GB, free: 323.4 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1.856, allocations: 3.375 kB / 0.893 GB, free: 323.4 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000748/1.856, allocations: 489.8 kB / 0.8935 GB, free: 323.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/1.858, allocations: 384.6 kB / 0.8939 GB, free: 323.1 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002407/1.861, allocations: 1.973 MB / 0.8958 GB, free: 321.9 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/1.861, allocations: 0.8696 MB / 0.8966 GB, free: 321.2 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004484/1.862, allocations: 173.4 kB / 0.8968 GB, free: 321.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/1.862, allocations: 42.75 kB / 0.8968 GB, free: 321.2 MB / 0.6042 GB Notification: Performance of SimCode: time 5.21e-07/1.862, allocations: 3.844 kB / 0.8968 GB, free: 321.2 MB / 0.6042 GB Notification: Performance of Templates: time 0.1197/1.981, allocations: 118.7 MB / 1.013 GB, free: 207.3 MB / 0.6042 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)