Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.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_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 107.3 kB / 16.36 MB, free: 5.824 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.001925/0.001925, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.978/1.978, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0468/0.0468, allocations: 9.086 MB / 279.6 MB, free: 2.961 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.00165/0.00165, allocations: 64.47 kB / 339.5 MB, free: 6.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.443/0.4447, allocations: 48.14 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1892/0.6339, allocations: 142.2 MB / 0.5174 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5716/1.206, allocations: 97.69 MB / 0.6128 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/1.207, allocations: 7.25 kB / 0.6128 GB, free: 14.53 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00449/1.211, allocations: 1.376 MB / 0.6141 GB, free: 14.2 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005646/1.217, allocations: 1.647 MB / 0.6157 GB, free: 13.82 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.1316/1.349, allocations: 29.53 MB / 0.6446 GB, free: 9.902 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003309/1.352, allocations: 1.412 MB / 0.646 GB, free: 8.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/1.352, allocations: 129.5 kB / 0.6461 GB, free: 8.402 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02485/1.377, allocations: 9.86 MB / 0.6557 GB, free: 14.95 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007368/1.378, allocations: 380.4 kB / 0.6561 GB, free: 14.61 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.291e-05/1.378, allocations: 40 kB / 0.6561 GB, free: 14.57 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07993/1.458, allocations: 31.39 MB / 0.6868 GB, free: 96 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000456/1.459, allocations: 132 kB / 0.6869 GB, free: 15.97 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008576/1.46, allocations: 302.7 kB / 0.6872 GB, free: 15.68 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06596/1.526, allocations: 12.66 MB / 0.6996 GB, free: 3.934 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.517e-05/1.526, allocations: 0 / 0.6996 GB, free: 3.934 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.719e-06/1.526, allocations: 0 / 0.6996 GB, free: 3.934 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/1.526, allocations: 0 / 0.6996 GB, free: 3.934 MB / 494.1 MB 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.01048/1.536, allocations: 2.283 MB / 0.7018 GB, free: 1.602 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.971e-05/1.536, allocations: 8.031 kB / 0.7018 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000714/1.537, allocations: 90.52 kB / 0.7019 GB, free: 1.508 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007803/1.538, allocations: 336.8 kB / 0.7022 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/1.538, allocations: 24.66 kB / 0.7022 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.637e-05/1.538, allocations: 39.94 kB / 0.7023 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/1.539, allocations: 0.5843 MB / 0.7028 GB, free: 488 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/1.539, allocations: 7.844 kB / 0.7028 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.185e-05/1.539, allocations: 16 kB / 0.7029 GB, free: 464 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-05/1.54, allocations: 23.89 kB / 0.7029 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/1.541, allocations: 0.5169 MB / 0.7034 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/1.544, allocations: 2.493 MB / 0.7058 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/1.545, allocations: 0.4966 MB / 0.7063 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005394/1.545, allocations: 339.8 kB / 0.7066 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.576/2.121, allocations: 121.8 MB / 0.8256 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.817e-05/2.122, allocations: 41.78 kB / 0.8256 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=78): time 6.612e-06/2.122, allocations: 0 / 0.8256 GB, free: 143.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=82): time 0.00785/2.129, allocations: 2.403 MB / 0.828 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/2.13, allocations: 57.28 kB / 0.828 GB, free: 141 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/2.13, allocations: 254.3 kB / 0.8283 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.031e-05/2.13, allocations: 37.64 kB / 0.8283 GB, free: 140.7 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/2.13, allocations: 191.7 kB / 0.8285 GB, free: 140.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/2.13, allocations: 260.4 kB / 0.8288 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/2.131, allocations: 98.02 kB / 0.8288 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001643/2.131, allocations: 360.8 kB / 0.8292 GB, free: 139.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004668/2.131, allocations: 271.3 kB / 0.8295 GB, free: 139.6 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000573/2.132, allocations: 400.1 kB / 0.8298 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/2.133, allocations: 0.6882 MB / 0.8305 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/2.133, allocations: 7.938 kB / 0.8305 GB, free: 138.4 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001516/2.134, allocations: 0.8057 MB / 0.8313 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/2.134, allocations: 7.75 kB / 0.8313 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/2.134, allocations: 7.938 kB / 0.8313 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006685/2.135, allocations: 109.2 kB / 0.8314 GB, free: 137.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/2.136, allocations: 112.2 kB / 0.8315 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06732/2.203, allocations: 19.18 MB / 0.8503 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005472/2.204, allocations: 23.97 kB / 0.8503 GB, free: 117.8 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.068e-05/2.204, allocations: 20 kB / 0.8503 GB, free: 117.8 MB / 0.5137 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 2} * 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.0003828/2.204, allocations: 196.1 kB / 0.8505 GB, free: 117.6 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/2.204, allocations: 39.53 kB / 0.8505 GB, free: 117.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001974/2.206, allocations: 1.691 MB / 0.8522 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-05/2.206, allocations: 15.98 kB / 0.8522 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/2.206, allocations: 0 / 0.8522 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001297/2.208, allocations: 1.277 MB / 0.8534 GB, free: 114.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/2.21, allocations: 1.739 MB / 0.8551 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/2.21, allocations: 0 / 0.8551 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/2.21, allocations: 75.88 kB / 0.8552 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003557/2.211, allocations: 186.4 kB / 0.8554 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.888e-05/2.211, allocations: 12 kB / 0.8554 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001439/2.212, allocations: 2.584 MB / 0.8579 GB, free: 109.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/2.212, allocations: 7.875 kB / 0.8579 GB, free: 109.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/2.214, allocations: 1.446 MB / 0.8593 GB, free: 108.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/2.214, allocations: 120.5 kB / 0.8595 GB, free: 108 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.982e-05/2.214, allocations: 19.72 kB / 0.8595 GB, free: 108 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/2.215, allocations: 23.97 kB / 0.8595 GB, free: 107.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/2.215, allocations: 47.81 kB / 0.8595 GB, free: 107.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/2.215, allocations: 16 kB / 0.8596 GB, free: 107.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000238/2.215, allocations: 219.1 kB / 0.8598 GB, free: 107.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.6e-07/2.215, allocations: 0 / 0.8598 GB, free: 107.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01195/2.227, allocations: 3.224 MB / 0.8629 GB, free: 104.8 MB / 0.5137 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.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), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02191/2.249, allocations: 4.154 MB / 0.867 GB, free: 101.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002251/2.251, allocations: 1.002 MB / 0.8679 GB, free: 100.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/2.251, allocations: 0 / 0.8679 GB, free: 100.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007573/2.252, allocations: 0.5228 MB / 0.8685 GB, free: 99.54 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/2.254, allocations: 403 kB / 0.8688 GB, free: 99.15 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/2.256, allocations: 1.176 MB / 0.87 GB, free: 97.95 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/2.256, allocations: 0.8526 MB / 0.8708 GB, free: 97.07 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004022/2.257, allocations: 107.3 kB / 0.8709 GB, free: 96.96 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/2.257, allocations: 39.44 kB / 0.871 GB, free: 96.92 MB / 0.5137 GB Notification: Performance of SimCode: time 1.082e-06/2.257, allocations: 0 / 0.871 GB, free: 96.92 MB / 0.5137 GB Notification: Performance of Templates: time 0.4627/2.719, allocations: 122.1 MB / 0.9902 GB, free: 220.4 MB / 0.5137 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)