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.005006/0.005006, allocations: 102.5 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.00108/0.001081, allocations: 194.9 kB / 16.67 MB, free: 5.949 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.445/1.445, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04389/0.04389, allocations: 9.088 MB / 279 MB, free: 12.1 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.001456/0.001456, allocations: 67.91 kB / 387.5 MB, free: 7.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3062, allocations: 48.14 MB / 435.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.1356/0.4419, allocations: 128.8 MB / 0.5513 GB, free: 15.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3868/0.8287, allocations: 111.1 MB / 0.6597 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007374/0.8295, allocations: 8.281 kB / 0.6597 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003672/0.8332, allocations: 1.371 MB / 0.6611 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004055/0.8373, allocations: 1.653 MB / 0.6627 GB, free: 236 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.08377/0.9211, allocations: 29.51 MB / 0.6915 GB, free: 7.016 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002304/0.9234, allocations: 1.402 MB / 0.6929 GB, free: 6.008 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.9237, allocations: 132.2 kB / 0.693 GB, free: 5.906 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0172/0.941, allocations: 9.754 MB / 0.7025 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006829/0.9417, allocations: 378.5 kB / 0.7029 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.45e-05/0.9418, allocations: 40 kB / 0.7029 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0667/1.008, allocations: 35.26 MB / 0.7374 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002512/1.009, allocations: 118.3 kB / 0.7375 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005347/1.009, allocations: 310.7 kB / 0.7378 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04674/1.056, allocations: 14.09 MB / 0.7515 GB, free: 224 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/1.056, allocations: 0 / 0.7515 GB, free: 224 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.923e-06/1.056, allocations: 0 / 0.7515 GB, free: 224 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.088e-05/1.056, allocations: 0 / 0.7515 GB, free: 224 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.007097/1.063, allocations: 2.571 MB / 0.754 GB, free: 13.6 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/1.063, allocations: 12.03 kB / 0.7541 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006475/1.064, allocations: 87.39 kB / 0.7541 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005752/1.065, allocations: 343.2 kB / 0.7545 GB, free: 13.13 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/1.065, allocations: 32.66 kB / 0.7545 GB, free: 13.1 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/1.065, allocations: 28 kB / 0.7545 GB, free: 13.07 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/1.066, allocations: 0.604 MB / 0.7551 GB, free: 12.45 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.293e-05/1.066, allocations: 0 / 0.7551 GB, free: 12.45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/1.066, allocations: 16 kB / 0.7551 GB, free: 12.44 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/1.066, allocations: 15.05 kB / 0.7551 GB, free: 12.43 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/1.067, allocations: 0.552 MB / 0.7557 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/1.07, allocations: 2.505 MB / 0.7581 GB, free: 9.164 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/1.071, allocations: 499.7 kB / 0.7586 GB, free: 8.672 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000531/1.072, allocations: 338.8 kB / 0.7589 GB, free: 8.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4426/1.514, allocations: 139 MB / 0.8947 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/1.514, allocations: 32.56 kB / 0.8947 GB, free: 219 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.136e-06/1.514, allocations: 0 / 0.8947 GB, free: 219 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005349/1.52, allocations: 2.33 MB / 0.897 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/1.52, allocations: 60.03 kB / 0.897 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/1.52, allocations: 254.5 kB / 0.8973 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/1.52, allocations: 34.39 kB / 0.8973 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.81e-05/1.52, allocations: 189.1 kB / 0.8975 GB, free: 217 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.603e-05/1.52, allocations: 269.3 kB / 0.8977 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/1.52, allocations: 97.67 kB / 0.8978 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.781e-05/1.52, allocations: 354.8 kB / 0.8982 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/1.521, allocations: 271.9 kB / 0.8984 GB, free: 216 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004754/1.521, allocations: 382 kB / 0.8988 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009002/1.522, allocations: 0.6887 MB / 0.8995 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/1.522, allocations: 0 / 0.8995 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001175/1.523, allocations: 0.7832 MB / 0.9002 GB, free: 214.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/1.523, allocations: 4.938 kB / 0.9002 GB, free: 214.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/1.523, allocations: 4 kB / 0.9002 GB, free: 214.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002174/1.524, allocations: 68.89 kB / 0.9003 GB, free: 214 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005445/1.524, allocations: 127.8 kB / 0.9004 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06538/1.59, allocations: 19.41 MB / 0.9194 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004497/1.59, allocations: 34.75 kB / 0.9194 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.153e-05/1.59, allocations: 16 kB / 0.9194 GB, free: 193.9 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.0002301/1.59, allocations: 196.1 kB / 0.9196 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.298e-05/1.591, allocations: 43.44 kB / 0.9197 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/1.592, allocations: 1.681 MB / 0.9213 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/1.592, allocations: 15.73 kB / 0.9213 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/1.592, allocations: 0 / 0.9213 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001197/1.593, allocations: 1.248 MB / 0.9225 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/1.595, allocations: 1.702 MB / 0.9242 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/1.595, allocations: 4 kB / 0.9242 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/1.596, allocations: 81.62 kB / 0.9243 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002432/1.596, allocations: 97.59 kB / 0.9244 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/1.596, allocations: 15.98 kB / 0.9244 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008985/1.597, allocations: 1.989 MB / 0.9263 GB, free: 186.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.597, allocations: 0 / 0.9263 GB, free: 186.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001654/1.599, allocations: 1.299 MB / 0.9276 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.762e-05/1.599, allocations: 120.6 kB / 0.9277 GB, free: 185 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.137e-05/1.599, allocations: 7.938 kB / 0.9277 GB, free: 185 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/1.599, allocations: 36.03 kB / 0.9278 GB, free: 185 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.061e-05/1.599, allocations: 39.88 kB / 0.9278 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/1.599, allocations: 16 kB / 0.9278 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001773/1.599, allocations: 223.1 kB / 0.928 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.11e-07/1.599, allocations: 0 / 0.928 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008215/1.608, allocations: 3.509 MB / 0.9314 GB, free: 181.7 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.01488/1.622, allocations: 4.567 MB / 0.9359 GB, free: 177.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002066/1.625, allocations: 1.03 MB / 0.9369 GB, free: 176.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.625, allocations: 0 / 0.9369 GB, free: 176.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006742/1.625, allocations: 0.4992 MB / 0.9374 GB, free: 176 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/1.627, allocations: 399.5 kB / 0.9378 GB, free: 175.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/1.629, allocations: 1.178 MB / 0.9389 GB, free: 174.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/1.629, allocations: 0.8487 MB / 0.9398 GB, free: 173.6 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003361/1.629, allocations: 143.2 kB / 0.9399 GB, free: 173.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.976e-05/1.629, allocations: 47.42 kB / 0.9399 GB, free: 173.4 MB / 0.6075 GB Notification: Performance of SimCode: time 1.643e-06/1.629, allocations: 0 / 0.9399 GB, free: 173.4 MB / 0.6075 GB Notification: Performance of Templates: time 0.1247/1.754, allocations: 126.5 MB / 1.064 GB, free: 46.79 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)