Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.28/2.28, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001514/0.001514, allocations: 183.4 kB / 325.6 MB, free: 2.836 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.44/2.44, allocations: 205.4 MB / 0.5766 GB, free: 20.74 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 88.41 kB / 0.6811 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007267/0.0007267, allocations: 11.97 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2244, allocations: 106.3 MB / 0.8989 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2146/0.439, allocations: 130.8 MB / 1.027 GB, free: 14.47 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4394, allocations: 75.95 kB / 1.027 GB, free: 14.39 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00151/0.4409, allocations: 0.5201 MB / 1.027 GB, free: 13.87 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.124e-06/0.441, allocations: 0 / 1.027 GB, free: 13.87 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.441, allocations: 0 / 1.027 GB, free: 13.87 MB / 0.6823 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.0002922/0.4413, allocations: 312.8 kB / 1.028 GB, free: 13.52 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.4413, allocations: 8.031 kB / 1.028 GB, free: 13.51 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.4414, allocations: 8 kB / 1.028 GB, free: 13.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.4415, allocations: 171 kB / 1.028 GB, free: 13.3 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.4415, allocations: 0 / 1.028 GB, free: 13.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.4415, allocations: 0 / 1.028 GB, free: 13.3 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.4416, allocations: 33.7 kB / 1.028 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.4417, allocations: 0 / 1.028 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.4417, allocations: 0 / 1.028 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4417, allocations: 3.938 kB / 1.028 GB, free: 13.25 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.377e-05/0.4417, allocations: 11.92 kB / 1.028 GB, free: 13.24 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.4419, allocations: 153.6 kB / 1.028 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 6.152e-05/0.442, allocations: 22.61 kB / 1.028 GB, free: 13.01 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001671/0.4422, allocations: 81.09 kB / 1.028 GB, free: 12.91 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.4422, allocations: 34.62 kB / 1.028 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/0.4422, allocations: 0 / 1.028 GB, free: 12.87 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0001682/0.4424, allocations: 49.53 kB / 1.028 GB, free: 12.82 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.4425, allocations: 51.53 kB / 1.028 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.043e-05/0.4425, allocations: 89 kB / 1.028 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.4426, allocations: 25.7 kB / 1.028 GB, free: 12.63 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.732e-05/0.4426, allocations: 84.14 kB / 1.028 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.4426, allocations: 4 kB / 1.028 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-06/0.4426, allocations: 0 / 1.028 GB, free: 12.54 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4428, allocations: 310.8 kB / 1.029 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.422e-05/0.4428, allocations: 0 / 1.029 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.345e-05/0.4429, allocations: 4 kB / 1.029 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.373e-05/0.4429, allocations: 4.062 kB / 1.029 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.4429, allocations: 3.953 kB / 1.029 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.155e-05/0.443, allocations: 49.61 kB / 1.029 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.443, allocations: 8 kB / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.443, allocations: 0 / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.4431, allocations: 0 / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.138e-05/0.4431, allocations: 4 kB / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.473e-06/0.4432, allocations: 0 / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.4432, allocations: 0 / 1.029 GB, free: 12.15 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.4432, allocations: 0 / 1.029 GB, free: 12.15 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 9.329e-05/0.4433, allocations: 117.8 kB / 1.029 GB, free: 12.02 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.4433, allocations: 15.89 kB / 1.029 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.4435, allocations: 32.83 kB / 1.029 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.4435, allocations: 11.92 kB / 1.029 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4435, allocations: 0 / 1.029 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.4435, allocations: 0 / 1.029 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.4437, allocations: 153.6 kB / 1.029 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4437, allocations: 0 / 1.029 GB, free: 11.76 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.4437, allocations: 11.98 kB / 1.029 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.4437, allocations: 0 / 1.029 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.4437, allocations: 3.984 kB / 1.029 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.4438, allocations: 4 kB / 1.029 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4438, allocations: 0 / 1.029 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/0.4439, allocations: 57.14 kB / 1.029 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.171e-05/0.444, allocations: 81.09 kB / 1.029 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.444, allocations: 3.953 kB / 1.029 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.736e-05/0.444, allocations: 8.031 kB / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.208e-05/0.4441, allocations: 4 kB / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.4441, allocations: 0 / 1.029 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.505e-05/0.4441, allocations: 75.28 kB / 1.029 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.61e-07/0.4441, allocations: 3.938 kB / 1.029 GB, free: 11.47 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002416/0.4444, allocations: 8 kB / 1.029 GB, free: 11.46 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.0001898/0.4446, allocations: 107.2 kB / 1.029 GB, free: 11.35 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 8.439e-05/0.4447, allocations: 8 kB / 1.029 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4447, allocations: 3.938 kB / 1.029 GB, free: 11.34 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 2.171e-05/0.4447, allocations: 8 kB / 1.029 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001023/0.4448, allocations: 0 / 1.029 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002205/0.4451, allocations: 87.22 kB / 1.029 GB, free: 11.22 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.4454, allocations: 0.6731 MB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.155e-05/0.4454, allocations: 4 kB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.422e-05/0.4455, allocations: 11.38 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of SimCode: time 7.51e-07/0.4455, allocations: 4.125 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of Templates: time 0.002663/0.4482, allocations: 300 kB / 1.03 GB, free: 10.21 MB / 0.6823 GB