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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.00104/0.001041, allocations: 91.69 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.001321/0.001321, 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.611/1.611, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.879/2.879, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003993, allocations: 8.781 kB / 0.9021 GB, free: 36.71 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3961, allocations: 159.6 MB / 1.058 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002047/0.3982, allocations: 1.242 MB / 1.059 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000372/0.3986, allocations: 107.7 kB / 1.059 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.872e-05/0.3987, allocations: 4 kB / 1.059 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001157/0.3988, allocations: 7.938 kB / 1.059 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.46e-05/0.3989, allocations: 7.938 kB / 1.059 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.3991, allocations: 23.91 kB / 1.059 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.3992, allocations: 51.83 kB / 1.059 GB, free: 3.855 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.3994, allocations: 19.89 kB / 1.059 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.885e-05/0.3995, allocations: 19.92 kB / 1.059 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.522e-05/0.3995, allocations: 27.84 kB / 1.059 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.3996, allocations: 8 kB / 1.059 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.8e-05/0.3996, allocations: 4 kB / 1.059 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.958e-05/0.3997, allocations: 11.98 kB / 1.06 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.429e-05/0.3997, allocations: 37.64 kB / 1.06 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.3999, allocations: 39.92 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3999, allocations: 0 / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3999, allocations: 0 / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.3999, allocations: 0 / 1.06 GB, free: 3.684 MB / 0.8106 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.000616/0.4005, allocations: 379.5 kB / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.4006, allocations: 8.031 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.497e-05/0.4006, allocations: 11.84 kB / 1.06 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.4009, allocations: 186.9 kB / 1.06 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.4009, allocations: 0 / 1.06 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.4009, allocations: 4 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003197/0.4012, allocations: 105.6 kB / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.4012, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.4013, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.4013, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002946/0.4016, allocations: 103.9 kB / 1.06 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006217/0.4022, allocations: 340.6 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.4024, allocations: 70.53 kB / 1.061 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.4026, allocations: 56.91 kB / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.219e-05/0.4026, allocations: 4 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.4027, allocations: 30.56 kB / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.4027, allocations: 0 / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005578/0.4032, allocations: 177.5 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.4033, allocations: 55.41 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.4034, allocations: 121.7 kB / 1.061 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.4034, allocations: 25.7 kB / 1.061 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.833e-05/0.4035, allocations: 95.98 kB / 1.061 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.4036, allocations: 15.88 kB / 1.061 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/0.4036, allocations: 4 kB / 1.061 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4037, allocations: 310.8 kB / 1.062 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.4039, allocations: 47.95 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.404, allocations: 39.97 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.4041, allocations: 51.95 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4041, allocations: 0 / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003139/0.4045, allocations: 129.5 kB / 1.062 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.4045, allocations: 4 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4045, allocations: 0 / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.4045, allocations: 0 / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.4047, allocations: 27.92 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.4047, allocations: 0 / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.277e-05/0.4048, allocations: 23.84 kB / 1.062 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.4048, allocations: 4 kB / 1.062 GB, free: 1.082 MB / 0.8106 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 9.46e-05/0.4049, allocations: 117.8 kB / 1.062 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.767e-05/0.4049, allocations: 7.938 kB / 1.062 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003724/0.4053, allocations: 141.5 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.4053, allocations: 0 / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4053, allocations: 0 / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4053, allocations: 3.984 kB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.4055, allocations: 177.6 kB / 1.062 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.4055, allocations: 3.984 kB / 1.062 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.661e-05/0.4056, allocations: 19.98 kB / 1.062 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.4056, allocations: 4 kB / 1.062 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.4057, allocations: 0 / 1.062 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4057, allocations: 4 kB / 1.062 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4057, allocations: 0 / 1.062 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000346/0.406, allocations: 223.3 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.534e-05/0.4061, allocations: 81.11 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.4061, allocations: 3.938 kB / 1.063 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.967e-05/0.4062, allocations: 19.98 kB / 1.063 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.4062, allocations: 4.406 kB / 1.063 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.4063, allocations: 4 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.141e-05/0.4063, allocations: 95.7 kB / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4063, allocations: 0 / 1.063 GB, free: 88 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002258/0.4066, allocations: 15.84 kB / 1.063 GB, free: 72 kB / 0.8106 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.0001553/0.4067, allocations: 95.25 kB / 1.063 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003448/0.4071, allocations: 103.9 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.4071, allocations: 4 kB / 1.063 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.4072, allocations: 51.91 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.4075, allocations: 7.953 kB / 1.063 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003631/0.4079, allocations: 168.8 kB / 1.063 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.4082, allocations: 0.693 MB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.638e-05/0.4082, allocations: 4 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.508e-05/0.4083, allocations: 7.438 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.4083, allocations: 4 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of Templates: time 0.00329/0.4116, allocations: 0.6132 MB / 1.064 GB, free: 14.27 MB / 0.8262 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