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.235/2.235, allocations: 252.6 MB / 265.2 MB, free: 5.688 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00146/0.00146, allocations: 185.5 kB / 324.5 MB, free: 14.37 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.109/2.109, allocations: 205.4 MB / 0.5754 GB, free: 10.47 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.001611/0.001612, allocations: 100.5 kB / 0.6797 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.344e-05/3.363e-05, allocations: 4 kB / 0.7911 GB, free: 96.62 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1881, allocations: 106.2 MB / 0.8949 GB, free: 6.285 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8751/1.063, allocations: 131.7 MB / 1.023 GB, free: 2.801 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/1.064, allocations: 73.39 kB / 1.024 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003817/1.067, allocations: 0.9229 MB / 1.024 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.663e-06/1.067, allocations: 0 / 1.024 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.863e-06/1.068, allocations: 8 kB / 1.024 GB, free: 1.926 MB / 0.6355 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.0004616/1.068, allocations: 337.4 kB / 1.025 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/1.068, allocations: 12.03 kB / 1.025 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/1.068, allocations: 0 / 1.025 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/1.068, allocations: 171 kB / 1.025 GB, free: 1.336 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/1.068, allocations: 11.19 kB / 1.025 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/1.068, allocations: 0 / 1.025 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/1.068, allocations: 52.56 kB / 1.025 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/1.068, allocations: 4 kB / 1.025 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/1.068, allocations: 0 / 1.025 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.269e-06/1.068, allocations: 0 / 1.025 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.893e-05/1.069, allocations: 11.56 kB / 1.025 GB, free: 1.27 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005536/1.069, allocations: 290.6 kB / 1.025 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/1.07, allocations: 45.69 kB / 1.025 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.363e-05/1.07, allocations: 12.67 kB / 1.025 GB, free: 0.8906 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001344/1.07, allocations: 81.2 kB / 1.025 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/1.07, allocations: 37.16 kB / 1.025 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.593e-06/1.07, allocations: 4 kB / 1.025 GB, free: 0.7461 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0001972/1.07, allocations: 56.23 kB / 1.026 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/1.07, allocations: 59.3 kB / 1.026 GB, free: 0.6211 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.018e-05/1.07, allocations: 92.62 kB / 1.026 GB, free: 0.5273 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/1.07, allocations: 25.7 kB / 1.026 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.672e-05/1.07, allocations: 84.14 kB / 1.026 GB, free: 420 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/1.07, allocations: 11.58 kB / 1.026 GB, free: 412 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-06/1.07, allocations: 0 / 1.026 GB, free: 412 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.07, allocations: 314.8 kB / 1.026 GB, free: 88 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.671e-05/1.07, allocations: 11.75 kB / 1.026 GB, free: 80 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.339e-05/1.07, allocations: 11.31 kB / 1.026 GB, free: 72 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.7e-05/1.071, allocations: 4 kB / 1.026 GB, free: 68 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/1.071, allocations: 0 / 1.026 GB, free: 68 kB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001268/1.071, allocations: 52.28 kB / 1.026 GB, free: 16 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.071, allocations: 4 kB / 1.026 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/1.071, allocations: 7.938 kB / 1.026 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/1.071, allocations: 0 / 1.026 GB, free: 4 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/1.071, allocations: 18.22 kB / 1.026 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/1.071, allocations: 0 / 1.026 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/1.071, allocations: 15.95 kB / 1.026 GB, free: 15.97 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/1.071, allocations: 7.922 kB / 1.026 GB, free: 15.96 MB / 0.6511 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 () * 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 7.755e-05/1.071, allocations: 108.2 kB / 1.026 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.994e-05/1.071, allocations: 0 / 1.026 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001705/1.071, allocations: 52.19 kB / 1.026 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/1.071, allocations: 0 / 1.026 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/1.071, allocations: 3.984 kB / 1.026 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.892e-06/1.071, allocations: 8 kB / 1.026 GB, free: 15.79 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/1.072, allocations: 160.1 kB / 1.027 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/1.072, allocations: 0 / 1.027 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/1.072, allocations: 19.92 kB / 1.027 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/1.072, allocations: 0 / 1.027 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/1.072, allocations: 3.984 kB / 1.027 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/1.072, allocations: 3.984 kB / 1.027 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/1.072, allocations: 0 / 1.027 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/1.072, allocations: 150.5 kB / 1.027 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.367e-05/1.072, allocations: 84.86 kB / 1.027 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/1.072, allocations: 0.625 kB / 1.027 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/1.072, allocations: 11.98 kB / 1.027 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/1.072, allocations: 7.984 kB / 1.027 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/1.072, allocations: 0 / 1.027 GB, free: 15.29 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.81e-05/1.072, allocations: 86.64 kB / 1.027 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.81e-07/1.072, allocations: 4 kB / 1.027 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000295/1.073, allocations: 19.77 kB / 1.027 GB, free: 15.18 MB / 0.6511 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 () * 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.0001778/1.073, allocations: 105.1 kB / 1.027 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001272/1.073, allocations: 27.8 kB / 1.027 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.073, allocations: 0 / 1.027 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.284e-05/1.073, allocations: 11.69 kB / 1.027 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/1.073, allocations: 5.359 kB / 1.027 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002546/1.074, allocations: 72.23 kB / 1.027 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/1.074, allocations: 0.6848 MB / 1.028 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001015/1.074, allocations: 4.5 kB / 1.028 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.601e-05/1.074, allocations: 11.38 kB / 1.028 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of SimCode: time 1.172e-06/1.074, allocations: 0 / 1.028 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of Templates: time 0.003528/1.078, allocations: 0.5942 MB / 1.028 GB, free: 13.64 MB / 0.6511 GB