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.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadModel(Buildings): time 4.339/4.339, allocations: 433.4 MB / 440.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 4.13e-05/4.136e-05, allocations: 8 kB / 0.5325 GB, free: 1.867 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5547/0.5548, allocations: 98.71 MB / 0.6289 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2958/0.8507, allocations: 123.1 MB / 0.7492 GB, free: 4.422 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004199/0.8512, allocations: 79.94 kB / 0.7492 GB, free: 4.344 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.002257/0.8535, allocations: 0.5084 MB / 0.7497 GB, free: 3.832 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.781e-06/0.8535, allocations: 0 / 0.7497 GB, free: 3.832 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.908e-06/0.8535, allocations: 0 / 0.7497 GB, free: 3.832 MB / 0.6198 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.0004019/0.854, allocations: 310.6 kB / 0.75 GB, free: 3.484 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/0.854, allocations: 19.95 kB / 0.7501 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.8541, allocations: 0 / 0.7501 GB, free: 3.465 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001705/0.8543, allocations: 171 kB / 0.7502 GB, free: 3.258 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.8543, allocations: 4 kB / 0.7502 GB, free: 3.254 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.8544, allocations: 0 / 0.7502 GB, free: 3.254 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.375e-05/0.8545, allocations: 11.98 kB / 0.7502 GB, free: 3.242 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.992e-05/0.8546, allocations: 29.7 kB / 0.7503 GB, free: 3.207 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.8546, allocations: 0 / 0.7503 GB, free: 3.207 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.907e-06/0.8546, allocations: 0 / 0.7503 GB, free: 3.207 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.156e-05/0.8547, allocations: 0 / 0.7503 GB, free: 3.207 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002175/0.8549, allocations: 134.2 kB / 0.7504 GB, free: 3.039 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.072e-05/0.855, allocations: 30.55 kB / 0.7504 GB, free: 3 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.864e-05/0.8551, allocations: 8.922 kB / 0.7504 GB, free: 2.988 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002146/0.8553, allocations: 85.05 kB / 0.7505 GB, free: 2.887 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.8554, allocations: 30.56 kB / 0.7505 GB, free: 2.848 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 3.678e-06/0.8554, allocations: 0 / 0.7505 GB, free: 2.848 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0002298/0.8556, allocations: 41.69 kB / 0.7506 GB, free: 2.801 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.8557, allocations: 51.41 kB / 0.7506 GB, free: 2.738 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.738e-05/0.8558, allocations: 89.03 kB / 0.7507 GB, free: 2.645 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.832e-05/0.8559, allocations: 25.7 kB / 0.7507 GB, free: 2.613 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.354e-05/0.8559, allocations: 80.14 kB / 0.7508 GB, free: 2.531 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.856, allocations: 0 / 0.7508 GB, free: 2.531 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.493e-06/0.856, allocations: 0 / 0.7508 GB, free: 2.531 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001984/0.8562, allocations: 310.8 kB / 0.7511 GB, free: 2.219 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.893e-05/0.8563, allocations: 4 kB / 0.7511 GB, free: 2.215 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.364e-05/0.8563, allocations: 4 kB / 0.7511 GB, free: 2.211 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.375e-05/0.8564, allocations: 15.98 kB / 0.7511 GB, free: 2.195 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.915e-06/0.8564, allocations: 0 / 0.7511 GB, free: 2.195 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001767/0.8566, allocations: 41.56 kB / 0.7512 GB, free: 2.148 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.695e-05/0.8566, allocations: 4 kB / 0.7512 GB, free: 2.145 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.8567, allocations: 0 / 0.7512 GB, free: 2.145 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.8567, allocations: 3.938 kB / 0.7512 GB, free: 2.141 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.183e-05/0.8568, allocations: 4 kB / 0.7512 GB, free: 2.137 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.8569, allocations: 3.984 kB / 0.7512 GB, free: 2.133 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.262e-05/0.8569, allocations: 0 / 0.7512 GB, free: 2.133 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.8569, allocations: 4 kB / 0.7512 GB, free: 2.129 MB / 0.6198 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 0.0001092/0.8571, allocations: 105 kB / 0.7513 GB, free: 2.02 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.8571, allocations: 3.953 kB / 0.7513 GB, free: 2.016 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002008/0.8573, allocations: 49.38 kB / 0.7513 GB, free: 1.965 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.645e-06/0.8574, allocations: 0 / 0.7513 GB, free: 1.965 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.253e-06/0.8574, allocations: 0 / 0.7513 GB, free: 1.965 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.8574, allocations: 3.984 kB / 0.7514 GB, free: 1.961 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001556/0.8576, allocations: 126.2 kB / 0.7515 GB, free: 1.801 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.752e-06/0.8576, allocations: 0 / 0.7515 GB, free: 1.801 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.797e-05/0.8577, allocations: 0 / 0.7515 GB, free: 1.801 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.328e-06/0.8577, allocations: 12.02 kB / 0.7515 GB, free: 1.789 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.8577, allocations: 3.953 kB / 0.7515 GB, free: 1.785 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.8577, allocations: 0 / 0.7515 GB, free: 1.785 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.191e-06/0.8578, allocations: 0 / 0.7515 GB, free: 1.785 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001759/0.858, allocations: 57.14 kB / 0.7515 GB, free: 1.711 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.858, allocations: 81.09 kB / 0.7516 GB, free: 1.613 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.8581, allocations: 0 / 0.7516 GB, free: 1.613 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.093e-05/0.8581, allocations: 11.95 kB / 0.7516 GB, free: 1.602 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.8582, allocations: 7.969 kB / 0.7516 GB, free: 1.594 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.48e-06/0.8582, allocations: 0 / 0.7516 GB, free: 1.594 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.228e-05/0.8583, allocations: 79.22 kB / 0.7517 GB, free: 1.516 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.154e-06/0.8583, allocations: 0 / 0.7517 GB, free: 1.516 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004954/0.8588, allocations: 9.266 kB / 0.7517 GB, free: 1.508 MB / 0.6198 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.0002678/0.8591, allocations: 118.5 kB / 0.7518 GB, free: 1.383 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 9.489e-05/0.8592, allocations: 8 kB / 0.7518 GB, free: 1.375 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.996e-06/0.8593, allocations: 4.062 kB / 0.7518 GB, free: 1.371 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 3.117e-05/0.8593, allocations: 4 kB / 0.7518 GB, free: 1.367 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001685/0.8595, allocations: 0 / 0.7518 GB, free: 1.367 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002295/0.8598, allocations: 54.19 kB / 0.7519 GB, free: 1.293 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.8602, allocations: 0.6728 MB / 0.7526 GB, free: 0.5938 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.079e-05/0.8603, allocations: 4 kB / 0.7526 GB, free: 0.5898 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.511e-05/0.8603, allocations: 15.42 kB / 0.7526 GB, free: 0.5742 MB / 0.6198 GB Notification: Performance of SimCode: time 2.007e-06/0.8603, allocations: 0 / 0.7526 GB, free: 0.5742 MB / 0.6198 GB Notification: Performance of Templates: time 0.003788/0.8641, allocations: 299 kB / 0.7529 GB, free: 292 kB / 0.6198 GB