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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.446/2.446, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 189 kB / 498.1 MB, free: 5.723 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 223.2 MB / 0.7948 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009157/0.0009159, allocations: 110.3 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004314, allocations: 10.94 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3323, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2252/0.5576, allocations: 149.5 MB / 1.369 GB, free: 12.63 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.5579, allocations: 79.89 kB / 1.369 GB, free: 12.55 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003308/0.5612, allocations: 1.121 MB / 1.37 GB, free: 11.42 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5612, allocations: 0 / 1.37 GB, free: 11.42 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.5613, allocations: 4 kB / 1.37 GB, free: 11.42 MB / 0.8698 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.0004782/0.5617, allocations: 391.5 kB / 1.37 GB, free: 10.99 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.5618, allocations: 8.031 kB / 1.37 GB, free: 10.98 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.5618, allocations: 11.91 kB / 1.37 GB, free: 10.97 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.5621, allocations: 186.9 kB / 1.371 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.5621, allocations: 4 kB / 1.371 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.5621, allocations: 4 kB / 1.371 GB, free: 10.74 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003024/0.5624, allocations: 93.64 kB / 1.371 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.5624, allocations: 8 kB / 1.371 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.5625, allocations: 0 / 1.371 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.5625, allocations: 0 / 1.371 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.5628, allocations: 107.8 kB / 1.371 GB, free: 10.53 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.5634, allocations: 336.6 kB / 1.371 GB, free: 10.15 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.5637, allocations: 70.56 kB / 1.371 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.848e-05/0.5637, allocations: 8 kB / 1.371 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.5637, allocations: 30.56 kB / 1.371 GB, free: 10.03 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 6.031e-06/0.5638, allocations: 3.984 kB / 1.371 GB, free: 10.02 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0005903/0.5643, allocations: 173.5 kB / 1.371 GB, free: 9.848 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.5644, allocations: 63.39 kB / 1.371 GB, free: 9.773 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.925e-05/0.5645, allocations: 104.9 kB / 1.372 GB, free: 9.664 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.5645, allocations: 25.7 kB / 1.372 GB, free: 9.633 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.5646, allocations: 92.14 kB / 1.372 GB, free: 9.539 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.5646, allocations: 15.75 kB / 1.372 GB, free: 9.523 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.558e-06/0.5646, allocations: 3.938 kB / 1.372 GB, free: 9.52 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.5648, allocations: 318.8 kB / 1.372 GB, free: 9.199 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.5649, allocations: 43.97 kB / 1.372 GB, free: 9.156 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.5651, allocations: 43.95 kB / 1.372 GB, free: 9.113 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.5653, allocations: 47.95 kB / 1.372 GB, free: 9.066 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5653, allocations: 0 / 1.372 GB, free: 9.066 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003258/0.5656, allocations: 121.6 kB / 1.372 GB, free: 8.941 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.5656, allocations: 4 kB / 1.372 GB, free: 8.938 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.5657, allocations: 0 / 1.372 GB, free: 8.938 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.5657, allocations: 4 kB / 1.372 GB, free: 8.934 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.5658, allocations: 27.97 kB / 1.372 GB, free: 8.906 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.5658, allocations: 3.953 kB / 1.372 GB, free: 8.902 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.418e-05/0.5659, allocations: 15.98 kB / 1.372 GB, free: 8.887 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.5659, allocations: 4 kB / 1.372 GB, free: 8.883 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.273e-05/0.566, allocations: 121.7 kB / 1.372 GB, free: 8.754 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.623e-05/0.5661, allocations: 11.89 kB / 1.372 GB, free: 8.742 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003864/0.5665, allocations: 133.5 kB / 1.373 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.5665, allocations: 0 / 1.373 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5665, allocations: 0 / 1.373 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.5665, allocations: 3.953 kB / 1.373 GB, free: 8.598 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.5667, allocations: 177.6 kB / 1.373 GB, free: 8.375 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.5667, allocations: 4 kB / 1.373 GB, free: 8.371 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.5668, allocations: 19.97 kB / 1.373 GB, free: 8.352 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.5668, allocations: 8 kB / 1.373 GB, free: 8.344 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.5668, allocations: 4 kB / 1.373 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-06/0.5668, allocations: 0 / 1.373 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.5668, allocations: 0 / 1.373 GB, free: 8.34 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.5672, allocations: 231.3 kB / 1.373 GB, free: 8.098 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.867e-05/0.5673, allocations: 77.11 kB / 1.373 GB, free: 8.004 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.5673, allocations: 0 / 1.373 GB, free: 8.004 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.5674, allocations: 19.98 kB / 1.373 GB, free: 7.984 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.5675, allocations: 7.984 kB / 1.373 GB, free: 7.977 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/0.5675, allocations: 4 kB / 1.373 GB, free: 7.973 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.689e-05/0.5676, allocations: 95.2 kB / 1.373 GB, free: 7.879 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5676, allocations: 0 / 1.373 GB, free: 7.879 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002077/0.5678, allocations: 12 kB / 1.373 GB, free: 7.867 MB / 0.8698 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 (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.000158/0.5679, allocations: 107 kB / 1.373 GB, free: 7.754 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000353/0.5683, allocations: 100.3 kB / 1.373 GB, free: 7.656 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5683, allocations: 7.938 kB / 1.373 GB, free: 7.648 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.5685, allocations: 47.95 kB / 1.373 GB, free: 7.602 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000159/0.5686, allocations: 5.094 kB / 1.373 GB, free: 7.598 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003523/0.569, allocations: 165 kB / 1.374 GB, free: 7.402 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.5693, allocations: 0.6965 MB / 1.374 GB, free: 6.68 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.433e-05/0.5694, allocations: 7.984 kB / 1.374 GB, free: 6.672 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.5694, allocations: 15.42 kB / 1.374 GB, free: 6.656 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/0.5694, allocations: 4 kB / 1.374 GB, free: 6.652 MB / 0.8698 GB Notification: Performance of Templates: time 0.002795/0.5722, allocations: 0.589 MB / 1.375 GB, free: 6.066 MB / 0.8698 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","../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches