Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.497/1.497, allocations: 249.3 MB / 261.8 MB, free: 5.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001082/0.001082, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.596/1.596, allocations: 205.2 MB / 0.572 GB, free: 10.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008294/0.0008294, allocations: 90.48 kB / 0.6764 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.69e-05/3.712e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2088, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7057/0.9146, allocations: 131.8 MB / 1.021 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.9149, allocations: 74.92 kB / 1.021 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003626/0.9185, allocations: 1.12 MB / 1.022 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.342e-06/0.9186, allocations: 0 / 1.022 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.9186, allocations: 6.734 kB / 1.022 GB, free: 1.836 MB / 0.6355 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.0004834/0.9191, allocations: 365.8 kB / 1.022 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.9191, allocations: 12.03 kB / 1.022 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.859e-05/0.9192, allocations: 7.906 kB / 1.022 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.9194, allocations: 190.2 kB / 1.022 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.9194, allocations: 3.188 kB / 1.022 GB, free: 1.195 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.9195, allocations: 4.875 kB / 1.022 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.9196, allocations: 67 kB / 1.022 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.9196, allocations: 0 / 1.022 GB, free: 1.129 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.9197, allocations: 7 kB / 1.022 GB, free: 1.125 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.9197, allocations: 4 kB / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.159e-05/0.9198, allocations: 29.8 kB / 1.022 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005873/0.9204, allocations: 336.5 kB / 1.023 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.668e-05/0.9205, allocations: 37.5 kB / 1.023 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.532e-05/0.9205, allocations: 20.17 kB / 1.023 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.574e-05/0.9206, allocations: 4 kB / 1.023 GB, free: 0.6836 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.9206, allocations: 34.56 kB / 1.023 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.956e-06/0.9206, allocations: 3.984 kB / 1.023 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001927/0.9208, allocations: 63.52 kB / 1.023 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.9209, allocations: 55.41 kB / 1.023 GB, free: 0.5117 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.934e-05/0.921, allocations: 108.3 kB / 1.023 GB, free: 412 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.921, allocations: 25.7 kB / 1.023 GB, free: 380 kB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.285e-05/0.9211, allocations: 90.98 kB / 1.023 GB, free: 292 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.9211, allocations: 15.83 kB / 1.023 GB, free: 276 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.9211, allocations: 0 / 1.023 GB, free: 276 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.9213, allocations: 320.8 kB / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.086e-05/0.9213, allocations: 11.81 kB / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.407e-05/0.9213, allocations: 11.31 kB / 1.023 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.086e-05/0.9214, allocations: 11.42 kB / 1.023 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.9214, allocations: 0 / 1.023 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000104/0.9215, allocations: 64.84 kB / 1.023 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.9215, allocations: 4 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.9215, allocations: 1.25 kB / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.9215, allocations: 0 / 1.024 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.9217, allocations: 31.41 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.9217, allocations: 3.953 kB / 1.024 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.71e-05/0.9218, allocations: 15.98 kB / 1.024 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.9218, allocations: 0 / 1.024 GB, free: 15.82 MB / 0.6511 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 () * 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.052e-05/0.9219, allocations: 105 kB / 1.024 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.922, allocations: 7.938 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.9221, allocations: 76.67 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.9222, allocations: 0 / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.9222, allocations: 4 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.9222, allocations: 3.953 kB / 1.024 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.9224, allocations: 179.2 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.9224, allocations: 0 / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.9225, allocations: 27.97 kB / 1.024 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.9225, allocations: 4 kB / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.247e-06/0.9225, allocations: 3.375 kB / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.9225, allocations: 0 / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.9225, allocations: 3.938 kB / 1.024 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001685/0.9227, allocations: 154 kB / 1.024 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.346e-05/0.9228, allocations: 81.02 kB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.9228, allocations: 0 / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.9229, allocations: 23.97 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.923, allocations: 4 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.923, allocations: 3.938 kB / 1.024 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.183e-05/0.9231, allocations: 93.17 kB / 1.024 GB, free: 15 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9231, allocations: 0 / 1.024 GB, free: 15 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002036/0.9233, allocations: 15.44 kB / 1.024 GB, free: 14.98 MB / 0.6511 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 () * 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.0001784/0.9235, allocations: 103.2 kB / 1.024 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001072/0.9236, allocations: 30.95 kB / 1.024 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.9236, allocations: 0 / 1.024 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.951e-05/0.9236, allocations: 19.03 kB / 1.024 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001597/0.9238, allocations: 3.953 kB / 1.024 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002654/0.9241, allocations: 100.6 kB / 1.025 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.9244, allocations: 0.7004 MB / 1.025 GB, free: 13.99 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.454e-05/0.9244, allocations: 11.98 kB / 1.025 GB, free: 13.98 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.475e-05/0.9244, allocations: 7.438 kB / 1.025 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of SimCode: time 3.1e-07/0.9244, allocations: 0 / 1.025 GB, free: 13.97 MB / 0.6511 GB Notification: Performance of Templates: time 0.002577/0.927, allocations: 0.6094 MB / 1.026 GB, free: 13.38 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_Average.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches