Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001285/0.001285, 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.001426/0.001426, allocations: 190.7 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.422/1.422, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.168/3.168, allocations: 495.7 MB / 0.7831 GB, free: 33.28 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 70.95 kB / 1.137 GB, free: 33.85 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3974, allocations: 173.6 MB / 1.307 GB, free: 1.93 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003788/0.4012, allocations: 1.546 MB / 1.308 GB, free: 384 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000496/0.4017, allocations: 123.6 kB / 1.309 GB, free: 260 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.052e-05/0.4017, allocations: 3.938 kB / 1.309 GB, free: 256 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.793e-05/0.4018, allocations: 0 / 1.309 GB, free: 256 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.135e-05/0.4018, allocations: 3.938 kB / 1.309 GB, free: 252 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002996/0.4021, allocations: 31.91 kB / 1.309 GB, free: 220 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.225e-05/0.4022, allocations: 27.98 kB / 1.309 GB, free: 192 kB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.4023, allocations: 11.98 kB / 1.309 GB, free: 180 kB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.342e-05/0.4024, allocations: 8 kB / 1.309 GB, free: 172 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.818e-05/0.4024, allocations: 19.91 kB / 1.309 GB, free: 152 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.4025, allocations: 4 kB / 1.309 GB, free: 148 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.143e-05/0.4025, allocations: 11.98 kB / 1.309 GB, free: 136 kB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.848e-05/0.4026, allocations: 11.94 kB / 1.309 GB, free: 124 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.448e-05/0.4026, allocations: 7.938 kB / 1.309 GB, free: 116 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.4028, allocations: 47.75 kB / 1.309 GB, free: 68 kB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.4028, allocations: 3.938 kB / 1.309 GB, free: 64 kB / 0.9981 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4028, allocations: 4 kB / 1.309 GB, free: 60 kB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.4028, allocations: 0 / 1.309 GB, free: 60 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.000576/0.4034, allocations: 266.3 kB / 1.309 GB, free: 15.77 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.4034, allocations: 8.031 kB / 1.309 GB, free: 15.76 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.627e-05/0.4035, allocations: 8.891 kB / 1.309 GB, free: 15.75 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.4036, allocations: 102.5 kB / 1.309 GB, free: 15.62 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.4036, allocations: 8.359 kB / 1.309 GB, free: 15.62 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.4036, allocations: 384 / 1.309 GB, free: 15.62 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.4038, allocations: 62.23 kB / 1.309 GB, free: 15.55 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.4039, allocations: 192 / 1.309 GB, free: 15.55 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.4039, allocations: 3.938 kB / 1.309 GB, free: 15.55 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.4039, allocations: 0 / 1.309 GB, free: 15.55 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002082/0.4041, allocations: 43.89 kB / 1.309 GB, free: 15.5 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004726/0.4046, allocations: 232 kB / 1.309 GB, free: 15.23 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003675/0.4049, allocations: 70.45 kB / 1.31 GB, free: 15.16 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.405, allocations: 20.89 kB / 1.31 GB, free: 15.13 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 9.15e-05/0.4051, allocations: 8 kB / 1.31 GB, free: 15.12 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.4052, allocations: 38.5 kB / 1.31 GB, free: 15.08 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.4052, allocations: 0 / 1.31 GB, free: 15.08 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.000438/0.4056, allocations: 93.62 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.4056, allocations: 51.41 kB / 1.31 GB, free: 14.92 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.755e-05/0.4057, allocations: 97.86 kB / 1.31 GB, free: 14.81 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.4057, allocations: 25.7 kB / 1.31 GB, free: 14.78 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.66e-05/0.4058, allocations: 92.12 kB / 1.31 GB, free: 14.69 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.4058, allocations: 3.953 kB / 1.31 GB, free: 14.68 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.4059, allocations: 13.72 kB / 1.31 GB, free: 14.66 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.406, allocations: 322.8 kB / 1.31 GB, free: 14.34 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.84e-05/0.4061, allocations: 19.98 kB / 1.31 GB, free: 14.32 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.422e-05/0.4062, allocations: 15.92 kB / 1.31 GB, free: 14.3 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.4065, allocations: 52.75 kB / 1.31 GB, free: 14.25 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.4065, allocations: 3.938 kB / 1.31 GB, free: 14.25 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002378/0.4067, allocations: 81.61 kB / 1.31 GB, free: 14.16 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.4067, allocations: 4 kB / 1.31 GB, free: 14.16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.4067, allocations: 3.984 kB / 1.31 GB, free: 14.15 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.4067, allocations: 0 / 1.31 GB, free: 14.15 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.111e-05/0.4068, allocations: 8 kB / 1.31 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.4068, allocations: 3.984 kB / 1.31 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.078e-05/0.4069, allocations: 7.938 kB / 1.31 GB, free: 14.13 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.4069, allocations: 0 / 1.31 GB, free: 14.13 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.0001086/0.407, allocations: 125.7 kB / 1.311 GB, free: 14 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.407, allocations: 7.984 kB / 1.311 GB, free: 13.99 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002902/0.4073, allocations: 89.27 kB / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.4073, allocations: 0 / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4073, allocations: 0 / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.4073, allocations: 0.5625 kB / 1.311 GB, free: 13.89 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.4075, allocations: 132.7 kB / 1.311 GB, free: 13.72 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.4075, allocations: 7.984 kB / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.544e-05/0.4076, allocations: 8 kB / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.4076, allocations: 0 / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.4076, allocations: 7.984 kB / 1.311 GB, free: 13.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4076, allocations: 0 / 1.311 GB, free: 13.7 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.4076, allocations: 0 / 1.311 GB, free: 13.7 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003261/0.408, allocations: 179.3 kB / 1.311 GB, free: 13.51 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.806e-06/0.408, allocations: 8 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.408, allocations: 4 kB / 1.311 GB, free: 13.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9e-05/0.4081, allocations: 7.984 kB / 1.311 GB, free: 13.49 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.4081, allocations: 7.984 kB / 1.311 GB, free: 13.48 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.4081, allocations: 0 / 1.311 GB, free: 13.48 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.195e-05/0.4082, allocations: 79.28 kB / 1.311 GB, free: 13.4 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4082, allocations: 0 / 1.311 GB, free: 13.4 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002251/0.4084, allocations: 8 kB / 1.311 GB, free: 13.39 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.0002683/0.4087, allocations: 108 kB / 1.311 GB, free: 13.28 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0002668/0.4089, allocations: 51.83 kB / 1.311 GB, free: 13.23 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4089, allocations: 0 / 1.311 GB, free: 13.23 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.4091, allocations: 23.97 kB / 1.311 GB, free: 13.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.4094, allocations: 12.95 kB / 1.311 GB, free: 13.2 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.4097, allocations: 117.5 kB / 1.311 GB, free: 13.05 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.4101, allocations: 0.6768 MB / 1.312 GB, free: 12.35 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 3.356e-05/0.4101, allocations: 4 kB / 1.312 GB, free: 12.35 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.12e-05/0.4102, allocations: 7.438 kB / 1.312 GB, free: 12.34 MB / 1.014 GB Notification: Performance of SimCode: time 6.31e-07/0.4102, allocations: 0 / 1.312 GB, free: 12.34 MB / 1.014 GB Notification: Performance of Templates: time 0.003814/0.414, allocations: 0.7289 MB / 1.313 GB, free: 11.61 MB / 1.014 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.784332851879299]