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 Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01071/0.01072, allocations: 107.9 kB / 15.06 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001906/0.001906, allocations: 179.5 kB / 15.95 MB, free: 5.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.989/1.989, allocations: 194.6 MB / 211.3 MB, free: 11.07 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.359/2.359, allocations: 236.1 MB / 492.6 MB, free: 11.26 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006638/0.0006641, allocations: 16 kB / 0.587 GB, free: 2.055 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6769/0.6776, allocations: 98.71 MB / 0.6834 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007766/0.6784, allocations: 310.3 kB / 0.6837 GB, free: 16.58 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0002535/0.6787, allocations: 45.91 kB / 0.6838 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.014e-05/0.6787, allocations: 0.9375 kB / 0.6838 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 1.423e-05/0.6788, allocations: 0 / 0.6838 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 5.411e-06/0.6788, allocations: 0 / 0.6838 GB, free: 16.55 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.679, allocations: 21.14 kB / 0.6838 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 3.934e-05/0.679, allocations: 6.125 kB / 0.6838 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.6791, allocations: 0 / 0.6838 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 1.613e-05/0.6791, allocations: 6.156 kB / 0.6838 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 2.581e-05/0.6791, allocations: 1.219 kB / 0.6838 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.6791, allocations: 0 / 0.6838 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 6.748e-05/0.6792, allocations: 6.219 kB / 0.6838 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 7.314e-06/0.6792, allocations: 1.438 kB / 0.6838 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 2.146e-05/0.6793, allocations: 25.7 kB / 0.6838 GB, free: 16.5 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 6.369e-05/0.6793, allocations: 13.69 kB / 0.6839 GB, free: 16.49 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.6794, allocations: 0 / 0.6839 GB, free: 16.49 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.113e-06/0.6794, allocations: 4 kB / 0.6839 GB, free: 16.49 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.6794, allocations: 0 / 0.6839 GB, free: 16.49 MB / 0.5261 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.0002255/0.6796, allocations: 307.6 kB / 0.6842 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.6797, allocations: 9.219 kB / 0.6842 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.6797, allocations: 32.52 kB / 0.6842 GB, free: 16.11 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.645e-05/0.6797, allocations: 1.125 kB / 0.6842 GB, free: 16.11 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.956e-05/0.6798, allocations: 168 kB / 0.6844 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.6798, allocations: 1.125 kB / 0.6844 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.6799, allocations: 1 kB / 0.6844 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.227e-05/0.68, allocations: 38.88 kB / 0.6844 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.68, allocations: 0 / 0.6844 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.68, allocations: 1.125 kB / 0.6844 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.68, allocations: 0 / 0.6844 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.815e-05/0.6801, allocations: 3.812 kB / 0.6844 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.6802, allocations: 153.7 kB / 0.6845 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 5.374e-05/0.6803, allocations: 29.3 kB / 0.6846 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001615/0.6804, allocations: 85.78 kB / 0.6847 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.6805, allocations: 31.17 kB / 0.6847 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.6805, allocations: 0 / 0.6847 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001478/0.6806, allocations: 41.05 kB / 0.6847 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.6807, allocations: 52.88 kB / 0.6848 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.641e-05/0.6807, allocations: 90.52 kB / 0.6849 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.6807, allocations: 25.7 kB / 0.6849 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 1.625e-05/0.6808, allocations: 85.23 kB / 0.685 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.97e-05/0.6808, allocations: 13.34 kB / 0.685 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/0.6808, allocations: 0 / 0.685 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.232e-05/0.6809, allocations: 315.6 kB / 0.6853 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.578e-05/0.6809, allocations: 4.094 kB / 0.6853 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.092e-05/0.6809, allocations: 1.219 kB / 0.6853 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.416e-05/0.6809, allocations: 3.281 kB / 0.6853 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.681, allocations: 0 / 0.6853 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.297e-05/0.681, allocations: 39.3 kB / 0.6853 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.6811, allocations: 9.375 kB / 0.6853 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.6811, allocations: 1.078 kB / 0.6853 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.6811, allocations: 9.203 kB / 0.6853 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.949e-05/0.6812, allocations: 2.594 kB / 0.6853 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.6812, allocations: 1.078 kB / 0.6853 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.865e-05/0.6812, allocations: 1.375 kB / 0.6853 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.6812, allocations: 5.156 kB / 0.6854 GB, free: 14.81 MB / 0.5261 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 5.989e-05/0.6813, allocations: 116.1 kB / 0.6855 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.246e-06/0.6813, allocations: 0 / 0.6855 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.6814, allocations: 47.16 kB / 0.6855 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.6815, allocations: 1.25 kB / 0.6855 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.6815, allocations: 0 / 0.6855 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.6815, allocations: 0.7969 kB / 0.6855 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.039e-05/0.6816, allocations: 155.2 kB / 0.6857 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.6816, allocations: 0.6094 kB / 0.6857 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.469e-05/0.6816, allocations: 4.859 kB / 0.6857 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.6816, allocations: 0 / 0.6857 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.6817, allocations: 0 / 0.6857 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.6817, allocations: 1.984 kB / 0.6857 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6817, allocations: 7.969 kB / 0.6857 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.305e-05/0.6818, allocations: 65.11 kB / 0.6857 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.386e-05/0.6818, allocations: 82.19 kB / 0.6858 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.6818, allocations: 2.109 kB / 0.6858 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.519e-05/0.6819, allocations: 0 / 0.6858 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.753e-05/0.6819, allocations: 2.328 kB / 0.6858 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.6819, allocations: 1.156 kB / 0.6858 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 1.551e-05/0.6819, allocations: 79.31 kB / 0.6859 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.5e-07/0.6819, allocations: 1.031 kB / 0.6859 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002489/0.6822, allocations: 3.344 kB / 0.6859 GB, free: 14.2 MB / 0.5261 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.0003372/0.6825, allocations: 0.612 MB / 0.6865 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 9.591e-05/0.6827, allocations: 10.92 kB / 0.6865 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.6827, allocations: 0 / 0.6865 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 2.369e-05/0.6827, allocations: 4.766 kB / 0.6865 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000105/0.6828, allocations: 1.031 kB / 0.6865 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003063/0.6831, allocations: 116.2 kB / 0.6866 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.6833, allocations: 0.6735 MB / 0.6873 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 2.38e-05/0.6833, allocations: 2.391 kB / 0.6873 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.139e-05/0.6833, allocations: 13.97 kB / 0.6873 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of SimCode: time 9.82e-07/0.6834, allocations: 4 kB / 0.6873 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.7047, allocations: 0.865 MB / 0.6881 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002207/0.7049, allocations: 191 kB / 0.6883 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.211, allocations: 3.656 kB / 0.6883 GB, free: 12.32 MB / 0.5261 GB