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.001386/0.001386, allocations: 108.8 kB / 16.37 MB, free: 6.465 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.001411/0.001411, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.814/1.814, 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.04669/0.04669, allocations: 9.093 MB / 279.6 MB, free: 2.969 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.001721/0.001721, allocations: 63.89 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4232/0.425, allocations: 48.15 MB / 387.6 MB, free: 51.46 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1949/0.62, allocations: 142.2 MB / 0.5174 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5662/1.186, allocations: 97.7 MB / 0.6128 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009598/1.187, allocations: 5.562 kB / 0.6128 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004595/1.192, allocations: 1.383 MB / 0.6142 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005674/1.198, allocations: 1.646 MB / 0.6158 GB, free: 13.89 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.1178/1.316, allocations: 29.54 MB / 0.6446 GB, free: 9.934 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003326/1.319, allocations: 1.41 MB / 0.646 GB, free: 8.551 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003418/1.319, allocations: 125.5 kB / 0.6461 GB, free: 8.438 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0239/1.343, allocations: 9.859 MB / 0.6557 GB, free: 14.99 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007185/1.344, allocations: 382.2 kB / 0.6561 GB, free: 14.64 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.562e-05/1.344, allocations: 40 kB / 0.6561 GB, free: 14.6 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1012/1.445, allocations: 36.35 MB / 0.6916 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004739/1.446, allocations: 123.3 kB / 0.6918 GB, free: 11.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009098/1.447, allocations: 301 kB / 0.692 GB, free: 10.97 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07446/1.521, allocations: 14.57 MB / 0.7063 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/1.521, allocations: 0 / 0.7063 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.035e-06/1.521, allocations: 0 / 0.7063 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.145e-05/1.521, allocations: 0 / 0.7063 GB, free: 13.29 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.009377/1.531, allocations: 2.669 MB / 0.7089 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/1.531, allocations: 8.031 kB / 0.7089 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006355/1.532, allocations: 75.41 kB / 0.709 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006569/1.532, allocations: 334.1 kB / 0.7093 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.67e-05/1.532, allocations: 36.66 kB / 0.7093 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.844e-05/1.532, allocations: 31.94 kB / 0.7093 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/1.534, allocations: 0.5844 MB / 0.7099 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/1.534, allocations: 7.844 kB / 0.7099 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.074e-05/1.534, allocations: 16 kB / 0.7099 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/1.534, allocations: 19.98 kB / 0.7099 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/1.535, allocations: 0.5172 MB / 0.7105 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002777/1.538, allocations: 2.477 MB / 0.7129 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/1.539, allocations: 495.2 kB / 0.7133 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005239/1.539, allocations: 337.5 kB / 0.7137 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6291/2.168, allocations: 113.4 MB / 0.8244 GB, free: 26.06 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.952e-05/2.168, allocations: 39.31 kB / 0.8244 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=78): time 4.528e-06/2.168, allocations: 3 kB / 0.8244 GB, free: 26.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=83): time 0.006854/2.175, allocations: 2.436 MB / 0.8268 GB, free: 25.53 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/2.175, allocations: 55.59 kB / 0.8269 GB, free: 25.46 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003032/2.176, allocations: 255.4 kB / 0.8271 GB, free: 25.36 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/2.176, allocations: 32.77 kB / 0.8272 GB, free: 25.33 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/2.176, allocations: 199 kB / 0.8273 GB, free: 25.21 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/2.176, allocations: 268.3 kB / 0.8276 GB, free: 25.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/2.176, allocations: 99.36 kB / 0.8277 GB, free: 25.05 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001743/2.176, allocations: 352.1 kB / 0.828 GB, free: 24.74 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/2.177, allocations: 280.6 kB / 0.8283 GB, free: 24.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005599/2.177, allocations: 400.6 kB / 0.8287 GB, free: 24.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/2.179, allocations: 0.7104 MB / 0.8294 GB, free: 24.47 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/2.179, allocations: 0 / 0.8294 GB, free: 24.47 MB / 0.5606 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001672/2.18, allocations: 0.8204 MB / 0.8302 GB, free: 24.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/2.18, allocations: 6.875 kB / 0.8302 GB, free: 24.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/2.18, allocations: 3.406 kB / 0.8302 GB, free: 24.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003284/2.181, allocations: 86.81 kB / 0.8303 GB, free: 24.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005065/2.181, allocations: 112.5 kB / 0.8304 GB, free: 24.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05066/2.232, allocations: 14.66 MB / 0.8447 GB, free: 18.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006299/2.233, allocations: 26.02 kB / 0.8447 GB, free: 18.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.516e-05/2.233, allocations: 15.94 kB / 0.8447 GB, free: 18.16 MB / 0.5606 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.0004568/2.233, allocations: 205.5 kB / 0.8449 GB, free: 18.04 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/2.233, allocations: 45.62 kB / 0.845 GB, free: 18.02 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002545/2.236, allocations: 1.725 MB / 0.8467 GB, free: 17.74 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.482e-05/2.236, allocations: 13.55 kB / 0.8467 GB, free: 17.74 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/2.236, allocations: 1.266 kB / 0.8467 GB, free: 17.74 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001683/2.238, allocations: 1.262 MB / 0.8479 GB, free: 17.24 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00269/2.24, allocations: 1.753 MB / 0.8496 GB, free: 16.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/2.24, allocations: 3.938 kB / 0.8496 GB, free: 16.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/2.241, allocations: 78.7 kB / 0.8497 GB, free: 16.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003629/2.241, allocations: 131.8 kB / 0.8498 GB, free: 16.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.55e-05/2.241, allocations: 12.42 kB / 0.8498 GB, free: 16.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001889/2.243, allocations: 2.086 MB / 0.8519 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/2.243, allocations: 0 / 0.8519 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/2.245, allocations: 1.424 MB / 0.8533 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/2.246, allocations: 118.6 kB / 0.8534 GB, free: 30.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/2.247, allocations: 14.91 kB / 0.8534 GB, free: 30.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003389/2.247, allocations: 26.45 kB / 0.8534 GB, free: 30.62 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/2.247, allocations: 50.08 kB / 0.8535 GB, free: 30.62 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.351e-05/2.247, allocations: 16.3 kB / 0.8535 GB, free: 30.62 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003024/2.247, allocations: 218.8 kB / 0.8537 GB, free: 30.53 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.247, allocations: 0 / 0.8537 GB, free: 30.53 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01103/2.258, allocations: 2.991 MB / 0.8566 GB, free: 28.36 MB / 0.5762 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.01549/2.274, allocations: 3.827 MB / 0.8603 GB, free: 25.78 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002658/2.277, allocations: 1.064 MB / 0.8614 GB, free: 25.08 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/2.277, allocations: 0 / 0.8614 GB, free: 25.08 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009268/2.278, allocations: 0.555 MB / 0.8619 GB, free: 24.74 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001899/2.28, allocations: 394.6 kB / 0.8623 GB, free: 24.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/2.282, allocations: 1.209 MB / 0.8635 GB, free: 23.55 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005253/2.282, allocations: 0.8534 MB / 0.8643 GB, free: 22.73 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000378/2.282, allocations: 139.3 kB / 0.8644 GB, free: 22.63 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/2.283, allocations: 41.62 kB / 0.8645 GB, free: 22.59 MB / 0.5762 GB Notification: Performance of SimCode: time 1.102e-06/2.283, allocations: 0 / 0.8645 GB, free: 22.59 MB / 0.5762 GB Notification: Performance of Templates: time 0.4665/2.749, allocations: 112 MB / 0.9739 GB, free: 295.8 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 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)