Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002037/0.002037, allocations: 192.5 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.053/3.053, allocations: 495.7 MB / 0.7831 GB, free: 33.53 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 69.33 kB / 1.137 GB, free: 33.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3767, allocations: 173.6 MB / 1.307 GB, free: 1.922 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003719/0.3805, allocations: 1.568 MB / 1.308 GB, free: 352 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0004522/0.3809, allocations: 111.7 kB / 1.309 GB, free: 240 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.381, allocations: 0 / 1.309 GB, free: 240 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.3812, allocations: 11.88 kB / 1.309 GB, free: 228 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.697e-05/0.3812, allocations: 3.938 kB / 1.309 GB, free: 224 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.3815, allocations: 23.97 kB / 1.309 GB, free: 200 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000142/0.3816, allocations: 63.81 kB / 1.309 GB, free: 136 kB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.3818, allocations: 19.92 kB / 1.309 GB, free: 116 kB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.516e-05/0.3819, allocations: 23.92 kB / 1.309 GB, free: 92 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.738e-05/0.3819, allocations: 31.91 kB / 1.309 GB, free: 60 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.3819, allocations: 4 kB / 1.309 GB, free: 56 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.705e-05/0.382, allocations: 12 kB / 1.309 GB, free: 44 kB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.476e-05/0.3821, allocations: 19.92 kB / 1.309 GB, free: 24 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.825e-05/0.3822, allocations: 27.89 kB / 1.309 GB, free: 15.99 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002/0.3824, allocations: 59.64 kB / 1.309 GB, free: 15.94 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3824, allocations: 0 / 1.309 GB, free: 15.94 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3824, allocations: 0 / 1.309 GB, free: 15.94 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.3824, allocations: 0 / 1.309 GB, free: 15.94 MB / 1.014 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.0006159/0.383, allocations: 316.4 kB / 1.309 GB, free: 15.6 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.383, allocations: 8.031 kB / 1.309 GB, free: 15.59 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.375e-05/0.3831, allocations: 8.891 kB / 1.309 GB, free: 15.58 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.3833, allocations: 126.4 kB / 1.309 GB, free: 15.43 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.3833, allocations: 4.375 kB / 1.309 GB, free: 15.43 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.3833, allocations: 4.375 kB / 1.309 GB, free: 15.43 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003194/0.3836, allocations: 90.08 kB / 1.309 GB, free: 15.33 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3836, allocations: 8.188 kB / 1.309 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.3837, allocations: 3.938 kB / 1.309 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3837, allocations: 0 / 1.309 GB, free: 15.32 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003403/0.384, allocations: 83.89 kB / 1.31 GB, free: 15.24 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000615/0.3846, allocations: 303.7 kB / 1.31 GB, free: 14.9 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.3848, allocations: 58.53 kB / 1.31 GB, free: 14.83 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.385, allocations: 32.92 kB / 1.31 GB, free: 14.8 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 4.192e-05/0.385, allocations: 4 kB / 1.31 GB, free: 14.79 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.3851, allocations: 38.55 kB / 1.31 GB, free: 14.75 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.3851, allocations: 0 / 1.31 GB, free: 14.75 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0006163/0.3857, allocations: 137.6 kB / 1.31 GB, free: 14.61 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.704e-05/0.3858, allocations: 55.41 kB / 1.31 GB, free: 14.54 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.3859, allocations: 109.8 kB / 1.31 GB, free: 14.42 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3859, allocations: 29.7 kB / 1.31 GB, free: 14.39 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.279e-05/0.386, allocations: 100.1 kB / 1.31 GB, free: 14.29 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.386, allocations: 11.84 kB / 1.31 GB, free: 14.27 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.194e-05/0.3861, allocations: 17.72 kB / 1.31 GB, free: 14.25 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.3862, allocations: 322.7 kB / 1.311 GB, free: 13.93 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.3864, allocations: 31.97 kB / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.3865, allocations: 39.95 kB / 1.311 GB, free: 13.86 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.3869, allocations: 72.78 kB / 1.311 GB, free: 13.78 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.3869, allocations: 0 / 1.311 GB, free: 13.78 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003617/0.3872, allocations: 109.5 kB / 1.311 GB, free: 13.67 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.3872, allocations: 4 kB / 1.311 GB, free: 13.66 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3872, allocations: 0 / 1.311 GB, free: 13.66 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.3873, allocations: 0 / 1.311 GB, free: 13.66 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.3874, allocations: 15.98 kB / 1.311 GB, free: 13.65 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.3874, allocations: 3.984 kB / 1.311 GB, free: 13.64 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.834e-05/0.3875, allocations: 11.98 kB / 1.311 GB, free: 13.63 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.3875, allocations: 0 / 1.311 GB, free: 13.63 MB / 1.014 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.0001237/0.3876, allocations: 133.7 kB / 1.311 GB, free: 13.49 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.3877, allocations: 7.953 kB / 1.311 GB, free: 13.48 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004228/0.3881, allocations: 109.5 kB / 1.311 GB, free: 13.36 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3881, allocations: 4 kB / 1.311 GB, free: 13.36 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/0.3881, allocations: 4 kB / 1.311 GB, free: 13.36 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3881, allocations: 3.984 kB / 1.311 GB, free: 13.35 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/0.3883, allocations: 152.7 kB / 1.311 GB, free: 13.16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3883, allocations: 0 / 1.311 GB, free: 13.16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.973e-05/0.3884, allocations: 23.91 kB / 1.311 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.3884, allocations: 0 / 1.311 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.3884, allocations: 0 / 1.311 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3884, allocations: 0 / 1.311 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3884, allocations: 0 / 1.311 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004244/0.3889, allocations: 211.7 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.625e-05/0.3889, allocations: 8.031 kB / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.3889, allocations: 0 / 1.312 GB, free: 12.91 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.389, allocations: 11.98 kB / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.3891, allocations: 7.984 kB / 1.312 GB, free: 12.89 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.3891, allocations: 4 kB / 1.312 GB, free: 12.88 MB / 1.014 GB Notification: Performance of sorting global known variables: time 6.941e-05/0.3891, allocations: 99.64 kB / 1.312 GB, free: 12.79 MB / 1.014 GB Notification: Performance of sort global known variables: time 8e-08/0.3891, allocations: 3.938 kB / 1.312 GB, free: 12.78 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002375/0.3894, allocations: 11.95 kB / 1.312 GB, free: 12.77 MB / 1.014 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.0001941/0.3896, allocations: 99.98 kB / 1.312 GB, free: 12.66 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000383/0.39, allocations: 71.91 kB / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.39, allocations: 8 kB / 1.312 GB, free: 12.59 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.3901, allocations: 39.91 kB / 1.312 GB, free: 12.55 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.3905, allocations: 4 kB / 1.312 GB, free: 12.54 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004752/0.3909, allocations: 161.1 kB / 1.312 GB, free: 12.36 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.3913, allocations: 0.6924 MB / 1.313 GB, free: 11.64 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 4.706e-05/0.3914, allocations: 8.25 kB / 1.313 GB, free: 11.63 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.187e-05/0.3914, allocations: 7.438 kB / 1.313 GB, free: 11.62 MB / 1.014 GB Notification: Performance of SimCode: time 7.91e-07/0.3914, allocations: 0 / 1.313 GB, free: 11.62 MB / 1.014 GB Notification: Performance of Templates: time 0.003734/0.3952, allocations: 0.784 MB / 1.314 GB, free: 10.84 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.654099928215146]