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.001433/0.001433, allocations: 104 kB / 16.45 MB, free: 6.449 MB / 14.72 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.001531/0.001531, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 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.47/1.47, allocations: 230.6 MB / 252.8 MB, free: 9.137 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.185/3.185, allocations: 0.49 GB / 0.7915 GB, free: 33.24 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 69.5 kB / 1.149 GB, free: 26.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3638, allocations: 176.1 MB / 1.321 GB, free: 2.75 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002872/0.3667, allocations: 1.56 MB / 1.323 GB, free: 1.18 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003277/0.367, allocations: 115.7 kB / 1.323 GB, free: 1.066 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.788e-05/0.367, allocations: 0 / 1.323 GB, free: 1.066 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.3671, allocations: 3.938 kB / 1.323 GB, free: 1.062 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.398e-05/0.3672, allocations: 19.84 kB / 1.323 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.3674, allocations: 23.97 kB / 1.323 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.3675, allocations: 59.78 kB / 1.323 GB, free: 0.9609 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.3677, allocations: 23.98 kB / 1.323 GB, free: 0.9375 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.461e-05/0.3677, allocations: 23.92 kB / 1.323 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.897e-05/0.3678, allocations: 31.83 kB / 1.323 GB, free: 0.8828 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.3678, allocations: 8 kB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.47e-05/0.3679, allocations: 12 kB / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.404e-05/0.3679, allocations: 15.92 kB / 1.323 GB, free: 0.8477 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.169e-05/0.368, allocations: 31.8 kB / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.3681, allocations: 59.73 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3681, allocations: 0 / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3681, allocations: 0 / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.3681, allocations: 0 / 1.323 GB, free: 0.7578 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.0006043/0.3687, allocations: 391.1 kB / 1.324 GB, free: 332 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3688, allocations: 11.98 kB / 1.324 GB, free: 320 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.358e-05/0.3688, allocations: 4.938 kB / 1.324 GB, free: 316 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.369, allocations: 188.3 kB / 1.324 GB, free: 88 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-06/0.369, allocations: 384 / 1.324 GB, free: 88 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.369, allocations: 8.375 kB / 1.324 GB, free: 80 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.3693, allocations: 78.2 kB / 1.324 GB, free: 16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.3693, allocations: 4.125 kB / 1.324 GB, free: 15.99 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.3693, allocations: 11.94 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3694, allocations: 0 / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.3697, allocations: 79.91 kB / 1.324 GB, free: 15.9 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.3703, allocations: 332.6 kB / 1.324 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.3705, allocations: 62.47 kB / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.3706, allocations: 40.92 kB / 1.324 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.654e-05/0.3707, allocations: 3.984 kB / 1.324 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.3707, allocations: 30.56 kB / 1.324 GB, free: 15.37 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3707, allocations: 0 / 1.324 GB, free: 15.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005944/0.3713, allocations: 145.6 kB / 1.324 GB, free: 15.22 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.3714, allocations: 51.41 kB / 1.325 GB, free: 15.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.3715, allocations: 114.2 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3715, allocations: 25.7 kB / 1.325 GB, free: 15.01 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.702e-05/0.3716, allocations: 96.08 kB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/0.3716, allocations: 11.89 kB / 1.325 GB, free: 14.9 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.3716, allocations: 17.72 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3718, allocations: 322.8 kB / 1.325 GB, free: 14.55 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.372, allocations: 31.97 kB / 1.325 GB, free: 14.52 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.3721, allocations: 36.14 kB / 1.325 GB, free: 14.48 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003081/0.3724, allocations: 76.86 kB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3724, allocations: 0 / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003564/0.3728, allocations: 113.5 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.3728, allocations: 7.938 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.3728, allocations: 0 / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.3728, allocations: 4 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.3729, allocations: 15.98 kB / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.3729, allocations: 0 / 1.325 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.434e-05/0.373, allocations: 15.98 kB / 1.325 GB, free: 14.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.373, allocations: 0 / 1.325 GB, free: 14.25 MB / 1.029 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.0001009/0.3731, allocations: 121.8 kB / 1.326 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.809e-05/0.3732, allocations: 4 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004104/0.3736, allocations: 117.5 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3736, allocations: 0 / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.3736, allocations: 0 / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.3736, allocations: 3.984 kB / 1.326 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.3738, allocations: 177.5 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3738, allocations: 7.922 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.3739, allocations: 19.98 kB / 1.326 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3739, allocations: 4 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.3739, allocations: 0 / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3739, allocations: 0 / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3739, allocations: 0 / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004039/0.3743, allocations: 199.4 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.042e-05/0.3744, allocations: 89.06 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.3744, allocations: 0 / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3745, allocations: 11.98 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.428e-05/0.3745, allocations: 7.922 kB / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.3745, allocations: 0 / 1.326 GB, free: 13.39 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.105e-05/0.3746, allocations: 99.31 kB / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3746, allocations: 0 / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002254/0.3748, allocations: 12 kB / 1.326 GB, free: 13.28 MB / 1.029 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.0001521/0.375, allocations: 107.2 kB / 1.326 GB, free: 13.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003835/0.3754, allocations: 75.91 kB / 1.326 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.3754, allocations: 0 / 1.326 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.3755, allocations: 35.97 kB / 1.326 GB, free: 13.05 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.3758, allocations: 12 kB / 1.326 GB, free: 13.04 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003436/0.3761, allocations: 165.1 kB / 1.327 GB, free: 12.86 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.3765, allocations: 0.6885 MB / 1.327 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.69e-05/0.3765, allocations: 4 kB / 1.327 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.818e-05/0.3765, allocations: 11.44 kB / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of SimCode: time 2.6e-07/0.3765, allocations: 0 / 1.327 GB, free: 12.12 MB / 1.029 GB Notification: Performance of Templates: time 0.003301/0.3798, allocations: 0.7731 MB / 1.328 GB, free: 11.36 MB / 1.029 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: 8.788777502253652]