Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.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.PentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00912/0.00912, allocations: 102.8 kB / 15.73 MB, free: 5.539 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.001822/0.001822, allocations: 193.1 kB / 16.67 MB, free: 5.469 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.436/1.436, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04654/0.04654, allocations: 9.095 MB / 279 MB, free: 2.938 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.001454/0.001455, allocations: 69.55 kB / 387.5 MB, free: 47.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09012/0.09158, allocations: 48.17 MB / 435.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.4091/0.5007, allocations: 128.7 MB / 0.5511 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1005/0.6012, allocations: 111.2 MB / 0.6597 GB, free: 1.266 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005762/0.6019, allocations: 12 kB / 0.6597 GB, free: 1.254 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00326/0.6052, allocations: 1.378 MB / 0.6611 GB, free: 15.87 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004028/0.6092, allocations: 1.656 MB / 0.6627 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.08313/0.6924, allocations: 29.32 MB / 0.6913 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00197/0.6944, allocations: 1.425 MB / 0.6927 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002593/0.6946, allocations: 123.4 kB / 0.6928 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001103/0.6957, allocations: 0.6034 MB / 0.6934 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004929/0.6962, allocations: 379.6 kB / 0.6938 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.412e-05/0.6963, allocations: 44 kB / 0.6938 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06676/0.7631, allocations: 35 MB / 0.728 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003292/0.7635, allocations: 127.4 kB / 0.7281 GB, free: 11.05 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006062/0.7641, allocations: 310.8 kB / 0.7284 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3444/1.108, allocations: 13.92 MB / 0.742 GB, free: 69.25 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/1.109, allocations: 0 / 0.742 GB, free: 69.25 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.784e-06/1.109, allocations: 3.75 kB / 0.742 GB, free: 69.25 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.947e-06/1.109, allocations: 0 / 0.742 GB, free: 69.25 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.009933/1.118, allocations: 2.569 MB / 0.7445 GB, free: 67.98 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/1.119, allocations: 9.469 kB / 0.7445 GB, free: 67.98 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007147/1.119, allocations: 84.98 kB / 0.7446 GB, free: 67.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005676/1.12, allocations: 343.8 kB / 0.7449 GB, free: 67.73 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/1.12, allocations: 29.88 kB / 0.745 GB, free: 67.73 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.091e-05/1.12, allocations: 34.56 kB / 0.745 GB, free: 67.73 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/1.121, allocations: 0.5983 MB / 0.7456 GB, free: 67.64 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/1.121, allocations: 0.8438 kB / 0.7456 GB, free: 67.64 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.322e-05/1.121, allocations: 15.91 kB / 0.7456 GB, free: 67.64 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.926e-05/1.122, allocations: 19.59 kB / 0.7456 GB, free: 67.64 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00137/1.123, allocations: 0.5462 MB / 0.7462 GB, free: 67.64 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/1.125, allocations: 2.545 MB / 0.7486 GB, free: 65.91 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/1.127, allocations: 0.5037 MB / 0.7491 GB, free: 65.88 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006671/1.127, allocations: 345 kB / 0.7495 GB, free: 65.87 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2938/1.421, allocations: 139 MB / 0.8852 GB, free: 24.89 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/1.421, allocations: 37.34 kB / 0.8852 GB, free: 24.85 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=79): time 2.775e-06/1.421, allocations: 1.531 kB / 0.8852 GB, free: 24.85 MB / 0.6231 GB Notification: Performance of matching and sorting (n=83): time 0.006206/1.427, allocations: 2.324 MB / 0.8875 GB, free: 23.29 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/1.428, allocations: 55.41 kB / 0.8876 GB, free: 23.22 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/1.428, allocations: 255.4 kB / 0.8878 GB, free: 23.04 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/1.428, allocations: 38.23 kB / 0.8878 GB, free: 23.01 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 9.568e-05/1.428, allocations: 185.4 kB / 0.888 GB, free: 22.86 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/1.428, allocations: 272.1 kB / 0.8883 GB, free: 22.66 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/1.428, allocations: 99.25 kB / 0.8884 GB, free: 22.6 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001429/1.428, allocations: 352.4 kB / 0.8887 GB, free: 22.28 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004755/1.429, allocations: 270.5 kB / 0.889 GB, free: 22.16 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004968/1.429, allocations: 401 kB / 0.8893 GB, free: 21.88 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009784/1.43, allocations: 0.7001 MB / 0.89 GB, free: 21.45 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.43, allocations: 5.719 kB / 0.89 GB, free: 21.45 MB / 0.6231 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001432/1.432, allocations: 0.7847 MB / 0.8908 GB, free: 20.99 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/1.432, allocations: 8 kB / 0.8908 GB, free: 20.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.432, allocations: 4 kB / 0.8908 GB, free: 20.98 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002698/1.432, allocations: 62.14 kB / 0.8909 GB, free: 20.93 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004053/1.433, allocations: 103.8 kB / 0.891 GB, free: 20.85 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0695/1.502, allocations: 16.59 MB / 0.9072 GB, free: 20.79 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004848/1.503, allocations: 35.03 kB / 0.9072 GB, free: 20.76 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.507e-05/1.503, allocations: 21.41 kB / 0.9072 GB, free: 20.74 MB / 0.6387 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.0003211/1.503, allocations: 191.9 kB / 0.9074 GB, free: 20.59 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/1.503, allocations: 43.44 kB / 0.9074 GB, free: 20.55 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/1.505, allocations: 1.544 MB / 0.909 GB, free: 19.46 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.941e-05/1.505, allocations: 18.48 kB / 0.909 GB, free: 19.45 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/1.505, allocations: 0 / 0.909 GB, free: 19.45 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001344/1.506, allocations: 1.147 MB / 0.9101 GB, free: 18.49 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/1.509, allocations: 1.582 MB / 0.9116 GB, free: 17.34 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/1.509, allocations: 4 kB / 0.9116 GB, free: 17.34 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/1.509, allocations: 81.62 kB / 0.9117 GB, free: 17.27 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001998/1.509, allocations: 46.59 kB / 0.9118 GB, free: 17.22 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.806e-05/1.509, allocations: 10.5 kB / 0.9118 GB, free: 17.22 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/1.51, allocations: 1.425 MB / 0.9132 GB, free: 15.74 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.51, allocations: 0 / 0.9132 GB, free: 15.74 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/1.512, allocations: 1.185 MB / 0.9143 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/1.512, allocations: 108.6 kB / 0.9144 GB, free: 14.79 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.831e-05/1.512, allocations: 14.84 kB / 0.9144 GB, free: 14.78 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003243/1.513, allocations: 27.53 kB / 0.9145 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/1.513, allocations: 49.31 kB / 0.9145 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/1.513, allocations: 16.59 kB / 0.9145 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0002348/1.513, allocations: 245 kB / 0.9148 GB, free: 14.51 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.81e-07/1.513, allocations: 0 / 0.9148 GB, free: 14.51 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.01066/1.524, allocations: 3.516 MB / 0.9182 GB, free: 11.11 MB / 0.6387 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.02265/1.546, allocations: 4.442 MB / 0.9225 GB, free: 7.293 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002113/1.548, allocations: 0.9553 MB / 0.9235 GB, free: 6.582 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/1.548, allocations: 0 / 0.9235 GB, free: 6.582 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.000916/1.549, allocations: 497.3 kB / 0.9239 GB, free: 6.23 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/1.552, allocations: 400.9 kB / 0.9243 GB, free: 5.875 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002024/1.554, allocations: 1.144 MB / 0.9254 GB, free: 4.883 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/1.554, allocations: 0.852 MB / 0.9263 GB, free: 4 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004871/1.555, allocations: 166.8 kB / 0.9264 GB, free: 3.84 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/1.555, allocations: 39.44 kB / 0.9265 GB, free: 3.805 MB / 0.6387 GB Notification: Performance of SimCode: time 2.245e-06/1.555, allocations: 0 / 0.9265 GB, free: 3.805 MB / 0.6387 GB Notification: Performance of Templates: time 0.3956/1.951, allocations: 126 MB / 1.05 GB, free: 275.2 MB / 0.67 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)