Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.521/2.521, allocations: 287.9 MB / 302.9 MB, free: 8.375 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.001419/0.001419, allocations: 170.2 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.213/2.213, allocations: 205.4 MB / 0.6301 GB, free: 10.36 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.001006/0.001005, allocations: 90.97 kB / 0.7434 GB, free: 6.379 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007453/0.0007456, allocations: 12.38 kB / 0.8662 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.198, allocations: 115.3 MB / 0.9788 GB, free: 28.17 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0005779/0.1986, allocations: 325.8 kB / 0.9791 GB, free: 27.84 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0001911/0.1988, allocations: 41.56 kB / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.097e-06/0.1989, allocations: 0 / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.1989, allocations: 0 / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.639e-06/0.1989, allocations: 0 / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001475/0.1991, allocations: 8 kB / 0.9791 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 2.823e-05/0.1991, allocations: 3.984 kB / 0.9791 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 3.572e-05/0.1991, allocations: 0 / 0.9791 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.14e-05/0.1992, allocations: 8 kB / 0.9791 GB, free: 27.78 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.112e-05/0.1992, allocations: 0 / 0.9791 GB, free: 27.78 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 9.156e-06/0.1992, allocations: 0 / 0.9791 GB, free: 27.78 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.297e-05/0.1993, allocations: 11.98 kB / 0.9791 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.085e-06/0.1993, allocations: 3.938 kB / 0.9791 GB, free: 27.77 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 1.62e-05/0.1993, allocations: 33.58 kB / 0.9792 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 4.708e-05/0.1994, allocations: 4 kB / 0.9792 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.363e-06/0.1994, allocations: 0 / 0.9792 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.868e-06/0.1994, allocations: 0 / 0.9792 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.761e-06/0.1994, allocations: 0 / 0.9792 GB, free: 27.72 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001884/0.1996, allocations: 315.4 kB / 0.9795 GB, free: 27.37 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.1996, allocations: 12.02 kB / 0.9795 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.97e-05/0.1997, allocations: 0 / 0.9795 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.088e-05/0.1997, allocations: 167 kB / 0.9797 GB, free: 27.15 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.2e-06/0.1998, allocations: 4 kB / 0.9797 GB, free: 27.15 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.1998, allocations: 0 / 0.9797 GB, free: 27.15 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.19e-05/0.1999, allocations: 33.69 kB / 0.9797 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.1999, allocations: 0 / 0.9797 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.996e-06/0.1999, allocations: 0 / 0.9797 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.185e-06/0.1999, allocations: 0 / 0.9797 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.14e-05/0.2, allocations: 11.94 kB / 0.9797 GB, free: 27.1 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001028/0.2001, allocations: 153.6 kB / 0.9798 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.166e-05/0.2001, allocations: 18.61 kB / 0.9799 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001293/0.2003, allocations: 81.17 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.2003, allocations: 38.55 kB / 0.98 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.992e-06/0.2003, allocations: 0 / 0.98 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001267/0.2005, allocations: 49.62 kB / 0.98 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.919e-05/0.2005, allocations: 51.41 kB / 0.9801 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.389e-05/0.2005, allocations: 93.86 kB / 0.9802 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.764e-06/0.2005, allocations: 25.7 kB / 0.9802 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.411e-05/0.2006, allocations: 84.12 kB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.444e-05/0.2006, allocations: 3.906 kB / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.2006, allocations: 0 / 0.9803 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.825e-05/0.2007, allocations: 318.8 kB / 0.9806 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.209e-05/0.2007, allocations: 128 / 0.9806 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.915e-06/0.2007, allocations: 4 kB / 0.9806 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.656e-05/0.2007, allocations: 8 kB / 0.9806 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.956e-06/0.2007, allocations: 3.938 kB / 0.9806 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.125e-05/0.2008, allocations: 45.58 kB / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2008, allocations: 4 kB / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.14e-06/0.2009, allocations: 4 kB / 0.9806 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.2009, allocations: 0 / 0.9806 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.593e-05/0.2009, allocations: 0 / 0.9806 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.077e-06/0.201, allocations: 4 kB / 0.9806 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.912e-05/0.201, allocations: 4.375 kB / 0.9807 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.201, allocations: 0 / 0.9807 GB, free: 25.98 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,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 4.803e-05/0.2011, allocations: 115.3 kB / 0.9808 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.2011, allocations: 7.891 kB / 0.9808 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.538e-05/0.2012, allocations: 44.81 kB / 0.9808 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.057e-06/0.2012, allocations: 0 / 0.9808 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2012, allocations: 4 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.921e-06/0.2012, allocations: 4 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.4e-05/0.2013, allocations: 149.7 kB / 0.981 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.747e-06/0.2013, allocations: 3.938 kB / 0.981 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.047e-05/0.2013, allocations: 4 kB / 0.981 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.326e-06/0.2014, allocations: 3.953 kB / 0.981 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-06/0.2014, allocations: 0 / 0.981 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.932e-06/0.2014, allocations: 0 / 0.981 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.687e-06/0.2014, allocations: 0 / 0.981 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.05e-05/0.2015, allocations: 65.12 kB / 0.981 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.566e-05/0.2015, allocations: 81.14 kB / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.2015, allocations: 3.953 kB / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.573e-05/0.2015, allocations: 0 / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.519e-05/0.2016, allocations: 7.984 kB / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-06/0.2016, allocations: 0 / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.541e-05/0.2016, allocations: 79.28 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6.64e-07/0.2016, allocations: 0 / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000242/0.2019, allocations: 4 kB / 0.9812 GB, free: 25.32 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,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.0001211/0.202, allocations: 107.2 kB / 0.9813 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 6.707e-05/0.2021, allocations: 8 kB / 0.9813 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.116e-06/0.2021, allocations: 3.938 kB / 0.9813 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.883e-05/0.2021, allocations: 7.984 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.45e-05/0.2022, allocations: 4 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001482/0.2024, allocations: 74.77 kB / 0.9814 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.985e-05/0.2025, allocations: 0.677 MB / 0.9821 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.44e-05/0.2025, allocations: 4.125 kB / 0.9821 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.345e-05/0.2026, allocations: 7.438 kB / 0.9821 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of SimCode: time 1.347e-06/0.2026, allocations: 4 kB / 0.9821 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of Templates: time 0.002336/0.2049, allocations: 304.9 kB / 0.9824 GB, free: 24.07 MB / 0.6198 GB