Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_11_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.001322/0.001322, allocations: 105.8 kB / 15.99 MB, free: 6.348 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.00128/0.00128, allocations: 190.5 kB / 16.91 MB, free: 6.188 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.457/1.457, allocations: 222.9 MB / 240.6 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.87/2.87, allocations: 469.8 MB / 0.7427 GB, free: 7.504 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001916, allocations: 71.8 kB / 0.9087 GB, free: 34.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2951, allocations: 159.2 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003214/0.2984, allocations: 1.587 MB / 1.066 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003467/0.2988, allocations: 119.7 kB / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.856e-05/0.2988, allocations: 0 / 1.066 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.299, allocations: 3.938 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.105e-05/0.299, allocations: 7.922 kB / 1.066 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.2992, allocations: 27.98 kB / 1.066 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001062/0.2994, allocations: 63.77 kB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001197/0.2995, allocations: 19.98 kB / 1.066 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.814e-05/0.2996, allocations: 23.92 kB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.355e-05/0.2996, allocations: 31.84 kB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.2997, allocations: 8 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.332e-05/0.2997, allocations: 12 kB / 1.066 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.457e-05/0.2998, allocations: 11.98 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.2998, allocations: 27.86 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.3, allocations: 47.86 kB / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3, allocations: 0 / 1.066 GB, free: 12.59 MB / 0.8262 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.0005951/0.3006, allocations: 375.6 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.3006, allocations: 15.97 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.159e-05/0.3007, allocations: 12.83 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001981/0.3009, allocations: 184.2 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.3009, allocations: 4.375 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.3009, allocations: 384 / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.3012, allocations: 86.2 kB / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3012, allocations: 192 / 1.067 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3013, allocations: 3.938 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3013, allocations: 8 kB / 1.067 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.3016, allocations: 83.84 kB / 1.067 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005946/0.3022, allocations: 328.7 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.3024, allocations: 62.56 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.3026, allocations: 40.91 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.661e-05/0.3026, allocations: 7.938 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.3027, allocations: 34.56 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.352e-06/0.3027, allocations: 0 / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005728/0.3033, allocations: 141.5 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.3033, allocations: 51.41 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3034, allocations: 121.8 kB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.3034, allocations: 29.64 kB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.3035, allocations: 99.97 kB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/0.3035, allocations: 7.906 kB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.3036, allocations: 13.72 kB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3037, allocations: 326.8 kB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.3039, allocations: 27.97 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001422/0.3041, allocations: 39.95 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.3043, allocations: 68.78 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3044, allocations: 0 / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003474/0.3047, allocations: 109.6 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.3047, allocations: 5.875 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.3048, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.3048, allocations: 4 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.3049, allocations: 15.92 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.3049, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.201e-05/0.305, allocations: 19.88 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.3051, allocations: 4 kB / 1.068 GB, free: 10.07 MB / 0.8262 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.0001131/0.3052, allocations: 121.7 kB / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.3052, allocations: 4 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004067/0.3056, allocations: 113.5 kB / 1.069 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.3056, allocations: 0 / 1.069 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3057, allocations: 0 / 1.069 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3057, allocations: 4 kB / 1.069 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.3059, allocations: 177.6 kB / 1.069 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3059, allocations: 0 / 1.069 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.306, allocations: 19.92 kB / 1.069 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.306, allocations: 3.938 kB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.306, allocations: 8 kB / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.306, allocations: 0 / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3061, allocations: 0 / 1.069 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004117/0.3065, allocations: 203.3 kB / 1.069 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.439e-05/0.3065, allocations: 81.11 kB / 1.069 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.3066, allocations: 4 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.3067, allocations: 15.97 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.043e-05/0.3067, allocations: 0 / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.3068, allocations: 8 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.385e-05/0.3068, allocations: 91.27 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3069, allocations: 0 / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002401/0.3071, allocations: 15.84 kB / 1.069 GB, free: 9.117 MB / 0.8262 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.0002028/0.3073, allocations: 104.2 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003913/0.3077, allocations: 84.27 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3077, allocations: 0 / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.3079, allocations: 39.95 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003683/0.3083, allocations: 8.188 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.3087, allocations: 195.2 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.3091, allocations: 0.6924 MB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.553e-05/0.3091, allocations: 19.38 kB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3092, allocations: 0 / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of Templates: time 0.002832/0.312, allocations: 0.9292 MB / 1.071 GB, free: 6.996 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches