Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.759/2.759, allocations: 287.9 MB / 302.9 MB, free: 8.207 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001441/0.001441, allocations: 179 kB / 371.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.189/2.189, allocations: 205.4 MB / 0.6301 GB, free: 10.39 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009985/0.0009983, allocations: 97.11 kB / 0.7434 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009892/0.0009897, allocations: 11.16 kB / 0.8662 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.1943, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001517/0.1959, allocations: 1.216 MB / 0.9799 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003005/0.1962, allocations: 116.6 kB / 0.98 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.747e-05/0.1963, allocations: 4 kB / 0.9801 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.315e-05/0.1963, allocations: 0 / 0.9801 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.43e-05/0.1963, allocations: 3.938 kB / 0.9801 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.1965, allocations: 23.91 kB / 0.9801 GB, free: 26.81 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 5.109e-05/0.1966, allocations: 15.98 kB / 0.9801 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 7.767e-05/0.1967, allocations: 11.98 kB / 0.9801 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 3.48e-05/0.1967, allocations: 15.92 kB / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.31e-05/0.1968, allocations: 7.984 kB / 0.9801 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.1968, allocations: 0 / 0.9801 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.767e-05/0.1968, allocations: 8 kB / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.1969, allocations: 7.938 kB / 0.9801 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.242e-05/0.1969, allocations: 33.69 kB / 0.9802 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.111e-05/0.197, allocations: 15.95 kB / 0.9802 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.843e-06/0.197, allocations: 4 kB / 0.9802 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.933e-06/0.197, allocations: 0 / 0.9802 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.458e-06/0.197, allocations: 4 kB / 0.9802 GB, free: 26.68 MB / 0.6198 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.0004017/0.1974, allocations: 347.5 kB / 0.9805 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1975, allocations: 12.02 kB / 0.9805 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.1975, allocations: 8 kB / 0.9805 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.629e-05/0.1976, allocations: 167 kB / 0.9807 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.1977, allocations: 4 kB / 0.9807 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.1977, allocations: 0 / 0.9807 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1979, allocations: 69.61 kB / 0.9808 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.621e-06/0.1979, allocations: 3.938 kB / 0.9808 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.1979, allocations: 0 / 0.9808 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.436e-06/0.198, allocations: 0 / 0.9808 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.1982, allocations: 55.95 kB / 0.9808 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003561/0.1986, allocations: 268.8 kB / 0.9811 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003711/0.199, allocations: 66.55 kB / 0.9812 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001085/0.1991, allocations: 81.19 kB / 0.9812 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.1991, allocations: 34.56 kB / 0.9813 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 2.286e-06/0.1991, allocations: 0 / 0.9813 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004655/0.1996, allocations: 109.8 kB / 0.9814 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.496e-05/0.1997, allocations: 51.41 kB / 0.9814 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.122e-05/0.1997, allocations: 101.8 kB / 0.9815 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.1997, allocations: 29.7 kB / 0.9815 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.157e-05/0.1998, allocations: 84.12 kB / 0.9816 GB, free: 25 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.1998, allocations: 7.844 kB / 0.9816 GB, free: 25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.225e-06/0.1998, allocations: 8 kB / 0.9816 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.431e-05/0.1999, allocations: 318.8 kB / 0.9819 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.2, allocations: 23.92 kB / 0.982 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.2001, allocations: 23.97 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.2003, allocations: 27.98 kB / 0.982 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.668e-06/0.2003, allocations: 0 / 0.982 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002729/0.2006, allocations: 81.66 kB / 0.9821 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2006, allocations: 11.98 kB / 0.9821 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.524e-06/0.2006, allocations: 4 kB / 0.9821 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2006, allocations: 0 / 0.9821 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.2008, allocations: 11.98 kB / 0.9821 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.56e-06/0.2008, allocations: 7.984 kB / 0.9821 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.519e-05/0.2009, allocations: 7.906 kB / 0.9821 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.811e-06/0.2009, allocations: 0 / 0.9821 GB, free: 24.46 MB / 0.6198 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,rea2Int.y) * 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 6.893e-05/0.201, allocations: 125.7 kB / 0.9823 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.872e-05/0.201, allocations: 0 / 0.9823 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000317/0.2014, allocations: 93.14 kB / 0.9823 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.2014, allocations: 0 / 0.9823 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.066e-06/0.2014, allocations: 3.938 kB / 0.9823 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2014, allocations: 4 kB / 0.9824 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00017/0.2016, allocations: 173.5 kB / 0.9825 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.548e-06/0.2016, allocations: 0 / 0.9825 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.2017, allocations: 15.98 kB / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.828e-06/0.2017, allocations: 0 / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.815e-06/0.2017, allocations: 0 / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.897e-06/0.2018, allocations: 4 kB / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.359e-06/0.2018, allocations: 0 / 0.9825 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.2021, allocations: 187.4 kB / 0.9827 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.329e-05/0.2021, allocations: 89 kB / 0.9828 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.2022, allocations: 0 / 0.9828 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.2023, allocations: 4 kB / 0.9828 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.2024, allocations: 11.98 kB / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.437e-06/0.2024, allocations: 0 / 0.9828 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.086e-05/0.2024, allocations: 83.7 kB / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.68e-07/0.2024, allocations: 0 / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003363/0.2028, allocations: 8 kB / 0.9829 GB, free: 23.58 MB / 0.6198 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,rea2Int.y) * 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.0001389/0.2029, allocations: 103.4 kB / 0.983 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000277/0.2032, allocations: 67.88 kB / 0.9831 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2032, allocations: 0 / 0.9831 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.2034, allocations: 27.97 kB / 0.9831 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.2036, allocations: 7.953 kB / 0.9831 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002988/0.2039, allocations: 121.6 kB / 0.9832 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.2041, allocations: 0.6848 MB / 0.9839 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.244e-05/0.2041, allocations: 4 kB / 0.9839 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.048e-05/0.2042, allocations: 7.438 kB / 0.9839 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of SimCode: time 1.391e-06/0.2042, allocations: 0 / 0.9839 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of Templates: time 0.003417/0.2076, allocations: 0.5987 MB / 0.9845 GB, free: 21.91 MB / 0.6198 GB