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.001465/0.001465, allocations: 112.5 kB / 15.73 MB, free: 80 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.001172/0.001172, allocations: 196.5 kB / 16.66 MB, free: 6.574 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.463/1.463, allocations: 222.9 MB / 240.3 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.787/2.787, allocations: 461.9 MB / 0.7347 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 64.09 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3868/0.388, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.0028/0.3909, allocations: 1.537 MB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000356/0.3912, allocations: 115.7 kB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.363e-05/0.3913, allocations: 0 / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.3914, allocations: 7.922 kB / 1.209 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.644e-05/0.3915, allocations: 7.875 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.3918, allocations: 27.97 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.3919, allocations: 67.7 kB / 1.209 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.392, allocations: 19.98 kB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.992e-05/0.3921, allocations: 27.92 kB / 1.209 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.126e-05/0.3922, allocations: 23.91 kB / 1.209 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.3922, allocations: 8 kB / 1.21 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.413e-05/0.3923, allocations: 12 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.538e-05/0.3923, allocations: 15.92 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.554e-05/0.3924, allocations: 23.86 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001492/0.3925, allocations: 63.8 kB / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.788e-06/0.3925, allocations: 0 / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3925, allocations: 0 / 1.21 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.3926, allocations: 0 / 1.21 GB, free: 7.688 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.0005799/0.3931, allocations: 387.2 kB / 1.21 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3932, allocations: 8.625 kB / 1.21 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.486e-05/0.3932, allocations: 8.844 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.3934, allocations: 184.2 kB / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.643e-06/0.3934, allocations: 384 / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.004e-05/0.3935, allocations: 12.36 kB / 1.21 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.3937, allocations: 82.2 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.3938, allocations: 8.109 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.3938, allocations: 11.94 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3938, allocations: 0 / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002882/0.3941, allocations: 75.92 kB / 1.21 GB, free: 6.832 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005697/0.3947, allocations: 332.6 kB / 1.211 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002028/0.3949, allocations: 62.53 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.395, allocations: 36.92 kB / 1.211 GB, free: 6.348 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.927e-05/0.3951, allocations: 4 kB / 1.211 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.715e-05/0.3951, allocations: 30.56 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3951, allocations: 4 kB / 1.211 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005464/0.3957, allocations: 141.6 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.3957, allocations: 51.41 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.578e-05/0.3958, allocations: 121.6 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.3959, allocations: 29.7 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.997e-05/0.3959, allocations: 107.9 kB / 1.211 GB, free: 5.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.3959, allocations: 3.906 kB / 1.211 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.698e-05/0.396, allocations: 17.72 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3961, allocations: 318.7 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.3963, allocations: 35.95 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3964, allocations: 35.95 kB / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.3967, allocations: 76.78 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3967, allocations: 0 / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002996/0.397, allocations: 109.5 kB / 1.212 GB, free: 5.211 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.397, allocations: 4 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.397, allocations: 3.984 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.397, allocations: 0 / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3972, allocations: 15.98 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3972, allocations: 0 / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.041e-05/0.3972, allocations: 11.98 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.3973, allocations: 0 / 1.212 GB, free: 5.176 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.886e-05/0.3974, allocations: 129.8 kB / 1.212 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.3974, allocations: 4 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.3978, allocations: 113.4 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3978, allocations: 0 / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3978, allocations: 0 / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3978, allocations: 4 kB / 1.212 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.398, allocations: 182 kB / 1.212 GB, free: 4.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.398, allocations: 4 kB / 1.212 GB, free: 4.676 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.3981, allocations: 19.97 kB / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3982, allocations: 4 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.3982, allocations: 0 / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3982, allocations: 0 / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3982, allocations: 0 / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003807/0.3986, allocations: 207.4 kB / 1.212 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.3986, allocations: 81.02 kB / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.3986, allocations: 4 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.853e-05/0.3987, allocations: 7.984 kB / 1.213 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.827e-05/0.3988, allocations: 15.92 kB / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.3988, allocations: 0 / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.366e-05/0.3989, allocations: 95.2 kB / 1.213 GB, free: 4.215 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3989, allocations: 4 kB / 1.213 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002466/0.3991, allocations: 19.94 kB / 1.213 GB, free: 4.191 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.000156/0.3993, allocations: 99.19 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003273/0.3996, allocations: 71.92 kB / 1.213 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3996, allocations: 0 / 1.213 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.3998, allocations: 47.95 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000344/0.4002, allocations: 3.938 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.4005, allocations: 153.4 kB / 1.213 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.4008, allocations: 0.6924 MB / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.227e-05/0.4008, allocations: 8 kB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/0.4009, allocations: 11.44 kB / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.4009, allocations: 0 / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of Templates: time 0.003507/0.4044, allocations: 0.7705 MB / 1.215 GB, free: 2.289 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