Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01143/0.01144, allocations: 90.23 kB / 15.04 MB, free: 6.055 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001753/0.001753, allocations: 172.4 kB / 15.92 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.241/2.241, allocations: 205.5 MB / 222.2 MB, free: 13.7 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.514/2.514, allocations: 252.8 MB / 0.511 GB, free: 8.316 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007253/0.0007256, allocations: 13.25 kB / 0.6243 GB, free: 28.36 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3344, allocations: 106.2 MB / 0.7281 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001175/0.3357, allocations: 325 kB / 0.7284 GB, free: 9.828 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0003497/0.3361, allocations: 57.3 kB / 0.7284 GB, free: 9.773 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.314e-05/0.3361, allocations: 4 kB / 0.7284 GB, free: 9.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 1.892e-05/0.3361, allocations: 0 / 0.7284 GB, free: 9.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 7.414e-06/0.3362, allocations: 0 / 0.7284 GB, free: 9.77 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002606/0.3364, allocations: 11.98 kB / 0.7285 GB, free: 9.758 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 4.678e-05/0.3365, allocations: 0 / 0.7285 GB, free: 9.758 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 6.16e-05/0.3366, allocations: 4 kB / 0.7285 GB, free: 9.754 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 1.852e-05/0.3366, allocations: 0 / 0.7285 GB, free: 9.754 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 3.348e-05/0.3367, allocations: 0 / 0.7285 GB, free: 9.754 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.385e-05/0.3367, allocations: 0 / 0.7285 GB, free: 9.754 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 9.164e-05/0.3368, allocations: 8 kB / 0.7285 GB, free: 9.746 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 1.255e-05/0.3368, allocations: 3.984 kB / 0.7285 GB, free: 9.742 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.662e-05/0.3369, allocations: 33.7 kB / 0.7285 GB, free: 9.703 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 8.2e-05/0.337, allocations: 3.984 kB / 0.7285 GB, free: 9.699 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.337, allocations: 0 / 0.7285 GB, free: 9.699 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.315e-06/0.337, allocations: 0 / 0.7285 GB, free: 9.699 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.721e-06/0.337, allocations: 0 / 0.7285 GB, free: 9.699 MB / 0.5573 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.0004298/0.3375, allocations: 319.4 kB / 0.7288 GB, free: 9.34 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.392e-05/0.3376, allocations: 8.031 kB / 0.7288 GB, free: 9.332 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.32e-05/0.3376, allocations: 42.5 kB / 0.7289 GB, free: 9.281 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.3377, allocations: 0 / 0.7289 GB, free: 9.281 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.3379, allocations: 163 kB / 0.729 GB, free: 9.082 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.3379, allocations: 4 kB / 0.729 GB, free: 9.078 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.3379, allocations: 0 / 0.729 GB, free: 9.078 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.3381, allocations: 33.69 kB / 0.729 GB, free: 9.039 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3381, allocations: 0 / 0.729 GB, free: 9.039 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.3381, allocations: 0 / 0.729 GB, free: 9.039 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3382, allocations: 0 / 0.729 GB, free: 9.039 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.919e-05/0.3382, allocations: 7.984 kB / 0.7291 GB, free: 9.031 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002485/0.3385, allocations: 157.6 kB / 0.7292 GB, free: 8.828 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 9.104e-05/0.3386, allocations: 30.56 kB / 0.7292 GB, free: 8.789 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002602/0.3389, allocations: 81.17 kB / 0.7293 GB, free: 8.691 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/0.339, allocations: 30.56 kB / 0.7293 GB, free: 8.652 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=2): time 2.825e-06/0.339, allocations: 0 / 0.7293 GB, free: 8.652 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2): time 0.0002377/0.3392, allocations: 41.62 kB / 0.7294 GB, free: 8.605 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/0.3393, allocations: 55.41 kB / 0.7294 GB, free: 8.539 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.459e-05/0.3394, allocations: 89.86 kB / 0.7295 GB, free: 8.441 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.3394, allocations: 29.83 kB / 0.7295 GB, free: 8.406 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/0.3395, allocations: 80.14 kB / 0.7296 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.3395, allocations: 4 kB / 0.7296 GB, free: 8.32 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-06/0.3396, allocations: 0 / 0.7296 GB, free: 8.32 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002125/0.3398, allocations: 314.8 kB / 0.7299 GB, free: 8.004 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.489e-05/0.3398, allocations: 3.938 kB / 0.7299 GB, free: 8 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.082e-05/0.3399, allocations: 11.98 kB / 0.7299 GB, free: 7.988 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.667e-05/0.3399, allocations: 0 / 0.7299 GB, free: 7.988 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3399, allocations: 64 / 0.7299 GB, free: 7.988 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001412/0.3401, allocations: 37.7 kB / 0.73 GB, free: 7.945 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.3402, allocations: 8 kB / 0.73 GB, free: 7.938 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3402, allocations: 0 / 0.73 GB, free: 7.938 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.3402, allocations: 0 / 0.73 GB, free: 7.938 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.3404, allocations: 11.92 kB / 0.73 GB, free: 7.926 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.3404, allocations: 0 / 0.73 GB, free: 7.926 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.457e-05/0.3405, allocations: 3.906 kB / 0.73 GB, free: 7.922 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.3405, allocations: 0 / 0.73 GB, free: 7.922 MB / 0.5573 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 () * Number of clocked 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 0.0001366/0.3406, allocations: 121.8 kB / 0.7301 GB, free: 7.793 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.3407, allocations: 3.938 kB / 0.7301 GB, free: 7.789 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.3409, allocations: 48.77 kB / 0.7302 GB, free: 7.734 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3409, allocations: 0 / 0.7302 GB, free: 7.734 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3409, allocations: 0 / 0.7302 GB, free: 7.734 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3409, allocations: 0 / 0.7302 GB, free: 7.734 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.3411, allocations: 149.9 kB / 0.7303 GB, free: 7.539 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.3411, allocations: 7.984 kB / 0.7303 GB, free: 7.531 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.013e-05/0.3412, allocations: 0 / 0.7303 GB, free: 7.531 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.3412, allocations: 0 / 0.7303 GB, free: 7.531 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.3413, allocations: 8.031 kB / 0.7303 GB, free: 7.523 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3413, allocations: 3.938 kB / 0.7303 GB, free: 7.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3413, allocations: 0 / 0.7303 GB, free: 7.52 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001524/0.3414, allocations: 61.12 kB / 0.7304 GB, free: 7.441 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.567e-05/0.3415, allocations: 85 kB / 0.7305 GB, free: 7.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.3416, allocations: 0 / 0.7305 GB, free: 7.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.681e-05/0.3416, allocations: 4 kB / 0.7305 GB, free: 7.336 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.476e-05/0.3416, allocations: 4.031 kB / 0.7305 GB, free: 7.332 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.3417, allocations: 4 kB / 0.7305 GB, free: 7.328 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 5.012e-05/0.3417, allocations: 75.28 kB / 0.7306 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.81e-07/0.3417, allocations: 0 / 0.7306 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003963/0.3422, allocations: 4 kB / 0.7306 GB, free: 7.25 MB / 0.5573 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 () * Number of clocked 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.0006672/0.3428, allocations: 0.6163 MB / 0.7312 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001085/0.343, allocations: 8 kB / 0.7312 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.343, allocations: 0 / 0.7312 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 3.1e-05/0.343, allocations: 4 kB / 0.7312 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.3432, allocations: 3.938 kB / 0.7312 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004626/0.3437, allocations: 120.3 kB / 0.7313 GB, free: 6.43 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003638/0.3441, allocations: 0.6731 MB / 0.7319 GB, free: 5.73 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 2.608e-05/0.3441, allocations: 8.125 kB / 0.732 GB, free: 5.723 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.216e-05/0.3442, allocations: 7.438 kB / 0.732 GB, free: 5.715 MB / 0.5573 GB Notification: Performance of SimCode: time 1.302e-06/0.3442, allocations: 0 / 0.732 GB, free: 5.715 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.3663, allocations: 0.8559 MB / 0.7328 GB, free: 4.961 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003465/0.3667, allocations: 189.1 kB / 0.733 GB, free: 4.723 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.625/2.992, allocations: 0 / 0.733 GB, free: 4.723 MB / 0.5573 GB