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.004601/0.004601, allocations: 100.5 kB / 15.73 MB, free: 6.051 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.001152/0.001152, allocations: 203.8 kB / 16.68 MB, free: 5.969 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.217/1.217, 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.04293/0.04293, allocations: 9.096 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.001275/0.001275, allocations: 67.91 kB / 387.5 MB, free: 7.961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1987, allocations: 48.15 MB / 435.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.1073/0.306, allocations: 127.6 MB / 0.5501 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2682/0.5742, allocations: 109.6 MB / 0.657 GB, free: 352 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000412/0.5747, allocations: 7.281 kB / 0.6571 GB, free: 352 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001822/0.5765, allocations: 1.201 MB / 0.6582 GB, free: 348 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001588/0.5781, allocations: 1.258 MB / 0.6595 GB, free: 328 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.05655/0.6347, allocations: 30.48 MB / 0.6892 GB, free: 8.215 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.6362, allocations: 1.37 MB / 0.6906 GB, free: 7.223 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002052/0.6364, allocations: 123 kB / 0.6907 GB, free: 7.129 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01523/0.6517, allocations: 12.09 MB / 0.7025 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004823/0.6522, allocations: 374.7 kB / 0.7028 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.014e-05/0.6523, allocations: 42.19 kB / 0.7029 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05456/0.7068, allocations: 33.13 MB / 0.7352 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.7071, allocations: 119.5 kB / 0.7353 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004573/0.7076, allocations: 305.6 kB / 0.7356 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03759/0.7452, allocations: 14.1 MB / 0.7494 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.7452, allocations: 0 / 0.7494 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.945e-06/0.7452, allocations: 4 kB / 0.7494 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.786e-05/0.7452, allocations: 0 / 0.7494 GB, free: 0.6172 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.005656/0.7509, allocations: 2.567 MB / 0.7519 GB, free: 14 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.7509, allocations: 8.031 kB / 0.7519 GB, free: 14 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006252/0.7516, allocations: 91.33 kB / 0.752 GB, free: 13.91 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004993/0.7521, allocations: 338.6 kB / 0.7523 GB, free: 13.54 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.7521, allocations: 28.66 kB / 0.7524 GB, free: 13.51 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.425e-05/0.7522, allocations: 32 kB / 0.7524 GB, free: 13.48 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.7535, allocations: 0.6002 MB / 0.753 GB, free: 12.86 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.7535, allocations: 4 kB / 0.753 GB, free: 12.86 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.7535, allocations: 16 kB / 0.753 GB, free: 12.84 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.302e-05/0.7536, allocations: 23.12 kB / 0.753 GB, free: 12.82 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.7548, allocations: 0.5442 MB / 0.7536 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.7573, allocations: 2.557 MB / 0.756 GB, free: 9.508 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.7584, allocations: 0.5001 MB / 0.7565 GB, free: 9.004 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004987/0.7589, allocations: 336.1 kB / 0.7569 GB, free: 8.676 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3752/1.134, allocations: 139 MB / 0.8926 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/1.134, allocations: 36.38 kB / 0.8926 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.976e-06/1.134, allocations: 3.938 kB / 0.8926 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.004852/1.139, allocations: 2.325 MB / 0.8949 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.642e-05/1.139, allocations: 59.22 kB / 0.895 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/1.139, allocations: 255 kB / 0.8952 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/1.139, allocations: 29.7 kB / 0.8952 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/1.139, allocations: 180.9 kB / 0.8954 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.992e-05/1.139, allocations: 271.2 kB / 0.8957 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.702e-05/1.14, allocations: 98.11 kB / 0.8957 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.008e-05/1.14, allocations: 354.7 kB / 0.8961 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/1.14, allocations: 277.2 kB / 0.8964 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/1.14, allocations: 395.7 kB / 0.8967 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008356/1.141, allocations: 0.7004 MB / 0.8974 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.141, allocations: 0 / 0.8974 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001147/1.142, allocations: 0.7865 MB / 0.8982 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/1.142, allocations: 8 kB / 0.8982 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/1.142, allocations: 4 kB / 0.8982 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002034/1.143, allocations: 65.61 kB / 0.8983 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003511/1.143, allocations: 98 kB / 0.8983 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06046/1.204, allocations: 17.19 MB / 0.9151 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/1.204, allocations: 27.98 kB / 0.9152 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/1.204, allocations: 15.98 kB / 0.9152 GB, free: 196.8 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.0001913/1.204, allocations: 188.1 kB / 0.9154 GB, free: 196.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/1.204, allocations: 50.64 kB / 0.9154 GB, free: 196.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/1.206, allocations: 1.555 MB / 0.9169 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/1.206, allocations: 11.66 kB / 0.9169 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/1.206, allocations: 4 kB / 0.9169 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001055/1.207, allocations: 1.134 MB / 0.918 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/1.208, allocations: 1.591 MB / 0.9196 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.208, allocations: 7.938 kB / 0.9196 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/1.209, allocations: 79.88 kB / 0.9197 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001708/1.209, allocations: 40.84 kB / 0.9197 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/1.209, allocations: 12 kB / 0.9197 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006097/1.21, allocations: 1.421 MB / 0.9211 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.21, allocations: 4.031 kB / 0.9211 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/1.211, allocations: 1.178 MB / 0.9223 GB, free: 189.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.992e-05/1.211, allocations: 124.5 kB / 0.9224 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.982e-05/1.211, allocations: 8 kB / 0.9224 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/1.211, allocations: 23.97 kB / 0.9224 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.452e-05/1.211, allocations: 43.94 kB / 0.9225 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/1.211, allocations: 16 kB / 0.9225 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001677/1.212, allocations: 243 kB / 0.9227 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/1.212, allocations: 0 / 0.9227 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006033/1.218, allocations: 3.518 MB / 0.9261 GB, free: 185.6 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.01098/1.229, allocations: 4.545 MB / 0.9306 GB, free: 181.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00139/1.23, allocations: 0.945 MB / 0.9315 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.23, allocations: 0 / 0.9315 GB, free: 180.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006609/1.231, allocations: 0.4917 MB / 0.932 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/1.232, allocations: 399.2 kB / 0.9324 GB, free: 179.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/1.234, allocations: 1.145 MB / 0.9335 GB, free: 178.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/1.234, allocations: 0.8448 MB / 0.9343 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003041/1.234, allocations: 165.1 kB / 0.9345 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.385e-05/1.234, allocations: 43.44 kB / 0.9345 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/1.234, allocations: 0 / 0.9345 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.1072/1.341, allocations: 125.9 MB / 1.057 GB, free: 51.46 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)