Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001827/0.001827, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.002314/0.002314, allocations: 191.7 kB / 22.23 MB, free: 5.105 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.552/1.552, allocations: 225.6 MB / 251 MB, free: 13.02 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.232/3.232, allocations: 496 MB / 0.7835 GB, free: 33.39 MB / 0.6231 GB
"
[Timeout remaining time 176]
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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 67.27 kB / 1.138 GB, free: 33.7 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3008, allocations: 173.6 MB / 1.307 GB, free: 1.801 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001617/0.3024, allocations: 0.6062 MB / 1.308 GB, free: 1.195 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0002494/0.3027, allocations: 48.25 kB / 1.308 GB, free: 1.148 MB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 1.489e-05/0.3027, allocations: 0 / 1.308 GB, free: 1.148 MB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 1.759e-05/0.3027, allocations: 3.938 kB / 1.308 GB, free: 1.145 MB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 5.06e-06/0.3027, allocations: 0 / 1.308 GB, free: 1.145 MB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0001933/0.3029, allocations: 8 kB / 1.308 GB, free: 1.137 MB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 4.303e-05/0.3029, allocations: 11.92 kB / 1.308 GB, free: 1.125 MB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.145e-05/0.303, allocations: 3.984 kB / 1.308 GB, free: 1.121 MB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 1.076e-05/0.303, allocations: 0 / 1.308 GB, free: 1.121 MB / 0.9981 GB
Notification: Performance of NFSimplifyModel.simplify: time 2.044e-05/0.303, allocations: 4 kB / 1.308 GB, free: 1.117 MB / 0.9981 GB
Notification: Performance of NFPackage.collectConstants: time 8.386e-06/0.303, allocations: 4 kB / 1.308 GB, free: 1.113 MB / 0.9981 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.22e-05/0.3031, allocations: 12 kB / 1.308 GB, free: 1.102 MB / 0.9981 GB
Notification: Performance of NFScalarize.scalarize: time 8.115e-06/0.3031, allocations: 0 / 1.308 GB, free: 1.102 MB / 0.9981 GB
Notification: Performance of NFVerifyModel.verify: time 1.771e-05/0.3031, allocations: 4 kB / 1.308 GB, free: 1.098 MB / 0.9981 GB
Notification: Performance of NFConvertDAE.convert: time 7.92e-05/0.3032, allocations: 15.91 kB / 1.308 GB, free: 1.082 MB / 0.9981 GB
Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.3032, allocations: 0 / 1.308 GB, free: 1.082 MB / 0.9981 GB
Notification: Performance of FrontEnd: time 1.393e-06/0.3032, allocations: 0 / 1.308 GB, free: 1.082 MB / 0.9981 GB
Notification: Performance of Transformations before backend: time 5.02e-06/0.3032, allocations: 0 / 1.308 GB, free: 1.082 MB / 0.9981 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.0002965/0.3035, allocations: 250.4 kB / 1.308 GB, free: 0.8047 MB / 0.9981 GB
Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.3036, allocations: 8.922 kB / 1.308 GB, free: 0.7969 MB / 0.9981 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 2.705e-05/0.3036, allocations: 8.875 kB / 1.308 GB, free: 0.7891 MB / 0.9981 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 8.128e-05/0.3037, allocations: 102.5 kB / 1.308 GB, free: 0.6641 MB / 0.9981 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.617e-06/0.3037, allocations: 4.375 kB / 1.308 GB, free: 0.6602 MB / 0.9981 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.3037, allocations: 384 / 1.308 GB, free: 0.6602 MB / 0.9981 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 9.32e-05/0.3038, allocations: 34.25 kB / 1.308 GB, free: 0.6211 MB / 0.9981 GB
Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.3038, allocations: 192 / 1.308 GB, free: 0.6211 MB / 0.9981 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.537e-06/0.3038, allocations: 3.938 kB / 1.308 GB, free: 0.6172 MB / 0.9981 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.3038, allocations: 3.938 kB / 1.308 GB, free: 0.6133 MB / 0.9981 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 3.131e-05/0.3038, allocations: 8 kB / 1.308 GB, free: 0.6055 MB / 0.9981 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001362/0.304, allocations: 116.8 kB / 1.309 GB, free: 460 kB / 0.9981 GB
Notification: Performance of preOpt comSubExp (simulation): time 5.835e-05/0.304, allocations: 30.53 kB / 1.309 GB, free: 420 kB / 0.9981 GB
Notification: Performance of preOpt resolveLoops (simulation): time 1.946e-05/0.304, allocations: 8.922 kB / 1.309 GB, free: 408 kB / 0.9981 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001194/0.3042, allocations: 4 kB / 1.309 GB, free: 404 kB / 0.9981 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.3042, allocations: 30.56 kB / 1.309 GB, free: 364 kB / 0.9981 GB
Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3042, allocations: 0 / 1.309 GB, free: 364 kB / 0.9981 GB
Notification: Performance of matching and sorting (n=2): time 0.0001383/0.3043, allocations: 49.62 kB / 1.309 GB, free: 308 kB / 0.9981 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.3044, allocations: 59.34 kB / 1.309 GB, free: 236 kB / 0.9981 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.961e-05/0.3044, allocations: 89.86 kB / 1.309 GB, free: 136 kB / 0.9981 GB
Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.3044, allocations: 25.7 kB / 1.309 GB, free: 104 kB / 0.9981 GB
Notification: Performance of collectInitialEqns (initialization): time 3.29e-05/0.3045, allocations: 80.14 kB / 1.309 GB, free: 20 kB / 0.9981 GB
Notification: Performance of collectInitialBindings (initialization): time 2.044e-05/0.3045, allocations: 4 kB / 1.309 GB, free: 16 kB / 0.9981 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-05/0.3045, allocations: 17.7 kB / 1.309 GB, free: 15.99 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001318/0.3047, allocations: 310.8 kB / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.086e-05/0.3047, allocations: 4.125 kB / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 9.327e-06/0.3047, allocations: 4 kB / 1.309 GB, free: 15.67 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 3.292e-05/0.3047, allocations: 12.86 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3047, allocations: 0 / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of matching and sorting (n=2) (initialization): time 6.648e-05/0.3048, allocations: 49.58 kB / 1.309 GB, free: 15.6 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3048, allocations: 8 kB / 1.309 GB, free: 15.59 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.646e-06/0.3048, allocations: 3.938 kB / 1.309 GB, free: 15.59 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3048, allocations: 7.922 kB / 1.309 GB, free: 15.58 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.232e-05/0.3049, allocations: 4 kB / 1.309 GB, free: 15.58 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.3049, allocations: 4.094 kB / 1.309 GB, free: 15.57 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.717e-05/0.3049, allocations: 4 kB / 1.309 GB, free: 15.57 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-06/0.3049, allocations: 0 / 1.309 GB, free: 15.57 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: 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 7.348e-05/0.305, allocations: 109.8 kB / 1.309 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.305, allocations: 7.984 kB / 1.309 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.642e-05/0.3051, allocations: 40.8 kB / 1.309 GB, free: 15.4 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3051, allocations: 4 kB / 1.309 GB, free: 15.39 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3051, allocations: 0 / 1.309 GB, free: 15.39 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.3051, allocations: 4.031 kB / 1.309 GB, free: 15.39 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.218e-05/0.3052, allocations: 116.8 kB / 1.31 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3052, allocations: 0 / 1.31 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.609e-05/0.3052, allocations: 11.94 kB / 1.31 GB, free: 15.22 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3052, allocations: 0 / 1.31 GB, free: 15.22 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.3052, allocations: 3.938 kB / 1.31 GB, free: 15.22 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3052, allocations: 4 kB / 1.31 GB, free: 15.21 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3052, allocations: 0 / 1.31 GB, free: 15.21 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 7.998e-05/0.3053, allocations: 65.12 kB / 1.31 GB, free: 15.13 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 5.079e-06/0.3053, allocations: 3.938 kB / 1.31 GB, free: 15.13 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/0.3053, allocations: 3.938 kB / 1.31 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.303e-05/0.3053, allocations: 4 kB / 1.31 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-05/0.3053, allocations: 3.984 kB / 1.31 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.3053, allocations: 0 / 1.31 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 3.132e-05/0.3054, allocations: 75.28 kB / 1.31 GB, free: 15.04 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.3054, allocations: 0 / 1.31 GB, free: 15.04 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0001893/0.3056, allocations: 7.938 kB / 1.31 GB, free: 15.04 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: 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.0001512/0.3057, allocations: 104.1 kB / 1.31 GB, free: 14.92 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 8.966e-05/0.3058, allocations: 15.92 kB / 1.31 GB, free: 14.91 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3058, allocations: 0 / 1.31 GB, free: 14.91 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 1.579e-05/0.3058, allocations: 7.938 kB / 1.31 GB, free: 14.9 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.3059, allocations: 4 kB / 1.31 GB, free: 14.89 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001873/0.3061, allocations: 89.69 kB / 1.31 GB, free: 14.78 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.3064, allocations: 0.673 MB / 1.311 GB, free: 14.08 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 1.487e-05/0.3064, allocations: 4 kB / 1.311 GB, free: 14.08 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.794e-05/0.3065, allocations: 7.438 kB / 1.311 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of SimCode: time 3.3e-07/0.3065, allocations: 0 / 1.311 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of Templates: time 0.002562/0.309, allocations: 324.6 kB / 1.311 GB, free: 13.75 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.937066294252872]