Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.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 IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002483/0.002489, allocations: 358.5 kB / 16.58 MB, free: 5.566 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.496/1.496, allocations: 165.8 MB / 183.1 MB, free: 5.375 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.732/3.732, allocations: 410.8 MB / 0.6001 GB, free: 15.05 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001724/0.001724, allocations: 203.4 kB / 0.6668 GB, free: 6.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005002/0.0005004, allocations: 16 kB / 0.7429 GB, free: 8.914 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4/0.4005, allocations: 67.44 MB / 0.8087 GB, free: 28.76 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1627/0.5633, allocations: 97.6 MB / 0.9041 GB, free: 11.03 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.5636, allocations: 79.95 kB / 0.9041 GB, free: 10.95 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001478/0.5651, allocations: 0.5162 MB / 0.9046 GB, free: 10.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5652, allocations: 0 / 0.9046 GB, free: 10.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.5652, allocations: 0 / 0.9046 GB, free: 10.43 MB / 458.7 MB 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.0002638/0.5654, allocations: 317.5 kB / 0.9049 GB, free: 10.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.5655, allocations: 8.031 kB / 0.9049 GB, free: 10.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.218e-05/0.5655, allocations: 0 / 0.9049 GB, free: 10.07 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.613e-05/0.5657, allocations: 159.1 kB / 0.9051 GB, free: 9.871 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.5657, allocations: 7.938 kB / 0.9051 GB, free: 9.863 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.106e-05/0.5657, allocations: 4 kB / 0.9051 GB, free: 9.859 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.5658, allocations: 37.67 kB / 0.9051 GB, free: 9.816 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.5658, allocations: 0 / 0.9051 GB, free: 9.816 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.5659, allocations: 7.953 kB / 0.9051 GB, free: 9.809 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.5659, allocations: 0 / 0.9051 GB, free: 9.809 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.549e-05/0.5659, allocations: 0 / 0.9051 GB, free: 9.809 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.5661, allocations: 153.7 kB / 0.9053 GB, free: 9.609 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.183e-05/0.5662, allocations: 26.55 kB / 0.9053 GB, free: 9.574 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.692e-05/0.5662, allocations: 8.922 kB / 0.9053 GB, free: 9.562 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.5664, allocations: 81.09 kB / 0.9054 GB, free: 9.465 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.5664, allocations: 38.56 kB / 0.9054 GB, free: 9.418 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.563e-06/0.5664, allocations: 0 / 0.9054 GB, free: 9.418 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001567/0.5666, allocations: 33.7 kB / 0.9055 GB, free: 9.379 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.5666, allocations: 55.36 kB / 0.9055 GB, free: 9.312 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.897e-05/0.5667, allocations: 93.98 kB / 0.9056 GB, free: 9.211 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.5667, allocations: 29.7 kB / 0.9056 GB, free: 9.176 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.382e-05/0.5668, allocations: 84.12 kB / 0.9057 GB, free: 9.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.2e-05/0.5669, allocations: 15.83 kB / 0.9057 GB, free: 9.074 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-06/0.5669, allocations: 0 / 0.9057 GB, free: 9.074 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.5671, allocations: 317.8 kB / 0.906 GB, free: 8.758 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.465e-05/0.5671, allocations: 0 / 0.906 GB, free: 8.758 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.528e-05/0.5671, allocations: 7.938 kB / 0.9061 GB, free: 8.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.121e-05/0.5672, allocations: 8.062 kB / 0.9061 GB, free: 8.742 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.5672, allocations: 0 / 0.9061 GB, free: 8.742 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.562e-05/0.5673, allocations: 37.69 kB / 0.9061 GB, free: 8.699 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.5673, allocations: 8 kB / 0.9061 GB, free: 8.691 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.5673, allocations: 0 / 0.9061 GB, free: 8.691 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.5673, allocations: 0 / 0.9061 GB, free: 8.691 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.853e-05/0.5674, allocations: 4 kB / 0.9061 GB, free: 8.688 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.5674, allocations: 0 / 0.9061 GB, free: 8.688 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.209e-05/0.5675, allocations: 3.953 kB / 0.9061 GB, free: 8.684 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.5675, allocations: 0 / 0.9061 GB, free: 8.684 MB / 458.7 MB 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 9.902e-05/0.5676, allocations: 117.9 kB / 0.9062 GB, free: 8.559 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.5676, allocations: 3.938 kB / 0.9062 GB, free: 8.555 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.5677, allocations: 40.81 kB / 0.9063 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.5678, allocations: 0 / 0.9063 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.5678, allocations: 0 / 0.9063 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.5678, allocations: 0 / 0.9063 GB, free: 8.512 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001269/0.5679, allocations: 153.6 kB / 0.9064 GB, free: 8.312 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.5679, allocations: 4 kB / 0.9064 GB, free: 8.309 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.368e-05/0.568, allocations: 0 / 0.9064 GB, free: 8.309 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.568, allocations: 4.031 kB / 0.9064 GB, free: 8.305 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.568, allocations: 4 kB / 0.9064 GB, free: 8.301 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.568, allocations: 4 kB / 0.9064 GB, free: 8.297 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.568, allocations: 0 / 0.9064 GB, free: 8.297 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.5682, allocations: 69.02 kB / 0.9065 GB, free: 8.211 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.594e-05/0.5682, allocations: 81.05 kB / 0.9066 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.5682, allocations: 0 / 0.9066 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.91e-05/0.5683, allocations: 8.016 kB / 0.9066 GB, free: 8.105 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.212e-05/0.5683, allocations: 4 kB / 0.9066 GB, free: 8.102 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-06/0.5683, allocations: 0 / 0.9066 GB, free: 8.102 MB / 458.7 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.5684, allocations: 75.28 kB / 0.9067 GB, free: 8.027 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5684, allocations: 0 / 0.9067 GB, free: 8.027 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002456/0.5686, allocations: 12 kB / 0.9067 GB, free: 8.016 MB / 458.7 MB 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.0001817/0.5688, allocations: 103.2 kB / 0.9068 GB, free: 7.906 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 9.173e-05/0.5689, allocations: 11.98 kB / 0.9068 GB, free: 7.895 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5689, allocations: 4.062 kB / 0.9068 GB, free: 7.891 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.508e-05/0.569, allocations: 7.938 kB / 0.9068 GB, free: 7.883 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/0.5692, allocations: 10.45 kB / 0.9068 GB, free: 7.875 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002253/0.5694, allocations: 82.66 kB / 0.9069 GB, free: 7.766 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.5697, allocations: 0.6731 MB / 0.9075 GB, free: 7.066 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.244e-05/0.5697, allocations: 0 / 0.9075 GB, free: 7.066 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.485e-05/0.5698, allocations: 15.36 kB / 0.9075 GB, free: 7.051 MB / 458.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5698, allocations: 3.938 kB / 0.9076 GB, free: 7.047 MB / 458.7 MB Notification: Performance of Templates: time 0.002691/0.5725, allocations: 300.3 kB / 0.9078 GB, free: 6.754 MB / 458.7 MB