Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009117/0.009117, allocations: 101.6 kB / 15.73 MB, free: 6.484 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.001613/0.001613, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.855/1.855, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05035/0.05035, allocations: 9.084 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.00166/0.001661, allocations: 63.91 kB / 387.5 MB, free: 7.949 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3986, allocations: 48.14 MB / 435.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.1806/0.5793, allocations: 142.2 MB / 0.5643 GB, free: 2.027 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4315/1.011, allocations: 97.71 MB / 0.6597 GB, free: 284 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006875/1.012, allocations: 7.969 kB / 0.6597 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003194/1.015, allocations: 1.361 MB / 0.6611 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004011/1.019, allocations: 1.656 MB / 0.6627 GB, free: 228 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.09824/1.117, allocations: 29.54 MB / 0.6915 GB, free: 6.961 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/1.119, allocations: 1.419 MB / 0.6929 GB, free: 5.941 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/1.12, allocations: 123.7 kB / 0.693 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01777/1.137, allocations: 9.875 MB / 0.7027 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005835/1.138, allocations: 381.6 kB / 0.703 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.041e-05/1.138, allocations: 48 kB / 0.7031 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05524/1.193, allocations: 29.4 MB / 0.7318 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002752/1.194, allocations: 122.6 kB / 0.7319 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005474/1.194, allocations: 297.8 kB / 0.7322 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04054/1.235, allocations: 11.91 MB / 0.7438 GB, free: 7.605 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/1.235, allocations: 4 kB / 0.7438 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.074e-06/1.235, allocations: 0 / 0.7438 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.501e-05/1.235, allocations: 0 / 0.7438 GB, free: 7.602 MB / 0.5294 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.005809/1.241, allocations: 2.139 MB / 0.7459 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/1.241, allocations: 16.03 kB / 0.7459 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005399/1.241, allocations: 75.41 kB / 0.746 GB, free: 5.328 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005361/1.242, allocations: 334 kB / 0.7463 GB, free: 4.965 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/1.242, allocations: 28.66 kB / 0.7464 GB, free: 4.938 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.346e-05/1.242, allocations: 32 kB / 0.7464 GB, free: 4.906 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/1.243, allocations: 0.5883 MB / 0.747 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/1.243, allocations: 0 / 0.747 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.923e-05/1.243, allocations: 16 kB / 0.747 GB, free: 4.285 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.603e-05/1.243, allocations: 19.44 kB / 0.747 GB, free: 4.27 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/1.245, allocations: 0.5168 MB / 0.7475 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/1.247, allocations: 2.484 MB / 0.7499 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/1.248, allocations: 498.8 kB / 0.7504 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000559/1.249, allocations: 338.8 kB / 0.7507 GB, free: 248 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.484/1.733, allocations: 113.3 MB / 0.8613 GB, free: 251.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.701e-05/1.733, allocations: 37.84 kB / 0.8614 GB, free: 251.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.975e-06/1.733, allocations: 0 / 0.8614 GB, free: 251.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006634/1.74, allocations: 2.639 MB / 0.8639 GB, free: 250.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/1.74, allocations: 55.38 kB / 0.864 GB, free: 250.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/1.74, allocations: 261.7 kB / 0.8642 GB, free: 250.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/1.74, allocations: 29.7 kB / 0.8643 GB, free: 250.1 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/1.74, allocations: 187.5 kB / 0.8644 GB, free: 249.9 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/1.74, allocations: 273.8 kB / 0.8647 GB, free: 249.7 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/1.74, allocations: 97.45 kB / 0.8648 GB, free: 249.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.186e-05/1.741, allocations: 358.6 kB / 0.8651 GB, free: 249.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004451/1.741, allocations: 271.2 kB / 0.8654 GB, free: 249.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005212/1.742, allocations: 410.6 kB / 0.8658 GB, free: 248.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009901/1.743, allocations: 0.7102 MB / 0.8665 GB, free: 248.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/1.743, allocations: 5.469 kB / 0.8665 GB, free: 248.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001355/1.744, allocations: 0.8104 MB / 0.8673 GB, free: 248 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/1.744, allocations: 3.969 kB / 0.8673 GB, free: 248 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/1.744, allocations: 3.938 kB / 0.8673 GB, free: 248 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000764/1.745, allocations: 151.1 kB / 0.8674 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/1.745, allocations: 118.4 kB / 0.8675 GB, free: 247.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/1.747, allocations: 3.763 MB / 0.8712 GB, free: 244.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/1.747, allocations: 27.77 kB / 0.8712 GB, free: 244.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/1.747, allocations: 19.86 kB / 0.8713 GB, free: 244 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 (47): * Single equations (assignments): 39 * 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, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002244/1.748, allocations: 202.5 kB / 0.8715 GB, free: 243.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.448e-05/1.748, allocations: 39.09 kB / 0.8715 GB, free: 243.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001779/1.749, allocations: 1.679 MB / 0.8731 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-05/1.749, allocations: 18 kB / 0.8732 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/1.75, allocations: 0 / 0.8732 GB, free: 242.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001266/1.751, allocations: 1.244 MB / 0.8744 GB, free: 241.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/1.753, allocations: 1.737 MB / 0.8761 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/1.753, allocations: 0 / 0.8761 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003275/1.753, allocations: 70.61 kB / 0.8761 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005615/1.754, allocations: 258 kB / 0.8764 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/1.754, allocations: 7.969 kB / 0.8764 GB, free: 240.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008235/1.755, allocations: 1.774 MB / 0.8781 GB, free: 238.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.755, allocations: 3.938 kB / 0.8781 GB, free: 238.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/1.757, allocations: 1.463 MB / 0.8795 GB, free: 237.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.218e-05/1.757, allocations: 106.9 kB / 0.8796 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/1.757, allocations: 7.844 kB / 0.8797 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/1.757, allocations: 34.75 kB / 0.8797 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/1.757, allocations: 42.91 kB / 0.8797 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/1.757, allocations: 11.62 kB / 0.8797 GB, free: 237.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000229/1.757, allocations: 221.9 kB / 0.88 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.757, allocations: 0 / 0.88 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006164/1.764, allocations: 1.986 MB / 0.8819 GB, free: 237 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.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.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 (35): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01034/1.774, allocations: 2.807 MB / 0.8846 GB, free: 234.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002028/1.776, allocations: 0.8812 MB / 0.8855 GB, free: 233.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.776, allocations: 3.938 kB / 0.8855 GB, free: 233.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006548/1.777, allocations: 436.4 kB / 0.8859 GB, free: 233.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001885/1.779, allocations: 387.3 kB / 0.8863 GB, free: 233.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/1.78, allocations: 1.179 MB / 0.8874 GB, free: 232 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/1.78, allocations: 0.8407 MB / 0.8883 GB, free: 231.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002936/1.781, allocations: 98.47 kB / 0.8884 GB, free: 231.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.837e-05/1.781, allocations: 43.42 kB / 0.8884 GB, free: 231 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/1.781, allocations: 0 / 0.8884 GB, free: 231 MB / 0.6075 GB Notification: Performance of Templates: time 0.07538/1.856, allocations: 71.8 MB / 0.9585 GB, free: 159.2 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1)