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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001745/0.001745, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002087/0.002087, allocations: 193 kB / 16.14 MB, free: 6.711 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.448/1.448, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.793/2.793, allocations: 472.6 MB / 0.7447 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 64.69 kB / 0.9114 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3434, allocations: 159.9 MB / 1.068 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003261/0.3467, allocations: 1.602 MB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004297/0.3472, allocations: 107.7 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.461e-05/0.3473, allocations: 0 / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.3474, allocations: 15.86 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.659e-05/0.3475, allocations: 3.938 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002736/0.3478, allocations: 31.95 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.3479, allocations: 51.84 kB / 1.069 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.348, allocations: 23.98 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.821e-05/0.3481, allocations: 23.92 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.479e-05/0.3482, allocations: 23.86 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.3482, allocations: 4 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.839e-05/0.3483, allocations: 11.98 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.605e-05/0.3483, allocations: 15.97 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.45e-05/0.3484, allocations: 23.81 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.3485, allocations: 59.86 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3485, allocations: 0 / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.756e-06/0.3485, allocations: 0 / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.3486, allocations: 3.938 kB / 1.069 GB, free: 8.836 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.0006097/0.3492, allocations: 375.6 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.3492, allocations: 12.03 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.3493, allocations: 8.844 kB / 1.07 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002188/0.3495, allocations: 184.2 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.535e-05/0.3495, allocations: 8.375 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.3496, allocations: 8.312 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.3499, allocations: 82.2 kB / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.3499, allocations: 192 / 1.07 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.3499, allocations: 3.938 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3499, allocations: 11.92 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.3503, allocations: 83.91 kB / 1.07 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005873/0.3509, allocations: 320.7 kB / 1.071 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.3511, allocations: 62.53 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3512, allocations: 40.91 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-05/0.3513, allocations: 4 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.3513, allocations: 38.59 kB / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3513, allocations: 0 / 1.071 GB, free: 7.453 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005619/0.3519, allocations: 137.5 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.3519, allocations: 51.41 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.435e-05/0.352, allocations: 121.6 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.3521, allocations: 25.7 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.862e-05/0.3521, allocations: 99.97 kB / 1.071 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.3521, allocations: 15.91 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.443e-05/0.3522, allocations: 9.719 kB / 1.071 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3523, allocations: 326.8 kB / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.3525, allocations: 31.95 kB / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.3526, allocations: 35.91 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002641/0.3529, allocations: 72.78 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3529, allocations: 0 / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003235/0.3532, allocations: 105.5 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3532, allocations: 8 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3533, allocations: 4 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.3533, allocations: 0 / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.3534, allocations: 15.98 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3534, allocations: 0 / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.74e-05/0.3535, allocations: 15.97 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.3535, allocations: 4 kB / 1.072 GB, free: 6.332 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 8.748e-05/0.3536, allocations: 121.7 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.3537, allocations: 4 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003919/0.3541, allocations: 117.5 kB / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3541, allocations: 0 / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3541, allocations: 0 / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3541, allocations: 0 / 1.072 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.3543, allocations: 177.6 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3543, allocations: 0 / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.8e-05/0.3544, allocations: 19.98 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3544, allocations: 0 / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.3544, allocations: 0 / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3544, allocations: 0 / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3544, allocations: 4 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003929/0.3548, allocations: 219.5 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.3549, allocations: 84.95 kB / 1.072 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.3549, allocations: 7.984 kB / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.355, allocations: 11.98 kB / 1.072 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.563e-05/0.3551, allocations: 0 / 1.072 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.3551, allocations: 4 kB / 1.072 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.891e-05/0.3552, allocations: 91.27 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3552, allocations: 0 / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002278/0.3554, allocations: 15.94 kB / 1.073 GB, free: 5.363 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.0001661/0.3556, allocations: 103.2 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003544/0.3559, allocations: 79.86 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3559, allocations: 0 / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.3561, allocations: 43.95 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.3564, allocations: 8 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003707/0.3568, allocations: 162.9 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.3571, allocations: 0.6926 MB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.867e-05/0.3571, allocations: 11.98 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.826e-05/0.3571, allocations: 11.38 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3572, allocations: 0 / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of Templates: time 0.003245/0.3604, allocations: 0.6354 MB / 1.074 GB, free: 3.57 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