Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.992/4.992, allocations: 0.5623 GB / 0.5775 GB, free: 3.332 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002564/0.002564, allocations: 354.8 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.298/4.298, allocations: 410.7 MB / 1.113 GB, free: 147.8 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001749/0.001749, allocations: 168.3 kB / 1.226 GB, free: 35.98 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004949/0.0004951, allocations: 13.59 kB / 1.349 GB, free: 121.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2121, allocations: 115.3 MB / 1.461 GB, free: 6.602 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.007/1.219, allocations: 137.1 MB / 1.595 GB, free: 4.594 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003325/1.219, allocations: 79.95 kB / 1.595 GB, free: 4.547 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.001703/1.221, allocations: 0.5183 MB / 1.596 GB, free: 4.062 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.695e-06/1.221, allocations: 0 / 1.596 GB, free: 4.062 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 6.171e-06/1.221, allocations: 4 kB / 1.596 GB, free: 4.059 MB / 0.6667 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.000297/1.221, allocations: 316 kB / 1.596 GB, free: 3.711 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/1.221, allocations: 12.09 kB / 1.596 GB, free: 3.699 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.042e-05/1.221, allocations: 0 / 1.596 GB, free: 3.699 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/1.221, allocations: 165.8 kB / 1.596 GB, free: 3.5 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/1.222, allocations: 0.625 kB / 1.596 GB, free: 3.5 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/1.222, allocations: 0 / 1.596 GB, free: 3.5 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.945e-05/1.222, allocations: 41.62 kB / 1.596 GB, free: 3.453 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/1.222, allocations: 0 / 1.596 GB, free: 3.453 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-06/1.222, allocations: 0 / 1.596 GB, free: 3.453 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/1.222, allocations: 0 / 1.596 GB, free: 3.453 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.583e-05/1.222, allocations: 10.62 kB / 1.596 GB, free: 3.445 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/1.222, allocations: 157.3 kB / 1.597 GB, free: 3.246 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 5.091e-05/1.222, allocations: 18.61 kB / 1.597 GB, free: 3.219 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.22e-05/1.222, allocations: 16.3 kB / 1.597 GB, free: 3.203 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001567/1.222, allocations: 81.09 kB / 1.597 GB, free: 3.105 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/1.222, allocations: 40.69 kB / 1.597 GB, free: 3.059 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=2): time 2.144e-06/1.222, allocations: 0 / 1.597 GB, free: 3.059 MB / 0.6667 GB Notification: Performance of matching and sorting (n=2): time 0.0001484/1.222, allocations: 36.58 kB / 1.597 GB, free: 3.02 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/1.222, allocations: 51.41 kB / 1.597 GB, free: 2.957 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.142e-05/1.222, allocations: 93.84 kB / 1.597 GB, free: 2.855 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/1.223, allocations: 25.83 kB / 1.597 GB, free: 2.824 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 3.481e-05/1.223, allocations: 84.14 kB / 1.597 GB, free: 2.738 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/1.223, allocations: 7.844 kB / 1.597 GB, free: 2.734 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/1.223, allocations: 0 / 1.597 GB, free: 2.734 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001975/1.223, allocations: 314.8 kB / 1.597 GB, free: 18.42 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.506e-05/1.223, allocations: 0 / 1.597 GB, free: 18.42 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.163e-05/1.223, allocations: 4 kB / 1.597 GB, free: 18.41 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.522e-05/1.223, allocations: 0 / 1.597 GB, free: 18.41 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/1.223, allocations: 7.891 kB / 1.597 GB, free: 18.41 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.185e-05/1.223, allocations: 45.19 kB / 1.597 GB, free: 18.36 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/1.223, allocations: 8 kB / 1.597 GB, free: 18.35 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/1.223, allocations: 3.938 kB / 1.597 GB, free: 18.35 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/1.223, allocations: 0 / 1.597 GB, free: 18.35 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.039e-05/1.223, allocations: 5.375 kB / 1.597 GB, free: 18.34 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/1.223, allocations: 0 / 1.597 GB, free: 18.34 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.814e-05/1.223, allocations: 0 / 1.597 GB, free: 18.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/1.223, allocations: 0 / 1.597 GB, free: 18.34 MB / 0.6823 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 7.495e-05/1.223, allocations: 109.2 kB / 1.597 GB, free: 18.23 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.17e-05/1.223, allocations: 15.97 kB / 1.597 GB, free: 18.21 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/1.223, allocations: 40.27 kB / 1.597 GB, free: 18.18 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/1.223, allocations: 0 / 1.597 GB, free: 18.18 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/1.223, allocations: 4 kB / 1.597 GB, free: 18.17 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/1.223, allocations: 0 / 1.597 GB, free: 18.17 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.627e-05/1.224, allocations: 146.9 kB / 1.598 GB, free: 17.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/1.224, allocations: 0 / 1.598 GB, free: 17.98 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.528e-05/1.224, allocations: 7.953 kB / 1.598 GB, free: 17.97 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/1.224, allocations: 0 / 1.598 GB, free: 17.97 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/1.224, allocations: 0 / 1.598 GB, free: 17.97 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/1.224, allocations: 4.031 kB / 1.598 GB, free: 17.97 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/1.224, allocations: 4 kB / 1.598 GB, free: 17.96 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.155e-05/1.224, allocations: 70.55 kB / 1.598 GB, free: 17.89 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.635e-05/1.224, allocations: 77.11 kB / 1.598 GB, free: 17.79 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/1.224, allocations: 15.88 kB / 1.598 GB, free: 17.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.525e-05/1.224, allocations: 0 / 1.598 GB, free: 17.78 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/1.224, allocations: 4 kB / 1.598 GB, free: 17.77 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/1.224, allocations: 4.031 kB / 1.598 GB, free: 17.77 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.486e-05/1.224, allocations: 75.28 kB / 1.598 GB, free: 17.7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.51e-07/1.224, allocations: 0 / 1.598 GB, free: 17.7 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002391/1.224, allocations: 7.938 kB / 1.598 GB, free: 17.69 MB / 0.6823 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.000173/1.224, allocations: 115.3 kB / 1.598 GB, free: 17.57 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 7.379e-05/1.224, allocations: 8 kB / 1.598 GB, free: 17.56 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/1.224, allocations: 0 / 1.598 GB, free: 17.56 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 2.023e-05/1.225, allocations: 8.062 kB / 1.598 GB, free: 17.55 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/1.225, allocations: 5.219 kB / 1.598 GB, free: 17.55 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001755/1.225, allocations: 86.44 kB / 1.598 GB, free: 17.45 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/1.225, allocations: 0.6731 MB / 1.599 GB, free: 16.75 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.792e-05/1.225, allocations: 7.891 kB / 1.599 GB, free: 16.74 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.691e-05/1.225, allocations: 7.438 kB / 1.599 GB, free: 16.73 MB / 0.6823 GB Notification: Performance of SimCode: time 8.12e-07/1.225, allocations: 0 / 1.599 GB, free: 16.73 MB / 0.6823 GB Notification: Performance of Templates: time 0.002573/1.228, allocations: 304.2 kB / 1.599 GB, free: 16.45 MB / 0.6823 GB