Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadModel(Buildings): time 4.634/4.634, allocations: 433.4 MB / 440.9 MB, free: 4.566 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.64e-05/2.653e-05, allocations: 4.594 kB / 0.5325 GB, free: 12.78 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.1869, allocations: 98.73 MB / 0.6289 GB, free: 9.203 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1979/0.3849, allocations: 124 MB / 0.75 GB, free: 13.03 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.3852, allocations: 67.97 kB / 0.7501 GB, free: 12.96 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003397/0.3886, allocations: 0.9105 MB / 0.751 GB, free: 12.05 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.317e-06/0.3887, allocations: 0 / 0.751 GB, free: 12.05 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.707e-06/0.3887, allocations: 0 / 0.751 GB, free: 12.05 MB / 0.6355 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.0004469/0.3891, allocations: 346.4 kB / 0.7513 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3892, allocations: 8.031 kB / 0.7513 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.579e-05/0.3892, allocations: 11.95 kB / 0.7513 GB, free: 11.65 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.3894, allocations: 167 kB / 0.7515 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.3894, allocations: 0 / 0.7515 GB, free: 11.45 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.3895, allocations: 4 kB / 0.7515 GB, free: 11.44 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.965e-05/0.3896, allocations: 15.94 kB / 0.7515 GB, free: 11.43 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.3897, allocations: 41.69 kB / 0.7515 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.402e-06/0.3897, allocations: 0 / 0.7515 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.756e-06/0.3897, allocations: 0 / 0.7515 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.41e-06/0.3897, allocations: 3.984 kB / 0.7515 GB, free: 11.38 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.3902, allocations: 265.4 kB / 0.7518 GB, free: 11.08 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.3905, allocations: 46.5 kB / 0.7518 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.267e-05/0.3906, allocations: 12.92 kB / 0.7519 GB, free: 11.01 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001536/0.3908, allocations: 85.17 kB / 0.7519 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.3908, allocations: 42.56 kB / 0.752 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.201e-06/0.3908, allocations: 0 / 0.752 GB, free: 10.86 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002218/0.3911, allocations: 49.67 kB / 0.752 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.3911, allocations: 51.41 kB / 0.7521 GB, free: 10.74 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.423e-05/0.3912, allocations: 100.9 kB / 0.7522 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.3913, allocations: 25.7 kB / 0.7522 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.87e-05/0.3913, allocations: 80.14 kB / 0.7523 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.3914, allocations: 11.89 kB / 0.7523 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.047e-06/0.3914, allocations: 4 kB / 0.7523 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3916, allocations: 314.8 kB / 0.7526 GB, free: 10.19 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.666e-05/0.3916, allocations: 4 kB / 0.7526 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.556e-05/0.3916, allocations: 8 kB / 0.7526 GB, free: 10.18 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.34e-05/0.3917, allocations: 8 kB / 0.7526 GB, free: 10.17 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.176e-06/0.3917, allocations: 0 / 0.7526 GB, free: 10.17 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001409/0.3919, allocations: 49.59 kB / 0.7527 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3919, allocations: 8 kB / 0.7527 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.957e-06/0.3919, allocations: 3.984 kB / 0.7527 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3919, allocations: 4 kB / 0.7527 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.3921, allocations: 11.94 kB / 0.7527 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.564e-06/0.3921, allocations: 7.984 kB / 0.7527 GB, free: 10.08 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.036e-05/0.3922, allocations: 4 kB / 0.7527 GB, free: 10.07 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/0.3922, allocations: 3.953 kB / 0.7527 GB, free: 10.07 MB / 0.6355 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 (fac.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.344e-05/0.3923, allocations: 108.9 kB / 0.7528 GB, free: 9.957 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.455e-05/0.3924, allocations: 4 kB / 0.7528 GB, free: 9.953 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.3926, allocations: 61.73 kB / 0.7529 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.869e-06/0.3926, allocations: 0 / 0.7529 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.126e-06/0.3926, allocations: 0 / 0.7529 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3926, allocations: 0 / 0.7529 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.3928, allocations: 146.2 kB / 0.753 GB, free: 9.707 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3928, allocations: 0 / 0.753 GB, free: 9.707 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.3929, allocations: 11.98 kB / 0.753 GB, free: 9.695 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.945e-06/0.393, allocations: 4 kB / 0.753 GB, free: 9.691 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.09e-06/0.393, allocations: 4 kB / 0.753 GB, free: 9.688 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.967e-06/0.393, allocations: 0 / 0.753 GB, free: 9.688 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.383e-06/0.393, allocations: 0 / 0.753 GB, free: 9.688 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001985/0.3932, allocations: 147.4 kB / 0.7532 GB, free: 9.527 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.3933, allocations: 89 kB / 0.7532 GB, free: 9.422 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.3933, allocations: 0 / 0.7532 GB, free: 9.422 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.3935, allocations: 4 kB / 0.7532 GB, free: 9.418 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.3935, allocations: 11.98 kB / 0.7533 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.71e-06/0.3935, allocations: 0 / 0.7533 GB, free: 9.406 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.156e-05/0.3936, allocations: 83.75 kB / 0.7533 GB, free: 9.324 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.35e-07/0.3936, allocations: 0 / 0.7533 GB, free: 9.324 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003227/0.394, allocations: 11.98 kB / 0.7534 GB, free: 9.312 MB / 0.6355 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,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001853/0.3941, allocations: 115.1 kB / 0.7535 GB, free: 9.188 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001118/0.3943, allocations: 20 kB / 0.7535 GB, free: 9.168 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.633e-06/0.3943, allocations: 3.938 kB / 0.7535 GB, free: 9.164 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.633e-05/0.3944, allocations: 16.22 kB / 0.7535 GB, free: 9.148 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.3946, allocations: 18.14 kB / 0.7535 GB, free: 9.133 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002502/0.3948, allocations: 60 kB / 0.7536 GB, free: 9.051 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.3952, allocations: 0.6768 MB / 0.7542 GB, free: 8.348 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.523e-05/0.3953, allocations: 4.094 kB / 0.7542 GB, free: 8.344 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.3953, allocations: 15.42 kB / 0.7543 GB, free: 8.328 MB / 0.6355 GB Notification: Performance of SimCode: time 1.303e-06/0.3953, allocations: 0 / 0.7543 GB, free: 8.328 MB / 0.6355 GB Notification: Performance of Templates: time 0.003102/0.3984, allocations: 0.5661 MB / 0.7548 GB, free: 7.762 MB / 0.6355 GB