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.001432/0.001432, allocations: 110 kB / 18.93 MB, free: 2.945 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.001732/0.001732, allocations: 192.8 kB / 22.23 MB, free: 5.16 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.442/1.442, allocations: 225.6 MB / 251 MB, free: 13 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.241/3.241, allocations: 496 MB / 0.7835 GB, free: 33.55 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.002026/0.002026, allocations: 67.2 kB / 1.138 GB, free: 33.89 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3521, allocations: 173.6 MB / 1.307 GB, free: 1.801 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002968/0.3551, allocations: 1.532 MB / 1.309 GB, free: 268 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.000393/0.3554, allocations: 131.6 kB / 1.309 GB, free: 136 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.442e-05/0.3555, allocations: 0 / 1.309 GB, free: 136 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 3.027e-05/0.3555, allocations: 3.938 kB / 1.309 GB, free: 132 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 4e-05/0.3556, allocations: 3.984 kB / 1.309 GB, free: 128 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.3558, allocations: 31.91 kB / 1.309 GB, free: 96 kB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 7.782e-05/0.3559, allocations: 31.92 kB / 1.309 GB, free: 64 kB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.17e-05/0.356, allocations: 8 kB / 1.309 GB, free: 56 kB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 4.242e-05/0.356, allocations: 11.98 kB / 1.309 GB, free: 44 kB / 0.9981 GB
Notification: Performance of NFSimplifyModel.simplify: time 4.948e-05/0.3561, allocations: 19.91 kB / 1.309 GB, free: 24 kB / 0.9981 GB
Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.3561, allocations: 4 kB / 1.309 GB, free: 20 kB / 0.9981 GB
Notification: Performance of NFFlatten.collectFunctions: time 5.516e-05/0.3561, allocations: 8 kB / 1.309 GB, free: 12 kB / 0.9981 GB
Notification: Performance of NFScalarize.scalarize: time 4.334e-05/0.3562, allocations: 16 kB / 1.309 GB, free: 15.99 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.3562, allocations: 7.938 kB / 1.309 GB, free: 15.98 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.3563, allocations: 43.73 kB / 1.309 GB, free: 15.95 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3563, allocations: 0 / 1.309 GB, free: 15.95 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.563e-06/0.3563, allocations: 0 / 1.309 GB, free: 15.95 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 4.558e-06/0.3563, allocations: 4 kB / 1.309 GB, free: 15.94 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: 5
 * Number of variables: 5
