Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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.ButaneTestModel_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007311/0.007311, allocations: 105.8 kB / 15.74 MB, free: 5.996 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.001267/0.001268, allocations: 200 kB / 16.68 MB, free: 5.922 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.778/1.778, allocations: 205.1 MB / 222.5 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04586/0.04586, allocations: 9.088 MB / 279 MB, free: 12.07 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.001565/0.001565, allocations: 71.84 kB / 387.5 MB, free: 7.941 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3178, allocations: 48.14 MB / 435.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1654/0.4832, allocations: 142.2 MB / 0.5643 GB, free: 2.176 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4496/0.9329, allocations: 97.71 MB / 0.6597 GB, free: 296 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008492/0.9338, allocations: 9.125 kB / 0.6597 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003214/0.937, allocations: 1.364 MB / 0.6611 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004233/0.9413, allocations: 1.653 MB / 0.6627 GB, free: 244 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.08635/1.028, allocations: 29.55 MB / 0.6915 GB, free: 7.074 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002468/1.03, allocations: 1.411 MB / 0.6929 GB, free: 6.059 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/1.03, allocations: 128.4 kB / 0.693 GB, free: 5.965 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01895/1.049, allocations: 9.876 MB / 0.7027 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006726/1.05, allocations: 386.5 kB / 0.703 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.998e-05/1.05, allocations: 40 kB / 0.7031 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07048/1.121, allocations: 36.35 MB / 0.7386 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002671/1.121, allocations: 114.2 kB / 0.7387 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006283/1.122, allocations: 305.7 kB / 0.739 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04961/1.171, allocations: 14.57 MB / 0.7532 GB, free: 14.65 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.171, allocations: 0 / 0.7532 GB, free: 14.65 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.863e-06/1.171, allocations: 0 / 0.7532 GB, free: 14.65 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.297e-06/1.171, allocations: 0 / 0.7532 GB, free: 14.65 MB / 0.545 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.009769/1.181, allocations: 2.658 MB / 0.7558 GB, free: 11.95 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/1.181, allocations: 12.03 kB / 0.7558 GB, free: 11.94 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006052/1.182, allocations: 75.41 kB / 0.7559 GB, free: 11.86 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006004/1.182, allocations: 339.8 kB / 0.7562 GB, free: 11.5 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.582e-05/1.182, allocations: 28.66 kB / 0.7562 GB, free: 11.47 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/1.183, allocations: 32 kB / 0.7563 GB, free: 11.44 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/1.184, allocations: 0.5883 MB / 0.7569 GB, free: 10.83 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/1.184, allocations: 0 / 0.7569 GB, free: 10.83 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/1.184, allocations: 12 kB / 0.7569 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/1.184, allocations: 30.14 kB / 0.7569 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/1.185, allocations: 0.5168 MB / 0.7574 GB, free: 10.29 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/1.188, allocations: 2.484 MB / 0.7598 GB, free: 7.59 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/1.189, allocations: 494.6 kB / 0.7603 GB, free: 7.105 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005396/1.19, allocations: 338.8 kB / 0.7606 GB, free: 6.773 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4875/1.677, allocations: 113.4 MB / 0.8714 GB, free: 80.86 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/1.677, allocations: 38.81 kB / 0.8714 GB, free: 80.82 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.486e-06/1.677, allocations: 0 / 0.8714 GB, free: 80.82 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005934/1.683, allocations: 2.43 MB / 0.8738 GB, free: 80.37 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/1.683, allocations: 54.25 kB / 0.8738 GB, free: 80.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/1.683, allocations: 264.4 kB / 0.8741 GB, free: 80.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/1.684, allocations: 31.52 kB / 0.8741 GB, free: 80.16 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/1.684, allocations: 186.2 kB / 0.8743 GB, free: 80.05 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/1.684, allocations: 269 kB / 0.8745 GB, free: 79.91 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/1.684, allocations: 100.3 kB / 0.8746 GB, free: 79.89 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.855e-05/1.684, allocations: 354.1 kB / 0.875 GB, free: 79.58 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/1.684, allocations: 275.1 kB / 0.8752 GB, free: 79.58 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004982/1.685, allocations: 405.1 kB / 0.8756 GB, free: 79.46 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000973/1.686, allocations: 0.7162 MB / 0.8763 GB, free: 79.33 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/1.686, allocations: 2.562 kB / 0.8763 GB, free: 79.33 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001356/1.687, allocations: 0.8107 MB / 0.8771 GB, free: 79.24 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/1.687, allocations: 10.94 kB / 0.8771 GB, free: 79.24 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/1.687, allocations: 2.938 kB / 0.8771 GB, free: 79.24 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002736/1.688, allocations: 79.69 kB / 0.8772 GB, free: 79.23 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/1.688, allocations: 112.6 kB / 0.8773 GB, free: 79.23 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04974/1.738, allocations: 14.68 MB / 0.8917 GB, free: 72.99 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004606/1.738, allocations: 31.39 kB / 0.8917 GB, free: 72.99 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.463e-05/1.738, allocations: 20.81 kB / 0.8917 GB, free: 72.99 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002608/1.739, allocations: 195.4 kB / 0.8919 GB, free: 72.87 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/1.739, allocations: 39.72 kB / 0.8919 GB, free: 72.85 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/1.741, allocations: 1.724 MB / 0.8936 GB, free: 72.57 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/1.741, allocations: 20.89 kB / 0.8936 GB, free: 72.57 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/1.741, allocations: 0 / 0.8936 GB, free: 72.57 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001385/1.742, allocations: 1.259 MB / 0.8949 GB, free: 72.08 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/1.745, allocations: 1.758 MB / 0.8966 GB, free: 71.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/1.745, allocations: 0 / 0.8966 GB, free: 71.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/1.745, allocations: 84.78 kB / 0.8967 GB, free: 71.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003007/1.745, allocations: 112.5 kB / 0.8968 GB, free: 71.68 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/1.745, allocations: 18.56 kB / 0.8968 GB, free: 71.68 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/1.747, allocations: 2.088 MB / 0.8988 GB, free: 69.81 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/1.747, allocations: 0 / 0.8988 GB, free: 69.81 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002227/1.749, allocations: 1.426 MB / 0.9002 GB, free: 69.58 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/1.749, allocations: 118.7 kB / 0.9003 GB, free: 69.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/1.749, allocations: 6.781 kB / 0.9003 GB, free: 69.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002909/1.749, allocations: 26.7 kB / 0.9004 GB, free: 69.46 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/1.75, allocations: 50.94 kB / 0.9004 GB, free: 69.46 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/1.75, allocations: 17.48 kB / 0.9004 GB, free: 69.46 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002149/1.75, allocations: 221.8 kB / 0.9006 GB, free: 69.37 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.31e-07/1.75, allocations: 4.062 kB / 0.9006 GB, free: 69.36 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01013/1.76, allocations: 2.988 MB / 0.9036 GB, free: 69.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * Single equations (assignments): 35 * 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 {(2,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.0149/1.775, allocations: 3.836 MB / 0.9073 GB, free: 68.89 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00207/1.777, allocations: 1.046 MB / 0.9083 GB, free: 68.63 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.777, allocations: 3.812 kB / 0.9083 GB, free: 68.63 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008188/1.778, allocations: 0.5622 MB / 0.9089 GB, free: 68.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/1.78, allocations: 398.6 kB / 0.9093 GB, free: 68.41 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/1.782, allocations: 1.217 MB / 0.9105 GB, free: 67.93 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/1.782, allocations: 0.8572 MB / 0.9113 GB, free: 67.23 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003536/1.782, allocations: 119.2 kB / 0.9114 GB, free: 67.21 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.888e-05/1.782, allocations: 45.64 kB / 0.9114 GB, free: 67.2 MB / 0.6075 GB Notification: Performance of SimCode: time 6.11e-07/1.782, allocations: 0 / 0.9114 GB, free: 67.2 MB / 0.6075 GB Notification: Performance of Templates: time 0.1314/1.914, allocations: 112.4 MB / 1.021 GB, free: 15.1 MB / 0.6544 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)