Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.Average.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009057/0.0009057, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001021/0.001021, allocations: 168.7 kB / 15.95 MB, free: 204 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.453/1.453, allocations: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.677/2.677, allocations: 437.7 MB / 0.7117 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003822/0.0003823, allocations: 11.98 kB / 0.8722 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7576/0.758, allocations: 153.8 MB / 1.022 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002052/0.7601, allocations: 1.239 MB / 1.024 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000379/0.7606, allocations: 112.5 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.454e-05/0.7606, allocations: 0 / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.7608, allocations: 3.938 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.166e-05/0.7608, allocations: 11.92 kB / 1.024 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002597/0.7611, allocations: 19.97 kB / 1.024 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.7612, allocations: 51.84 kB / 1.024 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.7614, allocations: 19.98 kB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.58e-05/0.7615, allocations: 15.92 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.26e-05/0.7616, allocations: 19.91 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.7616, allocations: 11.98 kB / 1.024 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.512e-05/0.7617, allocations: 11.94 kB / 1.024 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.7617, allocations: 7.984 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.574e-05/0.7618, allocations: 37.64 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.7619, allocations: 35.94 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.7619, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.956e-06/0.7619, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.221e-06/0.7619, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006728/0.7626, allocations: 389 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.7627, allocations: 8.562 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.221e-05/0.7627, allocations: 7.906 kB / 1.024 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000239/0.763, allocations: 175.1 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.763, allocations: 3.953 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.763, allocations: 11.98 kB / 1.025 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.7634, allocations: 105.5 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.7635, allocations: 0 / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.7635, allocations: 4 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.7635, allocations: 4 kB / 1.025 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.7638, allocations: 95.92 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006668/0.7645, allocations: 352.5 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.7648, allocations: 70.53 kB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.7649, allocations: 52.92 kB / 1.025 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.764e-05/0.765, allocations: 4 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.626e-05/0.7651, allocations: 34.56 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.784e-06/0.7651, allocations: 0 / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0006206/0.7657, allocations: 177.5 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.7657, allocations: 55.41 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.7659, allocations: 113.8 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.7659, allocations: 29.7 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.917e-05/0.766, allocations: 88.14 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.766, allocations: 19.73 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-06/0.766, allocations: 0 / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.7661, allocations: 318.8 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.7663, allocations: 47.95 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.7664, allocations: 39.97 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.7666, allocations: 47.95 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.7666, allocations: 4 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003144/0.7669, allocations: 125.5 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.7669, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.767, allocations: 0 / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.767, allocations: 4 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.7671, allocations: 19.98 kB / 1.026 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/0.7671, allocations: 4 kB / 1.026 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.679e-05/0.7672, allocations: 15.98 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.7672, allocations: 4 kB / 1.026 GB, free: 11.81 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001046/0.7673, allocations: 121.8 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.7674, allocations: 3.906 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003902/0.7678, allocations: 141.5 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.7678, allocations: 0 / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.7678, allocations: 0 / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.7678, allocations: 3.984 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.768, allocations: 174 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.768, allocations: 7.984 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.378e-05/0.7681, allocations: 19.98 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.7681, allocations: 7.938 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.7681, allocations: 0 / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.7681, allocations: 4 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.7681, allocations: 0 / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003832/0.7685, allocations: 231.3 kB / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.121e-05/0.7686, allocations: 77.11 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.746e-05/0.7686, allocations: 0 / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.7687, allocations: 27.92 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.7688, allocations: 7.984 kB / 1.027 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.285e-06/0.7688, allocations: 3.938 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.783e-05/0.7689, allocations: 91.27 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7689, allocations: 0 / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00024/0.7691, allocations: 11.91 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001707/0.7693, allocations: 103.2 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003657/0.7697, allocations: 107.9 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.7697, allocations: 0 / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.7698, allocations: 43.97 kB / 1.027 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.7702, allocations: 14.19 kB / 1.027 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004068/0.7706, allocations: 160.8 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.7709, allocations: 0.6934 MB / 1.028 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.707e-05/0.7709, allocations: 4.25 kB / 1.028 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.846e-05/0.7709, allocations: 7.438 kB / 1.028 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of SimCode: time 5.31e-07/0.771, allocations: 8 kB / 1.028 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of Templates: time 0.003307/0.7743, allocations: 0.6073 MB / 1.029 GB, free: 8.996 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches