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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.949/1.949, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.000996/0.0009963, allocations: 185.2 kB / 487 MB, free: 5.359 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.295/1.295, allocations: 221.3 MB / 0.7819 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000887/0.0008867, allocations: 90.06 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.936e-06/8.966e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2627, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6843/0.9471, allocations: 148.7 MB / 1.35 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.9474, allocations: 70.5 kB / 1.35 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.003402/0.9508, allocations: 0.8286 MB / 1.351 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.145e-05/0.9509, allocations: 1.062 kB / 1.351 GB, free: 15.83 MB / 0.8073 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.0003971/0.9513, allocations: 378.6 kB / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.9513, allocations: 9.031 kB / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.9514, allocations: 8.016 kB / 1.352 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.9515, allocations: 190 kB / 1.352 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.9516, allocations: 1.375 kB / 1.352 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.594e-05/0.9516, allocations: 6.844 kB / 1.352 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001036/0.9517, allocations: 29.17 kB / 1.352 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.9518, allocations: 60.98 kB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.9518, allocations: 2.812 kB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.9518, allocations: 3.984 kB / 1.352 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.9518, allocations: 1.469 kB / 1.352 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004827/0.9523, allocations: 315.3 kB / 1.352 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.109e-05/0.9524, allocations: 41.8 kB / 1.352 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.468e-05/0.9525, allocations: 16.7 kB / 1.352 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.9525, allocations: 2.5 kB / 1.352 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.818e-05/0.9525, allocations: 37.38 kB / 1.352 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.9525, allocations: 0 / 1.352 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0002207/0.9528, allocations: 62.41 kB / 1.352 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.85e-05/0.9528, allocations: 52.16 kB / 1.352 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.518e-05/0.9529, allocations: 105.7 kB / 1.353 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.9529, allocations: 27.05 kB / 1.353 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.611e-05/0.9529, allocations: 86.19 kB / 1.353 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.9529, allocations: 19.17 kB / 1.353 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.9529, allocations: 0 / 1.353 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.566e-05/0.953, allocations: 313.5 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.653e-05/0.953, allocations: 14.42 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.289e-05/0.9531, allocations: 18.19 kB / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.988e-05/0.9531, allocations: 15.05 kB / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.9531, allocations: 0 / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001066/0.9532, allocations: 60.33 kB / 1.353 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.9532, allocations: 6.469 kB / 1.353 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.9533, allocations: 0 / 1.353 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.9533, allocations: 2.375 kB / 1.353 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.9534, allocations: 26.44 kB / 1.353 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.9534, allocations: 1.359 kB / 1.353 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.757e-05/0.9535, allocations: 25.89 kB / 1.353 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.9536, allocations: 1.281 kB / 1.353 GB, free: 14.21 MB / 0.8073 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 4.794e-05/0.9536, allocations: 110.5 kB / 1.353 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.9537, allocations: 2.562 kB / 1.353 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000156/0.9538, allocations: 71.16 kB / 1.353 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.9538, allocations: 3.906 kB / 1.353 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.9538, allocations: 0 / 1.353 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.9538, allocations: 1.5 kB / 1.353 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.954, allocations: 150.5 kB / 1.353 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.954, allocations: 4 kB / 1.353 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.9541, allocations: 25.45 kB / 1.353 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.9541, allocations: 1.5 kB / 1.353 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.9541, allocations: 0.5 kB / 1.353 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.9541, allocations: 1.078 kB / 1.353 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.9541, allocations: 9.406 kB / 1.353 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001316/0.9543, allocations: 155.7 kB / 1.354 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.09e-05/0.9543, allocations: 84.03 kB / 1.354 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.9543, allocations: 5.094 kB / 1.354 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.9544, allocations: 20.59 kB / 1.354 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.9545, allocations: 16.08 kB / 1.354 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.9545, allocations: 2.594 kB / 1.354 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.573e-05/0.9545, allocations: 86.97 kB / 1.354 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002077/0.9548, allocations: 9.594 kB / 1.354 GB, free: 13.56 MB / 0.8073 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.0001332/0.9549, allocations: 105.9 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.526e-05/0.955, allocations: 28.22 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.955, allocations: 5.281 kB / 1.354 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.369e-05/0.955, allocations: 15.2 kB / 1.354 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001583/0.9552, allocations: 7.922 kB / 1.354 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/0.9555, allocations: 99.19 kB / 1.354 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.9556, allocations: 0.7063 MB / 1.355 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of SimCode: time 2.2e-07/0.9557, allocations: 0 / 1.355 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of Templates: time 0.002799/0.9585, allocations: 0.7007 MB / 1.355 GB, free: 12.63 MB / 0.8073 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