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.005332/0.005332, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001151/0.001151, allocations: 202.6 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.378/1.378, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04563/0.04563, allocations: 9.084 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.00133/0.00133, allocations: 67.91 kB / 387.5 MB, free: 7.961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2453, allocations: 48.15 MB / 435.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.123/0.3684, allocations: 128.6 MB / 0.551 GB, free: 15.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3077/0.6761, allocations: 111.1 MB / 0.6595 GB, free: 216 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004676/0.6766, allocations: 8 kB / 0.6595 GB, free: 216 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.6792, allocations: 1.368 MB / 0.6608 GB, free: 204 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002838/0.682, allocations: 1.653 MB / 0.6624 GB, free: 156 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.06769/0.7497, allocations: 29.24 MB / 0.691 GB, free: 7.285 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.7515, allocations: 1.402 MB / 0.6924 GB, free: 6.277 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.7518, allocations: 132.7 kB / 0.6925 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01572/0.7675, allocations: 10.5 MB / 0.7027 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004922/0.768, allocations: 371.2 kB / 0.7031 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.628e-05/0.7681, allocations: 40 kB / 0.7031 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05853/0.8267, allocations: 34.53 MB / 0.7368 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002525/0.827, allocations: 121.8 kB / 0.737 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004845/0.8275, allocations: 305.7 kB / 0.7373 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04043/0.8679, allocations: 13.96 MB / 0.7509 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.868, allocations: 4 kB / 0.7509 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.984e-06/0.868, allocations: 3.938 kB / 0.7509 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.868, allocations: 0 / 0.7509 GB, free: 0.6289 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.006009/0.874, allocations: 2.667 MB / 0.7535 GB, free: 13.91 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.8741, allocations: 15.97 kB / 0.7535 GB, free: 13.9 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006196/0.8747, allocations: 95.62 kB / 0.7536 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.8752, allocations: 339 kB / 0.7539 GB, free: 13.44 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.8752, allocations: 29.53 kB / 0.754 GB, free: 13.41 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.8753, allocations: 32 kB / 0.754 GB, free: 13.38 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.8765, allocations: 0.6049 MB / 0.7546 GB, free: 12.75 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.8766, allocations: 0 / 0.7546 GB, free: 12.75 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.8766, allocations: 19.98 kB / 0.7546 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.8766, allocations: 10.97 kB / 0.7546 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.8779, allocations: 0.5532 MB / 0.7552 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00261/0.8805, allocations: 2.47 MB / 0.7576 GB, free: 9.508 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.8816, allocations: 0.4963 MB / 0.758 GB, free: 9.004 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000535/0.8822, allocations: 330 kB / 0.7584 GB, free: 8.68 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4044/1.287, allocations: 139 MB / 0.8941 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/1.287, allocations: 36.66 kB / 0.8941 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.457e-06/1.287, allocations: 0 / 0.8941 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005533/1.292, allocations: 2.342 MB / 0.8964 GB, free: 218 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.791e-05/1.292, allocations: 59.16 kB / 0.8965 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/1.292, allocations: 268.7 kB / 0.8967 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/1.293, allocations: 33.7 kB / 0.8968 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.465e-05/1.293, allocations: 195.7 kB / 0.897 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/1.293, allocations: 273.4 kB / 0.8972 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/1.293, allocations: 102.1 kB / 0.8973 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.953e-05/1.293, allocations: 354.8 kB / 0.8976 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/1.293, allocations: 268.2 kB / 0.8979 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004505/1.294, allocations: 389 kB / 0.8983 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008671/1.295, allocations: 0.7001 MB / 0.899 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/1.295, allocations: 2.781 kB / 0.899 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00116/1.296, allocations: 0.7965 MB / 0.8997 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/1.296, allocations: 5.125 kB / 0.8997 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/1.296, allocations: 4 kB / 0.8997 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002577/1.296, allocations: 61.67 kB / 0.8998 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006532/1.297, allocations: 142.6 kB / 0.8999 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06363/1.36, allocations: 18.42 MB / 0.9179 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004185/1.361, allocations: 36.03 kB / 0.918 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/1.361, allocations: 12 kB / 0.918 GB, free: 195.3 MB / 0.6075 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.000226/1.361, allocations: 201.4 kB / 0.9182 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.454e-05/1.361, allocations: 51.59 kB / 0.9182 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001682/1.363, allocations: 1.708 MB / 0.9199 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/1.363, allocations: 19.42 kB / 0.9199 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/1.363, allocations: 0 / 0.9199 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001229/1.364, allocations: 1.292 MB / 0.9212 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/1.366, allocations: 1.743 MB / 0.9229 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/1.366, allocations: 0 / 0.9229 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/1.366, allocations: 79.88 kB / 0.9229 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002834/1.367, allocations: 170.1 kB / 0.9231 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/1.367, allocations: 12.81 kB / 0.9231 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001102/1.368, allocations: 2.569 MB / 0.9256 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/1.368, allocations: 0 / 0.9256 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/1.37, allocations: 1.378 MB / 0.927 GB, free: 185.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/1.37, allocations: 127.4 kB / 0.9271 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.837e-05/1.37, allocations: 11.98 kB / 0.9271 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/1.37, allocations: 19.98 kB / 0.9271 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/1.37, allocations: 47.92 kB / 0.9272 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/1.37, allocations: 12 kB / 0.9272 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001827/1.371, allocations: 219.1 kB / 0.9274 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.371, allocations: 0 / 0.9274 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007828/1.378, allocations: 3.577 MB / 0.9309 GB, free: 182.1 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 (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.01805/1.396, allocations: 4.514 MB / 0.9353 GB, free: 178.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002349/1.399, allocations: 1.058 MB / 0.9363 GB, free: 177 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/1.399, allocations: 0 / 0.9363 GB, free: 177 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006964/1.4, allocations: 0.511 MB / 0.9368 GB, free: 176.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/1.401, allocations: 410.5 kB / 0.9372 GB, free: 176.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/1.403, allocations: 1.187 MB / 0.9384 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/1.403, allocations: 0.8525 MB / 0.9392 GB, free: 174 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003518/1.404, allocations: 146.8 kB / 0.9394 GB, free: 173.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.109e-05/1.404, allocations: 43.44 kB / 0.9394 GB, free: 173.8 MB / 0.6075 GB Notification: Performance of SimCode: time 1.413e-06/1.404, allocations: 0 / 0.9394 GB, free: 173.8 MB / 0.6075 GB Notification: Performance of Templates: time 0.1298/1.534, allocations: 126.6 MB / 1.063 GB, free: 47.09 MB / 0.6075 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)