Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004908/0.004907, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001204/0.001204, allocations: 191.5 kB / 16.67 MB, free: 5.523 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.186/1.186, allocations: 205.1 MB / 222.5 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.04326/0.04326, allocations: 9.092 MB / 279 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.001411/0.001411, allocations: 70.2 kB / 387.5 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06108/0.0625, allocations: 48.18 MB / 435.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.2848/0.3474, allocations: 128.5 MB / 0.551 GB, free: 2.543 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.08708/0.4345, allocations: 111.1 MB / 0.6595 GB, free: 1.609 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004492/0.435, allocations: 11.94 kB / 0.6595 GB, free: 1.598 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002802/0.4378, allocations: 1.55 MB / 0.661 GB, free: 44 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003328/0.4412, allocations: 1.828 MB / 0.6628 GB, free: 14.21 MB / 494.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.06436/0.5055, allocations: 31.04 MB / 0.6931 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0016/0.5072, allocations: 1.398 MB / 0.6945 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.5074, allocations: 136 kB / 0.6946 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01578/0.5232, allocations: 10.69 MB / 0.705 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005704/0.5238, allocations: 370.5 kB / 0.7054 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.376e-05/0.5239, allocations: 40 kB / 0.7054 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2666/0.7905, allocations: 34.53 MB / 0.7392 GB, free: 58.22 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.7907, allocations: 117.2 kB / 0.7393 GB, free: 58.22 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004709/0.7912, allocations: 309.5 kB / 0.7396 GB, free: 58.22 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0331/0.8243, allocations: 13.93 MB / 0.7532 GB, free: 58.12 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.8243, allocations: 0.9062 kB / 0.7532 GB, free: 58.12 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.843e-06/0.8243, allocations: 0 / 0.7532 GB, free: 58.12 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.8244, allocations: 2.844 kB / 0.7532 GB, free: 58.12 MB / 0.545 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.006129/0.8305, allocations: 2.571 MB / 0.7557 GB, free: 56.75 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.8305, allocations: 11.25 kB / 0.7557 GB, free: 56.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005801/0.8311, allocations: 83.8 kB / 0.7558 GB, free: 56.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.8315, allocations: 343.7 kB / 0.7561 GB, free: 56.5 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.8316, allocations: 29.47 kB / 0.7561 GB, free: 56.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.8316, allocations: 33.12 kB / 0.7562 GB, free: 56.5 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.8328, allocations: 0.5986 MB / 0.7567 GB, free: 56.41 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.8328, allocations: 0.7188 kB / 0.7567 GB, free: 56.41 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.8328, allocations: 15.75 kB / 0.7568 GB, free: 56.41 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.707e-05/0.8329, allocations: 18.55 kB / 0.7568 GB, free: 56.41 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.834, allocations: 0.5473 MB / 0.7573 GB, free: 56.41 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.836, allocations: 2.462 MB / 0.7597 GB, free: 54.8 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009417/0.8369, allocations: 0.4917 MB / 0.7602 GB, free: 54.77 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004397/0.8374, allocations: 337.9 kB / 0.7605 GB, free: 54.76 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2121/1.049, allocations: 139 MB / 0.8962 GB, free: 24.72 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/1.05, allocations: 38.5 kB / 0.8963 GB, free: 24.68 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 2.785e-06/1.05, allocations: 0 / 0.8963 GB, free: 24.68 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.005155/1.055, allocations: 2.345 MB / 0.8986 GB, free: 22.87 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/1.055, allocations: 51.41 kB / 0.8986 GB, free: 22.81 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/1.055, allocations: 263.3 kB / 0.8989 GB, free: 22.59 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/1.055, allocations: 36.95 kB / 0.8989 GB, free: 22.55 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 8.595e-05/1.055, allocations: 188 kB / 0.8991 GB, free: 22.39 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/1.055, allocations: 257.9 kB / 0.8993 GB, free: 22.18 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/1.055, allocations: 102.5 kB / 0.8994 GB, free: 22.11 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001102/1.055, allocations: 358.1 kB / 0.8998 GB, free: 21.77 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004155/1.056, allocations: 274.6 kB / 0.9 GB, free: 21.61 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004395/1.056, allocations: 390.3 kB / 0.9004 GB, free: 21.31 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008741/1.057, allocations: 0.6949 MB / 0.9011 GB, free: 20.84 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.057, allocations: 4.625 kB / 0.9011 GB, free: 20.84 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001176/1.058, allocations: 0.798 MB / 0.9019 GB, free: 20.29 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/1.058, allocations: 8 kB / 0.9019 GB, free: 20.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/1.058, allocations: 10.72 kB / 0.9019 GB, free: 20.28 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/1.059, allocations: 59.62 kB / 0.9019 GB, free: 20.23 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006122/1.059, allocations: 144 kB / 0.9021 GB, free: 20.1 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0613/1.121, allocations: 18.41 MB / 0.9201 GB, free: 18.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004073/1.121, allocations: 27.45 kB / 0.9201 GB, free: 18.13 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/1.121, allocations: 19.73 kB / 0.9201 GB, free: 18.12 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems 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.0002552/1.121, allocations: 191.6 kB / 0.9203 GB, free: 17.97 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.697e-05/1.121, allocations: 47.38 kB / 0.9203 GB, free: 17.92 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001694/1.123, allocations: 1.709 MB / 0.922 GB, free: 16.73 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/1.123, allocations: 16.42 kB / 0.922 GB, free: 16.72 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/1.123, allocations: 0 / 0.922 GB, free: 16.72 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001278/1.124, allocations: 1.29 MB / 0.9233 GB, free: 15.67 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/1.126, allocations: 1.747 MB / 0.925 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/1.126, allocations: 11.94 kB / 0.925 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/1.127, allocations: 73.47 kB / 0.9251 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002622/1.127, allocations: 164.6 kB / 0.9252 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/1.127, allocations: 17.33 kB / 0.9252 GB, free: 14.22 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001396/1.128, allocations: 2.573 MB / 0.9277 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/1.128, allocations: 0 / 0.9277 GB, free: 11.6 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/1.13, allocations: 1.384 MB / 0.9291 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/1.13, allocations: 123.3 kB / 0.9292 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.452e-05/1.13, allocations: 7.75 kB / 0.9292 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002857/1.131, allocations: 23.91 kB / 0.9292 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.474e-05/1.131, allocations: 43.69 kB / 0.9293 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/1.131, allocations: 19.98 kB / 0.9293 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002024/1.131, allocations: 221.1 kB / 0.9295 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.11e-07/1.131, allocations: 0 / 0.9295 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.008757/1.14, allocations: 3.521 MB / 0.933 GB, free: 6.859 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01641/1.156, allocations: 4.442 MB / 0.9373 GB, free: 3.043 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002178/1.158, allocations: 1.042 MB / 0.9383 GB, free: 2.262 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.158, allocations: 4 kB / 0.9383 GB, free: 2.258 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0007462/1.159, allocations: 0.5129 MB / 0.9388 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/1.161, allocations: 410.4 kB / 0.9392 GB, free: 1.531 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/1.163, allocations: 1.178 MB / 0.9404 GB, free: 0.5312 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/1.163, allocations: 0.8526 MB / 0.9412 GB, free: 15.64 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.000355/1.163, allocations: 140.5 kB / 0.9413 GB, free: 15.51 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.621e-05/1.163, allocations: 43.17 kB / 0.9414 GB, free: 15.47 MB / 0.67 GB Notification: Performance of SimCode: time 3.61e-07/1.163, allocations: 0 / 0.9414 GB, free: 15.47 MB / 0.67 GB Notification: Performance of Templates: time 0.2767/1.44, allocations: 126.6 MB / 1.065 GB, free: 284.7 MB / 0.6856 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe 2>&1)