Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.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.001674/0.001674, allocations: 114.2 kB / 18.94 MB, free: 2.953 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.00215/0.00215, allocations: 190.6 kB / 22.23 MB, free: 5.137 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.493/1.493, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.774/2.774, allocations: 476.7 MB / 0.7646 GB, free: 9.887 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial")
translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002151/0.002151, allocations: 76.66 kB / 1.11 GB, free: 11.86 MB / 0.8419 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3474, allocations: 168.8 MB / 1.274 GB, free: 10.94 MB / 0.9825 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001731/0.3491, allocations: 0.5797 MB / 1.275 GB, free: 10.36 MB / 0.9825 GB
Notification: Performance of NFInst.instExpressions: time 0.0002833/0.3494, allocations: 48.25 kB / 1.275 GB, free: 10.31 MB / 0.9825 GB
Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.3494, allocations: 0 / 1.275 GB, free: 10.31 MB / 0.9825 GB
Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.3494, allocations: 0 / 1.275 GB, free: 10.31 MB / 0.9825 GB
Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.3494, allocations: 0 / 1.275 GB, free: 10.31 MB / 0.9825 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.3497, allocations: 15.92 kB / 1.275 GB, free: 10.3 MB / 0.9825 GB
Notification: Performance of NFFlatten.flatten: time 4.499e-05/0.3497, allocations: 4 kB / 1.275 GB, free: 10.29 MB / 0.9825 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.734e-05/0.3497, allocations: 4 kB / 1.275 GB, free: 10.29 MB / 0.9825 GB
Notification: Performance of NFEvalConstants.evaluate: time 2.644e-05/0.3498, allocations: 11.94 kB / 1.275 GB, free: 10.28 MB / 0.9825 GB
Notification: Performance of NFSimplifyModel.simplify: time 1.84e-05/0.3498, allocations: 0 / 1.275 GB, free: 10.28 MB / 0.9825 GB
Notification: Performance of NFPackage.collectConstants: time 8.616e-06/0.3498, allocations: 0 / 1.275 GB, free: 10.28 MB / 0.9825 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.358e-05/0.3499, allocations: 15.98 kB / 1.275 GB, free: 10.26 MB / 0.9825 GB
Notification: Performance of NFScalarize.scalarize: time 1.071e-05/0.3499, allocations: 3.984 kB / 1.275 GB, free: 10.26 MB / 0.9825 GB
Notification: Performance of NFVerifyModel.verify: time 1.688e-05/0.3499, allocations: 0 / 1.275 GB, free: 10.26 MB / 0.9825 GB
Notification: Performance of NFConvertDAE.convert: time 8.199e-05/0.35, allocations: 7.984 kB / 1.275 GB, free: 10.25 MB / 0.9825 GB
Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.35, allocations: 8 kB / 1.275 GB, free: 10.24 MB / 0.9825 GB
Notification: Performance of FrontEnd: time 1.202e-06/0.35, allocations: 0 / 1.275 GB, free: 10.24 MB / 0.9825 GB
Notification: Performance of Transformations before backend: time 4.418e-06/0.35, allocations: 0 / 1.275 GB, free: 10.24 MB / 0.9825 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 2
 * Number of variables: 2
