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.001624/0.001624, allocations: 110.8 kB / 16.37 MB, free: 6.004 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.0017/0.0017, allocations: 195.8 kB / 17.31 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.402/1.402, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04546/0.04546, allocations: 9.093 MB / 279.6 MB, free: 2.977 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.001437/0.001437, allocations: 75.88 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2182, allocations: 48.15 MB / 387.6 MB, free: 51.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.116/0.3343, allocations: 128.8 MB / 0.5043 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2899/0.6242, allocations: 111.1 MB / 0.6128 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006255/0.6249, allocations: 9.312 kB / 0.6128 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002775/0.6278, allocations: 1.368 MB / 0.6141 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003265/0.631, allocations: 1.653 MB / 0.6157 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.07403/0.7051, allocations: 29.52 MB / 0.6446 GB, free: 9.934 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001952/0.7071, allocations: 1.403 MB / 0.646 GB, free: 8.559 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.7073, allocations: 124.5 kB / 0.6461 GB, free: 8.445 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0156/0.7229, allocations: 9.851 MB / 0.6557 GB, free: 15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000544/0.7235, allocations: 377.1 kB / 0.656 GB, free: 14.66 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.269e-05/0.7236, allocations: 40 kB / 0.6561 GB, free: 14.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06293/0.7865, allocations: 35.37 MB / 0.6906 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002587/0.7868, allocations: 127.9 kB / 0.6907 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005193/0.7874, allocations: 312.9 kB / 0.691 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04338/0.8308, allocations: 14.16 MB / 0.7049 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.8308, allocations: 0 / 0.7049 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8308, allocations: 0 / 0.7049 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.8308, allocations: 0 / 0.7049 GB, free: 14.69 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.006109/0.8369, allocations: 2.571 MB / 0.7074 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.837, allocations: 12.03 kB / 0.7074 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006435/0.8376, allocations: 87.39 kB / 0.7075 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005266/0.8382, allocations: 338.1 kB / 0.7078 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/0.8382, allocations: 32.66 kB / 0.7078 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.8383, allocations: 31.94 kB / 0.7079 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.8395, allocations: 0.6038 MB / 0.7085 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.8396, allocations: 11.83 kB / 0.7085 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.403e-05/0.8396, allocations: 17.69 kB / 0.7085 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.8397, allocations: 12 kB / 0.7085 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.8409, allocations: 0.5485 MB / 0.709 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002523/0.8435, allocations: 2.457 MB / 0.7114 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.8445, allocations: 494 kB / 0.7119 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005025/0.845, allocations: 339.5 kB / 0.7122 GB, free: 6.84 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3537/1.199, allocations: 139 MB / 0.8479 GB, free: 85.2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/1.199, allocations: 38.5 kB / 0.848 GB, free: 85.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=77): time 2.755e-06/1.199, allocations: 0 / 0.848 GB, free: 85.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=81): time 0.004961/1.204, allocations: 2.336 MB / 0.8503 GB, free: 82.78 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.267e-05/1.204, allocations: 59.39 kB / 0.8503 GB, free: 82.71 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/1.204, allocations: 265.6 kB / 0.8506 GB, free: 82.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/1.204, allocations: 37.08 kB / 0.8506 GB, free: 82.41 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.954e-05/1.204, allocations: 196 kB / 0.8508 GB, free: 82.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.963e-05/1.204, allocations: 255.9 kB / 0.851 GB, free: 81.97 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/1.204, allocations: 102 kB / 0.8511 GB, free: 81.86 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.859e-05/1.204, allocations: 346.8 kB / 0.8515 GB, free: 81.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003966/1.205, allocations: 281.2 kB / 0.8517 GB, free: 81.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/1.205, allocations: 391.8 kB / 0.8521 GB, free: 80.83 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000853/1.206, allocations: 0.6952 MB / 0.8528 GB, free: 80.09 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.206, allocations: 0 / 0.8528 GB, free: 80.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001166/1.207, allocations: 0.8026 MB / 0.8536 GB, free: 79.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/1.207, allocations: 8 kB / 0.8536 GB, free: 79.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/1.207, allocations: 5.625 kB / 0.8536 GB, free: 79.26 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/1.208, allocations: 66.05 kB / 0.8536 GB, free: 79.19 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006415/1.208, allocations: 147.7 kB / 0.8538 GB, free: 79.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06498/1.273, allocations: 19.67 MB / 0.873 GB, free: 58.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003925/1.274, allocations: 23.92 kB / 0.873 GB, free: 58.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/1.274, allocations: 23.98 kB / 0.873 GB, free: 58.79 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.0002351/1.274, allocations: 184.2 kB / 0.8732 GB, free: 58.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.999e-05/1.274, allocations: 39.53 kB / 0.8732 GB, free: 58.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/1.276, allocations: 1.71 MB / 0.8749 GB, free: 56.79 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/1.276, allocations: 18.33 kB / 0.8749 GB, free: 56.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/1.276, allocations: 0 / 0.8749 GB, free: 56.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001197/1.277, allocations: 1.292 MB / 0.8762 GB, free: 55.39 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001846/1.279, allocations: 1.755 MB / 0.8779 GB, free: 53.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/1.279, allocations: 0 / 0.8779 GB, free: 53.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/1.279, allocations: 71.95 kB / 0.878 GB, free: 53.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/1.279, allocations: 171.2 kB / 0.8781 GB, free: 53.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/1.28, allocations: 14.94 kB / 0.8782 GB, free: 53.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/1.281, allocations: 2.579 MB / 0.8807 GB, free: 50.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/1.281, allocations: 0 / 0.8807 GB, free: 50.55 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001653/1.282, allocations: 1.384 MB / 0.882 GB, free: 49.14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.382e-05/1.282, allocations: 112.6 kB / 0.8821 GB, free: 49.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/1.282, allocations: 8.875 kB / 0.8821 GB, free: 49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/1.283, allocations: 27.97 kB / 0.8822 GB, free: 48.97 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.262e-05/1.283, allocations: 43.88 kB / 0.8822 GB, free: 48.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/1.283, allocations: 15.98 kB / 0.8822 GB, free: 48.91 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001704/1.283, allocations: 223.1 kB / 0.8824 GB, free: 48.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/1.283, allocations: 4.062 kB / 0.8824 GB, free: 48.69 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007124/1.29, allocations: 3.512 MB / 0.8859 GB, free: 45.64 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.01433/1.305, allocations: 4.567 MB / 0.8903 GB, free: 41.61 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002086/1.307, allocations: 1.061 MB / 0.8914 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.307, allocations: 0 / 0.8914 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006761/1.307, allocations: 0.5032 MB / 0.8919 GB, free: 40 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/1.309, allocations: 412.9 kB / 0.8923 GB, free: 39.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/1.311, allocations: 1.181 MB / 0.8934 GB, free: 38.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/1.311, allocations: 0.8564 MB / 0.8942 GB, free: 37.52 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003396/1.311, allocations: 130.7 kB / 0.8944 GB, free: 37.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.152e-05/1.311, allocations: 39.44 kB / 0.8944 GB, free: 37.36 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/1.311, allocations: 0 / 0.8944 GB, free: 37.36 MB / 0.4981 GB Notification: Performance of Templates: time 0.2669/1.578, 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 gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)