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.001011/0.001011, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001079/0.001079, allocations: 161 kB / 23.82 MB, free: 0.7539 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.057/1.057, allocations: 177.1 MB / 204.2 MB, free: 5.621 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.819/1.819, allocations: 359 MB / 0.6052 GB, free: 11.04 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 1.603e-06/1.603e-06, allocations: 0 / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.077e-05/2.237e-05, allocations: 2.875 kB / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002539/0.002561, allocations: 1.587 MB / 0.7886 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.000329/0.00289, allocations: 116.2 kB / 0.7888 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.288e-05/0.002943, allocations: 4 kB / 0.7888 GB, free: 10.8 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.003079, allocations: 12.48 kB / 0.7888 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 2.916e-05/0.003109, allocations: 5.031 kB / 0.7888 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002719/0.00338, allocations: 31.89 kB / 0.7888 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001016/0.003482, allocations: 56.34 kB / 0.7889 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.003592, allocations: 23.91 kB / 0.7889 GB, free: 10.68 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 7.666e-05/0.003669, allocations: 36.77 kB / 0.7889 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.125e-05/0.00374, allocations: 23.91 kB / 0.7889 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.054e-05/0.003761, allocations: 4.656 kB / 0.7889 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 7.002e-05/0.003831, allocations: 15.92 kB / 0.789 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.11e-05/0.003872, allocations: 9.188 kB / 0.789 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.619e-05/0.003908, allocations: 23.92 kB / 0.789 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.004047, allocations: 47.81 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.004049, allocations: 0.5625 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.92e-07/0.00405, allocations: 4.781 kB / 0.789 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.004055, allocations: 0 / 0.789 GB, free: 10.52 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.0004344/0.004489, allocations: 397.5 kB / 0.7894 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.004531, allocations: 8.031 kB / 0.7894 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.004576, allocations: 9.547 kB / 0.7894 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.004743, allocations: 132.5 kB / 0.7896 GB, free: 9.918 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.004755, allocations: 11 kB / 0.7896 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.004772, allocations: 4.375 kB / 0.7896 GB, free: 9.906 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.004958, allocations: 70.94 kB / 0.7896 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.00497, allocations: 192 / 0.7896 GB, free: 9.828 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.004981, allocations: 4.312 kB / 0.7896 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.00499, allocations: 384 / 0.7896 GB, free: 9.824 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.397e-05/0.005044, allocations: 19.86 kB / 0.7897 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.005452, allocations: 301.2 kB / 0.79 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 8.762e-05/0.00554, allocations: 35.05 kB / 0.79 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.724e-05/0.005577, allocations: 20.22 kB / 0.79 GB, free: 9.406 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.906e-05/0.005616, allocations: 0 / 0.79 GB, free: 9.406 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.005648, allocations: 46.16 kB / 0.7901 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.00565, allocations: 0 / 0.7901 GB, free: 9.352 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.00019/0.00584, allocations: 50.69 kB / 0.7901 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.005871, allocations: 51.41 kB / 0.7901 GB, free: 9.234 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.325e-05/0.005964, allocations: 179.3 kB / 0.7903 GB, free: 9.043 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.005977, allocations: 25.7 kB / 0.7903 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.006139, allocations: 138.8 kB / 0.7905 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.006171, allocations: 15.84 kB / 0.7905 GB, free: 8.855 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.006211, allocations: 29.2 kB / 0.7905 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.006341, allocations: 492.1 kB / 0.791 GB, free: 8.328 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.539e-05/0.006366, allocations: 4 kB / 0.791 GB, free: 8.324 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.928e-05/0.006386, allocations: 4 kB / 0.791 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.798e-05/0.006433, allocations: 23.67 kB / 0.791 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.006436, allocations: 1.531 kB / 0.791 GB, free: 8.293 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.983e-05/0.006535, allocations: 53.56 kB / 0.7911 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.006553, allocations: 5.562 kB / 0.7911 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.006559, allocations: 0 / 0.7911 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.006582, allocations: 1.906 kB / 0.7911 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.006704, allocations: 8 kB / 0.7911 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.006711, allocations: 0 / 0.7911 GB, free: 8.223 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.648e-05/0.006738, allocations: 11.98 kB / 0.7911 GB, free: 8.211 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.006756, allocations: 6.5 kB / 0.7911 GB, free: 8.207 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 7.371e-05/0.00683, allocations: 152.6 kB / 0.7912 GB, free: 8.047 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.006854, allocations: 15.89 kB / 0.7913 GB, free: 8.031 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.006983, allocations: 57.61 kB / 0.7913 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.006985, allocations: 0 / 0.7913 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.006988, allocations: 0 / 0.7913 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.006991, allocations: 0.5312 kB / 0.7913 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.007101, allocations: 132.6 kB / 0.7914 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.007103, allocations: 0.7188 kB / 0.7914 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.279e-05/0.007135, allocations: 8.531 kB / 0.7915 GB, free: 7.797 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.007139, allocations: 3.938 kB / 0.7915 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.007146, allocations: 1.625 kB / 0.7915 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.007148, allocations: 0 / 0.7915 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.007149, allocations: 0 / 0.7915 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001006/0.007249, allocations: 195.9 kB / 0.7916 GB, free: 7.582 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-06/0.007257, allocations: 8.516 kB / 0.7917 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.007268, allocations: 0 / 0.7917 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.647e-05/0.007305, allocations: 4.656 kB / 0.7917 GB, free: 7.57 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.009e-05/0.007345, allocations: 17.06 kB / 0.7917 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.95e-06/0.00735, allocations: 0 / 0.7917 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.154e-05/0.007392, allocations: 136.2 kB / 0.7918 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.007392, allocations: 0 / 0.7918 GB, free: 7.422 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001533/0.007545, allocations: 15.95 kB / 0.7918 GB, free: 7.406 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 0.0001006/0.007645, allocations: 96.22 kB / 0.7919 GB, free: 7.305 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 8.857e-05/0.007734, allocations: 28.31 kB / 0.7919 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.007735, allocations: 0 / 0.7919 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.267e-05/0.007758, allocations: 16.69 kB / 0.792 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.007951, allocations: 8 kB / 0.792 GB, free: 7.246 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002895/0.00824, allocations: 160.3 kB / 0.7921 GB, free: 7.062 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.485e-05/0.008275, allocations: 63.34 kB / 0.7922 GB, free: 6.98 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.49e-05/0.0083, allocations: 8.234 kB / 0.7922 GB, free: 6.973 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.008325, allocations: 13.41 kB / 0.7922 GB, free: 6.961 MB / 0.7448 GB Notification: Performance of SimCode: time 6.51e-07/0.008326, allocations: 0 / 0.7922 GB, free: 6.961 MB / 0.7448 GB Notification: Performance of Templates: time 0.002418/0.01074, allocations: 0.8211 MB / 0.793 GB, free: 6.18 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.179206789005548]