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.366/2.366, allocations: 253.1 MB / 260.6 MB, free: 7.523 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.001382/0.001382, allocations: 182.5 kB / 319.9 MB, free: 3.074 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.157/2.157, allocations: 205.6 MB / 0.5708 GB, free: 15.25 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.001078/0.001077, allocations: 102.2 kB / 0.6751 GB, free: 4.602 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.264e-05/2.262e-05, allocations: 4 kB / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2419, allocations: 106.3 MB / 0.8887 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9376/1.179, allocations: 131.9 MB / 1.018 GB, free: 5.355 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/1.18, allocations: 70.95 kB / 1.018 GB, free: 5.316 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003947/1.184, allocations: 0.9301 MB / 1.019 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.462e-06/1.184, allocations: 0 / 1.019 GB, free: 4.492 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.203e-06/1.184, allocations: 0 / 1.019 GB, free: 4.492 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.0004913/1.184, allocations: 345.8 kB / 1.019 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/1.184, allocations: 12.02 kB / 1.019 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.071e-05/1.184, allocations: 7.938 kB / 1.019 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/1.185, allocations: 167 kB / 1.019 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/1.185, allocations: 3.938 kB / 1.019 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/1.185, allocations: 4 kB / 1.019 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.446e-05/1.185, allocations: 14.31 kB / 1.019 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/1.185, allocations: 44.31 kB / 1.019 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/1.185, allocations: 0 / 1.019 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/1.185, allocations: 0 / 1.019 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.738e-06/1.185, allocations: 0 / 1.019 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005861/1.186, allocations: 271.7 kB / 1.019 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003438/1.186, allocations: 41.69 kB / 1.019 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.52e-05/1.186, allocations: 12.92 kB / 1.019 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000158/1.186, allocations: 81.19 kB / 1.019 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/1.186, allocations: 45.81 kB / 1.02 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 4.027e-06/1.186, allocations: 4.734 kB / 1.02 GB, free: 3.332 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002281/1.186, allocations: 45 kB / 1.02 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/1.187, allocations: 51.41 kB / 1.02 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.723e-05/1.187, allocations: 92.75 kB / 1.02 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/1.187, allocations: 25.7 kB / 1.02 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/1.187, allocations: 80.14 kB / 1.02 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.382e-05/1.187, allocations: 15.33 kB / 1.02 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-06/1.187, allocations: 0 / 1.02 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001373/1.187, allocations: 322.7 kB / 1.02 GB, free: 2.68 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.078e-05/1.187, allocations: 7.812 kB / 1.02 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.817e-05/1.187, allocations: 7.625 kB / 1.02 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.32e-05/1.187, allocations: 4 kB / 1.02 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.187, allocations: 0 / 1.02 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001517/1.187, allocations: 56.78 kB / 1.02 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/1.187, allocations: 8 kB / 1.02 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/1.187, allocations: 7.922 kB / 1.02 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/1.187, allocations: 0 / 1.02 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/1.187, allocations: 12 kB / 1.02 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/1.188, allocations: 7.984 kB / 1.02 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/1.188, allocations: 4 kB / 1.02 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/1.188, allocations: 0 / 1.02 GB, free: 2.574 MB / 0.6355 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 9.368e-05/1.188, allocations: 108.9 kB / 1.02 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/1.188, allocations: 0 / 1.02 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002053/1.188, allocations: 64.8 kB / 1.02 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/1.188, allocations: 0 / 1.02 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/1.188, allocations: 0 / 1.02 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/1.188, allocations: 0 / 1.02 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001995/1.188, allocations: 145.9 kB / 1.021 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/1.188, allocations: 0 / 1.021 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/1.188, allocations: 11.98 kB / 1.021 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/1.188, allocations: 4 kB / 1.021 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/1.188, allocations: 0 / 1.021 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/1.188, allocations: 1.938 kB / 1.021 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.188, allocations: 4 kB / 1.021 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/1.189, allocations: 142.9 kB / 1.021 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.864e-05/1.189, allocations: 89 kB / 1.021 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/1.189, allocations: 0 / 1.021 GB, free: 1.945 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/1.189, allocations: 4 kB / 1.021 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.752e-05/1.189, allocations: 11.64 kB / 1.021 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/1.189, allocations: 4 kB / 1.021 GB, free: 1.93 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.466e-05/1.189, allocations: 89.73 kB / 1.021 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.91e-07/1.189, allocations: 0 / 1.021 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003434/1.189, allocations: 26.92 kB / 1.021 GB, free: 1.82 MB / 0.6355 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.0002313/1.19, allocations: 105.1 kB / 1.021 GB, free: 1.707 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001254/1.19, allocations: 15.88 kB / 1.021 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.19, allocations: 0 / 1.021 GB, free: 1.695 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.068e-05/1.19, allocations: 15.17 kB / 1.021 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/1.19, allocations: 12.78 kB / 1.021 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003009/1.191, allocations: 75.25 kB / 1.021 GB, free: 1.582 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/1.191, allocations: 0.6807 MB / 1.022 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.048e-05/1.191, allocations: 0 / 1.022 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.511e-05/1.191, allocations: 15.42 kB / 1.022 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of SimCode: time 9.32e-07/1.191, allocations: 0 / 1.022 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of Templates: time 0.003517/1.195, allocations: 0.5563 MB / 1.022 GB, free: 320 kB / 0.6355 GB