Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_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.001166/0.001166, allocations: 110.4 kB / 16.41 MB, free: 6.488 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.001126/0.001126, allocations: 189.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.608/2.608, allocations: 461.9 MB / 0.7355 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 71.84 kB / 1.055 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.852/0.8534, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003449/0.8569, allocations: 1.54 MB / 1.21 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004406/0.8574, allocations: 119.7 kB / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.645e-05/0.8575, allocations: 4 kB / 1.21 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.8577, allocations: 11.92 kB / 1.21 GB, free: 11.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.915e-05/0.8577, allocations: 11.86 kB / 1.21 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002901/0.858, allocations: 23.97 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.8582, allocations: 55.78 kB / 1.21 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.8584, allocations: 27.98 kB / 1.21 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.811e-05/0.8584, allocations: 23.91 kB / 1.21 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.056e-05/0.8585, allocations: 31.91 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.8586, allocations: 4 kB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.421e-05/0.8586, allocations: 11.98 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.319e-05/0.8587, allocations: 19.92 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.329e-05/0.8587, allocations: 19.88 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.8589, allocations: 59.8 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.8589, allocations: 0 / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.104e-06/0.859, allocations: 4 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.816e-06/0.859, allocations: 4 kB / 1.21 GB, free: 11.66 MB / 0.9356 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.0006251/0.8596, allocations: 379.1 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.8596, allocations: 8.031 kB / 1.211 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.369e-05/0.8597, allocations: 12.83 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.8599, allocations: 194 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.8599, allocations: 384 / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.86, allocations: 4.375 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003263/0.8603, allocations: 90.2 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.8603, allocations: 192 / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.8604, allocations: 3.938 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.8604, allocations: 0 / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003179/0.8607, allocations: 83.84 kB / 1.211 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.8613, allocations: 324.7 kB / 1.211 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.8616, allocations: 62.56 kB / 1.211 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.8617, allocations: 44.91 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 5.607e-05/0.8618, allocations: 8 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.8618, allocations: 30.56 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.764e-06/0.8619, allocations: 0 / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0006109/0.8625, allocations: 137.5 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.8625, allocations: 51.41 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.8627, allocations: 117.8 kB / 1.212 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.8627, allocations: 33.64 kB / 1.212 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.359e-05/0.8627, allocations: 92.03 kB / 1.212 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.8628, allocations: 15.84 kB / 1.212 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.8628, allocations: 13.66 kB / 1.212 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.863, allocations: 330.8 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.8631, allocations: 31.97 kB / 1.212 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.8633, allocations: 31.95 kB / 1.212 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000295/0.8636, allocations: 72.78 kB / 1.212 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.8636, allocations: 4 kB / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003547/0.864, allocations: 105.5 kB / 1.213 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.864, allocations: 8 kB / 1.213 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.864, allocations: 0 / 1.213 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.864, allocations: 0 / 1.213 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.8642, allocations: 19.92 kB / 1.213 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.8642, allocations: 4 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.906e-05/0.8643, allocations: 7.984 kB / 1.213 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.8643, allocations: 7.984 kB / 1.213 GB, free: 9.16 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.8645, allocations: 117.8 kB / 1.213 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.8645, allocations: 0 / 1.213 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.8649, allocations: 117.8 kB / 1.213 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.8649, allocations: 4.031 kB / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.8649, allocations: 0 / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.8649, allocations: 0 / 1.213 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.8652, allocations: 181.6 kB / 1.213 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.8652, allocations: 0 / 1.213 GB, free: 8.672 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.76e-05/0.8653, allocations: 15.98 kB / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.8653, allocations: 0 / 1.213 GB, free: 8.656 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.8653, allocations: 11.94 kB / 1.213 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.8653, allocations: 0 / 1.213 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.8653, allocations: 4 kB / 1.213 GB, free: 8.641 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004136/0.8657, allocations: 199.3 kB / 1.213 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.919e-05/0.8658, allocations: 81.02 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.8658, allocations: 4 kB / 1.213 GB, free: 8.328 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.8659, allocations: 23.91 kB / 1.213 GB, free: 8.305 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.047e-05/0.866, allocations: 4 kB / 1.213 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.866, allocations: 3.938 kB / 1.213 GB, free: 8.297 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.993e-05/0.8661, allocations: 91.27 kB / 1.213 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8661, allocations: 0 / 1.213 GB, free: 8.207 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002452/0.8663, allocations: 8 kB / 1.213 GB, free: 8.199 MB / 0.9356 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001852/0.8665, allocations: 111.2 kB / 1.213 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003842/0.8669, allocations: 83.84 kB / 1.214 GB, free: 8 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.8669, allocations: 0 / 1.214 GB, free: 8 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.8671, allocations: 31.97 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.8675, allocations: 11.98 kB / 1.214 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004503/0.8679, allocations: 175.2 kB / 1.214 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.8683, allocations: 0.6885 MB / 1.214 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.295e-05/0.8684, allocations: 15.44 kB / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of SimCode: time 6.91e-07/0.8684, allocations: 0 / 1.214 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of Templates: time 0.002786/0.8712, allocations: 0.9355 MB / 1.215 GB, free: 6.094 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches