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.008379/0.008387, allocations: 100.8 kB / 15.73 MB, free: 6.012 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.001856/0.001856, allocations: 187.8 kB / 16.67 MB, free: 5.949 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.944/2.944, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 68.09 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3323, allocations: 157.4 MB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003026/0.3354, allocations: 1.537 MB / 1.209 GB, free: 8.086 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003374/0.3358, allocations: 111.7 kB / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.58e-05/0.3358, allocations: 0 / 1.209 GB, free: 7.977 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.336, allocations: 15.86 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.476e-05/0.3361, allocations: 3.938 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.3364, allocations: 27.97 kB / 1.209 GB, free: 7.93 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.3365, allocations: 63.77 kB / 1.209 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.3366, allocations: 19.98 kB / 1.209 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.113e-05/0.3367, allocations: 23.91 kB / 1.209 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.978e-05/0.3368, allocations: 23.92 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.3368, allocations: 12 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.65e-05/0.3369, allocations: 15.98 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.752e-05/0.3369, allocations: 15.92 kB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.003e-05/0.337, allocations: 19.88 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001514/0.3371, allocations: 63.73 kB / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3372, allocations: 0 / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3372, allocations: 0 / 1.21 GB, free: 7.676 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.825e-06/0.3372, allocations: 3.984 kB / 1.21 GB, free: 7.672 MB / 0.9669 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.0005451/0.3377, allocations: 387.2 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3378, allocations: 8.625 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.871e-05/0.3378, allocations: 8.844 kB / 1.21 GB, free: 7.227 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.338, allocations: 188.2 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-06/0.338, allocations: 384 / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.338, allocations: 4.375 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.3383, allocations: 86.14 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.3383, allocations: 192 / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.3383, allocations: 15.94 kB / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3383, allocations: 0 / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.3387, allocations: 75.91 kB / 1.21 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005144/0.3392, allocations: 332.6 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001936/0.3394, allocations: 58.53 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.3396, allocations: 44.91 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/0.3396, allocations: 0 / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.411e-05/0.3396, allocations: 34.56 kB / 1.211 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3396, allocations: 4 kB / 1.211 GB, free: 6.285 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005534/0.3402, allocations: 137.6 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/0.3402, allocations: 51.41 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.541e-05/0.3403, allocations: 125.6 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.3403, allocations: 25.7 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.068e-05/0.3404, allocations: 108 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.3404, allocations: 7.906 kB / 1.211 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.402e-05/0.3405, allocations: 9.719 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.38e-05/0.3406, allocations: 326.8 kB / 1.212 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.3407, allocations: 27.97 kB / 1.212 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.3409, allocations: 39.95 kB / 1.212 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.3412, allocations: 68.78 kB / 1.212 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3412, allocations: 4 kB / 1.212 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003503/0.3415, allocations: 113.5 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3415, allocations: 8 kB / 1.212 GB, free: 5.191 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3416, allocations: 3.984 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.3416, allocations: 0 / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3417, allocations: 11.98 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3417, allocations: 4 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.546e-05/0.3418, allocations: 7.984 kB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.074e-05/0.3418, allocations: 11.92 kB / 1.212 GB, free: 5.152 MB / 0.9669 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 9.141e-05/0.3419, allocations: 125.8 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.626e-05/0.342, allocations: 0 / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003835/0.3423, allocations: 121.3 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3424, allocations: 0 / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3424, allocations: 0 / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3424, allocations: 0 / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.3425, allocations: 181.6 kB / 1.212 GB, free: 4.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3426, allocations: 8 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.388e-05/0.3427, allocations: 15.98 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.3427, allocations: 0 / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3427, allocations: 0 / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3427, allocations: 4 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3427, allocations: 0 / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.3431, allocations: 203.4 kB / 1.212 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.371e-05/0.3431, allocations: 84.95 kB / 1.213 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.3431, allocations: 0 / 1.213 GB, free: 4.316 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3433, allocations: 15.97 kB / 1.213 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.3433, allocations: 3.938 kB / 1.213 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.3433, allocations: 4 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.044e-05/0.3434, allocations: 91.27 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3434, allocations: 4 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002353/0.3436, allocations: 19.94 kB / 1.213 GB, free: 4.18 MB / 0.9669 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.0001324/0.3438, allocations: 99.19 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003519/0.3441, allocations: 76.33 kB / 1.213 GB, free: 4 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3441, allocations: 4 kB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000163/0.3443, allocations: 43.91 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002873/0.3446, allocations: 8.172 kB / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003505/0.345, allocations: 145.5 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.3452, allocations: 0.6924 MB / 1.214 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.73e-05/0.3453, allocations: 15.98 kB / 1.214 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.894e-05/0.3453, allocations: 11.44 kB / 1.214 GB, free: 3.031 MB / 0.9669 GB Notification: Performance of SimCode: time 2.5e-07/0.3453, allocations: 0 / 1.214 GB, free: 3.031 MB / 0.9669 GB Notification: Performance of Templates: time 0.003041/0.3484, allocations: 0.7806 MB / 1.215 GB, free: 2.258 MB / 0.9669 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches