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.00157/0.00157, allocations: 117.3 kB / 16.37 MB, free: 6.016 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.001673/0.001673, allocations: 189.7 kB / 17.3 MB, free: 5.613 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.89/1.89, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04988/0.04988, allocations: 9.105 MB / 279.6 MB, free: 2.973 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.002041/0.002041, allocations: 67.91 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4355/0.4376, allocations: 48.15 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.159/0.5967, allocations: 128.8 MB / 0.5043 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.5765/1.173, allocations: 111.1 MB / 0.6128 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/1.174, allocations: 4.375 kB / 0.6128 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004754/1.179, allocations: 1.369 MB / 0.6142 GB, free: 14.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005745/1.185, allocations: 1.65 MB / 0.6158 GB, free: 13.87 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.1278/1.313, allocations: 29.5 MB / 0.6446 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003582/1.317, allocations: 1.413 MB / 0.646 GB, free: 8.539 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004345/1.317, allocations: 124.4 kB / 0.6461 GB, free: 8.426 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02518/1.342, allocations: 9.724 MB / 0.6556 GB, free: 15.11 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009175/1.343, allocations: 381.8 kB / 0.6559 GB, free: 14.77 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.393e-05/1.343, allocations: 47.94 kB / 0.656 GB, free: 14.72 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08681/1.43, allocations: 35.26 MB / 0.6904 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000352/1.431, allocations: 122.8 kB / 0.6905 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007032/1.431, allocations: 301.9 kB / 0.6908 GB, free: 12.14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0622/1.493, allocations: 14.09 MB / 0.7046 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/1.494, allocations: 0 / 0.7046 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.765e-06/1.494, allocations: 0 / 0.7046 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.053e-05/1.494, allocations: 4 kB / 0.7046 GB, free: 14.93 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.008423/1.502, allocations: 2.571 MB / 0.7071 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/1.502, allocations: 8.031 kB / 0.7071 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007606/1.503, allocations: 87.39 kB / 0.7072 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006393/1.503, allocations: 338.1 kB / 0.7075 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.007e-05/1.504, allocations: 32.66 kB / 0.7075 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/1.504, allocations: 28 kB / 0.7076 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/1.505, allocations: 0.6039 MB / 0.7082 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/1.505, allocations: 3.906 kB / 0.7082 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.505e-05/1.505, allocations: 16 kB / 0.7082 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/1.505, allocations: 19.97 kB / 0.7082 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/1.506, allocations: 0.5523 MB / 0.7087 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/1.509, allocations: 2.507 MB / 0.7112 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/1.51, allocations: 499.3 kB / 0.7117 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005258/1.511, allocations: 335.8 kB / 0.712 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5263/2.037, allocations: 139 MB / 0.8477 GB, free: 85.39 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.84e-05/2.037, allocations: 34.84 kB / 0.8477 GB, free: 85.35 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=78): time 4.067e-06/2.037, allocations: 0 / 0.8477 GB, free: 85.35 MB / 0.4981 GB Notification: Performance of matching and sorting (n=82): time 0.006891/2.044, allocations: 2.336 MB / 0.85 GB, free: 82.98 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/2.044, allocations: 55.41 kB / 0.8501 GB, free: 82.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/2.045, allocations: 258.5 kB / 0.8503 GB, free: 82.65 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/2.045, allocations: 33.7 kB / 0.8503 GB, free: 82.61 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/2.045, allocations: 189 kB / 0.8505 GB, free: 82.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/2.045, allocations: 263.8 kB / 0.8508 GB, free: 82.17 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/2.045, allocations: 102.1 kB / 0.8509 GB, free: 82.07 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.755e-05/2.045, allocations: 354.8 kB / 0.8512 GB, free: 81.71 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004764/2.046, allocations: 269.3 kB / 0.8515 GB, free: 81.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/2.046, allocations: 381.8 kB / 0.8518 GB, free: 81.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/2.047, allocations: 0.6865 MB / 0.8525 GB, free: 80.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/2.047, allocations: 0 / 0.8525 GB, free: 80.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001412/2.049, allocations: 0.7987 MB / 0.8533 GB, free: 79.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/2.049, allocations: 7.984 kB / 0.8533 GB, free: 79.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/2.049, allocations: 4 kB / 0.8533 GB, free: 79.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002851/2.049, allocations: 61.69 kB / 0.8534 GB, free: 79.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005977/2.05, allocations: 127.8 kB / 0.8535 GB, free: 79.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06643/2.116, allocations: 19.42 MB / 0.8724 GB, free: 59.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006002/2.117, allocations: 28 kB / 0.8725 GB, free: 59.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-05/2.117, allocations: 16 kB / 0.8725 GB, free: 59.32 MB / 0.4981 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.0004028/2.117, allocations: 196 kB / 0.8727 GB, free: 59.13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000167/2.117, allocations: 47.42 kB / 0.8727 GB, free: 59.08 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002207/2.12, allocations: 1.663 MB / 0.8743 GB, free: 57.35 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/2.12, allocations: 22.61 kB / 0.8744 GB, free: 57.33 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/2.12, allocations: 0 / 0.8744 GB, free: 57.33 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001418/2.121, allocations: 1.249 MB / 0.8756 GB, free: 56 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/2.123, allocations: 1.707 MB / 0.8772 GB, free: 54.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/2.123, allocations: 0 / 0.8772 GB, free: 54.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/2.124, allocations: 80.62 kB / 0.8773 GB, free: 54.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002938/2.124, allocations: 103.8 kB / 0.8774 GB, free: 54.05 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/2.124, allocations: 12 kB / 0.8774 GB, free: 54.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/2.125, allocations: 1.994 MB / 0.8794 GB, free: 51.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/2.125, allocations: 0 / 0.8794 GB, free: 51.88 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/2.127, allocations: 1.305 MB / 0.8807 GB, free: 50.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/2.127, allocations: 112.6 kB / 0.8808 GB, free: 50.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/2.128, allocations: 5.781 kB / 0.8808 GB, free: 50.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/2.128, allocations: 35.97 kB / 0.8808 GB, free: 50.38 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/2.128, allocations: 39.94 kB / 0.8808 GB, free: 50.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.342e-05/2.128, allocations: 19.92 kB / 0.8809 GB, free: 50.32 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002096/2.128, allocations: 227.1 kB / 0.8811 GB, free: 50.1 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/2.128, allocations: 0 / 0.8811 GB, free: 50.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.012/2.14, allocations: 3.513 MB / 0.8845 GB, free: 47.05 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 (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.02156/2.162, allocations: 4.555 MB / 0.889 GB, free: 43 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002668/2.165, allocations: 1.029 MB / 0.89 GB, free: 41.95 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/2.165, allocations: 0 / 0.89 GB, free: 41.95 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009106/2.166, allocations: 0.5031 MB / 0.8904 GB, free: 41.43 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/2.168, allocations: 390.3 kB / 0.8908 GB, free: 41.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/2.17, allocations: 1.181 MB / 0.892 GB, free: 39.89 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/2.17, allocations: 0.8487 MB / 0.8928 GB, free: 39 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005052/2.171, allocations: 145.4 kB / 0.8929 GB, free: 38.87 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/2.171, allocations: 43.44 kB / 0.893 GB, free: 38.82 MB / 0.4981 GB Notification: Performance of SimCode: time 9.32e-07/2.171, allocations: 0 / 0.893 GB, free: 38.82 MB / 0.4981 GB Notification: Performance of Templates: time 0.4669/2.638, allocations: 126.2 MB / 1.016 GB, free: 148.3 MB / 0.4981 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 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)