Notification: Performance of Generate backend data structure: time 0.0003535/0.3503, allocations: 253.1 kB / 1.275 GB, free: 9.965 MB / 0.9825 GB
Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3504, allocations: 8.031 kB / 1.275 GB, free: 9.957 MB / 0.9825 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.3504, allocations: 0.9375 kB / 1.275 GB, free: 9.957 MB / 0.9825 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 9.399e-05/0.3505, allocations: 110.5 kB / 1.275 GB, free: 9.824 MB / 0.9825 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.3505, allocations: 4.312 kB / 1.275 GB, free: 9.82 MB / 0.9825 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.133e-06/0.3505, allocations: 384 / 1.275 GB, free: 9.82 MB / 0.9825 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.3506, allocations: 34.27 kB / 1.275 GB, free: 9.781 MB / 0.9825 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3506, allocations: 4.125 kB / 1.275 GB, free: 9.777 MB / 0.9825 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.3507, allocations: 11.92 kB / 1.275 GB, free: 9.766 MB / 0.9825 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3507, allocations: 0 / 1.275 GB, free: 9.766 MB / 0.9825 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 3.111e-05/0.3507, allocations: 4 kB / 1.275 GB, free: 9.762 MB / 0.9825 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001553/0.3508, allocations: 124.8 kB / 1.276 GB, free: 9.598 MB / 0.9825 GB
Notification: Performance of preOpt comSubExp (simulation): time 5.482e-05/0.3509, allocations: 22.55 kB / 1.276 GB, free: 9.566 MB / 0.9825 GB
Notification: Performance of preOpt resolveLoops (simulation): time 1.895e-05/0.3509, allocations: 4.859 kB / 1.276 GB, free: 9.559 MB / 0.9825 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.351, allocations: 12.05 kB / 1.276 GB, free: 9.547 MB / 0.9825 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.3511, allocations: 34.56 kB / 1.276 GB, free: 9.504 MB / 0.9825 GB
Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3511, allocations: 0 / 1.276 GB, free: 9.504 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=2): time 0.0001586/0.3512, allocations: 41.64 kB / 1.276 GB, free: 9.457 MB / 0.9825 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.3513, allocations: 55.39 kB / 1.276 GB, free: 9.391 MB / 0.9825 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.097e-05/0.3513, allocations: 93.86 kB / 1.276 GB, free: 9.289 MB / 0.9825 GB
Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.3514, allocations: 25.7 kB / 1.276 GB, free: 9.258 MB / 0.9825 GB
Notification: Performance of collectInitialEqns (initialization): time 3.443e-05/0.3514, allocations: 80.14 kB / 1.276 GB, free: 9.176 MB / 0.9825 GB
Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.3514, allocations: 0 / 1.276 GB, free: 9.176 MB / 0.9825 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.185e-05/0.3514, allocations: 17.84 kB / 1.276 GB, free: 9.152 MB / 0.9825 GB
Notification: Performance of setup shared object (initialization): time 0.0001534/0.3516, allocations: 318.8 kB / 1.276 GB, free: 8.832 MB / 0.9825 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.786e-05/0.3516, allocations: 4 kB / 1.276 GB, free: 8.828 MB / 0.9825 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 1.491e-05/0.3516, allocations: 4 kB / 1.276 GB, free: 8.824 MB / 0.9825 GB
Notification: Performance of analyzeInitialSystem (initialization): time 5.028e-05/0.3517, allocations: 12.84 kB / 1.276 GB, free: 8.809 MB / 0.9825 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3517, allocations: 4 kB / 1.276 GB, free: 8.805 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=2) (initialization): time 6.765e-05/0.3517, allocations: 41.66 kB / 1.276 GB, free: 8.758 MB / 0.9825 GB
Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.3518, allocations: 8.094 kB / 1.276 GB, free: 8.75 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.3518, allocations: 0 / 1.276 GB, free: 8.75 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3518, allocations: 3.938 kB / 1.276 GB, free: 8.746 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.494e-05/0.3518, allocations: 7.984 kB / 1.276 GB, free: 8.738 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.3518, allocations: 7.875 kB / 1.276 GB, free: 8.73 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.287e-05/0.3518, allocations: 0 / 1.276 GB, free: 8.73 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-06/0.3519, allocations: 0 / 1.276 GB, free: 8.73 MB / 0.9825 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 2 (n,fac)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (2):
 * Single equations (assignments): 2
 * 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 8.147e-05/0.3519, allocations: 109.8 kB / 1.276 GB, free: 8.613 MB / 0.9825 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-06/0.3519, allocations: 0 / 1.276 GB, free: 8.613 MB / 0.9825 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.139e-05/0.352, allocations: 52.78 kB / 1.277 GB, free: 8.555 MB / 0.9825 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.352, allocations: 0 / 1.277 GB, free: 8.555 MB / 0.9825 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.352, allocations: 0 / 1.277 GB, free: 8.555 MB / 0.9825 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.352, allocations: 0 / 1.277 GB, free: 8.555 MB / 0.9825 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.3521, allocations: 120.8 kB / 1.277 GB, free: 8.395 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3521, allocations: 0 / 1.277 GB, free: 8.395 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.531e-05/0.3522, allocations: 7.984 kB / 1.277 GB, free: 8.387 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.3522, allocations: 0 / 1.277 GB, free: 8.387 MB / 0.9825 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.565e-06/0.3522, allocations: 3.938 kB / 1.277 GB, free: 8.383 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3522, allocations: 0 / 1.277 GB, free: 8.383 MB / 0.9825 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.3522, allocations: 7.875 kB / 1.277 GB, free: 8.375 MB / 0.9825 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 8.316e-05/0.3523, allocations: 65.16 kB / 1.277 GB, free: 8.293 MB / 0.9825 GB
