Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Buildings.Fluid.Examples.Performance.Example1v2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2") translateModel(Buildings.Fluid.Examples.Performance.Example1v2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000824/0.000824, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.0008698/0.0008699, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.42/2.42, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003373, allocations: 15.98 kB / 0.8153 GB, free: 13.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8411/0.8415, allocations: 142.4 MB / 0.9544 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example1v2): time 0.071/0.9125, allocations: 74.26 MB / 1.027 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02663/0.9392, allocations: 18.05 MB / 1.045 GB, free: 3.02 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004746/0.944, allocations: 87.44 kB / 1.045 GB, free: 2.934 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00349/0.9475, allocations: 0.7763 MB / 1.045 GB, free: 2.152 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.007822/0.9553, allocations: 2.278 MB / 1.048 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005649/0.961, allocations: 1.793 MB / 1.049 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.02824/0.9893, allocations: 30.31 MB / 1.079 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01953/1.009, allocations: 13.46 MB / 1.092 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02085/1.03, allocations: 9.173 MB / 1.101 GB, free: 8.965 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02374/1.054, allocations: 10.74 MB / 1.112 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.00481/1.058, allocations: 0.8125 MB / 1.112 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009932/1.068, allocations: 1.791 MB / 1.114 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0071/1.075, allocations: 2.967 MB / 1.117 GB, free: 8.598 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.005629/1.081, allocations: 1.848 MB / 1.119 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.01851/1.1, allocations: 13.96 MB / 1.132 GB, free: 8.75 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/1.1, allocations: 0 / 1.132 GB, free: 8.75 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.534e-06/1.1, allocations: 3.938 kB / 1.132 GB, free: 8.746 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0006234/1.1, allocations: 0 / 1.132 GB, free: 8.746 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1418 * Number of variables: 1418 Notification: Performance of Generate backend data structure: time 0.03516/1.136, allocations: 13.16 MB / 1.145 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.136, allocations: 8.031 kB / 1.145 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008946/1.145, allocations: 1.374 MB / 1.147 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02392/1.168, allocations: 9.817 MB / 1.156 GB, free: 196 kB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005401/1.169, allocations: 440.2 kB / 1.157 GB, free: 15.76 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003243/1.172, allocations: 0.5818 MB / 1.157 GB, free: 15.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03392/1.206, allocations: 14.72 MB / 1.172 GB, free: 196 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000315/1.207, allocations: 23.77 kB / 1.172 GB, free: 172 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00312/1.21, allocations: 244 kB / 1.172 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/1.21, allocations: 136 kB / 1.172 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03706/1.247, allocations: 19.99 MB / 1.192 GB, free: 11.79 MB / 0.9512 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.25/2.497, allocations: 66.75 MB / 1.257 GB, free: 251.3 MB / 0.9982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01739/2.515, allocations: 9.346 MB / 1.266 GB, free: 248.3 MB / 0.9982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01485/2.53, allocations: 8.698 MB / 1.274 GB, free: 244.4 MB / 0.9982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05976/2.589, allocations: 31.05 MB / 1.305 GB, free: 224.1 MB / 0.9982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01156/2.601, allocations: 7.783 MB / 1.312 GB, free: 219.3 MB / 0.9982 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.02672/2.628, allocations: 11.76 MB / 1.324 GB, free: 207.9 MB / 0.9982 GB Notification: Performance of pre-optimization done (n=300): time 3.504e-05/2.628, allocations: 0 / 1.324 GB, free: 207.9 MB / 0.9982 GB Notification: Performance of matching and sorting (n=300): time 0.05389/2.682, allocations: 24.55 MB / 1.348 GB, free: 183.5 MB / 0.9982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/2.682, allocations: 81.77 kB / 1.348 GB, free: 183.4 MB / 0.9982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01508/2.697, allocations: 8.242 MB / 1.356 GB, free: 175.2 MB / 0.9982 GB Notification: Performance of collectPreVariables (initialization): time 0.0025/2.7, allocations: 97.7 kB / 1.356 GB, free: 175.1 MB / 0.9982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004154/2.704, allocations: 4.083 MB / 1.36 GB, free: 171.1 MB / 0.9982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003115/2.707, allocations: 1.078 MB / 1.361 GB, free: 170 MB / 0.9982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001982/2.709, allocations: 92 kB / 1.361 GB, free: 170 MB / 0.9982 GB Notification: Performance of setup shared object (initialization): time 0.0002967/2.709, allocations: 491.8 kB / 1.361 GB, free: 169.5 MB / 0.9982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009006/2.718, allocations: 6.578 MB / 1.368 GB, free: 162.9 MB / 0.9982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009697/2.728, allocations: 8.436 MB / 1.376 GB, free: 153.6 MB / 0.9982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009896/2.738, allocations: 7.472 MB / 1.383 GB, free: 146.1 MB / 0.9982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.715e-05/2.738, allocations: 12 kB / 1.383 GB, free: 146.1 MB / 0.9982 GB Notification: Performance of matching and sorting (n=579) (initialization): time 0.03333/2.771, allocations: 17.88 MB / 1.401 GB, free: 128.2 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007694/2.772, allocations: 1.56 MB / 1.402 GB, free: 125.9 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-05/2.772, allocations: 51.94 kB / 1.403 GB, free: 125.9 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05744/2.83, allocations: 11.5 MB / 1.414 GB, free: 114.4 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00845/2.838, allocations: 1.577 MB / 1.415 GB, free: 112.8 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008066/2.846, allocations: 6.804 MB / 1.422 GB, free: 105.8 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01157/2.858, allocations: 0.6087 MB / 1.423 GB, free: 105.2 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002653/2.86, allocations: 0.5421 MB / 1.423 GB, free: 104.7 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/2.86, allocations: 5.25 kB / 1.423 GB, free: 104.7 MB / 0.9982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03041/2.891, allocations: 16.8 MB / 1.439 GB, free: 87.81 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001329/2.891, allocations: 52.25 kB / 1.44 GB, free: 87.76 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05513/2.946, allocations: 11.03 MB / 1.45 GB, free: 76.76 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008223/2.954, allocations: 1.565 MB / 1.452 GB, free: 75.19 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01283/2.967, allocations: 11.02 MB / 1.463 GB, free: 63.74 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01065/2.978, allocations: 0.5855 MB / 1.463 GB, free: 63.16 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002777/2.981, allocations: 0.5343 MB / 1.464 GB, free: 62.62 MB / 0.9982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 217 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (527): * Single equations (assignments): 521 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 3,20 21,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.008635/2.989, allocations: 2.662 MB / 1.466 GB, free: 59.94 MB / 0.9982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004229/2.994, allocations: 0.764 MB / 1.467 GB, free: 59.17 MB / 0.9982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02969/3.023, allocations: 14.43 MB / 1.481 GB, free: 44.7 MB / 0.9982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/3.023, allocations: 39.94 kB / 1.481 GB, free: 44.66 MB / 0.9982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/3.023, allocations: 4 kB / 1.481 GB, free: 44.65 MB / 0.9982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01548/3.039, allocations: 10.98 MB / 1.492 GB, free: 33.57 MB / 0.9982 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03858/3.078, allocations: 25.03 MB / 1.516 GB, free: 8.488 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/3.078, allocations: 0 / 1.516 GB, free: 8.488 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004901/3.083, allocations: 0.7158 MB / 1.517 GB, free: 7.766 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0568/3.139, allocations: 10.33 MB / 1.527 GB, free: 13.47 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001326/3.141, allocations: 103.9 kB / 1.527 GB, free: 13.37 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005957/3.147, allocations: 4.934 MB / 1.532 GB, free: 8.227 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/3.147, allocations: 0 / 1.532 GB, free: 8.227 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03484/3.182, allocations: 19.67 MB / 1.551 GB, free: 4.473 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006654/3.188, allocations: 2.021 MB / 1.553 GB, free: 2.422 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00304/3.191, allocations: 71.98 kB / 1.553 GB, free: 2.352 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00799/3.199, allocations: 462.8 kB / 1.554 GB, free: 1.895 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001167/3.201, allocations: 214.4 kB / 1.554 GB, free: 1.684 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001119/3.202, allocations: 159.9 kB / 1.554 GB, free: 1.527 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.01149/3.213, allocations: 5.668 MB / 1.56 GB, free: 11.89 MB / 1.045 GB Notification: Performance of sort global known variables: time 7.01e-07/3.213, allocations: 0 / 1.56 GB, free: 11.89 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.02223/3.235, allocations: 4.992 MB / 1.564 GB, free: 6.918 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 22 (pump.vol.dynBal.U,hea.outCon.T,vol[1].dynBal.U,vol[2].dynBal.U,vol[3].dynBal.U,vol[4].dynBal.U,vol[5].dynBal.U,vol[6].dynBal.U,vol[7].dynBal.U,vol[8].dynBal.U,vol[9].dynBal.U,vol[10].dynBal.U,vol[11].dynBal.U,vol[12].dynBal.U,vol[13].dynBal.U,vol[14].dynBal.U,vol[15].dynBal.U,vol[16].dynBal.U,vol[17].dynBal.U,vol[18].dynBal.U,vol[19].dynBal.U,vol[20].dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (304): * Single equations (assignments): 294 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 3,2 5,20 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.002864/3.238, allocations: 0.5712 MB / 1.565 GB, free: 6.406 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.04433/3.283, allocations: 24.29 MB / 1.589 GB, free: 14.04 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.802e-05/3.283, allocations: 4 kB / 1.589 GB, free: 14.03 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.01307/3.296, allocations: 6.5 MB / 1.595 GB, free: 7.52 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02723/3.323, allocations: 5.029 MB / 1.6 GB, free: 2.562 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04179/3.365, allocations: 23.34 MB / 1.623 GB, free: 11.18 MB / 1.108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00549/3.37, allocations: 5.261 MB / 1.628 GB, free: 5.887 MB / 1.108 GB Notification: Performance of simCode: alias equations: time 0.02127/3.392, allocations: 5.086 MB / 1.633 GB, free: 0.793 MB / 1.108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006004/3.398, allocations: 0.9281 MB / 1.634 GB, free: 15.86 MB / 1.123 GB Notification: Performance of SimCode: time 1.132e-06/3.398, allocations: 0 / 1.634 GB, free: 15.86 MB / 1.123 GB Notification: Performance of Templates: time 0.978/4.376, allocations: 219.7 MB / 1.848 GB, free: 264.6 MB / 1.154 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example1v2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches