Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.Examples.Factorial,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.562/4.562, allocations: 432.6 MB / 445.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 6.757e-05/6.761e-05, allocations: 5.891 kB / 0.5383 GB, free: 10.32 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2286, allocations: 98.73 MB / 0.6347 GB, free: 1.922 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2911/0.5198, allocations: 124.7 MB / 0.7565 GB, free: 5.066 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.5201, allocations: 71.95 kB / 0.7565 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.004671/0.5248, allocations: 0.9029 MB / 0.7574 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5249, allocations: 0 / 0.7574 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.446e-05/0.5249, allocations: 0 / 0.7574 GB, free: 4.09 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.0005013/0.5254, allocations: 350.4 kB / 0.7578 GB, free: 3.703 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.5255, allocations: 8.031 kB / 0.7578 GB, free: 3.695 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.562e-05/0.5256, allocations: 34.56 kB / 0.7578 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.781e-05/0.5256, allocations: 0 / 0.7578 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.5257, allocations: 167 kB / 0.758 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.895e-05/0.5258, allocations: 8 kB / 0.758 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.716e-05/0.5258, allocations: 0 / 0.758 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/0.526, allocations: 41.69 kB / 0.758 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.526, allocations: 7.938 kB / 0.758 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.526, allocations: 0 / 0.758 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.526, allocations: 4 kB / 0.758 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.142e-05/0.5261, allocations: 16 kB / 0.758 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006269/0.5268, allocations: 288.8 kB / 0.7583 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.5272, allocations: 54.44 kB / 0.7584 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.95e-05/0.5273, allocations: 12.92 kB / 0.7584 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000155/0.5274, allocations: 85.19 kB / 0.7585 GB, free: 2.855 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.5275, allocations: 30.56 kB / 0.7585 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.765e-06/0.5275, allocations: 0 / 0.7585 GB, free: 2.816 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002519/0.5278, allocations: 49.69 kB / 0.7585 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.5278, allocations: 55.36 kB / 0.7586 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.262e-05/0.5279, allocations: 101 kB / 0.7587 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.528, allocations: 25.7 kB / 0.7587 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.77e-05/0.528, allocations: 88.08 kB / 0.7588 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.5281, allocations: 11.89 kB / 0.7588 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-06/0.5281, allocations: 0 / 0.7588 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.5282, allocations: 310.8 kB / 0.7591 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.917e-05/0.5283, allocations: 11.94 kB / 0.7591 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.395e-05/0.5283, allocations: 8 kB / 0.7591 GB, free: 2.125 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.861e-05/0.5284, allocations: 8 kB / 0.7591 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.5284, allocations: 4 kB / 0.7591 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000133/0.5285, allocations: 53.59 kB / 0.7592 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.5285, allocations: 4 kB / 0.7592 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.5286, allocations: 0 / 0.7592 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.5286, allocations: 7.984 kB / 0.7592 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.5288, allocations: 8 kB / 0.7592 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.5288, allocations: 3.984 kB / 0.7592 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.5289, allocations: 19.95 kB / 0.7592 GB, free: 2.012 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.5289, allocations: 0 / 0.7592 GB, free: 2.012 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 8.325e-05/0.529, allocations: 101 kB / 0.7593 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.5291, allocations: 7.938 kB / 0.7593 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.5293, allocations: 61.11 kB / 0.7594 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5293, allocations: 0 / 0.7594 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.5293, allocations: 0 / 0.7594 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.5293, allocations: 0 / 0.7594 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.5295, allocations: 173.6 kB / 0.7595 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.5295, allocations: 0 / 0.7595 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.5297, allocations: 15.98 kB / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.5297, allocations: 0 / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.5297, allocations: 0 / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5297, allocations: 0 / 0.7596 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.5297, allocations: 3.938 kB / 0.7596 GB, free: 1.594 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001984/0.53, allocations: 155.3 kB / 0.7597 GB, free: 1.426 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.53, allocations: 85.09 kB / 0.7598 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.872e-05/0.5301, allocations: 0 / 0.7598 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.5302, allocations: 9.938 kB / 0.7598 GB, free: 1.316 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.256e-05/0.5303, allocations: 15.92 kB / 0.7598 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.5303, allocations: 0 / 0.7598 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.068e-05/0.5304, allocations: 79.7 kB / 0.7599 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4e-07/0.5304, allocations: 0 / 0.7599 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000309/0.5307, allocations: 15.98 kB / 0.7599 GB, free: 1.207 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.0006459/0.5314, allocations: 0.693 MB / 0.7606 GB, free: 500 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001325/0.5315, allocations: 28.02 kB / 0.7606 GB, free: 472 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.5315, allocations: 0 / 0.7606 GB, free: 472 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.468e-05/0.5316, allocations: 12 kB / 0.7606 GB, free: 460 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002218/0.5318, allocations: 6.812 kB / 0.7606 GB, free: 456 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004618/0.5323, allocations: 114.4 kB / 0.7607 GB, free: 304 kB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.5326, allocations: 0.6809 MB / 0.7614 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.406e-05/0.5327, allocations: 4 kB / 0.7614 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.53e-05/0.5327, allocations: 11.42 kB / 0.7614 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of SimCode: time 8.71e-07/0.5327, allocations: 0 / 0.7614 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.5599, allocations: 1.272 MB / 0.7627 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002719/0.5602, allocations: 146.5 kB / 0.7628 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.468/3.029, allocations: 7.938 kB / 0.7628 GB, free: 14.14 MB / 0.6511 GB