Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 107.4 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001953/0.001953, allocations: 191.6 kB / 16.14 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.62/2.62, allocations: 437 MB / 0.7099 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 67.89 kB / 0.8685 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7231/0.7245, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003032/0.7276, allocations: 1.585 MB / 1.018 GB, free: 1.199 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003776/0.728, allocations: 112.5 kB / 1.018 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.739e-05/0.7281, allocations: 4 kB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.7282, allocations: 7.938 kB / 1.018 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.749e-05/0.7283, allocations: 3.938 kB / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.7285, allocations: 27.95 kB / 1.018 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.038e-05/0.7286, allocations: 55.78 kB / 1.018 GB, free: 0.9883 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.7287, allocations: 27.97 kB / 1.018 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.733e-05/0.7288, allocations: 19.92 kB / 1.018 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.338e-05/0.7289, allocations: 31.84 kB / 1.018 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.7289, allocations: 4 kB / 1.018 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.415e-05/0.729, allocations: 8 kB / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.307e-05/0.729, allocations: 23.91 kB / 1.018 GB, free: 0.875 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.293e-05/0.7291, allocations: 27.8 kB / 1.018 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.7292, allocations: 47.88 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7292, allocations: 0 / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of FrontEnd: time 8.42e-07/0.7292, allocations: 4 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.7292, allocations: 0 / 1.019 GB, free: 0.7969 MB / 0.7637 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.0005418/0.7298, allocations: 389.1 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.7298, allocations: 8.031 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.714e-05/0.7299, allocations: 8.875 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.73, allocations: 184.2 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.7301, allocations: 8.375 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.7301, allocations: 384 / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.7304, allocations: 94.19 kB / 1.019 GB, free: 28 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.7304, allocations: 192 / 1.019 GB, free: 28 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.7304, allocations: 3.938 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.7304, allocations: 0 / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003062/0.7307, allocations: 83.86 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005214/0.7312, allocations: 328.7 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.7314, allocations: 62.58 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.7316, allocations: 44.91 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.7316, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.7317, allocations: 34.56 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.7317, allocations: 0 / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005445/0.7322, allocations: 141.4 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.7323, allocations: 59.39 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.7324, allocations: 117.8 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.7324, allocations: 25.7 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.295e-05/0.7325, allocations: 88.14 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.7325, allocations: 15.73 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-05/0.7326, allocations: 21.72 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.7327, allocations: 314.8 kB / 1.02 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.7329, allocations: 43.95 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.733, allocations: 31.97 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002744/0.7333, allocations: 76.77 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7333, allocations: 0 / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003242/0.7337, allocations: 101.6 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.7337, allocations: 7.938 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.7337, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.7337, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.7339, allocations: 23.97 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.7339, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.024e-05/0.734, allocations: 15.98 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.734, allocations: 0 / 1.021 GB, free: 14.29 MB / 0.7794 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 0.0001086/0.7341, allocations: 113.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.879e-05/0.7341, allocations: 7.906 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003869/0.7345, allocations: 117.8 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.7346, allocations: 8.031 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.7346, allocations: 3.938 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7346, allocations: 0 / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.7348, allocations: 177.6 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7348, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.813e-05/0.7349, allocations: 19.97 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.7349, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.7349, allocations: 4 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.7349, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.7349, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003915/0.7353, allocations: 203.3 kB / 1.021 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.458e-05/0.7354, allocations: 81.11 kB / 1.021 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.7354, allocations: 4 kB / 1.021 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.7355, allocations: 11.98 kB / 1.021 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.7355, allocations: 11.92 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.7356, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.445e-05/0.7356, allocations: 91.27 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7356, allocations: 7.938 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000221/0.7358, allocations: 8 kB / 1.022 GB, free: 13.33 MB / 0.7794 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.000193/0.736, allocations: 103.7 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003479/0.7364, allocations: 75.92 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7364, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.7366, allocations: 39.95 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.7369, allocations: 8 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003881/0.7373, allocations: 171.1 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.7376, allocations: 0.6848 MB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.846e-05/0.7377, allocations: 15.98 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.7377, allocations: 11.44 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.7377, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of Templates: time 0.003262/0.741, allocations: 0.6384 MB / 1.023 GB, free: 11.54 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches