Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.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.001635/0.001635, 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.001718/0.001718, allocations: 189.8 kB / 22.1 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.5/1.5, allocations: 225.6 MB / 250.8 MB, free: 13.1 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.256/3.256, allocations: 495.8 MB / 0.783 GB, free: 33.59 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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial")
translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 67.45 kB / 1.137 GB, free: 33.84 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3412, allocations: 173.6 MB / 1.307 GB, free: 1.852 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002765/0.344, allocations: 1.528 MB / 1.308 GB, free: 324 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0003355/0.3443, allocations: 123.7 kB / 1.308 GB, free: 200 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 3.527e-05/0.3444, allocations: 7.938 kB / 1.308 GB, free: 192 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.3444, allocations: 3.938 kB / 1.308 GB, free: 188 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 4.358e-05/0.3445, allocations: 3.938 kB / 1.308 GB, free: 184 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.3447, allocations: 19.98 kB / 1.308 GB, free: 164 kB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 8.036e-05/0.3447, allocations: 27.92 kB / 1.308 GB, free: 136 kB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3449, allocations: 15.97 kB / 1.308 GB, free: 120 kB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 4.838e-05/0.3449, allocations: 8 kB / 1.308 GB, free: 112 kB / 0.9981 GB
Notification: Performance of NFSimplifyModel.simplify: time 5.919e-05/0.345, allocations: 19.92 kB / 1.308 GB, free: 92 kB / 0.9981 GB
Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.345, allocations: 0 / 1.308 GB, free: 92 kB / 0.9981 GB
Notification: Performance of NFFlatten.collectFunctions: time 6.246e-05/0.345, allocations: 19.98 kB / 1.308 GB, free: 72 kB / 0.9981 GB
Notification: Performance of NFScalarize.scalarize: time 1.515e-05/0.345, allocations: 7.938 kB / 1.308 GB, free: 64 kB / 0.9981 GB
Notification: Performance of NFVerifyModel.verify: time 2.984e-05/0.3451, allocations: 19.91 kB / 1.309 GB, free: 44 kB / 0.9981 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.3452, allocations: 31.84 kB / 1.309 GB, free: 12 kB / 0.9981 GB
Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3452, allocations: 0 / 1.309 GB, free: 12 kB / 0.9981 GB
Notification: Performance of FrontEnd: time 1.273e-06/0.3452, allocations: 0 / 1.309 GB, free: 12 kB / 0.9981 GB
Notification: Performance of Transformations before backend: time 5.04e-06/0.3452, allocations: 0 / 1.309 GB, free: 12 kB / 0.9981 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 5
 * Number of variables: 5
Notification: Performance of Generate backend data structure: time 0.0004907/0.3457, allocations: 274.2 kB / 1.309 GB, free: 15.71 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.3457, allocations: 8.031 kB / 1.309 GB, free: 15.7 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.429e-05/0.3458, allocations: 12.88 kB / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.3459, allocations: 114.5 kB / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.3459, allocations: 384 / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.408e-05/0.3459, allocations: 8.375 kB / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.3461, allocations: 50.23 kB / 1.309 GB, free: 15.49 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3461, allocations: 192 / 1.309 GB, free: 15.49 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.3461, allocations: 7.938 kB / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3461, allocations: 0 / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.3463, allocations: 43.95 kB / 1.309 GB, free: 15.44 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003849/0.3467, allocations: 243.9 kB / 1.309 GB, free: 15.16 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003265/0.347, allocations: 54.48 kB / 1.309 GB, free: 15.1 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.3471, allocations: 28.89 kB / 1.309 GB, free: 15.07 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 8.113e-05/0.3472, allocations: 8 kB / 1.309 GB, free: 15.06 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.3473, allocations: 30.56 kB / 1.309 GB, free: 15.02 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3473, allocations: 0 / 1.309 GB, free: 15.02 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0004198/0.3477, allocations: 97.56 kB / 1.309 GB, free: 14.92 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.3477, allocations: 51.41 kB / 1.31 GB, free: 14.86 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.184e-05/0.3478, allocations: 101.8 kB / 1.31 GB, free: 14.75 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.3478, allocations: 33.7 kB / 1.31 GB, free: 14.71 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 4.772e-05/0.3479, allocations: 80.14 kB / 1.31 GB, free: 14.62 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.3479, allocations: 3.953 kB / 1.31 GB, free: 14.62 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.3479, allocations: 21.7 kB / 1.31 GB, free: 14.59 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001491/0.3481, allocations: 314.8 kB / 1.31 GB, free: 14.28 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001027/0.3482, allocations: 15.98 kB / 1.31 GB, free: 14.26 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 9.085e-05/0.3483, allocations: 23.97 kB / 1.31 GB, free: 14.24 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.3485, allocations: 48.7 kB / 1.31 GB, free: 14.19 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3485, allocations: 3.938 kB / 1.31 GB, free: 14.18 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002351/0.3487, allocations: 82.11 kB / 1.31 GB, free: 14.1 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.3487, allocations: 4 kB / 1.31 GB, free: 14.09 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3487, allocations: 0 / 1.31 GB, free: 14.09 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.3487, allocations: 4 kB / 1.31 GB, free: 14.09 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.011e-05/0.3488, allocations: 11.98 kB / 1.31 GB, free: 14.08 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.3488, allocations: 4 kB / 1.31 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.07e-05/0.3489, allocations: 7.938 kB / 1.31 GB, free: 14.07 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.3489, allocations: 3.984 kB / 1.31 GB, free: 14.06 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 (rea2Int.y,fac.y)
 * 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.0001021/0.349, allocations: 117.7 kB / 1.31 GB, free: 13.94 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.856e-05/0.349, allocations: 7.984 kB / 1.31 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.3493, allocations: 89.27 kB / 1.31 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.3493, allocations: 0 / 1.31 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3493, allocations: 0 / 1.31 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-06/0.3493, allocations: 0 / 1.31 GB, free: 13.83 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.3495, allocations: 140.7 kB / 1.311 GB, free: 13.65 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3495, allocations: 0 / 1.311 GB, free: 13.65 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.823e-05/0.3496, allocations: 15.92 kB / 1.311 GB, free: 13.64 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3496, allocations: 0 / 1.311 GB, free: 13.64 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.3496, allocations: 0 / 1.311 GB, free: 13.64 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.3496, allocations: 4 kB / 1.311 GB, free: 13.63 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3496, allocations: 0 / 1.311 GB, free: 13.63 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.3499, allocations: 179.4 kB / 1.311 GB, free: 13.44 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.139e-05/0.3499, allocations: 7.953 kB / 1.311 GB, free: 13.43 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.3499, allocations: 0 / 1.311 GB, free: 13.43 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.574e-05/0.35, allocations: 4 kB / 1.311 GB, free: 13.43 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/0.35, allocations: 11.98 kB / 1.311 GB, free: 13.42 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.35, allocations: 4 kB / 1.311 GB, free: 13.41 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.712e-05/0.3501, allocations: 87.27 kB / 1.311 GB, free: 13.33 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.3501, allocations: 0 / 1.311 GB, free: 13.33 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002218/0.3503, allocations: 8 kB / 1.311 GB, free: 13.32 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.y,rea2Int.y)
 * 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.0001447/0.3505, allocations: 96.05 kB / 1.311 GB, free: 13.21 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.000242/0.3507, allocations: 47.89 kB / 1.311 GB, free: 13.17 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3507, allocations: 0 / 1.311 GB, free: 13.17 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.000108/0.3508, allocations: 31.91 kB / 1.311 GB, free: 13.14 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.3511, allocations: 7.938 kB / 1.311 GB, free: 13.13 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002984/0.3514, allocations: 109.5 kB / 1.311 GB, free: 13 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.3517, allocations: 0.6768 MB / 1.312 GB, free: 12.29 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 2.949e-05/0.3518, allocations: 4 kB / 1.312 GB, free: 12.29 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.149e-05/0.3518, allocations: 19.44 kB / 1.312 GB, free: 12.27 MB / 1.014 GB
Notification: Performance of SimCode: time 3.01e-07/0.3518, allocations: 0 / 1.312 GB, free: 12.27 MB / 1.014 GB
Notification: Performance of Templates: time 0.003197/0.355, allocations: 0.7311 MB / 1.313 GB, free: 11.54 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.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: 9.040197744965553]