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.007958/0.007958, allocations: 101.9 kB / 15.73 MB, free: 6.062 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.001466/0.001466, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.486/1.486, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04899/0.04899, allocations: 9.095 MB / 279 MB, free: 12.09 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.001536/0.001536, allocations: 67.89 kB / 387.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2408, allocations: 48.15 MB / 435.7 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.1209/0.3618, allocations: 127.6 MB / 0.5501 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3529/0.7147, allocations: 109.6 MB / 0.657 GB, free: 308 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005812/0.7153, allocations: 7.969 kB / 0.657 GB, free: 308 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002108/0.7175, allocations: 1.017 MB / 0.658 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002057/0.7196, allocations: 1.088 MB / 0.6591 GB, free: 280 kB / 478.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.07714/0.7967, allocations: 28.65 MB / 0.6871 GB, free: 8.879 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002059/0.7988, allocations: 1.369 MB / 0.6884 GB, free: 7.887 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.7991, allocations: 128.2 kB / 0.6885 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01862/0.8177, allocations: 11.9 MB / 0.7002 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005491/0.8183, allocations: 382.4 kB / 0.7005 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.137e-05/0.8184, allocations: 40 kB / 0.7006 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06513/0.8835, allocations: 33.13 MB / 0.7329 GB, free: 400 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000274/0.8839, allocations: 121.8 kB / 0.733 GB, free: 280 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005435/0.8844, allocations: 293.8 kB / 0.7333 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04336/0.9278, allocations: 14.14 MB / 0.7471 GB, free: 2.93 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.9278, allocations: 4 kB / 0.7471 GB, free: 2.926 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.206e-06/0.9278, allocations: 4 kB / 0.7471 GB, free: 2.922 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.9279, allocations: 0 / 0.7471 GB, free: 2.922 MB / 0.5294 GB 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.006914/0.9348, allocations: 2.681 MB / 0.7497 GB, free: 200 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.9348, allocations: 8.031 kB / 0.7498 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006567/0.9355, allocations: 91.62 kB / 0.7498 GB, free: 100 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004982/0.936, allocations: 344.9 kB / 0.7502 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.9361, allocations: 28.66 kB / 0.7502 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.9361, allocations: 32 kB / 0.7502 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.9375, allocations: 0.601 MB / 0.7508 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.9375, allocations: 3.938 kB / 0.7508 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.9375, allocations: 16 kB / 0.7508 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.469e-05/0.9376, allocations: 22.8 kB / 0.7509 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.9389, allocations: 0.5454 MB / 0.7514 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002651/0.9416, allocations: 2.551 MB / 0.7539 GB, free: 11.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.9428, allocations: 0.5037 MB / 0.7544 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00055/0.9434, allocations: 333.6 kB / 0.7547 GB, free: 10.85 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4211/1.365, allocations: 139 MB / 0.8904 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/1.365, allocations: 44.92 kB / 0.8905 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 4.359e-06/1.365, allocations: 0 / 0.8905 GB, free: 220.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006095/1.371, allocations: 2.34 MB / 0.8927 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/1.371, allocations: 55.34 kB / 0.8928 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/1.371, allocations: 251.3 kB / 0.893 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/1.371, allocations: 37.42 kB / 0.8931 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.78e-05/1.371, allocations: 183.7 kB / 0.8932 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/1.371, allocations: 280.5 kB / 0.8935 GB, free: 219 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/1.372, allocations: 105.8 kB / 0.8936 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.977e-05/1.372, allocations: 356.4 kB / 0.894 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004378/1.372, allocations: 269.6 kB / 0.8942 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/1.373, allocations: 391.9 kB / 0.8946 GB, free: 218 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009518/1.373, allocations: 0.702 MB / 0.8953 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/1.373, allocations: 2.656 kB / 0.8953 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001439/1.375, allocations: 0.7882 MB / 0.896 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/1.375, allocations: 8 kB / 0.896 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/1.375, allocations: 2.688 kB / 0.896 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003064/1.375, allocations: 61.03 kB / 0.8961 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004079/1.376, allocations: 108.4 kB / 0.8962 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06413/1.44, allocations: 17.19 MB / 0.913 GB, free: 198.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/1.44, allocations: 32.03 kB / 0.913 GB, free: 198.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/1.44, allocations: 20 kB / 0.913 GB, free: 198.6 MB / 0.6075 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.0002502/1.441, allocations: 194.2 kB / 0.9132 GB, free: 198.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.642e-05/1.441, allocations: 43.72 kB / 0.9133 GB, free: 198.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/1.442, allocations: 1.553 MB / 0.9148 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/1.443, allocations: 11.92 kB / 0.9148 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/1.443, allocations: 0 / 0.9148 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001125/1.444, allocations: 1.142 MB / 0.9159 GB, free: 195.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/1.446, allocations: 1.598 MB / 0.9175 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/1.446, allocations: 4.031 kB / 0.9175 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/1.446, allocations: 75.94 kB / 0.9176 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/1.446, allocations: 44.75 kB / 0.9176 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.255e-05/1.446, allocations: 11.98 kB / 0.9176 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007042/1.447, allocations: 1.433 MB / 0.919 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/1.447, allocations: 0 / 0.919 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/1.448, allocations: 1.178 MB / 0.9202 GB, free: 190.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/1.448, allocations: 114.1 kB / 0.9203 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.199e-05/1.449, allocations: 13.97 kB / 0.9203 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/1.449, allocations: 28.03 kB / 0.9203 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/1.449, allocations: 47.88 kB / 0.9204 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/1.449, allocations: 15.98 kB / 0.9204 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000235/1.449, allocations: 243 kB / 0.9206 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/1.449, allocations: 0 / 0.9206 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009302/1.459, allocations: 3.576 MB / 0.9241 GB, free: 187.4 MB / 0.6075 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.0174/1.476, allocations: 4.599 MB / 0.9286 GB, free: 183.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001779/1.478, allocations: 0.9509 MB / 0.9295 GB, free: 182.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/1.478, allocations: 0 / 0.9295 GB, free: 182.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007442/1.479, allocations: 495.6 kB / 0.93 GB, free: 181.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001867/1.48, allocations: 397.5 kB / 0.9304 GB, free: 181.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/1.482, allocations: 1.158 MB / 0.9315 GB, free: 180.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/1.482, allocations: 0.8526 MB / 0.9323 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003645/1.483, allocations: 162.5 kB / 0.9325 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.979e-05/1.483, allocations: 47.38 kB / 0.9325 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of SimCode: time 1.062e-06/1.483, allocations: 4 kB / 0.9325 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of Templates: time 0.1291/1.612, allocations: 125.9 MB / 1.055 GB, free: 53.12 MB / 0.6075 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)