Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.322/2.322, allocations: 251.1 MB / 266.1 MB, free: 11.64 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.001516/0.001515, allocations: 175.2 kB / 325.6 MB, free: 2.844 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.452/2.452, allocations: 205.4 MB / 0.5766 GB, free: 21.16 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.001121/0.00112, allocations: 90.31 kB / 0.6811 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006189/0.000619, allocations: 16.05 kB / 0.7951 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2006, allocations: 106.3 MB / 0.8989 GB, free: 65.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2656/0.4663, allocations: 131.8 MB / 1.028 GB, free: 13.98 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.4666, allocations: 71.95 kB / 1.028 GB, free: 13.91 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 0.0038/0.4704, allocations: 0.9332 MB / 1.029 GB, free: 12.97 MB / 0.6824 GB Notification: Performance of FrontEnd: time 1.994e-06/0.4704, allocations: 0 / 1.029 GB, free: 12.97 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 1.306e-05/0.4705, allocations: 4 kB / 1.029 GB, free: 12.97 MB / 0.6824 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.0004988/0.471, allocations: 347.2 kB / 1.029 GB, free: 12.58 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.471, allocations: 16.03 kB / 1.029 GB, free: 12.57 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.075e-05/0.4711, allocations: 0 / 1.029 GB, free: 12.57 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.4712, allocations: 175 kB / 1.029 GB, free: 12.36 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.4713, allocations: 0 / 1.029 GB, free: 12.36 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.4713, allocations: 4 kB / 1.029 GB, free: 12.35 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.4716, allocations: 65.66 kB / 1.029 GB, free: 12.28 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.4716, allocations: 0 / 1.029 GB, free: 12.28 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.4716, allocations: 4 kB / 1.029 GB, free: 12.28 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.4716, allocations: 0 / 1.029 GB, free: 12.28 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003273/0.472, allocations: 51.95 kB / 1.029 GB, free: 12.23 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005795/0.4725, allocations: 288.8 kB / 1.029 GB, free: 11.89 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004974/0.4731, allocations: 66.47 kB / 1.03 GB, free: 11.82 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001401/0.4732, allocations: 81.17 kB / 1.03 GB, free: 11.72 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.4733, allocations: 34.56 kB / 1.03 GB, free: 11.68 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=3): time 1.483e-06/0.4733, allocations: 3.938 kB / 1.03 GB, free: 11.68 MB / 0.6824 GB Notification: Performance of matching and sorting (n=3): time 0.0006456/0.4739, allocations: 113.7 kB / 1.03 GB, free: 11.56 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.474, allocations: 55.41 kB / 1.03 GB, free: 11.49 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.622e-05/0.4741, allocations: 96.95 kB / 1.03 GB, free: 11.39 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.4741, allocations: 25.7 kB / 1.03 GB, free: 11.36 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 4.998e-05/0.4742, allocations: 84.12 kB / 1.03 GB, free: 11.27 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.4742, allocations: 7.844 kB / 1.03 GB, free: 11.27 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-06/0.4742, allocations: 4 kB / 1.03 GB, free: 11.26 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4744, allocations: 314.8 kB / 1.03 GB, free: 10.95 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.4745, allocations: 27.98 kB / 1.03 GB, free: 10.92 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.4747, allocations: 23.97 kB / 1.03 GB, free: 10.89 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.4749, allocations: 19.98 kB / 1.03 GB, free: 10.88 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4749, allocations: 4 kB / 1.03 GB, free: 10.87 MB / 0.6824 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003898/0.4753, allocations: 89.55 kB / 1.03 GB, free: 10.78 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4754, allocations: 10.19 kB / 1.03 GB, free: 10.77 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.4754, allocations: 3.938 kB / 1.03 GB, free: 10.77 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.4754, allocations: 0 / 1.03 GB, free: 10.77 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.4755, allocations: 15.98 kB / 1.03 GB, free: 10.75 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4756, allocations: 4 kB / 1.03 GB, free: 10.75 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.946e-05/0.4757, allocations: 4 kB / 1.03 GB, free: 10.74 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.4757, allocations: 3.953 kB / 1.03 GB, free: 10.74 MB / 0.6824 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 () * Number of clocked 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 9.844e-05/0.4758, allocations: 117.8 kB / 1.031 GB, free: 10.61 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.4759, allocations: 0 / 1.031 GB, free: 10.61 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/0.4763, allocations: 93.14 kB / 1.031 GB, free: 10.51 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.4763, allocations: 0.5625 kB / 1.031 GB, free: 10.51 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.4763, allocations: 0 / 1.031 GB, free: 10.51 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.4764, allocations: 0 / 1.031 GB, free: 10.51 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002173/0.4766, allocations: 165.6 kB / 1.031 GB, free: 10.3 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.4766, allocations: 0 / 1.031 GB, free: 10.3 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001373/0.4768, allocations: 27.92 kB / 1.031 GB, free: 10.27 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4768, allocations: 0 / 1.031 GB, free: 10.27 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.4768, allocations: 3.984 kB / 1.031 GB, free: 10.27 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4768, allocations: 0 / 1.031 GB, free: 10.27 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4768, allocations: 3.984 kB / 1.031 GB, free: 10.27 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.4773, allocations: 183.4 kB / 1.031 GB, free: 10.07 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.4773, allocations: 85.09 kB / 1.031 GB, free: 9.969 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.4774, allocations: 7.938 kB / 1.031 GB, free: 9.961 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.4775, allocations: 4 kB / 1.031 GB, free: 9.957 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.4776, allocations: 11.98 kB / 1.031 GB, free: 9.945 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.4776, allocations: 0 / 1.031 GB, free: 9.945 MB / 0.6824 GB Notification: Performance of sorting global known variables: time 4.538e-05/0.4777, allocations: 87.27 kB / 1.031 GB, free: 9.859 MB / 0.6824 GB Notification: Performance of sort global known variables: time 3.91e-07/0.4777, allocations: 0 / 1.031 GB, free: 9.859 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.0003151/0.478, allocations: 23.88 kB / 1.031 GB, free: 9.836 MB / 0.6824 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 () * Number of clocked 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.0001908/0.4782, allocations: 108.2 kB / 1.031 GB, free: 9.723 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.00038/0.4786, allocations: 51.95 kB / 1.031 GB, free: 9.672 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4786, allocations: 0 / 1.031 GB, free: 9.672 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.000179/0.4788, allocations: 31.97 kB / 1.031 GB, free: 9.641 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.479, allocations: 11.89 kB / 1.031 GB, free: 9.629 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003578/0.4794, allocations: 120.7 kB / 1.032 GB, free: 9.48 MB / 0.6824 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.4797, allocations: 0.6848 MB / 1.032 GB, free: 8.77 MB / 0.6824 GB Notification: Performance of simCode: alias equations: time 5.216e-05/0.4798, allocations: 11.92 kB / 1.032 GB, free: 8.758 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.452e-05/0.4798, allocations: 7.438 kB / 1.032 GB, free: 8.75 MB / 0.6824 GB Notification: Performance of SimCode: time 6.11e-07/0.4798, allocations: 0 / 1.032 GB, free: 8.75 MB / 0.6824 GB Notification: Performance of Templates: time 0.003387/0.4832, allocations: 0.5811 MB / 1.033 GB, free: 8.172 MB / 0.6824 GB