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 4.878/4.878, allocations: 0.5623 GB / 0.5775 GB, free: 3.324 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.00256/0.00256, allocations: 353.5 kB / 0.6446 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.456/4.456, allocations: 410.7 MB / 1.113 GB, free: 6.016 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002563/0.002563, allocations: 187.5 kB / 1.226 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004997/0.0005002, allocations: 12 kB / 1.349 GB, free: 8.293 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7983/0.7988, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1965/0.9954, allocations: 138.1 MB / 1.596 GB, free: 146.1 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.9957, allocations: 72.88 kB / 1.596 GB, free: 146.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.003531/0.9992, allocations: 0.9308 MB / 1.597 GB, free: 145.1 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.874e-06/0.9993, allocations: 0.5938 kB / 1.597 GB, free: 145.1 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.9993, allocations: 4 kB / 1.597 GB, free: 145.1 MB / 0.8542 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.0004274/0.9997, allocations: 350.4 kB / 1.597 GB, free: 144.8 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.9998, allocations: 15.62 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.9998, allocations: 3.906 kB / 1.598 GB, free: 144.7 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.992e-05/0.9999, allocations: 168.9 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/1, allocations: 0 / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/1, allocations: 1.375 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002507/1, allocations: 70.16 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/1, allocations: 1.156 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/1, allocations: 4 kB / 1.598 GB, free: 144.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/1, allocations: 4 kB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003106/1.001, allocations: 54.36 kB / 1.598 GB, free: 144.4 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005241/1.001, allocations: 279.6 kB / 1.598 GB, free: 144.1 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005123/1.002, allocations: 64.92 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/1.002, allocations: 33.64 kB / 1.598 GB, free: 144 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000128/1.002, allocations: 81.86 kB / 1.598 GB, free: 143.9 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.845e-05/1.002, allocations: 31.28 kB / 1.598 GB, free: 143.8 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 2.785e-06/1.002, allocations: 0 / 1.598 GB, free: 143.8 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0006021/1.003, allocations: 118.7 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/1.003, allocations: 56.97 kB / 1.598 GB, free: 143.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.859e-05/1.003, allocations: 105.8 kB / 1.599 GB, free: 143.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/1.003, allocations: 25.7 kB / 1.599 GB, free: 143.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/1.003, allocations: 84.77 kB / 1.599 GB, free: 143.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.23e-05/1.003, allocations: 7.906 kB / 1.599 GB, free: 143.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-06/1.003, allocations: 1 kB / 1.599 GB, free: 143.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.551e-05/1.003, allocations: 317.6 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/1.003, allocations: 25.78 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/1.003, allocations: 25.3 kB / 1.599 GB, free: 143.1 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/1.003, allocations: 29.34 kB / 1.599 GB, free: 143 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/1.004, allocations: 0 / 1.599 GB, free: 143 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003582/1.004, allocations: 85.06 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/1.004, allocations: 4 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/1.004, allocations: 1.219 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/1.004, allocations: 0 / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/1.004, allocations: 22.7 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/1.004, allocations: 0 / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/1.004, allocations: 15.92 kB / 1.599 GB, free: 142.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/1.004, allocations: 3.953 kB / 1.599 GB, free: 142.9 MB / 0.8542 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 () * 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 7.409e-05/1.004, allocations: 111.4 kB / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/1.004, allocations: 7.906 kB / 1.599 GB, free: 142.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004018/1.005, allocations: 87.83 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.167e-06/1.005, allocations: 4 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/1.005, allocations: 0.6562 kB / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/1.005, allocations: 0 / 1.599 GB, free: 142.7 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001666/1.005, allocations: 164.9 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/1.005, allocations: 5.359 kB / 1.6 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/1.005, allocations: 15.92 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/1.005, allocations: 0 / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/1.005, allocations: 7.938 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/1.005, allocations: 0 / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.005, allocations: 4 kB / 1.6 GB, free: 142.4 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003886/1.006, allocations: 182.6 kB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/1.006, allocations: 77.11 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/1.006, allocations: 0.6875 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/1.006, allocations: 13.86 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/1.006, allocations: 4 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/1.006, allocations: 8 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.469e-05/1.006, allocations: 85.16 kB / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.51e-07/1.006, allocations: 0 / 1.6 GB, free: 142 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002926/1.006, allocations: 12.44 kB / 1.6 GB, free: 142 MB / 0.8542 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 () * 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.0001464/1.006, allocations: 105.2 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003719/1.007, allocations: 66.22 kB / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.007, allocations: 0 / 1.6 GB, free: 141.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001724/1.007, allocations: 29.95 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/1.007, allocations: 3.953 kB / 1.6 GB, free: 141.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003575/1.008, allocations: 126.4 kB / 1.6 GB, free: 141.7 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001359/1.008, allocations: 0.6848 MB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.929e-05/1.008, allocations: 1.312 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.63e-05/1.008, allocations: 11.44 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of SimCode: time 1.603e-06/1.008, allocations: 1.312 kB / 1.601 GB, free: 141 MB / 0.8542 GB Notification: Performance of Templates: time 0.003337/1.011, allocations: 0.5918 MB / 1.601 GB, free: 140.4 MB / 0.8542 GB