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.001903/0.001903, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002204/0.002204, allocations: 197.8 kB / 16.26 MB, free: 6.629 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.462/1.462, allocations: 222.9 MB / 239.9 MB, free: 4.562 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.716/2.716, allocations: 437 MB / 0.7101 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 67.89 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6793/0.6814, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.004966/0.6864, allocations: 1.601 MB / 1.018 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005232/0.687, allocations: 112.5 kB / 1.018 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.131e-05/0.6871, allocations: 0 / 1.018 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.6873, allocations: 11.92 kB / 1.018 GB, free: 0.9648 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.327e-05/0.6874, allocations: 3.938 kB / 1.018 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003489/0.6878, allocations: 19.98 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.688, allocations: 55.78 kB / 1.019 GB, free: 0.8867 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.6882, allocations: 31.97 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.6884, allocations: 23.92 kB / 1.019 GB, free: 0.832 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.6885, allocations: 27.91 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.25e-05/0.6886, allocations: 4 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.6887, allocations: 19.98 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 7.356e-05/0.6888, allocations: 11.94 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.931e-05/0.6889, allocations: 31.86 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002385/0.6891, allocations: 51.8 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 1.528e-05/0.6892, allocations: 4 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.567e-06/0.6892, allocations: 0 / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.633e-05/0.6892, allocations: 0 / 1.019 GB, free: 0.6836 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.00103/0.6902, allocations: 377.2 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 6.455e-05/0.6903, allocations: 11.97 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.964e-05/0.6904, allocations: 8.844 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.6908, allocations: 196.1 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.6908, allocations: 384 / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.6909, allocations: 4.375 kB / 1.019 GB, free: 12 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005739/0.6915, allocations: 86.28 kB / 1.019 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.6915, allocations: 4.125 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.6915, allocations: 3.938 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.6915, allocations: 0 / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005944/0.6922, allocations: 91.84 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/0.6933, allocations: 316.7 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003875/0.6937, allocations: 70.56 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.694, allocations: 40.92 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.844e-05/0.6941, allocations: 7.984 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/0.6941, allocations: 30.56 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.6941, allocations: 0 / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0009687/0.6951, allocations: 137.5 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/0.6952, allocations: 51.41 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.6954, allocations: 117.8 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.842e-05/0.6955, allocations: 25.7 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.6956, allocations: 96.12 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.534e-05/0.6956, allocations: 23.59 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.653e-05/0.6957, allocations: 13.72 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002139/0.6959, allocations: 322.8 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.6962, allocations: 31.97 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.6965, allocations: 36.14 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004801/0.697, allocations: 80.8 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.697, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000647/0.6976, allocations: 105.6 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.6977, allocations: 8 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.6977, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.6977, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.698, allocations: 19.92 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.698, allocations: 4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.6982, allocations: 11.98 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.6982, allocations: 0 / 1.021 GB, free: 14.17 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.0001738/0.6984, allocations: 121.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.6985, allocations: 11.91 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006525/0.6991, allocations: 105.5 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.6992, allocations: 3.984 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.6992, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.6992, allocations: 4 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003557/0.6996, allocations: 177.6 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.6996, allocations: 0 / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.6998, allocations: 15.98 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.6998, allocations: 7.938 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.6998, allocations: 4 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.6998, allocations: 3.938 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.6999, allocations: 0 / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006681/0.7005, allocations: 203.3 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.79e-05/0.7006, allocations: 81.11 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.791e-05/0.7007, allocations: 4 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.7009, allocations: 7.984 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.701, allocations: 7.984 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.701, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001017/0.7011, allocations: 95.64 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of sort global known variables: time 4.71e-07/0.7011, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004305/0.7016, allocations: 20 kB / 1.022 GB, free: 13.21 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.0002397/0.7018, allocations: 107.7 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006166/0.7024, allocations: 79.84 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7025, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002848/0.7028, allocations: 39.97 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.7033, allocations: 11.98 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005704/0.7039, allocations: 157.5 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004757/0.7044, allocations: 0.6924 MB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.476e-05/0.7045, allocations: 7.984 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.536e-05/0.7045, allocations: 11.44 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of SimCode: time 6.12e-07/0.7046, allocations: 3.938 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of Templates: time 0.005206/0.7098, allocations: 0.6592 MB / 1.024 GB, free: 11.39 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=400 -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