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/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.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.146/4.146, allocations: 432.7 MB / 445.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.738e-05/2.752e-05, allocations: 5.031 kB / 0.5383 GB, free: 10.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.1751, allocations: 98.72 MB / 0.6347 GB, free: 1.902 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2346/0.4098, allocations: 124.7 MB / 0.7565 GB, free: 5.055 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.41, allocations: 71.95 kB / 0.7565 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003433/0.4135, allocations: 0.9107 MB / 0.7574 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4135, allocations: 3.938 kB / 0.7574 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.917e-06/0.4135, allocations: 0 / 0.7574 GB, free: 4.066 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.000432/0.414, allocations: 346.3 kB / 0.7578 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.414, allocations: 12.03 kB / 0.7578 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.4141, allocations: 0 / 0.7578 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.4142, allocations: 171 kB / 0.7579 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.4143, allocations: 4 kB / 0.7579 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.4143, allocations: 0 / 0.7579 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.4144, allocations: 45.69 kB / 0.758 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.043e-06/0.4145, allocations: 4 kB / 0.758 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.64e-06/0.4145, allocations: 0 / 0.758 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.561e-06/0.4145, allocations: 0 / 0.758 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.57e-05/0.4146, allocations: 23.98 kB / 0.758 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005201/0.4151, allocations: 280.8 kB / 0.7583 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.4154, allocations: 50.55 kB / 0.7583 GB, free: 3 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.685e-05/0.4155, allocations: 16.92 kB / 0.7583 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.4156, allocations: 77.11 kB / 0.7584 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.4157, allocations: 34.56 kB / 0.7584 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.431e-06/0.4157, allocations: 0 / 0.7584 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002079/0.4159, allocations: 53.7 kB / 0.7585 GB, free: 2.785 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.416, allocations: 63.36 kB / 0.7586 GB, free: 2.711 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.895e-05/0.4161, allocations: 92.98 kB / 0.7586 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.4161, allocations: 25.7 kB / 0.7587 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.602e-05/0.4162, allocations: 92.08 kB / 0.7588 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.4162, allocations: 3.906 kB / 0.7588 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.238e-06/0.4162, allocations: 0 / 0.7588 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.4164, allocations: 310.8 kB / 0.7591 GB, free: 2.172 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.296e-05/0.4164, allocations: 8 kB / 0.7591 GB, free: 2.164 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.435e-05/0.4165, allocations: 15.98 kB / 0.7591 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.382e-05/0.4165, allocations: 8 kB / 0.7591 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.469e-06/0.4165, allocations: 0 / 0.7591 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001411/0.4167, allocations: 57.53 kB / 0.7591 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.4167, allocations: 9.719 kB / 0.7592 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.371e-06/0.4167, allocations: 0 / 0.7592 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.4167, allocations: 0 / 0.7592 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.4169, allocations: 11.98 kB / 0.7592 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.4169, allocations: 0 / 0.7592 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.851e-05/0.417, allocations: 19.94 kB / 0.7592 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.4171, allocations: 0 / 0.7592 GB, free: 2.039 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.528e-05/0.4172, allocations: 105 kB / 0.7593 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.4172, allocations: 0 / 0.7593 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001861/0.4174, allocations: 65.11 kB / 0.7593 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.259e-06/0.4174, allocations: 3.938 kB / 0.7594 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.4174, allocations: 4 kB / 0.7594 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.581e-06/0.4175, allocations: 0 / 0.7594 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.4177, allocations: 165.6 kB / 0.7595 GB, free: 1.641 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.414e-06/0.4177, allocations: 7.984 kB / 0.7595 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.4178, allocations: 12 kB / 0.7595 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.031e-06/0.4179, allocations: 0 / 0.7595 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.4179, allocations: 3.984 kB / 0.7595 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.712e-06/0.4179, allocations: 0 / 0.7595 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.912e-06/0.4179, allocations: 7.922 kB / 0.7595 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.4181, allocations: 147.5 kB / 0.7597 GB, free: 1.449 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.818e-05/0.4182, allocations: 88.95 kB / 0.7598 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.855e-05/0.4182, allocations: 4 kB / 0.7598 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.4183, allocations: 8.453 kB / 0.7598 GB, free: 1.332 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/0.4184, allocations: 11.98 kB / 0.7598 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.423e-06/0.4184, allocations: 3.938 kB / 0.7598 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.854e-05/0.4185, allocations: 83.27 kB / 0.7599 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.39e-07/0.4185, allocations: 0 / 0.7599 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000324/0.4188, allocations: 8 kB / 0.7599 GB, free: 1.227 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.0001858/0.419, allocations: 122 kB / 0.76 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001267/0.4192, allocations: 20 kB / 0.76 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.387e-06/0.4192, allocations: 0 / 0.76 GB, free: 1.082 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.154e-05/0.4193, allocations: 12 kB / 0.76 GB, free: 1.07 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.4195, allocations: 7.891 kB / 0.76 GB, free: 1.062 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002622/0.4198, allocations: 66.86 kB / 0.7601 GB, free: 0.9766 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.4202, allocations: 0.6848 MB / 0.7608 GB, free: 272 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 4.319e-05/0.4202, allocations: 7.938 kB / 0.7608 GB, free: 264 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.639e-05/0.4203, allocations: 11.44 kB / 0.7608 GB, free: 252 kB / 0.6355 GB Notification: Performance of SimCode: time 1.475e-06/0.4203, allocations: 0 / 0.7608 GB, free: 252 kB / 0.6355 GB Notification: Performance of Templates: time 0.003318/0.4236, allocations: 0.6007 MB / 0.7614 GB, free: 15.64 MB / 0.6511 GB