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.482/1.482, allocations: 249.5 MB / 257 MB, free: 6.848 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.001142/0.001142, allocations: 180.8 kB / 316.3 MB, free: 3.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.851/1.851, allocations: 205.3 MB / 0.5671 GB, free: 15.84 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.0009535/0.0009538, allocations: 92.59 kB / 0.6714 GB, free: 4.953 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.067e-05/2.069e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.271, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8904/1.161, allocations: 132.1 MB / 1.014 GB, free: 5.617 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/1.162, allocations: 73.58 kB / 1.014 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003441/1.165, allocations: 1.119 MB / 1.015 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.316e-06/1.165, allocations: 0 / 1.015 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.16e-05/1.165, allocations: 6.625 kB / 1.015 GB, free: 4.562 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.0004935/1.166, allocations: 362.4 kB / 1.016 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/1.166, allocations: 12.03 kB / 1.016 GB, free: 4.156 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.823e-05/1.166, allocations: 3.906 kB / 1.016 GB, free: 4.152 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/1.166, allocations: 204.8 kB / 1.016 GB, free: 3.918 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/1.166, allocations: 3.938 kB / 1.016 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/1.166, allocations: 4 kB / 1.016 GB, free: 3.91 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001182/1.166, allocations: 25.62 kB / 1.016 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/1.166, allocations: 60.42 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/1.167, allocations: 0 / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/1.167, allocations: 3.938 kB / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/1.167, allocations: 0 / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005951/1.167, allocations: 313.2 kB / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.194e-05/1.167, allocations: 33 kB / 1.016 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.306e-05/1.167, allocations: 16.2 kB / 1.016 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.568e-05/1.167, allocations: 7.938 kB / 1.016 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/1.167, allocations: 34.56 kB / 1.016 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.603e-06/1.167, allocations: 0 / 1.016 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002826/1.168, allocations: 55.09 kB / 1.016 GB, free: 3.355 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/1.168, allocations: 51.41 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.852e-05/1.168, allocations: 114.6 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/1.168, allocations: 25.7 kB / 1.017 GB, free: 3.148 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.786e-05/1.168, allocations: 94.61 kB / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/1.168, allocations: 11.83 kB / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-06/1.168, allocations: 0 / 1.017 GB, free: 3.047 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001406/1.168, allocations: 322.2 kB / 1.017 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.71e-05/1.168, allocations: 11.25 kB / 1.017 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.448e-05/1.168, allocations: 15.3 kB / 1.017 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.219e-05/1.168, allocations: 11.5 kB / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.168, allocations: 0 / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001157/1.168, allocations: 67.64 kB / 1.017 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/1.168, allocations: 4 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/1.168, allocations: 0 / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/1.168, allocations: 4 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/1.169, allocations: 23.48 kB / 1.017 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.543e-06/1.169, allocations: 4 kB / 1.017 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.751e-05/1.169, allocations: 11.98 kB / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/1.169, allocations: 11.89 kB / 1.017 GB, free: 2.578 MB / 0.6355 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 7.485e-05/1.169, allocations: 101 kB / 1.017 GB, free: 2.473 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/1.169, allocations: 11.98 kB / 1.017 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/1.169, allocations: 72.55 kB / 1.017 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/1.169, allocations: 0 / 1.017 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.169, allocations: 0 / 1.017 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/1.169, allocations: 4 kB / 1.017 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001722/1.169, allocations: 156.6 kB / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/1.169, allocations: 0 / 1.018 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/1.169, allocations: 19.98 kB / 1.018 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/1.169, allocations: 4 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/1.169, allocations: 0 / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.169, allocations: 4 kB / 1.018 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/1.169, allocations: 0 / 1.018 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/1.17, allocations: 153 kB / 1.018 GB, free: 2.02 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.127e-05/1.17, allocations: 85.02 kB / 1.018 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/1.17, allocations: 0 / 1.018 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/1.17, allocations: 19.98 kB / 1.018 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.196e-05/1.17, allocations: 3.984 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/1.17, allocations: 4 kB / 1.018 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.766e-05/1.17, allocations: 92.91 kB / 1.018 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.71e-07/1.17, allocations: 0 / 1.018 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002092/1.17, allocations: 8 kB / 1.018 GB, free: 1.797 MB / 0.6355 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.0001873/1.17, allocations: 103.2 kB / 1.018 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001184/1.17, allocations: 31.94 kB / 1.018 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.171, allocations: 0 / 1.018 GB, free: 1.664 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.195e-05/1.171, allocations: 15.42 kB / 1.018 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/1.171, allocations: 15.39 kB / 1.018 GB, free: 1.641 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002859/1.171, allocations: 98.56 kB / 1.018 GB, free: 1.527 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/1.171, allocations: 0.6923 MB / 1.019 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.685e-05/1.171, allocations: 15.98 kB / 1.019 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.52e-05/1.171, allocations: 7.438 kB / 1.019 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/1.171, allocations: 0 / 1.019 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of Templates: time 0.002603/1.174, allocations: 0.5624 MB / 1.019 GB, free: 244 kB / 0.6355 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