Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.564/4.564, allocations: 432.6 MB / 445.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.892e-05/3.907e-05, allocations: 5.562 kB / 0.5383 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.226, allocations: 98.74 MB / 0.6347 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2717/0.4978, allocations: 123.8 MB / 0.7556 GB, free: 5.914 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.4982, allocations: 71.89 kB / 0.7557 GB, free: 5.844 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001571/0.4997, allocations: 0.5162 MB / 0.7562 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.144e-06/0.4998, allocations: 0 / 0.7562 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.4998, allocations: 0 / 0.7562 GB, free: 5.324 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.000333/0.5001, allocations: 318.5 kB / 0.7565 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.5002, allocations: 12.03 kB / 0.7565 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.564e-05/0.5003, allocations: 38.56 kB / 0.7565 GB, free: 4.91 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.162e-05/0.5003, allocations: 0 / 0.7565 GB, free: 4.91 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.5004, allocations: 167 kB / 0.7567 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.5005, allocations: 0 / 0.7567 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.5005, allocations: 0 / 0.7567 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.5006, allocations: 33.69 kB / 0.7567 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.5006, allocations: 0 / 0.7567 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.5006, allocations: 0 / 0.7567 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.5007, allocations: 0 / 0.7567 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.991e-05/0.5007, allocations: 11.92 kB / 0.7567 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001957/0.5009, allocations: 153.6 kB / 0.7569 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.325e-05/0.501, allocations: 30.59 kB / 0.7569 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.944e-05/0.501, allocations: 8.922 kB / 0.7569 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001709/0.5012, allocations: 81.11 kB / 0.757 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.5013, allocations: 30.56 kB / 0.757 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.953e-06/0.5013, allocations: 0 / 0.757 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001501/0.5014, allocations: 45.62 kB / 0.7571 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.5015, allocations: 59.38 kB / 0.7571 GB, free: 4.148 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.025e-05/0.5016, allocations: 85 kB / 0.7572 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.5016, allocations: 25.7 kB / 0.7572 GB, free: 4.027 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.989e-05/0.5016, allocations: 80.14 kB / 0.7573 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.228e-05/0.5017, allocations: 0 / 0.7573 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.5017, allocations: 0 / 0.7573 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.5018, allocations: 314.8 kB / 0.7576 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.672e-05/0.5019, allocations: 4 kB / 0.7576 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.407e-05/0.5019, allocations: 11.94 kB / 0.7576 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.397e-05/0.5019, allocations: 4 kB / 0.7576 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.5019, allocations: 0 / 0.7576 GB, free: 3.609 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.598e-05/0.502, allocations: 41.62 kB / 0.7577 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.5021, allocations: 4 kB / 0.7577 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.5021, allocations: 4 kB / 0.7577 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.5021, allocations: 0 / 0.7577 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.522e-05/0.5022, allocations: 0 / 0.7577 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.5022, allocations: 4 kB / 0.7577 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.09e-05/0.5022, allocations: 4 kB / 0.7577 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.5022, allocations: 4 kB / 0.7577 GB, free: 3.543 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.411e-05/0.5023, allocations: 114.6 kB / 0.7578 GB, free: 3.426 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-06/0.5023, allocations: 0 / 0.7578 GB, free: 3.426 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.5025, allocations: 36.83 kB / 0.7578 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.5025, allocations: 0 / 0.7578 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5025, allocations: 7.984 kB / 0.7579 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.5025, allocations: 0 / 0.7579 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.5027, allocations: 153.6 kB / 0.758 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5027, allocations: 4.031 kB / 0.758 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.875e-05/0.5028, allocations: 4 kB / 0.758 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.5028, allocations: 0 / 0.758 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.5028, allocations: 3.984 kB / 0.758 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.5028, allocations: 0 / 0.758 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.5028, allocations: 4 kB / 0.758 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.5029, allocations: 57.14 kB / 0.7581 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.503, allocations: 89.05 kB / 0.7582 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.503, allocations: 4.031 kB / 0.7582 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.596e-05/0.5031, allocations: 0 / 0.7582 GB, free: 2.98 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.566e-05/0.5031, allocations: 4 kB / 0.7582 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.5031, allocations: 0 / 0.7582 GB, free: 2.977 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.852e-05/0.5032, allocations: 79.22 kB / 0.7582 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.91e-07/0.5032, allocations: 0 / 0.7582 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002365/0.5034, allocations: 8.219 kB / 0.7582 GB, free: 2.891 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.000547/0.504, allocations: 0.6163 MB / 0.7588 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.144e-05/0.5041, allocations: 15.92 kB / 0.7589 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5041, allocations: 0 / 0.7589 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 2.58e-05/0.5041, allocations: 7.938 kB / 0.7589 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001052/0.5042, allocations: 0 / 0.7589 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003207/0.5046, allocations: 86.86 kB / 0.759 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.5049, allocations: 0.6731 MB / 0.7596 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 1.866e-05/0.5049, allocations: 0 / 0.7596 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.505, allocations: 11.44 kB / 0.7596 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of SimCode: time 9.71e-07/0.505, allocations: 0 / 0.7596 GB, free: 1.391 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.5259, allocations: 0.8625 MB / 0.7605 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003574/0.5263, allocations: 157.5 kB / 0.7606 GB, free: 380 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.4/2.926, allocations: 0 / 0.7606 GB, free: 380 kB / 0.6355 GB