Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008698/0.008698, allocations: 102.3 kB / 15.73 MB, free: 5.516 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.00188/0.00188, allocations: 195.1 kB / 16.67 MB, free: 5.449 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.36/1.36, allocations: 205.1 MB / 222.6 MB, free: 4.363 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04677/0.04677, allocations: 9.1 MB / 279 MB, free: 11.92 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.001501/0.001501, allocations: 64.38 kB / 387.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2444, allocations: 48.14 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4164/0.6609, allocations: 197.7 MB / 0.6185 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1163/0.7772, allocations: 143.7 MB / 0.7588 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007007/0.778, allocations: 7.938 kB / 0.7589 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003845/0.7819, allocations: 1.851 MB / 0.7607 GB, free: 7.703 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.005264/0.7871, allocations: 2.535 MB / 0.7631 GB, free: 5.156 MB / 0.5294 GB [/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.09234/0.8795, allocations: 39.11 MB / 0.8013 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00275/0.8823, allocations: 1.971 MB / 0.8033 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003906/0.8827, allocations: 191.5 kB / 0.8034 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.8843, allocations: 0.8018 MB / 0.8042 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001/0.8853, allocations: 0.5252 MB / 0.8047 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.8854, allocations: 63.98 kB / 0.8048 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3679/1.253, allocations: 46.6 MB / 0.8503 GB, free: 43.9 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004187/1.254, allocations: 166.7 kB / 0.8505 GB, free: 43.9 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009524/1.255, allocations: 424.4 kB / 0.8509 GB, free: 43.9 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06057/1.315, allocations: 18.81 MB / 0.8692 GB, free: 43.34 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.315, allocations: 1.156 kB / 0.8692 GB, free: 43.34 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.813e-06/1.315, allocations: 0 / 0.8692 GB, free: 43.34 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.593e-05/1.315, allocations: 0 / 0.8692 GB, free: 43.34 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01084/1.326, allocations: 3.495 MB / 0.8726 GB, free: 41.42 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/1.326, allocations: 12.25 kB / 0.8727 GB, free: 41.42 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008392/1.327, allocations: 122 kB / 0.8728 GB, free: 41.38 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006405/1.328, allocations: 412.8 kB / 0.8732 GB, free: 41.14 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.907e-05/1.328, allocations: 40.69 kB / 0.8732 GB, free: 41.14 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.644e-05/1.328, allocations: 45.94 kB / 0.8733 GB, free: 41.14 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/1.33, allocations: 0.8189 MB / 0.8741 GB, free: 41.03 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/1.33, allocations: 11.17 kB / 0.8741 GB, free: 41.02 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.111e-05/1.33, allocations: 19.44 kB / 0.8741 GB, free: 41.02 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.875e-05/1.33, allocations: 26.73 kB / 0.8741 GB, free: 41.02 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/1.331, allocations: 0.7534 MB / 0.8748 GB, free: 41.02 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002768/1.334, allocations: 3.426 MB / 0.8782 GB, free: 38.76 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00134/1.335, allocations: 0.6856 MB / 0.8789 GB, free: 38.73 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006641/1.336, allocations: 480.5 kB / 0.8793 GB, free: 38.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3117/1.648, allocations: 185.3 MB / 1.06 GB, free: 8.766 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/1.648, allocations: 41.66 kB / 1.06 GB, free: 8.723 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.537e-06/1.648, allocations: 4 kB / 1.06 GB, free: 8.719 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.00908/1.657, allocations: 3.436 MB / 1.064 GB, free: 6.125 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/1.657, allocations: 55.97 kB / 1.064 GB, free: 6.055 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/1.657, allocations: 307.6 kB / 1.064 GB, free: 5.797 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/1.657, allocations: 37.44 kB / 1.064 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/1.658, allocations: 235.2 kB / 1.064 GB, free: 5.566 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002403/1.658, allocations: 398 kB / 1.065 GB, free: 5.23 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/1.658, allocations: 140.7 kB / 1.065 GB, free: 5.133 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001381/1.658, allocations: 365.2 kB / 1.065 GB, free: 4.793 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006712/1.659, allocations: 397.8 kB / 1.066 GB, free: 4.562 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007679/1.66, allocations: 0.5357 MB / 1.066 GB, free: 4.152 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/1.661, allocations: 0.9757 MB / 1.067 GB, free: 3.504 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/1.661, allocations: 0 / 1.067 GB, free: 3.504 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002097/1.663, allocations: 1.134 MB / 1.068 GB, free: 2.738 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/1.663, allocations: 10.97 kB / 1.068 GB, free: 2.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/1.663, allocations: 5.312 kB / 1.068 GB, free: 2.727 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003879/1.664, allocations: 105.2 kB / 1.068 GB, free: 2.637 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/1.665, allocations: 200.6 kB / 1.068 GB, free: 2.461 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3307/1.996, allocations: 35.28 MB / 1.103 GB, free: 425.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006445/1.996, allocations: 40.11 kB / 1.103 GB, free: 425.3 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/1.996, allocations: 26.39 kB / 1.103 GB, free: 425.3 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003718/1.997, allocations: 224.9 kB / 1.103 GB, free: 425.2 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/1.997, allocations: 65.8 kB / 1.103 GB, free: 425.2 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/2, allocations: 2.394 MB / 1.106 GB, free: 424.9 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.479e-05/2, allocations: 23 kB / 1.106 GB, free: 424.9 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/2, allocations: 0 / 1.106 GB, free: 424.9 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001885/2.002, allocations: 1.643 MB / 1.107 GB, free: 424.2 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003059/2.005, allocations: 2.458 MB / 1.11 GB, free: 423 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/2.005, allocations: 0 / 1.11 GB, free: 423 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004743/2.005, allocations: 128.2 kB / 1.11 GB, free: 423 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004286/2.006, allocations: 208.3 kB / 1.11 GB, free: 422.9 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/2.006, allocations: 19.69 kB / 1.11 GB, free: 422.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/2.007, allocations: 3.97 MB / 1.114 GB, free: 419 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/2.007, allocations: 2.562 kB / 1.114 GB, free: 419 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/2.01, allocations: 1.982 MB / 1.116 GB, free: 418 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/2.01, allocations: 141.9 kB / 1.116 GB, free: 417.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.804e-05/2.01, allocations: 10.97 kB / 1.116 GB, free: 417.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/2.011, allocations: 34.23 kB / 1.116 GB, free: 417.9 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/2.011, allocations: 66.19 kB / 1.116 GB, free: 417.9 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-05/2.011, allocations: 23.25 kB / 1.116 GB, free: 417.9 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002335/2.011, allocations: 257.8 kB / 1.116 GB, free: 417.8 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.21e-07/2.011, allocations: 0 / 1.116 GB, free: 417.8 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01369/2.025, allocations: 5.542 MB / 1.122 GB, free: 417.4 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.02704/2.052, allocations: 6.879 MB / 1.128 GB, free: 416.1 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003087/2.055, allocations: 1.578 MB / 1.13 GB, free: 415.1 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/2.055, allocations: 0 / 1.13 GB, free: 415.1 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001057/2.056, allocations: 0.8311 MB / 1.131 GB, free: 414.6 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/2.059, allocations: 0.4987 MB / 1.131 GB, free: 414.3 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/2.061, allocations: 1.742 MB / 1.133 GB, free: 413.4 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/2.061, allocations: 0.9341 MB / 1.134 GB, free: 412.6 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004627/2.062, allocations: 190.8 kB / 1.134 GB, free: 412.5 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/2.062, allocations: 56.53 kB / 1.134 GB, free: 412.5 MB / 0.7637 GB Notification: Performance of SimCode: time 1.132e-06/2.062, allocations: 0 / 1.134 GB, free: 412.5 MB / 0.7637 GB Notification: Performance of Templates: time 0.1954/2.257, allocations: 202.1 MB / 1.331 GB, free: 212.6 MB / 0.7637 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1)