Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009672/0.0009672, allocations: 81.95 kB / 21.47 MB, free: 3.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009525/0.0009525, allocations: 166 kB / 24.87 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.014/1.014, allocations: 177.1 MB / 205.3 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.754/1.754, allocations: 359 MB / 0.6063 GB, free: 10.89 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.525e-06/2.525e-06, allocations: 4 kB / 0.7883 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.458e-05/1.71e-05, allocations: 2.312 kB / 0.7883 GB, free: 12.19 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001771/0.001788, allocations: 1.578 MB / 0.7899 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002586/0.002047, allocations: 115.7 kB / 0.79 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.501e-05/0.002092, allocations: 5.594 kB / 0.79 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.0022, allocations: 7.875 kB / 0.79 GB, free: 10.5 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.178e-05/0.002222, allocations: 11.91 kB / 0.79 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.002424, allocations: 33.12 kB / 0.79 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 7.783e-05/0.002502, allocations: 55.78 kB / 0.7901 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 8.315e-05/0.002585, allocations: 23.95 kB / 0.7901 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 5.749e-05/0.002642, allocations: 32.59 kB / 0.7901 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.061e-05/0.002693, allocations: 23.91 kB / 0.7902 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.002708, allocations: 5.406 kB / 0.7902 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 4.792e-05/0.002756, allocations: 11.94 kB / 0.7902 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 3.441e-05/0.002791, allocations: 15.98 kB / 0.7902 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.246e-05/0.002813, allocations: 23.91 kB / 0.7902 GB, free: 10.27 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 9.566e-05/0.002909, allocations: 48.66 kB / 0.7903 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.00291, allocations: 0 / 0.7903 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.31e-07/0.002911, allocations: 0.5625 kB / 0.7903 GB, free: 10.22 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.106e-06/0.002914, allocations: 4 kB / 0.7903 GB, free: 10.21 MB / 0.7448 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.0003063/0.00322, allocations: 385.2 kB / 0.7906 GB, free: 9.801 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 2.784e-05/0.003248, allocations: 8.938 kB / 0.7906 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.003278, allocations: 12.89 kB / 0.7906 GB, free: 9.781 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.003384, allocations: 141 kB / 0.7908 GB, free: 9.617 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-06/0.003392, allocations: 4.375 kB / 0.7908 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.602e-06/0.003398, allocations: 1.969 kB / 0.7908 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.003507, allocations: 70.92 kB / 0.7909 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.003512, allocations: 192 / 0.7909 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.00352, allocations: 4.375 kB / 0.7909 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.003523, allocations: 1.438 kB / 0.7909 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.475e-05/0.003548, allocations: 15.86 kB / 0.7909 GB, free: 9.516 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002561/0.003804, allocations: 279.5 kB / 0.7911 GB, free: 9.219 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.182e-05/0.003856, allocations: 35.09 kB / 0.7912 GB, free: 9.172 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.85e-05/0.003874, allocations: 11.69 kB / 0.7912 GB, free: 9.156 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.003897, allocations: 4 kB / 0.7912 GB, free: 9.152 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.003916, allocations: 41.33 kB / 0.7912 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 7.21e-07/0.003916, allocations: 0 / 0.7912 GB, free: 9.102 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001191/0.004035, allocations: 45.97 kB / 0.7913 GB, free: 9.051 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.746e-05/0.004063, allocations: 56.06 kB / 0.7913 GB, free: 8.984 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.902e-05/0.004132, allocations: 177.9 kB / 0.7915 GB, free: 8.793 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.004142, allocations: 27.36 kB / 0.7915 GB, free: 8.762 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.004185, allocations: 138.8 kB / 0.7917 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.004205, allocations: 19.83 kB / 0.7917 GB, free: 8.602 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.00423, allocations: 19.36 kB / 0.7917 GB, free: 8.574 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.004338, allocations: 0.4897 MB / 0.7922 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.029e-05/0.004349, allocations: 0 / 0.7922 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.277e-05/0.004361, allocations: 11.97 kB / 0.7922 GB, free: 8.062 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.47e-05/0.004386, allocations: 11.69 kB / 0.7922 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.004387, allocations: 1.156 kB / 0.7922 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.501e-05/0.004443, allocations: 53.56 kB / 0.7922 GB, free: 7.988 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.117e-06/0.004452, allocations: 7.938 kB / 0.7923 GB, free: 7.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.004456, allocations: 4.938 kB / 0.7923 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.333e-06/0.004464, allocations: 0 / 0.7923 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.683e-05/0.00452, allocations: 17.64 kB / 0.7923 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.014e-06/0.004522, allocations: 0 / 0.7923 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.206e-05/0.004544, allocations: 4 kB / 0.7923 GB, free: 7.957 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.004556, allocations: 0 / 0.7923 GB, free: 7.957 MB / 0.7448 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 5.879e-05/0.004614, allocations: 161.9 kB / 0.7924 GB, free: 7.789 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.709e-05/0.004632, allocations: 7.891 kB / 0.7924 GB, free: 7.781 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.132e-05/0.004703, allocations: 53.67 kB / 0.7925 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.004704, allocations: 0.5625 kB / 0.7925 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-06/0.004705, allocations: 0 / 0.7925 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.004708, allocations: 0.5625 kB / 0.7925 GB, free: 7.723 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.657e-05/0.004794, allocations: 106.7 kB / 0.7926 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.004795, allocations: 3.938 kB / 0.7926 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.798e-05/0.004823, allocations: 11.98 kB / 0.7926 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.22e-07/0.004824, allocations: 0 / 0.7926 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-06/0.004828, allocations: 4.562 kB / 0.7926 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.00483, allocations: 5.625 kB / 0.7926 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.00483, allocations: 0 / 0.7926 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001377/0.004968, allocations: 195.9 kB / 0.7928 GB, free: 7.359 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.584e-06/0.004976, allocations: 4 kB / 0.7928 GB, free: 7.355 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.177e-06/0.004985, allocations: 0 / 0.7928 GB, free: 7.355 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.88e-05/0.005044, allocations: 12.83 kB / 0.7928 GB, free: 7.344 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.691e-05/0.005071, allocations: 7.984 kB / 0.7928 GB, free: 7.336 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.005077, allocations: 4.531 kB / 0.7928 GB, free: 7.332 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.001e-05/0.005117, allocations: 127.6 kB / 0.793 GB, free: 7.207 MB / 0.7448 GB Notification: Performance of sort global known variables: time 9e-08/0.005117, allocations: 4.5 kB / 0.793 GB, free: 7.203 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001441/0.005261, allocations: 12.48 kB / 0.793 GB, free: 7.191 MB / 0.7448 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 8.208e-05/0.005343, allocations: 108.3 kB / 0.7931 GB, free: 7.078 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 6.323e-05/0.005407, allocations: 15.69 kB / 0.7931 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 9.02e-07/0.005408, allocations: 0.5 kB / 0.7931 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.015e-05/0.005428, allocations: 24.47 kB / 0.7931 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.005589, allocations: 4.812 kB / 0.7931 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000222/0.005811, allocations: 158.8 kB / 0.7933 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.237e-05/0.005843, allocations: 64.69 kB / 0.7933 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.843e-05/0.005862, allocations: 256 / 0.7933 GB, free: 6.762 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.618e-05/0.005908, allocations: 83.06 kB / 0.7934 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of SimCode: time 3.81e-07/0.005908, allocations: 0 / 0.7934 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of Templates: time 0.002194/0.008102, allocations: 0.9113 MB / 0.7943 GB, free: 5.801 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.041795487049967]