Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 109.2 kB / 16.36 MB, free: 6.336 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.001848/0.001849, allocations: 193.5 kB / 17.29 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.1 MB / 223.2 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.05242/0.05242, allocations: 9.101 MB / 279.6 MB, free: 2.953 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.002212/0.002212, allocations: 67.84 kB / 339.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4514/0.4536, allocations: 48.15 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1647/0.6183, allocations: 128.8 MB / 0.5043 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.6174/1.236, allocations: 111.1 MB / 0.6128 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/1.237, allocations: 9 kB / 0.6128 GB, free: 14.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005297/1.242, allocations: 1.372 MB / 0.6141 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006715/1.249, allocations: 1.648 MB / 0.6157 GB, free: 13.88 MB / 430.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.1314/1.381, allocations: 29.53 MB / 0.6446 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003118/1.384, allocations: 1.398 MB / 0.6459 GB, free: 8.551 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003882/1.384, allocations: 130.4 kB / 0.6461 GB, free: 8.434 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02194/1.406, allocations: 9.85 MB / 0.6557 GB, free: 15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007141/1.407, allocations: 378.2 kB / 0.656 GB, free: 14.65 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.424e-05/1.407, allocations: 44 kB / 0.6561 GB, free: 14.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08674/1.494, allocations: 35.36 MB / 0.6906 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003893/1.494, allocations: 118.2 kB / 0.6907 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007882/1.495, allocations: 314.7 kB / 0.691 GB, free: 11.92 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06828/1.563, allocations: 14.16 MB / 0.7049 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.281e-05/1.563, allocations: 4 kB / 0.7049 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.808e-06/1.563, allocations: 0 / 0.7049 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.311e-05/1.563, allocations: 0 / 0.7049 GB, free: 14.65 MB / 0.4981 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.009539/1.573, allocations: 2.564 MB / 0.7074 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/1.573, allocations: 8.031 kB / 0.7074 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007739/1.574, allocations: 91.39 kB / 0.7075 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006915/1.575, allocations: 338.1 kB / 0.7078 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.48e-05/1.575, allocations: 32.66 kB / 0.7078 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.19e-05/1.575, allocations: 32 kB / 0.7079 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/1.576, allocations: 0.6037 MB / 0.7084 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/1.576, allocations: 11.84 kB / 0.7085 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.464e-05/1.576, allocations: 16 kB / 0.7085 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.487e-05/1.576, allocations: 8 kB / 0.7085 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/1.578, allocations: 0.5485 MB / 0.709 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/1.581, allocations: 2.465 MB / 0.7114 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/1.582, allocations: 498.5 kB / 0.7119 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005797/1.583, allocations: 343.5 kB / 0.7122 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5203/2.103, allocations: 139 MB / 0.8479 GB, free: 85.22 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.705e-05/2.103, allocations: 38.56 kB / 0.848 GB, free: 85.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=77): time 5.861e-06/2.103, allocations: 0 / 0.848 GB, free: 85.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=81): time 0.008088/2.111, allocations: 2.337 MB / 0.8503 GB, free: 82.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/2.111, allocations: 55.41 kB / 0.8503 GB, free: 82.73 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004478/2.112, allocations: 265.6 kB / 0.8506 GB, free: 82.47 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.211e-05/2.112, allocations: 33.7 kB / 0.8506 GB, free: 82.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/2.112, allocations: 196.2 kB / 0.8508 GB, free: 82.24 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/2.112, allocations: 262.8 kB / 0.851 GB, free: 81.99 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/2.112, allocations: 98.11 kB / 0.8511 GB, free: 81.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001534/2.113, allocations: 350.8 kB / 0.8515 GB, free: 81.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005287/2.113, allocations: 277.2 kB / 0.8517 GB, free: 81.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006067/2.114, allocations: 390.7 kB / 0.8521 GB, free: 80.85 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/2.115, allocations: 0.6952 MB / 0.8528 GB, free: 80.12 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/2.115, allocations: 0 / 0.8528 GB, free: 80.12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001537/2.116, allocations: 0.8072 MB / 0.8536 GB, free: 79.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/2.117, allocations: 4 kB / 0.8536 GB, free: 79.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/2.117, allocations: 4 kB / 0.8536 GB, free: 79.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000324/2.117, allocations: 66.05 kB / 0.8536 GB, free: 79.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007781/2.118, allocations: 139.8 kB / 0.8538 GB, free: 79.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06667/2.184, allocations: 19.67 MB / 0.873 GB, free: 58.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/2.185, allocations: 23.98 kB / 0.873 GB, free: 58.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.9e-05/2.185, allocations: 19.98 kB / 0.873 GB, free: 58.82 MB / 0.4981 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.0004356/2.186, allocations: 191.1 kB / 0.8732 GB, free: 58.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/2.186, allocations: 43.59 kB / 0.8732 GB, free: 58.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/2.188, allocations: 1.706 MB / 0.8749 GB, free: 56.81 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.339e-05/2.188, allocations: 13.86 kB / 0.8749 GB, free: 56.8 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/2.188, allocations: 0 / 0.8749 GB, free: 56.8 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00147/2.189, allocations: 1.296 MB / 0.8762 GB, free: 55.41 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/2.192, allocations: 1.748 MB / 0.8779 GB, free: 53.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/2.192, allocations: 0 / 0.8779 GB, free: 53.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/2.192, allocations: 79.89 kB / 0.878 GB, free: 53.53 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003073/2.192, allocations: 166.3 kB / 0.8781 GB, free: 53.36 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/2.192, allocations: 8 kB / 0.8781 GB, free: 53.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/2.194, allocations: 2.585 MB / 0.8807 GB, free: 50.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/2.194, allocations: 0 / 0.8807 GB, free: 50.59 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/2.195, allocations: 1.383 MB / 0.882 GB, free: 49.17 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.551e-05/2.196, allocations: 112.6 kB / 0.8821 GB, free: 49.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.312e-05/2.196, allocations: 12 kB / 0.8821 GB, free: 49.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/2.196, allocations: 23.97 kB / 0.8822 GB, free: 49.01 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/2.196, allocations: 50.45 kB / 0.8822 GB, free: 48.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-05/2.196, allocations: 15.98 kB / 0.8822 GB, free: 48.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001912/2.196, allocations: 219.1 kB / 0.8824 GB, free: 48.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/2.196, allocations: 64 / 0.8824 GB, free: 48.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01319/2.21, allocations: 3.519 MB / 0.8859 GB, free: 45.67 MB / 0.4981 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.01731/2.227, allocations: 4.57 MB / 0.8903 GB, free: 41.58 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002689/2.23, allocations: 1.057 MB / 0.8914 GB, free: 40.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/2.23, allocations: 0 / 0.8914 GB, free: 40.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007181/2.23, allocations: 0.5071 MB / 0.8919 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/2.232, allocations: 396.2 kB / 0.8922 GB, free: 39.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/2.234, allocations: 1.187 MB / 0.8934 GB, free: 38.39 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/2.235, allocations: 0.8602 MB / 0.8942 GB, free: 37.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003539/2.235, allocations: 138.7 kB / 0.8944 GB, free: 37.37 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/2.235, allocations: 35.44 kB / 0.8944 GB, free: 37.34 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/2.235, allocations: 3.938 kB / 0.8944 GB, free: 37.33 MB / 0.4981 GB Notification: Performance of Templates: time 0.5435/2.779, allocations: 126.5 MB / 1.018 GB, free: 146.9 MB / 0.4981 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)