Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.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.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006064/0.006064, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001275/0.001276, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.371/1.371, allocations: 205.1 MB / 222.6 MB, free: 4.477 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04466/0.04466, allocations: 9.088 MB / 279 MB, free: 12.04 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.001411/0.001411, allocations: 60.47 kB / 387.5 MB, free: 7.941 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2637, allocations: 48.16 MB / 435.7 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.1315/0.3952, allocations: 128.8 MB / 0.5513 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3414/0.7367, allocations: 111.1 MB / 0.6597 GB, free: 284 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000615/0.7373, allocations: 8.406 kB / 0.6597 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002823/0.7402, allocations: 1.369 MB / 0.6611 GB, free: 268 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003156/0.7434, allocations: 1.663 MB / 0.6627 GB, free: 220 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.08127/0.8247, allocations: 29.52 MB / 0.6915 GB, free: 7.082 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002079/0.8268, allocations: 1.406 MB / 0.6929 GB, free: 6.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.8271, allocations: 137.7 kB / 0.693 GB, free: 5.969 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01669/0.8438, allocations: 9.733 MB / 0.7025 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005712/0.8444, allocations: 377.8 kB / 0.7029 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.625e-05/0.8445, allocations: 40 kB / 0.7029 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06409/0.9086, allocations: 35.26 MB / 0.7374 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002586/0.9089, allocations: 114.6 kB / 0.7375 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004947/0.9094, allocations: 309.1 kB / 0.7378 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04675/0.9561, allocations: 14.14 MB / 0.7516 GB, free: 200 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.9562, allocations: 0 / 0.7516 GB, free: 200 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.864e-06/0.9562, allocations: 0 / 0.7516 GB, free: 200 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.181e-05/0.9562, allocations: 0 / 0.7516 GB, free: 200 kB / 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.006447/0.9627, allocations: 2.676 MB / 0.7542 GB, free: 13.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.9627, allocations: 8.031 kB / 0.7542 GB, free: 13.46 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006184/0.9633, allocations: 91.62 kB / 0.7543 GB, free: 13.37 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.9638, allocations: 346.2 kB / 0.7546 GB, free: 13 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.9638, allocations: 28.66 kB / 0.7546 GB, free: 12.97 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.123e-05/0.9639, allocations: 32 kB / 0.7547 GB, free: 12.94 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.9651, allocations: 0.6049 MB / 0.7553 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.9652, allocations: 0 / 0.7553 GB, free: 12.31 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.767e-05/0.9652, allocations: 12 kB / 0.7553 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.9652, allocations: 19.44 kB / 0.7553 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.9666, allocations: 0.5493 MB / 0.7558 GB, free: 11.74 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002525/0.9691, allocations: 2.508 MB / 0.7583 GB, free: 9.016 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.9702, allocations: 499.8 kB / 0.7588 GB, free: 8.52 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005311/0.9708, allocations: 342.3 kB / 0.7591 GB, free: 8.184 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4134/1.384, allocations: 139 MB / 0.8948 GB, free: 218.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/1.384, allocations: 40.75 kB / 0.8948 GB, free: 218.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 6.923e-06/1.384, allocations: 6.453 kB / 0.8949 GB, free: 218.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006466/1.391, allocations: 2.336 MB / 0.8971 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/1.391, allocations: 62.38 kB / 0.8972 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/1.391, allocations: 258.6 kB / 0.8974 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/1.391, allocations: 29.7 kB / 0.8975 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.661e-05/1.391, allocations: 192 kB / 0.8977 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/1.391, allocations: 282 kB / 0.8979 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/1.391, allocations: 98.06 kB / 0.898 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.027e-05/1.392, allocations: 354.8 kB / 0.8984 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004091/1.392, allocations: 271.5 kB / 0.8986 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/1.392, allocations: 383.4 kB / 0.899 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008641/1.393, allocations: 0.6857 MB / 0.8996 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.393, allocations: 0 / 0.8996 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001198/1.394, allocations: 0.7815 MB / 0.9004 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/1.395, allocations: 4.938 kB / 0.9004 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/1.395, allocations: 7.25 kB / 0.9004 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002278/1.395, allocations: 65.67 kB / 0.9005 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005553/1.395, allocations: 129.7 kB / 0.9006 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06466/1.46, allocations: 19.42 MB / 0.9196 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004123/1.46, allocations: 35.97 kB / 0.9196 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/1.461, allocations: 23.97 kB / 0.9196 GB, free: 193.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0002474/1.461, allocations: 197.8 kB / 0.9198 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.28e-05/1.461, allocations: 43.72 kB / 0.9199 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001723/1.463, allocations: 1.679 MB / 0.9215 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/1.463, allocations: 11.98 kB / 0.9215 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/1.463, allocations: 0 / 0.9215 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001271/1.464, allocations: 1.25 MB / 0.9227 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001912/1.466, allocations: 1.704 MB / 0.9244 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.808e-06/1.466, allocations: 0 / 0.9244 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/1.466, allocations: 79.81 kB / 0.9245 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002422/1.466, allocations: 105.6 kB / 0.9246 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/1.466, allocations: 15.98 kB / 0.9246 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008916/1.467, allocations: 1.985 MB / 0.9265 GB, free: 186.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/1.467, allocations: 4.031 kB / 0.9265 GB, free: 186.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001599/1.469, allocations: 1.303 MB / 0.9278 GB, free: 184.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.899e-05/1.469, allocations: 123 kB / 0.9279 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.668e-05/1.469, allocations: 11.94 kB / 0.9279 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002909/1.469, allocations: 27.97 kB / 0.928 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/1.47, allocations: 39.94 kB / 0.928 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/1.47, allocations: 12 kB / 0.928 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001736/1.47, allocations: 227.1 kB / 0.9282 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.47, allocations: 0 / 0.9282 GB, free: 184.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007906/1.478, allocations: 3.569 MB / 0.9317 GB, free: 181.3 MB / 0.6075 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 (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.0158/1.494, allocations: 4.607 MB / 0.9362 GB, free: 177.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002171/1.496, allocations: 1.03 MB / 0.9372 GB, free: 176.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.496, allocations: 0 / 0.9372 GB, free: 176.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006836/1.496, allocations: 0.503 MB / 0.9377 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/1.498, allocations: 401.8 kB / 0.9381 GB, free: 175.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/1.5, allocations: 1.19 MB / 0.9393 GB, free: 174 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/1.5, allocations: 0.8487 MB / 0.9401 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003358/1.501, allocations: 151 kB / 0.9402 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.426e-05/1.501, allocations: 43.44 kB / 0.9403 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of SimCode: time 4.81e-07/1.501, allocations: 3.938 kB / 0.9403 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of Templates: time 0.1334/1.634, allocations: 126.4 MB / 1.064 GB, free: 46.45 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)