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 4.896/4.896, allocations: 0.5623 GB / 0.5769 GB, free: 3.375 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002424/0.002423, allocations: 362.8 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.242/4.242, allocations: 410.7 MB / 1.112 GB, free: 147.9 MB / 0.5886 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001706/0.001706, allocations: 184.1 kB / 1.225 GB, free: 35.99 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004945/0.0004947, allocations: 15.98 kB / 1.348 GB, free: 121.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1556, allocations: 115.2 MB / 1.461 GB, free: 6.613 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0005857/0.1562, allocations: 325.8 kB / 1.461 GB, free: 6.285 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0001911/0.1565, allocations: 41.56 kB / 1.461 GB, free: 6.246 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.338e-05/0.1565, allocations: 0 / 1.461 GB, free: 6.246 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.223e-05/0.1565, allocations: 0 / 1.461 GB, free: 6.246 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 5.287e-06/0.1565, allocations: 0 / 1.461 GB, free: 6.246 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001465/0.1567, allocations: 11.98 kB / 1.461 GB, free: 6.234 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.108e-05/0.1567, allocations: 3.984 kB / 1.461 GB, free: 6.23 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.116e-05/0.1568, allocations: 0 / 1.461 GB, free: 6.23 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.34e-05/0.1568, allocations: 4 kB / 1.461 GB, free: 6.227 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 3.147e-05/0.1568, allocations: 0 / 1.461 GB, free: 6.227 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 8.043e-06/0.1569, allocations: 3.938 kB / 1.461 GB, free: 6.223 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.557e-05/0.1569, allocations: 15.98 kB / 1.461 GB, free: 6.207 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.2e-06/0.1569, allocations: 3.938 kB / 1.461 GB, free: 6.203 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 1.79e-05/0.157, allocations: 25.7 kB / 1.461 GB, free: 6.172 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 4.895e-05/0.157, allocations: 4 kB / 1.461 GB, free: 6.168 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.357e-06/0.157, allocations: 0 / 1.461 GB, free: 6.168 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.296e-06/0.157, allocations: 0 / 1.461 GB, free: 6.168 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.441e-06/0.1571, allocations: 0 / 1.461 GB, free: 6.168 MB / 0.6042 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.0001967/0.1573, allocations: 311.4 kB / 1.461 GB, free: 5.816 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.1573, allocations: 8.031 kB / 1.461 GB, free: 5.809 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.382e-05/0.1573, allocations: 4 kB / 1.461 GB, free: 5.805 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.666e-05/0.1574, allocations: 171 kB / 1.462 GB, free: 5.598 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.1574, allocations: 4 kB / 1.462 GB, free: 5.594 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.898e-06/0.1575, allocations: 0 / 1.462 GB, free: 5.594 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.424e-05/0.1575, allocations: 33.69 kB / 1.462 GB, free: 5.555 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.427e-06/0.1576, allocations: 0 / 1.462 GB, free: 5.555 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.328e-06/0.1576, allocations: 0 / 1.462 GB, free: 5.555 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.083e-06/0.1576, allocations: 0 / 1.462 GB, free: 5.555 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.682e-05/0.1576, allocations: 7.938 kB / 1.462 GB, free: 5.547 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001052/0.1578, allocations: 157.6 kB / 1.462 GB, free: 5.344 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.53e-05/0.1578, allocations: 22.61 kB / 1.462 GB, free: 5.312 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.1578, allocations: 8.859 kB / 1.462 GB, free: 5.301 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001391/0.158, allocations: 85.16 kB / 1.462 GB, free: 5.199 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.398e-05/0.158, allocations: 34.55 kB / 1.462 GB, free: 5.156 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 1.928e-06/0.158, allocations: 0 / 1.462 GB, free: 5.156 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001262/0.1582, allocations: 41.73 kB / 1.462 GB, free: 5.109 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.315e-05/0.1582, allocations: 55.44 kB / 1.462 GB, free: 5.043 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.203e-05/0.1582, allocations: 97.8 kB / 1.462 GB, free: 4.938 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.478e-06/0.1582, allocations: 25.7 kB / 1.462 GB, free: 4.906 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.277e-05/0.1583, allocations: 80.14 kB / 1.462 GB, free: 4.824 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.1583, allocations: 3.906 kB / 1.462 GB, free: 4.82 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.13e-06/0.1583, allocations: 0 / 1.462 GB, free: 4.82 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.719e-05/0.1584, allocations: 314.8 kB / 1.463 GB, free: 4.504 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.567e-05/0.1584, allocations: 8 kB / 1.463 GB, free: 4.496 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.969e-06/0.1584, allocations: 7.938 kB / 1.463 GB, free: 4.488 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.171e-05/0.1584, allocations: 4 kB / 1.463 GB, free: 4.484 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.752e-06/0.1584, allocations: 3.953 kB / 1.463 GB, free: 4.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.064e-05/0.1585, allocations: 41.62 kB / 1.463 GB, free: 4.434 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.1586, allocations: 4 kB / 1.463 GB, free: 4.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.334e-06/0.1586, allocations: 0 / 1.463 GB, free: 4.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1586, allocations: 0 / 1.463 GB, free: 4.43 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.71e-05/0.1586, allocations: 4 kB / 1.463 GB, free: 4.426 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.173e-06/0.1587, allocations: 0 / 1.463 GB, free: 4.426 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.081e-05/0.1587, allocations: 12.36 kB / 1.463 GB, free: 4.414 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.266e-06/0.1587, allocations: 4 kB / 1.463 GB, free: 4.41 MB / 0.6042 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.754e-05/0.1588, allocations: 109.8 kB / 1.463 GB, free: 4.293 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/0.1588, allocations: 3.953 kB / 1.463 GB, free: 4.289 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.86e-05/0.1589, allocations: 48.75 kB / 1.463 GB, free: 4.238 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.068e-06/0.1589, allocations: 0 / 1.463 GB, free: 4.238 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.921e-06/0.1589, allocations: 0 / 1.463 GB, free: 4.238 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.559e-06/0.1589, allocations: 0 / 1.463 GB, free: 4.238 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.287e-05/0.159, allocations: 149.7 kB / 1.463 GB, free: 4.043 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.898e-06/0.159, allocations: 4.031 kB / 1.463 GB, free: 4.039 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.026e-05/0.159, allocations: 7.953 kB / 1.463 GB, free: 4.031 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.863e-06/0.1591, allocations: 0 / 1.463 GB, free: 4.031 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-06/0.1591, allocations: 0 / 1.463 GB, free: 4.031 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.099e-06/0.1591, allocations: 0 / 1.463 GB, free: 4.031 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.81e-06/0.1591, allocations: 0 / 1.463 GB, free: 4.031 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.079e-05/0.1592, allocations: 61.12 kB / 1.463 GB, free: 3.953 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.707e-05/0.1592, allocations: 85.14 kB / 1.463 GB, free: 3.852 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.1592, allocations: 7.953 kB / 1.463 GB, free: 3.844 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.689e-05/0.1592, allocations: 4 kB / 1.463 GB, free: 3.84 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.975e-05/0.1593, allocations: 3.984 kB / 1.463 GB, free: 3.836 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-06/0.1593, allocations: 0 / 1.463 GB, free: 3.836 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.567e-05/0.1593, allocations: 83.22 kB / 1.463 GB, free: 3.754 MB / 0.6042 GB Notification: Performance of sort global known variables: time 7.02e-07/0.1593, allocations: 0 / 1.463 GB, free: 3.754 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002427/0.1596, allocations: 4 kB / 1.463 GB, free: 3.75 MB / 0.6042 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.0001394/0.1597, allocations: 107.7 kB / 1.463 GB, free: 3.637 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 7.504e-05/0.1598, allocations: 7.984 kB / 1.463 GB, free: 3.629 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1598, allocations: 7.938 kB / 1.463 GB, free: 3.621 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 1.981e-05/0.1599, allocations: 8 kB / 1.463 GB, free: 3.613 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001584/0.16, allocations: 3.938 kB / 1.463 GB, free: 3.609 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001576/0.1602, allocations: 82.42 kB / 1.463 GB, free: 3.508 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.597e-05/0.1603, allocations: 0.6731 MB / 1.464 GB, free: 2.809 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 1.74e-05/0.1603, allocations: 8.062 kB / 1.464 GB, free: 2.801 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.48e-05/0.1604, allocations: 11.44 kB / 1.464 GB, free: 2.789 MB / 0.6042 GB Notification: Performance of SimCode: time 1.316e-06/0.1604, allocations: 0 / 1.464 GB, free: 2.789 MB / 0.6042 GB Notification: Performance of Templates: time 0.002424/0.1628, allocations: 305.2 kB / 1.464 GB, free: 2.492 MB / 0.6042 GB