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.004931/0.004931, allocations: 101.8 kB / 15.73 MB, free: 6.477 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.001152/0.001152, allocations: 192.4 kB / 16.67 MB, free: 6.391 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.199/1.199, allocations: 205.1 MB / 222.5 MB, free: 4.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04276/0.04276, allocations: 9.09 MB / 279 MB, free: 12.14 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.001365/0.001365, allocations: 68.47 kB / 387.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2125, allocations: 48.16 MB / 435.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1244/0.337, allocations: 142.2 MB / 0.5643 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2685/0.6055, allocations: 97.71 MB / 0.6597 GB, free: 260 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004028/0.6059, allocations: 8.438 kB / 0.6597 GB, free: 260 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002467/0.6084, allocations: 1.55 MB / 0.6613 GB, free: 252 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002624/0.611, allocations: 1.831 MB / 0.663 GB, free: 204 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.06074/0.6718, allocations: 31.34 MB / 0.6936 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001683/0.6735, allocations: 1.412 MB / 0.695 GB, free: 5.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.6737, allocations: 121.8 kB / 0.6951 GB, free: 5.078 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01464/0.6884, allocations: 10.05 MB / 0.705 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004685/0.6888, allocations: 386.9 kB / 0.7053 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.382e-05/0.6889, allocations: 40 kB / 0.7054 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05785/0.7468, allocations: 36.35 MB / 0.7409 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000213/0.747, allocations: 119.1 kB / 0.741 GB, free: 9.996 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004826/0.7475, allocations: 305.2 kB / 0.7413 GB, free: 9.699 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03671/0.7843, allocations: 14.57 MB / 0.7555 GB, free: 12.24 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.7843, allocations: 0 / 0.7555 GB, free: 12.24 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.334e-06/0.7843, allocations: 0 / 0.7555 GB, free: 12.24 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.648e-05/0.7844, allocations: 0 / 0.7555 GB, free: 12.24 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.006108/0.7905, allocations: 2.661 MB / 0.7581 GB, free: 9.535 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.7905, allocations: 12.03 kB / 0.7581 GB, free: 9.523 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005269/0.7911, allocations: 75.41 kB / 0.7582 GB, free: 9.449 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.7915, allocations: 333.1 kB / 0.7585 GB, free: 9.086 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.815e-05/0.7916, allocations: 36.66 kB / 0.7585 GB, free: 9.051 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.7917, allocations: 28 kB / 0.7586 GB, free: 9.023 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.7928, allocations: 0.5909 MB / 0.7591 GB, free: 8.418 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.7929, allocations: 0 / 0.7591 GB, free: 8.418 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/0.7929, allocations: 16 kB / 0.7592 GB, free: 8.402 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/0.7929, allocations: 22.66 kB / 0.7592 GB, free: 8.383 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001186/0.7941, allocations: 0.5168 MB / 0.7597 GB, free: 7.871 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.7966, allocations: 2.483 MB / 0.7621 GB, free: 5.176 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.7976, allocations: 490.8 kB / 0.7626 GB, free: 4.691 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005056/0.7981, allocations: 334.8 kB / 0.7629 GB, free: 4.363 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2898/1.088, allocations: 113.4 MB / 0.8736 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/1.088, allocations: 38.94 kB / 0.8737 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.535e-06/1.088, allocations: 1.188 kB / 0.8737 GB, free: 236.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005363/1.093, allocations: 2.429 MB / 0.8761 GB, free: 235.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.86e-05/1.093, allocations: 55.38 kB / 0.8761 GB, free: 235.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/1.094, allocations: 261.2 kB / 0.8764 GB, free: 235.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/1.094, allocations: 33.61 kB / 0.8764 GB, free: 235.1 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.66e-05/1.094, allocations: 188.5 kB / 0.8766 GB, free: 234.9 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.794e-05/1.094, allocations: 272.8 kB / 0.8768 GB, free: 234.7 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/1.094, allocations: 101.3 kB / 0.8769 GB, free: 234.6 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.264e-05/1.094, allocations: 359.8 kB / 0.8773 GB, free: 234.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004192/1.094, allocations: 273.7 kB / 0.8775 GB, free: 234.1 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004576/1.095, allocations: 396.6 kB / 0.8779 GB, free: 233.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008796/1.096, allocations: 0.7114 MB / 0.8786 GB, free: 233.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/1.096, allocations: 0 / 0.8786 GB, free: 233.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001254/1.097, allocations: 0.8185 MB / 0.8794 GB, free: 233 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/1.097, allocations: 6.688 kB / 0.8794 GB, free: 233 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/1.097, allocations: 3.938 kB / 0.8794 GB, free: 233 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002519/1.097, allocations: 80.69 kB / 0.8795 GB, free: 232.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/1.098, allocations: 114.9 kB / 0.8796 GB, free: 232.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04386/1.142, allocations: 14.7 MB / 0.894 GB, free: 222.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/1.142, allocations: 28 kB / 0.894 GB, free: 222.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/1.142, allocations: 23.98 kB / 0.894 GB, free: 222.6 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.0001904/1.142, allocations: 190.7 kB / 0.8942 GB, free: 222.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.272e-05/1.142, allocations: 43.44 kB / 0.8942 GB, free: 222.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/1.144, allocations: 1.718 MB / 0.8959 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/1.144, allocations: 7.984 kB / 0.8959 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/1.144, allocations: 2.125 kB / 0.8959 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001178/1.145, allocations: 1.267 MB / 0.8972 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/1.147, allocations: 1.747 MB / 0.8989 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/1.147, allocations: 0 / 0.8989 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003099/1.147, allocations: 91 kB / 0.8989 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002423/1.148, allocations: 121.5 kB / 0.8991 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/1.148, allocations: 8 kB / 0.8991 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009402/1.149, allocations: 2.085 MB / 0.9011 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.149, allocations: 4.031 kB / 0.9011 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/1.15, allocations: 1.425 MB / 0.9025 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.131e-05/1.15, allocations: 116.5 kB / 0.9026 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.11e-05/1.15, allocations: 15.22 kB / 0.9026 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002904/1.151, allocations: 23.97 kB / 0.9027 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-05/1.151, allocations: 47.88 kB / 0.9027 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/1.151, allocations: 20.05 kB / 0.9027 GB, free: 213.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001518/1.151, allocations: 219.1 kB / 0.9029 GB, free: 213 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.151, allocations: 2.938 kB / 0.9029 GB, free: 213 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.005104/1.156, allocations: 2.986 MB / 0.9058 GB, free: 210.4 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.009065/1.165, allocations: 3.848 MB / 0.9096 GB, free: 207.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001479/1.167, allocations: 1.048 MB / 0.9106 GB, free: 206.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.167, allocations: 4.188 kB / 0.9106 GB, free: 206.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000659/1.167, allocations: 0.554 MB / 0.9112 GB, free: 205.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/1.169, allocations: 396.6 kB / 0.9115 GB, free: 205.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/1.17, allocations: 1.222 MB / 0.9127 GB, free: 203.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/1.17, allocations: 0.8569 MB / 0.9136 GB, free: 203 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002914/1.171, allocations: 135.9 kB / 0.9137 GB, free: 202.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.392e-05/1.171, allocations: 39.44 kB / 0.9137 GB, free: 202.8 MB / 0.6075 GB Notification: Performance of SimCode: time 3.91e-07/1.171, allocations: 0 / 0.9137 GB, free: 202.8 MB / 0.6075 GB Notification: Performance of Templates: time 0.09624/1.267, allocations: 112.2 MB / 1.023 GB, free: 90.64 MB / 0.6075 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)