Notification: Performance of Generate backend data structure: time 0.0004683/0.3568, allocations: 262.3 kB / 1.309 GB, free: 15.65 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.3568, allocations: 8.922 kB / 1.309 GB, free: 15.64 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.835e-05/0.3569, allocations: 8.891 kB / 1.309 GB, free: 15.64 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001185/0.357, allocations: 106.5 kB / 1.309 GB, free: 15.51 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.357, allocations: 8.359 kB / 1.309 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.357, allocations: 4.375 kB / 1.309 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.3572, allocations: 62.22 kB / 1.31 GB, free: 15.43 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.3572, allocations: 4.188 kB / 1.31 GB, free: 15.43 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.3572, allocations: 3.938 kB / 1.31 GB, free: 15.42 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.3572, allocations: 0 / 1.31 GB, free: 15.42 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.3574, allocations: 43.95 kB / 1.31 GB, free: 15.38 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003709/0.3578, allocations: 232 kB / 1.31 GB, free: 15.11 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.3581, allocations: 66.47 kB / 1.31 GB, free: 15.04 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.316e-05/0.3582, allocations: 20.91 kB / 1.31 GB, free: 15.01 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 7.604e-05/0.3583, allocations: 7.984 kB / 1.31 GB, free: 15 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.3583, allocations: 34.56 kB / 1.31 GB, free: 14.96 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3583, allocations: 0 / 1.31 GB, free: 14.96 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0003927/0.3587, allocations: 101.6 kB / 1.31 GB, free: 14.86 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.3588, allocations: 55.34 kB / 1.31 GB, free: 14.79 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.247e-05/0.3588, allocations: 93.86 kB / 1.31 GB, free: 14.69 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.3589, allocations: 29.7 kB / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 5.794e-05/0.3589, allocations: 84.14 kB / 1.31 GB, free: 14.57 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.3589, allocations: 7.938 kB / 1.31 GB, free: 14.56 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/0.359, allocations: 17.72 kB / 1.31 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001465/0.3591, allocations: 314.8 kB / 1.311 GB, free: 14.22 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.249e-05/0.3592, allocations: 23.97 kB / 1.311 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.685e-05/0.3593, allocations: 19.92 kB / 1.311 GB, free: 14.18 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.3594, allocations: 44.81 kB / 1.311 GB, free: 14.13 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.3595, allocations: 3.938 kB / 1.311 GB, free: 14.12 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002162/0.3597, allocations: 81.55 kB / 1.311 GB, free: 14.04 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.3597, allocations: 8 kB / 1.311 GB, free: 14.03 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3597, allocations: 0 / 1.311 GB, free: 14.03 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.3597, allocations: 0 / 1.311 GB, free: 14.03 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.891e-05/0.3598, allocations: 11.98 kB / 1.311 GB, free: 14.02 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.3598, allocations: 0 / 1.311 GB, free: 14.02 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.848e-05/0.3598, allocations: 11.92 kB / 1.311 GB, free: 14.01 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.3599, allocations: 0 / 1.311 GB, free: 14.01 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.0001001/0.36, allocations: 126.2 kB / 1.311 GB, free: 13.88 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.36, allocations: 0 / 1.311 GB, free: 13.88 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002583/0.3602, allocations: 89.25 kB / 1.311 GB, free: 13.78 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3602, allocations: 0 / 1.311 GB, free: 13.78 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3602, allocations: 0 / 1.311 GB, free: 13.78 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3602, allocations: 0 / 1.311 GB, free: 13.78 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.3604, allocations: 140.7 kB / 1.311 GB, free: 13.6 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.3604, allocations: 0 / 1.311 GB, free: 13.6 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.297e-05/0.3605, allocations: 15.98 kB / 1.311 GB, free: 13.58 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3605, allocations: 0 / 1.311 GB, free: 13.58 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-06/0.3605, allocations: 0 / 1.311 GB, free: 13.58 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3605, allocations: 0 / 1.311 GB, free: 13.58 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3605, allocations: 0 / 1.311 GB, free: 13.58 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002742/0.3608, allocations: 175.4 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.003e-05/0.3608, allocations: 7.953 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.3608, allocations: 8 kB / 1.311 GB, free: 13.38 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.41e-05/0.3609, allocations: 7.922 kB / 1.311 GB, free: 13.37 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.3609, allocations: 11.98 kB / 1.311 GB, free: 13.36 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.3609, allocations: 0 / 1.311 GB, free: 13.36 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 4.646e-05/0.361, allocations: 83.28 kB / 1.311 GB, free: 13.28 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.361, allocations: 0 / 1.311 GB, free: 13.28 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002269/0.3612, allocations: 8 kB / 1.311 GB, free: 13.27 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.0001599/0.3614, allocations: 112 kB / 1.312 GB, free: 13.15 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002373/0.3616, allocations: 51.89 kB / 1.312 GB, free: 13.1 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3616, allocations: 0 / 1.312 GB, free: 13.1 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 9.535e-05/0.3617, allocations: 19.92 kB / 1.312 GB, free: 13.08 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.362, allocations: 14.28 kB / 1.312 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003547/0.3624, allocations: 113.5 kB / 1.312 GB, free: 12.93 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.3627, allocations: 0.6807 MB / 1.312 GB, free: 12.22 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.84e-05/0.3627, allocations: 4 kB / 1.312 GB, free: 12.22 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.066e-05/0.3628, allocations: 11.44 kB / 1.312 GB, free: 12.21 MB / 1.014 GB
Notification: Performance of SimCode: time 3.1e-07/0.3628, allocations: 0 / 1.312 GB, free: 12.21 MB / 1.014 GB
Notification: Performance of Templates: time 0.003673/0.3664, allocations: 0.7294 MB / 1.313 GB, free: 11.48 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: 8.921703252010047]