Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009037/0.0009037, allocations: 80.48 kB / 19.93 MB, free: 4.629 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.0008753/0.0008753, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.8749/0.8749, allocations: 177.2 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.779/1.779, allocations: 377.9 MB / 0.6229 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 0 / 0.9822 GB, free: 2.086 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.539e-05/3.762e-05, allocations: 6.219 kB / 0.9822 GB, free: 2.078 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002922/0.00296, allocations: 1.548 MB / 0.9837 GB, free: 0.5234 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0003757/0.003336, allocations: 119.5 kB / 0.9838 GB, free: 416 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.568e-05/0.003401, allocations: 7.938 kB / 0.9838 GB, free: 408 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.003545, allocations: 7.875 kB / 0.9838 GB, free: 400 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 3.301e-05/0.003578, allocations: 7.922 kB / 0.9839 GB, free: 392 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.003886, allocations: 31.95 kB / 0.9839 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.004008, allocations: 59.78 kB / 0.9839 GB, free: 300 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.004137, allocations: 15.98 kB / 0.984 GB, free: 284 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 7.804e-05/0.004215, allocations: 31.91 kB / 0.984 GB, free: 252 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.194e-05/0.004287, allocations: 23.95 kB / 0.984 GB, free: 228 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.004308, allocations: 4 kB / 0.984 GB, free: 224 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.143e-05/0.004379, allocations: 12 kB / 0.984 GB, free: 212 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.004429, allocations: 15.92 kB / 0.984 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.004463, allocations: 15.98 kB / 0.9841 GB, free: 180 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.00464, allocations: 63.73 kB / 0.9841 GB, free: 116 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.004644, allocations: 4 kB / 0.9841 GB, free: 112 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.233e-06/0.004645, allocations: 0 / 0.9841 GB, free: 112 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.004651, allocations: 3.938 kB / 0.9841 GB, free: 108 kB / 0.9323 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.0005303/0.005181, allocations: 310 kB / 0.9844 GB, free: 15.77 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.005227, allocations: 8.031 kB / 0.9844 GB, free: 15.76 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.286e-05/0.005269, allocations: 8.891 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.005439, allocations: 121.7 kB / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.005451, allocations: 384 / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.751e-05/0.005468, allocations: 12.36 kB / 0.9846 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.005738, allocations: 94.14 kB / 0.9847 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.005747, allocations: 4.172 kB / 0.9847 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.00576, allocations: 384 / 0.9847 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.005766, allocations: 384 / 0.9847 GB, free: 15.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.005984, allocations: 79.86 kB / 0.9847 GB, free: 15.42 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004804/0.006464, allocations: 268.4 kB / 0.985 GB, free: 15.12 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000165/0.006629, allocations: 58.53 kB / 0.985 GB, free: 15.06 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.006738, allocations: 44.84 kB / 0.9851 GB, free: 15.01 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.00678, allocations: 4 kB / 0.9851 GB, free: 15.01 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.006804, allocations: 30.56 kB / 0.9851 GB, free: 14.97 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/0.006806, allocations: 0 / 0.9851 GB, free: 14.97 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0004369/0.007243, allocations: 141.6 kB / 0.9853 GB, free: 14.82 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.007283, allocations: 51.41 kB / 0.9853 GB, free: 14.76 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.007458, allocations: 117.8 kB / 0.9854 GB, free: 14.64 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.007474, allocations: 29.64 kB / 0.9854 GB, free: 14.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.785e-05/0.007531, allocations: 100 kB / 0.9855 GB, free: 14.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.007553, allocations: 7.953 kB / 0.9855 GB, free: 14.49 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.007597, allocations: 21.7 kB / 0.9856 GB, free: 14.46 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.007699, allocations: 310.8 kB / 0.9859 GB, free: 14.15 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.007813, allocations: 35.95 kB / 0.9859 GB, free: 14.12 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.56e-05/0.007909, allocations: 31.97 kB / 0.9859 GB, free: 14.09 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002049/0.008114, allocations: 76.78 kB / 0.986 GB, free: 14.01 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.008116, allocations: 3.938 kB / 0.986 GB, free: 14 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002557/0.008372, allocations: 109.5 kB / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.008389, allocations: 4 kB / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.008395, allocations: 0 / 0.9861 GB, free: 13.89 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.008411, allocations: 4 kB / 0.9861 GB, free: 13.88 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.00852, allocations: 19.97 kB / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.008527, allocations: 0 / 0.9861 GB, free: 13.86 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.545e-05/0.008583, allocations: 15.92 kB / 0.9862 GB, free: 13.85 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.008605, allocations: 0 / 0.9862 GB, free: 13.85 MB / 0.948 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 8.409e-05/0.008689, allocations: 113.8 kB / 0.9863 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.008718, allocations: 11.89 kB / 0.9863 GB, free: 13.71 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002963/0.009015, allocations: 121.5 kB / 0.9864 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.009018, allocations: 0 / 0.9864 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.009023, allocations: 0 / 0.9864 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.009026, allocations: 0 / 0.9864 GB, free: 13.59 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001503/0.009176, allocations: 121.2 kB / 0.9865 GB, free: 13.44 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.009179, allocations: 4.359 kB / 0.9865 GB, free: 13.44 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.534e-05/0.009245, allocations: 15.98 kB / 0.9865 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.00925, allocations: 3.938 kB / 0.9865 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.009258, allocations: 0 / 0.9865 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.00926, allocations: 0 / 0.9865 GB, free: 13.42 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.009262, allocations: 4 kB / 0.9865 GB, free: 13.41 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.009546, allocations: 207.3 kB / 0.9867 GB, free: 13.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.246e-05/0.009558, allocations: 7.938 kB / 0.9867 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.009573, allocations: 0 / 0.9867 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-05/0.009656, allocations: 15.98 kB / 0.9868 GB, free: 13.17 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.009702, allocations: 7.984 kB / 0.9868 GB, free: 13.16 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.009713, allocations: 7.938 kB / 0.9868 GB, free: 13.16 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.571e-05/0.009759, allocations: 95.27 kB / 0.9869 GB, free: 13.06 MB / 0.948 GB Notification: Performance of sort global known variables: time 7e-08/0.009759, allocations: 0 / 0.9869 GB, free: 13.06 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000262/0.01002, allocations: 8 kB / 0.9869 GB, free: 13.05 MB / 0.948 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.0001618/0.01018, allocations: 95.25 kB / 0.987 GB, free: 12.95 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000275/0.01046, allocations: 79.91 kB / 0.987 GB, free: 12.87 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.01046, allocations: 4 kB / 0.987 GB, free: 12.87 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.01057, allocations: 39.91 kB / 0.9871 GB, free: 12.83 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.01092, allocations: 3.984 kB / 0.9871 GB, free: 12.82 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.01132, allocations: 178.5 kB / 0.9872 GB, free: 12.62 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.213e-05/0.01139, allocations: 71.33 kB / 0.9873 GB, free: 12.53 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.697e-05/0.01143, allocations: 12.5 kB / 0.9873 GB, free: 12.52 MB / 0.948 GB Notification: Performance of SimCode: time 6.31e-07/0.01143, allocations: 4 kB / 0.9873 GB, free: 12.51 MB / 0.948 GB Notification: Performance of Templates: time 0.002597/0.01403, allocations: 0.965 MB / 0.9883 GB, free: 11.55 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.731728727929294]