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.001845/0.001845, allocations: 100.3 kB / 19.74 MB, free: 2.059 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.002226/0.002226, allocations: 216 kB / 23.04 MB, free: 4.848 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.431/1.431, allocations: 230.6 MB / 256.8 MB, free: 7.734 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.169/3.169, allocations: 0.49 GB / 0.7959 GB, free: 35.4 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.002044/0.002044, allocations: 66.47 kB / 1.155 GB, free: 25.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3252, allocations: 176.1 MB / 1.327 GB, free: 0.9219 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002809/0.328, allocations: 1.556 MB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0003425/0.3284, allocations: 115.6 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.587e-05/0.3284, allocations: 0 / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.3285, allocations: 11.86 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 2.225e-05/0.3286, allocations: 3.938 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00023/0.3288, allocations: 35.97 kB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.3289, allocations: 59.77 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.329, allocations: 15.98 kB / 1.329 GB, free: 15.12 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.653e-05/0.3291, allocations: 27.91 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.345e-05/0.3291, allocations: 23.92 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.66e-05/0.3291, allocations: 4 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 5.993e-05/0.3292, allocations: 11.98 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.203e-05/0.3293, allocations: 19.92 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.02e-05/0.3293, allocations: 15.88 kB / 1.329 GB, free: 15.02 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.3294, allocations: 67.72 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3294, allocations: 4 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3294, allocations: 3.938 kB / 1.329 GB, free: 14.95 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.3295, allocations: 0 / 1.329 GB, free: 14.95 MB / 1.029 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.0005357/0.33, allocations: 302.1 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.33, allocations: 12.03 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.535e-05/0.3301, allocations: 8.891 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.3302, allocations: 122.4 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.3302, allocations: 8.312 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.3302, allocations: 8.375 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.3305, allocations: 94.14 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3305, allocations: 192 / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.3305, allocations: 7.938 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3305, allocations: 0 / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003101/0.3309, allocations: 79.91 kB / 1.33 GB, free: 14.25 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004944/0.3314, allocations: 268.3 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002059/0.3316, allocations: 58.53 kB / 1.33 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.3318, allocations: 36.92 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.3318, allocations: 0 / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.3318, allocations: 34.56 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3318, allocations: 4 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005505/0.3324, allocations: 145.5 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/0.3324, allocations: 55.34 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.954e-05/0.3325, allocations: 113.8 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.3325, allocations: 29.7 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.407e-05/0.3326, allocations: 92.08 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.3326, allocations: 15.89 kB / 1.33 GB, free: 13.33 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.3327, allocations: 17.72 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.3328, allocations: 314.8 kB / 1.331 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.333, allocations: 35.95 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.3331, allocations: 36.14 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.3334, allocations: 80.86 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3334, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003351/0.3337, allocations: 105.5 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.3337, allocations: 4 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3338, allocations: 0 / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.3338, allocations: 3.984 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.3339, allocations: 19.98 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.3339, allocations: 0 / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.45e-05/0.334, allocations: 11.98 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.334, allocations: 3.938 kB / 1.331 GB, free: 12.68 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 9.109e-05/0.3341, allocations: 122.3 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.707e-05/0.3341, allocations: 4 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.3345, allocations: 113.5 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3345, allocations: 4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3345, allocations: 0 / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3345, allocations: 0 / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001598/0.3347, allocations: 133.2 kB / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3347, allocations: 0 / 1.331 GB, free: 12.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.283e-05/0.3348, allocations: 11.98 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3348, allocations: 0 / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.3348, allocations: 4 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3348, allocations: 4 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3348, allocations: 0 / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.3352, allocations: 203.4 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.136e-05/0.3352, allocations: 7.953 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.3352, allocations: 7.984 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.3353, allocations: 7.984 kB / 1.332 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.3353, allocations: 7.938 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.515e-06/0.3354, allocations: 4 kB / 1.332 GB, free: 11.99 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.003e-05/0.3354, allocations: 91.27 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3354, allocations: 4 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000243/0.3357, allocations: 8 kB / 1.332 GB, free: 11.89 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.0001397/0.3358, allocations: 99.23 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003644/0.3362, allocations: 75.86 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3362, allocations: 4 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.3363, allocations: 39.95 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.3366, allocations: 17.91 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000374/0.337, allocations: 179.1 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.584e-05/0.3371, allocations: 71.33 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.336e-05/0.3371, allocations: 11.44 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of SimCode: time 4.3e-07/0.3371, allocations: 7.938 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of Templates: time 0.002685/0.3398, allocations: 0.9488 MB / 1.333 GB, free: 10.38 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/jenkins1/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: 11.185384179931134]