Notification: Performance of postOpt removeConstants (simulation): time 6.462e-06/0.3523, allocations: 4 kB / 1.277 GB, free: 8.289 MB / 0.9825 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.3523, allocations: 3.938 kB / 1.277 GB, free: 8.285 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.091e-05/0.3523, allocations: 0 / 1.277 GB, free: 8.285 MB / 0.9825 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.3523, allocations: 0 / 1.277 GB, free: 8.285 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.3523, allocations: 0 / 1.277 GB, free: 8.285 MB / 0.9825 GB
Notification: Performance of sorting global known variables: time 9.041e-05/0.3524, allocations: 83.31 kB / 1.277 GB, free: 8.203 MB / 0.9825 GB
Notification: Performance of sort global known variables: time 9e-08/0.3524, allocations: 0 / 1.277 GB, free: 8.203 MB / 0.9825 GB
Notification: Performance of remove unused functions: time 0.0001914/0.3526, allocations: 11.94 kB / 1.277 GB, free: 8.191 MB / 0.9825 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 2 (fac,n)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (2):
 * Single equations (assignments): 2
 * 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.0001495/0.3527, allocations: 103.2 kB / 1.277 GB, free: 8.078 MB / 0.9825 GB
Notification: Performance of simCode: created initialization part: time 7.538e-05/0.3528, allocations: 11.94 kB / 1.277 GB, free: 8.066 MB / 0.9825 GB
Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.3528, allocations: 0 / 1.277 GB, free: 8.066 MB / 0.9825 GB
Notification: Performance of simCode: created simulation system equations: time 1.58e-05/0.3528, allocations: 4 kB / 1.277 GB, free: 8.062 MB / 0.9825 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.353, allocations: 1.719 kB / 1.277 GB, free: 8.062 MB / 0.9825 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002045/0.3532, allocations: 92.97 kB / 1.277 GB, free: 7.945 MB / 0.9825 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.3535, allocations: 0.6729 MB / 1.278 GB, free: 7.246 MB / 0.9825 GB
Notification: Performance of simCode: alias equations: time 1.433e-05/0.3535, allocations: 4 kB / 1.278 GB, free: 7.242 MB / 0.9825 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.51e-05/0.3536, allocations: 15.36 kB / 1.278 GB, free: 7.227 MB / 0.9825 GB
Notification: Performance of SimCode: time 3.61e-07/0.3536, allocations: 0 / 1.278 GB, free: 7.227 MB / 0.9825 GB
Notification: Performance of Templates: time 0.002675/0.3562, allocations: 341.6 kB / 1.278 GB, free: 6.895 MB / 0.9825 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300]
(rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.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.651374739594758]