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.001538/0.001538, allocations: 104.1 kB / 16.35 MB, free: 5.824 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.001288/0.001288, allocations: 192.8 kB / 17.29 MB, free: 5.48 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.728/1.728, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05163/0.05163, allocations: 9.096 MB / 279.6 MB, free: 2.961 MB / 222.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.001535/0.001535, allocations: 71.89 kB / 339.5 MB, free: 6.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4159/0.4175, allocations: 48.14 MB / 387.6 MB, free: 51.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.1606/0.5781, allocations: 127.6 MB / 0.5031 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.5388/1.117, allocations: 109.6 MB / 0.6101 GB, free: 14.87 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/1.118, allocations: 3.438 kB / 0.6101 GB, free: 14.87 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00361/1.122, allocations: 1.021 MB / 0.6111 GB, free: 14.62 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003748/1.126, allocations: 1.08 MB / 0.6122 GB, free: 14.37 MB / 430.1 MB [/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.1393/1.265, allocations: 28.65 MB / 0.6401 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003474/1.269, allocations: 1.366 MB / 0.6415 GB, free: 11.63 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004083/1.269, allocations: 135.2 kB / 0.6416 GB, free: 11.51 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0259/1.295, allocations: 11.9 MB / 0.6532 GB, free: 36 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007918/1.296, allocations: 368.1 kB / 0.6536 GB, free: 15.7 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.285e-05/1.296, allocations: 44 kB / 0.6536 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.09396/1.39, allocations: 33.13 MB / 0.686 GB, free: 15.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004705/1.39, allocations: 118.6 kB / 0.6861 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009426/1.391, allocations: 313.2 kB / 0.6864 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07528/1.467, allocations: 14.1 MB / 0.7002 GB, free: 2.062 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.161e-05/1.467, allocations: 0 / 0.7002 GB, free: 2.062 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.537e-06/1.467, allocations: 4 kB / 0.7002 GB, free: 2.059 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.918e-05/1.467, allocations: 0 / 0.7002 GB, free: 2.059 MB / 494.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.01051/1.477, allocations: 2.565 MB / 0.7027 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/1.477, allocations: 11.97 kB / 0.7027 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007517/1.478, allocations: 87.39 kB / 0.7028 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000723/1.479, allocations: 341.3 kB / 0.7031 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.361e-05/1.479, allocations: 28.66 kB / 0.7031 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.313e-05/1.479, allocations: 36 kB / 0.7031 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/1.48, allocations: 0.6028 MB / 0.7037 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/1.48, allocations: 7.906 kB / 0.7037 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.911e-05/1.481, allocations: 12 kB / 0.7038 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.393e-05/1.481, allocations: 15.36 kB / 0.7038 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/1.482, allocations: 0.5516 MB / 0.7043 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002892/1.485, allocations: 2.551 MB / 0.7068 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/1.486, allocations: 0.4916 MB / 0.7073 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005212/1.487, allocations: 340.8 kB / 0.7076 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6013/2.088, allocations: 139 MB / 0.8433 GB, free: 120.7 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.824e-05/2.088, allocations: 36.91 kB / 0.8434 GB, free: 120.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=79): time 5.72e-06/2.088, allocations: 0 / 0.8434 GB, free: 120.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83): time 0.006543/2.095, allocations: 2.335 MB / 0.8456 GB, free: 118.2 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.102e-05/2.095, allocations: 55.41 kB / 0.8457 GB, free: 118.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002508/2.095, allocations: 256.1 kB / 0.8459 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/2.095, allocations: 29.7 kB / 0.846 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/2.095, allocations: 185.2 kB / 0.8461 GB, free: 117.7 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/2.095, allocations: 272.7 kB / 0.8464 GB, free: 117.4 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/2.095, allocations: 98.11 kB / 0.8465 GB, free: 117.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001065/2.095, allocations: 346.8 kB / 0.8468 GB, free: 117 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000432/2.096, allocations: 269.3 kB / 0.8471 GB, free: 116.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005219/2.096, allocations: 397.1 kB / 0.8475 GB, free: 116.3 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009458/2.097, allocations: 0.7078 MB / 0.8482 GB, free: 115.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/2.097, allocations: 0 / 0.8482 GB, free: 115.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00131/2.099, allocations: 0.7891 MB / 0.8489 GB, free: 114.7 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/2.099, allocations: 12.06 kB / 0.8489 GB, free: 114.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/2.099, allocations: 7.938 kB / 0.8489 GB, free: 114.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003122/2.099, allocations: 61.67 kB / 0.849 GB, free: 114.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003898/2.1, allocations: 99.81 kB / 0.8491 GB, free: 114.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06389/2.163, allocations: 17.18 MB / 0.8659 GB, free: 96.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005527/2.164, allocations: 31.97 kB / 0.8659 GB, free: 96.87 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/2.164, allocations: 12 kB / 0.8659 GB, free: 96.86 MB / 0.5137 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.000354/2.164, allocations: 200.1 kB / 0.8661 GB, free: 96.66 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.514e-05/2.165, allocations: 39.53 kB / 0.8661 GB, free: 96.62 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/2.166, allocations: 1.545 MB / 0.8677 GB, free: 95 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/2.166, allocations: 10.44 kB / 0.8677 GB, free: 95 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/2.166, allocations: 4 kB / 0.8677 GB, free: 94.99 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001151/2.168, allocations: 1.143 MB / 0.8688 GB, free: 93.76 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002148/2.17, allocations: 1.591 MB / 0.8703 GB, free: 92.11 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-05/2.17, allocations: 7.547 kB / 0.8703 GB, free: 92.11 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003173/2.17, allocations: 83.91 kB / 0.8704 GB, free: 92.03 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002292/2.17, allocations: 44.8 kB / 0.8705 GB, free: 91.98 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/2.17, allocations: 8 kB / 0.8705 GB, free: 91.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009154/2.171, allocations: 1.418 MB / 0.8719 GB, free: 90.42 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/2.171, allocations: 8.781 kB / 0.8719 GB, free: 90.41 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/2.173, allocations: 1.174 MB / 0.873 GB, free: 89.21 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/2.173, allocations: 116.6 kB / 0.8731 GB, free: 89.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.244e-05/2.173, allocations: 11.94 kB / 0.8731 GB, free: 89.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00028/2.173, allocations: 23.97 kB / 0.8732 GB, free: 89.05 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/2.174, allocations: 39.95 kB / 0.8732 GB, free: 89.01 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/2.174, allocations: 24.92 kB / 0.8732 GB, free: 88.98 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002492/2.174, allocations: 239 kB / 0.8735 GB, free: 88.75 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/2.174, allocations: 0 / 0.8735 GB, free: 88.75 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01289/2.187, allocations: 3.511 MB / 0.8769 GB, free: 85.7 MB / 0.5137 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.0248/2.212, allocations: 4.549 MB / 0.8813 GB, free: 81.68 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00247/2.214, allocations: 0.9567 MB / 0.8823 GB, free: 80.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/2.214, allocations: 0 / 0.8823 GB, free: 80.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0009316/2.215, allocations: 499.2 kB / 0.8827 GB, free: 80.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/2.217, allocations: 399.5 kB / 0.8831 GB, free: 79.81 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/2.22, allocations: 1.142 MB / 0.8842 GB, free: 78.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/2.22, allocations: 0.8526 MB / 0.8851 GB, free: 77.76 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005572/2.221, allocations: 160.3 kB / 0.8852 GB, free: 77.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/2.221, allocations: 47.42 kB / 0.8853 GB, free: 77.55 MB / 0.5137 GB Notification: Performance of SimCode: time 1.272e-06/2.221, allocations: 0 / 0.8853 GB, free: 77.55 MB / 0.5137 GB Notification: Performance of Templates: time 0.5071/2.728, allocations: 125.8 MB / 1.008 GB, free: 203.6 MB / 0.5137 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 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)