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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 98.27 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.01065/0.01065, allocations: 170 kB / 16.27 MB, free: 6.66 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.621/1.621, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04291/0.04291, allocations: 9.072 MB / 279.8 MB, free: 12.15 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.0005387/0.0005388, allocations: 12.22 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1066, allocations: 49.18 MB / 388.9 MB, free: 8.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.3401/0.4467, allocations: 127.6 MB / 0.5044 GB, free: 8.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3569/0.8036, allocations: 110 MB / 0.6119 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007536/0.8044, allocations: 5.25 kB / 0.6119 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002429/0.8069, allocations: 0.8549 MB / 0.6127 GB, free: 1.867 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002416/0.8093, allocations: 0.9451 MB / 0.6136 GB, free: 1.863 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0678/0.8771, allocations: 24.58 MB / 0.6376 GB, free: 1.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002354/0.8795, allocations: 1.792 MB / 0.6394 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000275/0.8798, allocations: 97.62 kB / 0.6395 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01835/0.8981, allocations: 11.31 MB / 0.6505 GB, free: 12.92 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005647/0.8988, allocations: 382.1 kB / 0.6509 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.32e-05/0.8988, allocations: 21.06 kB / 0.6509 GB, free: 12.84 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05602/0.9549, allocations: 29.53 MB / 0.6797 GB, free: 11.73 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000244/0.9551, allocations: 106.1 kB / 0.6798 GB, free: 11.67 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005153/0.9557, allocations: 305.5 kB / 0.6801 GB, free: 11.5 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04731/1.003, allocations: 13.63 MB / 0.6934 GB, free: 1.07 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/1.003, allocations: 0 / 0.6934 GB, free: 1.07 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.335e-06/1.003, allocations: 0 / 0.6934 GB, free: 1.07 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.914e-06/1.003, allocations: 0 / 0.6934 GB, free: 1.07 MB / 478.1 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.006737/1.01, allocations: 2.494 MB / 0.6959 GB, free: 14.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/1.01, allocations: 8.031 kB / 0.6959 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006472/1.011, allocations: 91.84 kB / 0.696 GB, free: 14.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/1.011, allocations: 335.4 kB / 0.6963 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/1.011, allocations: 29.41 kB / 0.6963 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.636e-05/1.011, allocations: 30.5 kB / 0.6963 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/1.012, allocations: 0.6149 MB / 0.6969 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/1.012, allocations: 0 / 0.6969 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/1.012, allocations: 19.62 kB / 0.697 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/1.012, allocations: 15.91 kB / 0.697 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/1.014, allocations: 0.5796 MB / 0.6975 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/1.016, allocations: 2.557 MB / 0.7 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/1.017, allocations: 0.5154 MB / 0.7005 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005471/1.018, allocations: 357.5 kB / 0.7009 GB, free: 10.37 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.392/1.41, allocations: 135.8 MB / 0.8335 GB, free: 259.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/1.41, allocations: 36.03 kB / 0.8335 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 3.567e-06/1.41, allocations: 0 / 0.8335 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005776/1.416, allocations: 2.405 MB / 0.8359 GB, free: 258.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.512e-05/1.416, allocations: 62.97 kB / 0.8359 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/1.416, allocations: 254.7 kB / 0.8362 GB, free: 258.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/1.416, allocations: 29.7 kB / 0.8362 GB, free: 258.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.823e-05/1.416, allocations: 180.9 kB / 0.8364 GB, free: 258.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/1.416, allocations: 273.5 kB / 0.8366 GB, free: 258.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.032e-05/1.416, allocations: 65.3 kB / 0.8367 GB, free: 258.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.228e-05/1.417, allocations: 350.4 kB / 0.837 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004673/1.417, allocations: 281 kB / 0.8373 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/1.418, allocations: 409.3 kB / 0.8377 GB, free: 257.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009975/1.419, allocations: 0.7271 MB / 0.8384 GB, free: 257 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/1.419, allocations: 2.969 kB / 0.8384 GB, free: 257 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001351/1.42, allocations: 0.8158 MB / 0.8392 GB, free: 256.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/1.42, allocations: 10.56 kB / 0.8392 GB, free: 256.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.42, allocations: 3.969 kB / 0.8392 GB, free: 256.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/1.42, allocations: 64.67 kB / 0.8393 GB, free: 256.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/1.421, allocations: 108.9 kB / 0.8394 GB, free: 256.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09377/1.514, allocations: 22.6 MB / 0.8615 GB, free: 238.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/1.515, allocations: 47.97 kB / 0.8615 GB, free: 238.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/1.515, allocations: 23.98 kB / 0.8615 GB, free: 238.6 MB / 0.5762 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.0002498/1.515, allocations: 193.6 kB / 0.8617 GB, free: 238.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.03e-05/1.515, allocations: 43.44 kB / 0.8618 GB, free: 238.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/1.517, allocations: 1.576 MB / 0.8633 GB, free: 236.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/1.517, allocations: 19.89 kB / 0.8633 GB, free: 236.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/1.517, allocations: 0 / 0.8633 GB, free: 236.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001195/1.518, allocations: 1.164 MB / 0.8645 GB, free: 235.5 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/1.52, allocations: 1.623 MB / 0.866 GB, free: 233.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/1.52, allocations: 4.031 kB / 0.866 GB, free: 233.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003233/1.521, allocations: 83.88 kB / 0.8661 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002477/1.521, allocations: 52.8 kB / 0.8662 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/1.521, allocations: 11.94 kB / 0.8662 GB, free: 233.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007634/1.522, allocations: 1.333 MB / 0.8675 GB, free: 232.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/1.522, allocations: 0 / 0.8675 GB, free: 232.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/1.523, allocations: 1.215 MB / 0.8687 GB, free: 231 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/1.523, allocations: 140.6 kB / 0.8688 GB, free: 230.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.318e-05/1.523, allocations: 11.94 kB / 0.8688 GB, free: 230.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003529/1.524, allocations: 43.81 kB / 0.8689 GB, free: 230.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.149e-05/1.524, allocations: 47.94 kB / 0.8689 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/1.524, allocations: 17.73 kB / 0.8689 GB, free: 230.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001891/1.524, allocations: 239.1 kB / 0.8691 GB, free: 230.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.524, allocations: 0 / 0.8691 GB, free: 230.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007357/1.532, allocations: 3.183 MB / 0.8723 GB, free: 227.7 MB / 0.5762 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.01464/1.546, allocations: 4.115 MB / 0.8763 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001604/1.548, allocations: 0.9578 MB / 0.8772 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/1.548, allocations: 0 / 0.8772 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006985/1.549, allocations: 0.4917 MB / 0.8777 GB, free: 222.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/1.551, allocations: 379.9 kB / 0.8781 GB, free: 222.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/1.552, allocations: 1.429 MB / 0.8794 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/1.553, allocations: 0.8486 MB / 0.8803 GB, free: 219.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004221/1.553, allocations: 169.7 kB / 0.8804 GB, free: 219.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.235e-05/1.553, allocations: 39.42 kB / 0.8805 GB, free: 219.7 MB / 0.5762 GB Notification: Performance of SimCode: time 3.01e-07/1.553, allocations: 4 kB / 0.8805 GB, free: 219.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.125/1.678, allocations: 117.4 MB / 0.9952 GB, free: 102.1 MB / 0.5762 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: