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.001354/0.001354, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 194.7 kB / 16.53 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.524/1.524, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0519/0.0519, allocations: 9.085 MB / 278.8 MB, free: 12.2 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.001771/0.001771, allocations: 68.11 kB / 338 MB, free: 25.46 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09439, allocations: 48.17 MB / 386.2 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.3793/0.4737, allocations: 142.2 MB / 0.516 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3887/0.8624, allocations: 97.71 MB / 0.6114 GB, free: 332 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007456/0.8632, allocations: 9.031 kB / 0.6114 GB, free: 332 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003728/0.8669, allocations: 1.363 MB / 0.6127 GB, free: 324 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004139/0.8711, allocations: 1.658 MB / 0.6144 GB, free: 296 kB / 446.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.0866/0.9578, allocations: 29.53 MB / 0.6432 GB, free: 13.63 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002815/0.9606, allocations: 1.42 MB / 0.6446 GB, free: 13.23 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.9609, allocations: 129.8 kB / 0.6447 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01777/0.9787, allocations: 9.852 MB / 0.6543 GB, free: 9.238 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005729/0.9793, allocations: 383.6 kB / 0.6547 GB, free: 8.988 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.088e-05/0.9794, allocations: 47.94 kB / 0.6547 GB, free: 8.941 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05366/1.033, allocations: 28.64 MB / 0.6827 GB, free: 4.734 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003093/1.033, allocations: 127.5 kB / 0.6828 GB, free: 4.613 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006829/1.034, allocations: 301.2 kB / 0.6831 GB, free: 4.32 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03837/1.072, allocations: 11.93 MB / 0.6948 GB, free: 9.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/1.073, allocations: 0 / 0.6948 GB, free: 9.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.412e-06/1.073, allocations: 0 / 0.6948 GB, free: 9.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.292e-05/1.073, allocations: 0 / 0.6948 GB, free: 9.23 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.006154/1.079, allocations: 2.143 MB / 0.6968 GB, free: 7.043 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/1.079, allocations: 12.03 kB / 0.6969 GB, free: 7.031 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006128/1.079, allocations: 75.41 kB / 0.6969 GB, free: 6.957 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/1.08, allocations: 329.4 kB / 0.6972 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/1.08, allocations: 36.66 kB / 0.6973 GB, free: 6.566 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.496e-05/1.08, allocations: 35.91 kB / 0.6973 GB, free: 6.531 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/1.081, allocations: 0.5876 MB / 0.6979 GB, free: 5.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.04e-05/1.081, allocations: 11.88 kB / 0.6979 GB, free: 5.918 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.481e-05/1.081, allocations: 12 kB / 0.6979 GB, free: 5.902 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/1.081, allocations: 17.84 kB / 0.6979 GB, free: 5.891 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/1.083, allocations: 0.5135 MB / 0.6984 GB, free: 5.383 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002693/1.085, allocations: 2.487 MB / 0.7009 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/1.087, allocations: 0.4886 MB / 0.7013 GB, free: 2.188 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005315/1.087, allocations: 330.3 kB / 0.7017 GB, free: 1.863 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3763/1.463, allocations: 113.3 MB / 0.8123 GB, free: 308.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.377e-05/1.464, allocations: 39.22 kB / 0.8123 GB, free: 308 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.316e-06/1.464, allocations: 0 / 0.8123 GB, free: 308 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.007171/1.471, allocations: 2.635 MB / 0.8149 GB, free: 306.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/1.471, allocations: 61.03 kB / 0.8149 GB, free: 306.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003373/1.471, allocations: 247.2 kB / 0.8152 GB, free: 306.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/1.471, allocations: 35.86 kB / 0.8152 GB, free: 306.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000125/1.471, allocations: 194.5 kB / 0.8154 GB, free: 306.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/1.472, allocations: 263.9 kB / 0.8156 GB, free: 306.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/1.472, allocations: 99.38 kB / 0.8157 GB, free: 306.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000104/1.472, allocations: 354.1 kB / 0.8161 GB, free: 305.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000656/1.473, allocations: 274.3 kB / 0.8163 GB, free: 305.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006954/1.473, allocations: 409.8 kB / 0.8167 GB, free: 305.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/1.474, allocations: 0.7091 MB / 0.8174 GB, free: 305.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/1.474, allocations: 0 / 0.8174 GB, free: 305.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001632/1.476, allocations: 0.8212 MB / 0.8182 GB, free: 304.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/1.476, allocations: 10 kB / 0.8182 GB, free: 304.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/1.476, allocations: 7.156 kB / 0.8182 GB, free: 304.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008465/1.477, allocations: 145 kB / 0.8184 GB, free: 304.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006518/1.478, allocations: 124.9 kB / 0.8185 GB, free: 304.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001933/1.48, allocations: 3.755 MB / 0.8222 GB, free: 301 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/1.48, allocations: 27.22 kB / 0.8222 GB, free: 301 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/1.48, allocations: 23.14 kB / 0.8222 GB, free: 301 MB / 0.5919 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.0003648/1.48, allocations: 197.7 kB / 0.8224 GB, free: 300.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/1.481, allocations: 39.78 kB / 0.8224 GB, free: 300.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002711/1.483, allocations: 1.678 MB / 0.8241 GB, free: 300 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.178e-05/1.483, allocations: 18.75 kB / 0.8241 GB, free: 300 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/1.483, allocations: 0 / 0.8241 GB, free: 300 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001466/1.485, allocations: 1.252 MB / 0.8253 GB, free: 299.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/1.488, allocations: 1.724 MB / 0.827 GB, free: 298.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/1.488, allocations: 1.312 kB / 0.827 GB, free: 298.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004035/1.489, allocations: 73.92 kB / 0.8271 GB, free: 298.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007805/1.489, allocations: 255.8 kB / 0.8273 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.408e-05/1.489, allocations: 11.88 kB / 0.8273 GB, free: 298.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009332/1.49, allocations: 1.773 MB / 0.829 GB, free: 296.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.49, allocations: 0 / 0.829 GB, free: 296.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/1.492, allocations: 1.47 MB / 0.8305 GB, free: 295.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/1.493, allocations: 120.4 kB / 0.8306 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.761e-05/1.493, allocations: 6.062 kB / 0.8306 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003464/1.493, allocations: 30.19 kB / 0.8306 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.75e-05/1.493, allocations: 43.69 kB / 0.8307 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.45e-05/1.493, allocations: 15.91 kB / 0.8307 GB, free: 295.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002507/1.493, allocations: 218.1 kB / 0.8309 GB, free: 295.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.493, allocations: 0 / 0.8309 GB, free: 295.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00657/1.5, allocations: 1.979 MB / 0.8328 GB, free: 295 MB / 0.5919 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.0117/1.512, allocations: 2.812 MB / 0.8356 GB, free: 294.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002498/1.514, allocations: 0.9092 MB / 0.8365 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/1.514, allocations: 3.594 kB / 0.8365 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008124/1.515, allocations: 426.3 kB / 0.8369 GB, free: 293.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/1.517, allocations: 399.1 kB / 0.8373 GB, free: 293.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/1.519, allocations: 1.188 MB / 0.8384 GB, free: 292.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/1.519, allocations: 0.8437 MB / 0.8392 GB, free: 291.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004311/1.52, allocations: 91.8 kB / 0.8393 GB, free: 291.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.197e-05/1.52, allocations: 35.44 kB / 0.8394 GB, free: 291.8 MB / 0.5919 GB Notification: Performance of SimCode: time 8.72e-07/1.52, allocations: 3.938 kB / 0.8394 GB, free: 291.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.09516/1.615, allocations: 71.73 MB / 0.9094 GB, free: 220.1 MB / 0.5919 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)