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.001961/0.001961, allocations: 106 kB / 18.84 MB, free: 3.023 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.002305/0.002305, allocations: 192.2 kB / 22.1 MB, free: 4.223 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.482/1.482, allocations: 225.6 MB / 250.8 MB, free: 2.91 MB / 190.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 2.931/2.931, allocations: 495.8 MB / 0.7831 GB, free: 12.32 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.002085/0.002085, allocations: 71.89 kB / 1.137 GB, free: 12.2 MB / 0.92 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 1.014/1.016, allocations: 173.6 MB / 1.307 GB, free: 33.83 MB / 1.061 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001607/1.018, allocations: 0.5916 MB / 1.307 GB, free: 33.47 MB / 1.061 GB
Notification: Performance of NFInst.instExpressions: time 0.0002642/1.018, allocations: 59.72 kB / 1.307 GB, free: 33.43 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 1.862e-05/1.018, allocations: 0 / 1.307 GB, free: 33.43 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 1.298e-05/1.018, allocations: 0 / 1.307 GB, free: 33.43 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 7.223e-06/1.018, allocations: 0 / 1.307 GB, free: 33.43 MB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.000239/1.018, allocations: 17.3 kB / 1.307 GB, free: 33.42 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 4.825e-05/1.018, allocations: 0 / 1.307 GB, free: 33.42 MB / 1.061 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.889e-05/1.018, allocations: 2.594 kB / 1.307 GB, free: 33.42 MB / 1.061 GB
Notification: Performance of NFEvalConstants.evaluate: time 1.857e-05/1.018, allocations: 0 / 1.307 GB, free: 33.42 MB / 1.061 GB
Notification: Performance of NFSimplifyModel.simplify: time 2.349e-05/1.018, allocations: 14.56 kB / 1.307 GB, free: 33.41 MB / 1.061 GB
Notification: Performance of NFPackage.collectConstants: time 1.324e-05/1.018, allocations: 0 / 1.307 GB, free: 33.41 MB / 1.061 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.397e-05/1.018, allocations: 13.12 kB / 1.307 GB, free: 33.4 MB / 1.061 GB
Notification: Performance of NFScalarize.scalarize: time 1.082e-05/1.018, allocations: 3.984 kB / 1.307 GB, free: 33.4 MB / 1.061 GB
Notification: Performance of NFVerifyModel.verify: time 1.723e-05/1.018, allocations: 0 / 1.307 GB, free: 33.4 MB / 1.061 GB
Notification: Performance of NFConvertDAE.convert: time 8.623e-05/1.019, allocations: 8.531 kB / 1.307 GB, free: 33.4 MB / 1.061 GB
Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/1.019, allocations: 0 / 1.307 GB, free: 33.4 MB / 1.061 GB
Notification: Performance of FrontEnd: time 2.054e-06/1.019, allocations: 0 / 1.307 GB, free: 33.4 MB / 1.061 GB
Notification: Performance of Transformations before backend: time 5.17e-06/1.019, allocations: 0 / 1.307 GB, free: 33.4 MB / 1.061 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.00025/1.019, allocations: 245.8 kB / 1.308 GB, free: 33.14 MB / 1.061 GB
Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/1.019, allocations: 16.91 kB / 1.308 GB, free: 33.13 MB / 1.061 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 2.987e-05/1.019, allocations: 0.9375 kB / 1.308 GB, free: 33.13 MB / 1.061 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 4.683e-05/1.019, allocations: 104.8 kB / 1.308 GB, free: 33 MB / 1.061 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/1.019, allocations: 384 / 1.308 GB, free: 33 MB / 1.061 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-06/1.019, allocations: 3.312 kB / 1.308 GB, free: 33 MB / 1.061 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 9.449e-05/1.019, allocations: 40.36 kB / 1.308 GB, free: 32.96 MB / 1.061 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/1.019, allocations: 192 / 1.308 GB, free: 32.96 MB / 1.061 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/1.019, allocations: 7.875 kB / 1.308 GB, free: 32.96 MB / 1.061 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/1.019, allocations: 0 / 1.308 GB, free: 32.96 MB / 1.061 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 3.142e-05/1.019, allocations: 2.938 kB / 1.308 GB, free: 32.96 MB / 1.061 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001026/1.019, allocations: 127.2 kB / 1.308 GB, free: 32.8 MB / 1.061 GB
Notification: Performance of preOpt comSubExp (simulation): time 4.909e-05/1.019, allocations: 19.95 kB / 1.308 GB, free: 32.77 MB / 1.061 GB
Notification: Performance of preOpt resolveLoops (simulation): time 1.61e-05/1.019, allocations: 7.453 kB / 1.308 GB, free: 32.77 MB / 1.061 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/1.019, allocations: 6.016 kB / 1.308 GB, free: 32.77 MB / 1.061 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/1.019, allocations: 34.56 kB / 1.308 GB, free: 32.72 MB / 1.061 GB
Notification: Performance of pre-optimization done (n=2): time 1.062e-06/1.019, allocations: 0 / 1.308 GB, free: 32.72 MB / 1.061 GB
Notification: Performance of matching and sorting (n=2): time 0.0001308/1.02, allocations: 49.59 kB / 1.308 GB, free: 32.68 MB / 1.061 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/1.02, allocations: 54.22 kB / 1.308 GB, free: 32.62 MB / 1.061 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.232e-05/1.02, allocations: 89.86 kB / 1.308 GB, free: 32.52 MB / 1.061 GB
Notification: Performance of collectPreVariables (initialization): time 9.437e-06/1.02, allocations: 29.7 kB / 1.308 GB, free: 32.48 MB / 1.061 GB
Notification: Performance of collectInitialEqns (initialization): time 1.224e-05/1.02, allocations: 80.14 kB / 1.308 GB, free: 32.4 MB / 1.061 GB
Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/1.02, allocations: 0 / 1.308 GB, free: 32.4 MB / 1.061 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 2.368e-05/1.02, allocations: 12.62 kB / 1.308 GB, free: 32.39 MB / 1.061 GB
Notification: Performance of setup shared object (initialization): time 7.621e-05/1.02, allocations: 325.3 kB / 1.309 GB, free: 32.07 MB / 1.061 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/1.02, allocations: 8 kB / 1.309 GB, free: 32.06 MB / 1.061 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.364e-06/1.02, allocations: 2.875 kB / 1.309 GB, free: 32.06 MB / 1.061 GB
Notification: Performance of analyzeInitialSystem (initialization): time 3.165e-05/1.02, allocations: 13.95 kB / 1.309 GB, free: 32.05 MB / 1.061 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/1.02, allocations: 0 / 1.309 GB, free: 32.05 MB / 1.061 GB
Notification: Performance of matching and sorting (n=2) (initialization): time 5.062e-05/1.02, allocations: 45.25 kB / 1.309 GB, free: 32.01 MB / 1.061 GB
Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/1.02, allocations: 5.625 kB / 1.309 GB, free: 32.01 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/1.02, allocations: 0 / 1.309 GB, free: 32.01 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/1.02, allocations: 3.938 kB / 1.309 GB, free: 32 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.788e-05/1.02, allocations: 6.906 kB / 1.309 GB, free: 32 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/1.02, allocations: 0 / 1.309 GB, free: 32 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.286e-05/1.02, allocations: 0 / 1.309 GB, free: 32 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/1.02, allocations: 6.828 kB / 1.309 GB, free: 32 MB / 1.061 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 4.299e-05/1.02, allocations: 121 kB / 1.309 GB, free: 31.88 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-06/1.02, allocations: 3 kB / 1.309 GB, free: 31.88 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.627e-05/1.02, allocations: 46.52 kB / 1.309 GB, free: 31.83 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/1.02, allocations: 3.469 kB / 1.309 GB, free: 31.83 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/1.02, allocations: 4.031 kB / 1.309 GB, free: 31.82 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/1.02, allocations: 2.812 kB / 1.309 GB, free: 31.82 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.784e-05/1.02, allocations: 120.8 kB / 1.309 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/1.02, allocations: 2.844 kB / 1.309 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.037e-05/1.02, allocations: 6.281 kB / 1.309 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/1.02, allocations: 0 / 1.309 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/1.02, allocations: 3.938 kB / 1.309 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/1.02, allocations: 0 / 1.309 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/1.02, allocations: 0 / 1.309 GB, free: 31.66 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 5.365e-05/1.02, allocations: 74.97 kB / 1.309 GB, free: 31.58 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 4.158e-06/1.02, allocations: 0 / 1.309 GB, free: 31.58 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.001e-05/1.02, allocations: 3.938 kB / 1.309 GB, free: 31.58 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.939e-06/1.02, allocations: 2.656 kB / 1.309 GB, free: 31.58 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.35e-05/1.02, allocations: 0 / 1.309 GB, free: 31.58 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/1.02, allocations: 3.328 kB / 1.309 GB, free: 31.58 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 1.017e-05/1.02, allocations: 78 kB / 1.309 GB, free: 31.5 MB / 1.061 GB
Notification: Performance of sort global known variables: time 7e-08/1.02, allocations: 0 / 1.309 GB, free: 31.5 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0001915/1.02, allocations: 2.531 kB / 1.309 GB, free: 31.5 MB / 1.061 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.0001279/1.021, allocations: 106.6 kB / 1.309 GB, free: 31.41 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 7.413e-05/1.021, allocations: 9.719 kB / 1.309 GB, free: 31.41 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 1.623e-06/1.021, allocations: 0 / 1.309 GB, free: 31.41 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 1.398e-05/1.021, allocations: 6.469 kB / 1.309 GB, free: 31.4 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/1.021, allocations: 3.094 kB / 1.309 GB, free: 31.4 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001659/1.021, allocations: 88.8 kB / 1.309 GB, free: 31.3 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001096/1.021, allocations: 0.6801 MB / 1.31 GB, free: 30.59 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 1.165e-05/1.021, allocations: 2.594 kB / 1.31 GB, free: 30.59 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 1.416e-05/1.021, allocations: 9.906 kB / 1.31 GB, free: 30.59 MB / 1.061 GB
Notification: Performance of SimCode: time 3.1e-07/1.021, allocations: 0 / 1.31 GB, free: 30.59 MB / 1.061 GB
Notification: Performance of Templates: time 0.002632/1.024, allocations: 322.2 kB / 1.31 GB, free: 30.53 MB / 1.061 GB
"
[Timeout remaining time 299]
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: 9.241285359486938]