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.001215/0.001215, allocations: 105.1 kB / 16.41 MB, free: 6.449 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.001096/0.001096, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.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.351/2.351, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 67.83 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.011/1.012, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002697/1.015, allocations: 1.53 MB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003314/1.015, allocations: 120.5 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/1.015, allocations: 0.75 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001278/1.015, allocations: 14.89 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.392e-05/1.015, allocations: 5.547 kB / 1.09 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/1.016, allocations: 32.73 kB / 1.09 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/1.016, allocations: 47.98 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/1.016, allocations: 27.94 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.562e-05/1.016, allocations: 26.06 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.39e-05/1.016, allocations: 32.23 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/1.016, allocations: 8.562 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/1.016, allocations: 13.48 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.772e-05/1.016, allocations: 11.27 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.184e-05/1.016, allocations: 28.31 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/1.016, allocations: 65.02 kB / 1.091 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/1.017, allocations: 0.75 kB / 1.091 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/1.017, allocations: 0 / 1.091 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.753e-06/1.017, allocations: 0 / 1.091 GB, free: 4.25 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.0005317/1.017, allocations: 380 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/1.017, allocations: 9.656 kB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/1.017, allocations: 7.812 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/1.017, allocations: 187.4 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/1.017, allocations: 2.062 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/1.017, allocations: 3.438 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/1.018, allocations: 89.48 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/1.018, allocations: 1.594 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/1.018, allocations: 11.88 kB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.922e-06/1.018, allocations: 1.094 kB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/1.018, allocations: 79.12 kB / 1.091 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005097/1.019, allocations: 325.4 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/1.019, allocations: 61.27 kB / 1.092 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/1.019, allocations: 43.08 kB / 1.092 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/1.019, allocations: 7.438 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/1.019, allocations: 32.38 kB / 1.092 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/1.019, allocations: 4 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005578/1.02, allocations: 141.8 kB / 1.092 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/1.02, allocations: 52.59 kB / 1.092 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.292e-05/1.02, allocations: 116.7 kB / 1.092 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.698e-06/1.02, allocations: 29.7 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.823e-05/1.02, allocations: 93.34 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/1.02, allocations: 14.42 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/1.02, allocations: 14.06 kB / 1.092 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.387e-05/1.02, allocations: 321.8 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/1.02, allocations: 32.83 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/1.02, allocations: 41.72 kB / 1.093 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002792/1.02, allocations: 74.27 kB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/1.02, allocations: 0.8125 kB / 1.093 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003309/1.021, allocations: 105.6 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/1.021, allocations: 6.062 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/1.021, allocations: 0.6562 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/1.021, allocations: 0 / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/1.021, allocations: 16.7 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/1.021, allocations: 0 / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.051e-05/1.021, allocations: 16.02 kB / 1.093 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/1.021, allocations: 1.5 kB / 1.093 GB, free: 2.422 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 6.932e-05/1.021, allocations: 123.2 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/1.021, allocations: 2.922 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003924/1.022, allocations: 114 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/1.022, allocations: 5.328 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/1.022, allocations: 0 / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/1.022, allocations: 0.6562 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/1.022, allocations: 182.2 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/1.022, allocations: 0.7812 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.676e-05/1.022, allocations: 20.77 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/1.022, allocations: 0 / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/1.022, allocations: 4.844 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/1.022, allocations: 0 / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/1.022, allocations: 1.859 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003604/1.022, allocations: 209.7 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.21e-05/1.022, allocations: 79.44 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/1.022, allocations: 1.547 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/1.022, allocations: 11.44 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/1.023, allocations: 3.516 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/1.023, allocations: 2.078 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.205e-05/1.023, allocations: 95.33 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/1.023, allocations: 0 / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002353/1.023, allocations: 13.25 kB / 1.094 GB, free: 1.688 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.000131/1.023, allocations: 107 kB / 1.094 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003591/1.023, allocations: 72.88 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/1.023, allocations: 4 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001652/1.024, allocations: 42.64 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/1.024, allocations: 7.422 kB / 1.094 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003675/1.024, allocations: 187 kB / 1.094 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/1.024, allocations: 0.6922 MB / 1.095 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/1.024, allocations: 14.81 kB / 1.095 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/1.024, allocations: 4 kB / 1.095 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of Templates: time 0.003001/1.027, allocations: 0.9217 MB / 1.096 GB, free: 0.625 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches