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.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.001713/0.001713, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.001959/0.001959, allocations: 190.4 kB / 22.11 MB, free: 5.152 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.42/1.42, allocations: 225.6 MB / 250.8 MB, free: 13.06 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.15/3.15, allocations: 495.8 MB / 0.783 GB, free: 33.62 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-maint.12.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=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 0.003311/0.003311, allocations: 71.42 kB / 1.137 GB, free: 33.77 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3696, allocations: 173.6 MB / 1.307 GB, free: 1.828 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002742/0.3724, allocations: 1.564 MB / 1.308 GB, free: 260 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0003358/0.3727, allocations: 107.7 kB / 1.308 GB, free: 152 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.88e-05/0.3728, allocations: 3.938 kB / 1.308 GB, free: 148 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.3729, allocations: 11.94 kB / 1.308 GB, free: 136 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 2.314e-05/0.3729, allocations: 3.938 kB / 1.308 GB, free: 132 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.3731, allocations: 35.88 kB / 1.308 GB, free: 96 kB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 0.000102/0.3732, allocations: 51.91 kB / 1.308 GB, free: 44 kB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.3733, allocations: 23.86 kB / 1.308 GB, free: 20 kB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 7.066e-05/0.3734, allocations: 23.97 kB / 1.309 GB, free: 15.99 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 6.652e-05/0.3735, allocations: 27.86 kB / 1.309 GB, free: 15.97 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.3735, allocations: 4 kB / 1.309 GB, free: 15.96 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.025e-05/0.3736, allocations: 15.98 kB / 1.309 GB, free: 15.95 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 4.216e-05/0.3736, allocations: 15.92 kB / 1.309 GB, free: 15.93 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 4.423e-05/0.3737, allocations: 27.86 kB / 1.309 GB, free: 15.91 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.000139/0.3738, allocations: 63.73 kB / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3738, allocations: 0 / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.603e-06/0.3738, allocations: 0 / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 4.98e-06/0.3738, allocations: 4 kB / 1.309 GB, free: 15.84 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.0005621/0.3744, allocations: 306 kB / 1.309 GB, free: 15.51 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3744, allocations: 12.03 kB / 1.309 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.3744, allocations: 8.891 kB / 1.309 GB, free: 15.49 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.3746, allocations: 126.4 kB / 1.309 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.3746, allocations: 4.312 kB / 1.309 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.3746, allocations: 8.312 kB / 1.309 GB, free: 15.33 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.375, allocations: 90.19 kB / 1.309 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.375, allocations: 192 / 1.309 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.375, allocations: 7.938 kB / 1.309 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.375, allocations: 0 / 1.309 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.3753, allocations: 75.92 kB / 1.309 GB, free: 15.15 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005554/0.3759, allocations: 299.8 kB / 1.31 GB, free: 14.82 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002317/0.3761, allocations: 54.53 kB / 1.31 GB, free: 14.75 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.3763, allocations: 52.92 kB / 1.31 GB, free: 14.7 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 3.377e-05/0.3763, allocations: 4 kB / 1.31 GB, free: 14.7 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.3763, allocations: 38.56 kB / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3763, allocations: 0 / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0005947/0.3769, allocations: 133.6 kB / 1.31 GB, free: 14.51 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.377, allocations: 51.41 kB / 1.31 GB, free: 14.45 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.3771, allocations: 121.8 kB / 1.31 GB, free: 14.32 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.3771, allocations: 25.7 kB / 1.31 GB, free: 14.29 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 5.913e-05/0.3772, allocations: 92.08 kB / 1.31 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.3772, allocations: 11.89 kB / 1.31 GB, free: 14.18 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.904e-05/0.3772, allocations: 17.72 kB / 1.31 GB, free: 14.16 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001495/0.3774, allocations: 318.8 kB / 1.31 GB, free: 13.84 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.3775, allocations: 43.91 kB / 1.31 GB, free: 13.8 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.3777, allocations: 35.89 kB / 1.311 GB, free: 13.76 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003173/0.378, allocations: 72.78 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.378, allocations: 4 kB / 1.311 GB, free: 13.68 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003736/0.3784, allocations: 105.6 kB / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.3784, allocations: 4 kB / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3784, allocations: 0 / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.3784, allocations: 0 / 1.311 GB, free: 13.57 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.3786, allocations: 15.98 kB / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.3786, allocations: 0 / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.743e-05/0.3786, allocations: 19.98 kB / 1.311 GB, free: 13.54 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.3787, allocations: 7.922 kB / 1.311 GB, free: 13.53 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 9.355e-05/0.3788, allocations: 121.7 kB / 1.311 GB, free: 13.4 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.798e-05/0.3788, allocations: 3.953 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004166/0.3792, allocations: 121.6 kB / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3792, allocations: 0 / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3792, allocations: 3.938 kB / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3792, allocations: 0 / 1.311 GB, free: 13.26 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001922/0.3794, allocations: 152.7 kB / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3794, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.3795, allocations: 15.98 kB / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3795, allocations: 0 / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.3795, allocations: 0 / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3795, allocations: 0 / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3795, allocations: 3.938 kB / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004277/0.3799, allocations: 207.4 kB / 1.311 GB, free: 12.83 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 9.958e-06/0.38, allocations: 4.422 kB / 1.311 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.38, allocations: 0 / 1.311 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.3801, allocations: 15.98 kB / 1.311 GB, free: 12.81 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.3801, allocations: 7.984 kB / 1.311 GB, free: 12.8 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.747e-06/0.3801, allocations: 4 kB / 1.311 GB, free: 12.8 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.614e-05/0.3802, allocations: 91.27 kB / 1.311 GB, free: 12.71 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.3802, allocations: 0 / 1.311 GB, free: 12.71 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.000235/0.3804, allocations: 12 kB / 1.311 GB, free: 12.7 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.0001366/0.3806, allocations: 107.9 kB / 1.312 GB, free: 12.58 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003871/0.381, allocations: 87.84 kB / 1.312 GB, free: 12.5 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.381, allocations: 0 / 1.312 GB, free: 12.5 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.3811, allocations: 35.97 kB / 1.312 GB, free: 12.46 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.3814, allocations: 15.56 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003753/0.3818, allocations: 165.1 kB / 1.312 GB, free: 12.26 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.3821, allocations: 0.6885 MB / 1.313 GB, free: 11.55 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 4.279e-05/0.3822, allocations: 11.98 kB / 1.313 GB, free: 11.54 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.834e-05/0.3822, allocations: 7.438 kB / 1.313 GB, free: 11.53 MB / 1.014 GB
Notification: Performance of SimCode: time 3.91e-07/0.3822, allocations: 0 / 1.313 GB, free: 11.53 MB / 1.014 GB
Notification: Performance of Templates: time 0.003437/0.3856, allocations: 0.7914 MB / 1.313 GB, free: 10.74 MB / 1.014 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.817085152491927]