Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_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.008789/0.008789, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001364/0.001364, allocations: 201.6 kB / 16.68 MB, free: 5.969 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.462/2.462, allocations: 390.2 MB / 0.6648 GB, free: 220 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 67.75 kB / 0.9508 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3046, allocations: 140.4 MB / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002832/0.3075, allocations: 1.53 MB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003131/0.3078, allocations: 112.5 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.989e-05/0.3079, allocations: 0 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.308, allocations: 11.88 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.671e-05/0.308, allocations: 11.91 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.3083, allocations: 27.91 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.3084, allocations: 51.84 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.3085, allocations: 31.97 kB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.946e-05/0.3086, allocations: 23.92 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.637e-05/0.3087, allocations: 31.89 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.3087, allocations: 7.938 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.829e-05/0.3088, allocations: 11.94 kB / 1.09 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.355e-05/0.3088, allocations: 15.98 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.237e-05/0.3089, allocations: 23.86 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001324/0.309, allocations: 63.73 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.309, allocations: 4 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.577e-06/0.309, allocations: 0 / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.3091, allocations: 3.938 kB / 1.09 GB, free: 15.5 MB / 0.8575 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.0005416/0.3096, allocations: 379.2 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.3096, allocations: 8.031 kB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.3097, allocations: 12.83 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.3099, allocations: 180.3 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.3099, allocations: 4.375 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.3099, allocations: 4.375 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.3102, allocations: 94.12 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.3102, allocations: 192 / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.3102, allocations: 3.938 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3102, allocations: 0 / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003062/0.3105, allocations: 83.92 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.3111, allocations: 328.6 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002057/0.3113, allocations: 54.55 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.3115, allocations: 44.91 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.3116, allocations: 11.98 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.3116, allocations: 34.59 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3116, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005688/0.3122, allocations: 137.5 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.3122, allocations: 55.39 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3124, allocations: 121.8 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.3124, allocations: 25.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.097e-05/0.3124, allocations: 84.14 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.412e-05/0.3125, allocations: 19.89 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.3125, allocations: 17.72 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.3127, allocations: 318.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.3128, allocations: 35.95 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.313, allocations: 31.95 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.3132, allocations: 80.72 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.3133, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003289/0.3136, allocations: 97.62 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.3136, allocations: 4 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3136, allocations: 4 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.3136, allocations: 0 / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.3138, allocations: 27.97 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/0.3138, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.381e-05/0.3139, allocations: 19.88 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.3139, allocations: 0 / 1.092 GB, free: 13 MB / 0.8575 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 8.427e-05/0.314, allocations: 117.8 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.314, allocations: 11.92 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003796/0.3144, allocations: 113.5 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.3144, allocations: 0 / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.3145, allocations: 0 / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.3145, allocations: 4 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.3147, allocations: 181.6 kB / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3147, allocations: 0 / 1.092 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.286e-05/0.3148, allocations: 15.97 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.3148, allocations: 4 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.3148, allocations: 4 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3148, allocations: 0 / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3148, allocations: 0 / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003734/0.3152, allocations: 207.3 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.812e-05/0.3152, allocations: 85 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.3152, allocations: 12.42 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.3154, allocations: 7.984 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.378e-05/0.3154, allocations: 7.984 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.3154, allocations: 0 / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.512e-05/0.3155, allocations: 91.66 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3155, allocations: 0 / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002229/0.3157, allocations: 15.98 kB / 1.093 GB, free: 12.03 MB / 0.8575 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.0001347/0.3158, allocations: 107.2 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003642/0.3162, allocations: 83.84 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3162, allocations: 0 / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.3164, allocations: 39.95 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.3167, allocations: 8 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000317/0.317, allocations: 150.7 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.3173, allocations: 0.6885 MB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.278e-05/0.3174, allocations: 7.984 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.203e-05/0.3174, allocations: 11.44 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.3174, allocations: 0 / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of Templates: time 0.002991/0.3204, allocations: 0.7634 MB / 1.095 GB, free: 10.13 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches