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.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadModel(Buildings): time 4.456/4.456, allocations: 432.7 MB / 445.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.24e-05/3.256e-05, allocations: 5.375 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1751, allocations: 98.73 MB / 0.6347 GB, free: 1.938 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.3666, allocations: 123.8 MB / 0.7556 GB, free: 5.98 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.3669, allocations: 79.94 kB / 0.7557 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001468/0.3684, allocations: 0.5162 MB / 0.7562 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.001e-06/0.3684, allocations: 0 / 0.7562 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.802e-06/0.3684, allocations: 0 / 0.7562 GB, free: 5.383 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002896/0.3687, allocations: 318.4 kB / 0.7565 GB, free: 5.027 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.3688, allocations: 11.97 kB / 0.7565 GB, free: 5.016 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.374e-05/0.3688, allocations: 4 kB / 0.7565 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.3689, allocations: 167 kB / 0.7567 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.369, allocations: 0 / 0.7567 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.705e-06/0.369, allocations: 0 / 0.7567 GB, free: 4.809 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.3691, allocations: 37.69 kB / 0.7567 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.49e-06/0.3691, allocations: 0 / 0.7567 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.012e-06/0.3691, allocations: 0 / 0.7567 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.483e-06/0.3691, allocations: 0 / 0.7567 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.702e-05/0.3692, allocations: 4 kB / 0.7567 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001712/0.3694, allocations: 157.6 kB / 0.7569 GB, free: 4.559 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.975e-05/0.3694, allocations: 26.55 kB / 0.7569 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.677e-05/0.3695, allocations: 12.92 kB / 0.7569 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001477/0.3696, allocations: 77.11 kB / 0.757 GB, free: 4.414 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.3697, allocations: 34.56 kB / 0.757 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 2.075e-06/0.3697, allocations: 0 / 0.757 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001264/0.3698, allocations: 37.69 kB / 0.7571 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.3699, allocations: 55.44 kB / 0.7571 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.616e-05/0.37, allocations: 92.94 kB / 0.7572 GB, free: 4.164 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.37, allocations: 25.7 kB / 0.7572 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.812e-05/0.37, allocations: 80.14 kB / 0.7573 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.3701, allocations: 0 / 0.7573 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-06/0.3701, allocations: 0 / 0.7573 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.3702, allocations: 314.8 kB / 0.7576 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.585e-05/0.3703, allocations: 4 kB / 0.7576 GB, free: 3.73 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.224e-05/0.3703, allocations: 4 kB / 0.7576 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.069e-05/0.3703, allocations: 11.94 kB / 0.7576 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.333e-06/0.3703, allocations: 0 / 0.7576 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.563e-05/0.3704, allocations: 37.64 kB / 0.7576 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3705, allocations: 7.938 kB / 0.7577 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.557e-06/0.3705, allocations: 0 / 0.7577 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.3705, allocations: 0 / 0.7577 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.461e-05/0.3706, allocations: 11.98 kB / 0.7577 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3706, allocations: 0 / 0.7577 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.331e-05/0.3706, allocations: 4.094 kB / 0.7577 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.487e-06/0.3706, allocations: 7.938 kB / 0.7577 GB, free: 3.641 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,n) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.058e-05/0.3707, allocations: 104.9 kB / 0.7578 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.3707, allocations: 3.906 kB / 0.7578 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.3709, allocations: 44.81 kB / 0.7578 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.92e-06/0.3709, allocations: 3.984 kB / 0.7578 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.377e-06/0.3709, allocations: 0 / 0.7578 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.358e-06/0.3709, allocations: 0 / 0.7578 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.371, allocations: 145.7 kB / 0.758 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.423e-06/0.3711, allocations: 7.984 kB / 0.758 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.3711, allocations: 7.984 kB / 0.758 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3711, allocations: 0 / 0.758 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.478e-06/0.3711, allocations: 0 / 0.758 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.133e-06/0.3711, allocations: 0 / 0.758 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.74e-06/0.3712, allocations: 0 / 0.758 GB, free: 3.27 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001074/0.3713, allocations: 69.06 kB / 0.758 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.129e-05/0.3713, allocations: 81.06 kB / 0.7581 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.3714, allocations: 4.031 kB / 0.7581 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.587e-05/0.3714, allocations: 0 / 0.7581 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.601e-05/0.3714, allocations: 0 / 0.7581 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-06/0.3714, allocations: 4 kB / 0.7581 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.867e-05/0.3715, allocations: 79.28 kB / 0.7582 GB, free: 3 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.83e-07/0.3715, allocations: 0 / 0.7582 GB, free: 3 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002584/0.3718, allocations: 8.219 kB / 0.7582 GB, free: 2.992 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,n) * Number of discrete 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 (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.0001836/0.372, allocations: 111.2 kB / 0.7583 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.69e-05/0.372, allocations: 15.94 kB / 0.7583 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.643e-06/0.3721, allocations: 0 / 0.7583 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.202e-05/0.3721, allocations: 4 kB / 0.7583 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001031/0.3722, allocations: 10.06 kB / 0.7584 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001653/0.3724, allocations: 45.05 kB / 0.7584 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.3727, allocations: 0.6731 MB / 0.7591 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 2.123e-05/0.3728, allocations: 7.984 kB / 0.7591 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.026e-05/0.3728, allocations: 11.56 kB / 0.7591 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of SimCode: time 1.451e-06/0.3728, allocations: 4 kB / 0.7591 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of Templates: time 0.002474/0.3753, allocations: 309 kB / 0.7594 GB, free: 1.758 MB / 0.6355 GB