Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.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 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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002493/0.002493, allocations: 361 kB / 16.58 MB, free: 5.57 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.563/1.563, allocations: 165.8 MB / 183.1 MB, free: 5.453 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.66/3.66, allocations: 410.8 MB / 0.6001 GB, free: 15.06 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.001755/0.001755, allocations: 187.5 kB / 0.6668 GB, free: 6.902 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004598/0.00046, allocations: 20 kB / 0.7429 GB, free: 8.93 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4071, allocations: 67.43 MB / 0.8087 GB, free: 28.77 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1651/0.5723, allocations: 98.54 MB / 0.905 GB, free: 10.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.5727, allocations: 71.97 kB / 0.905 GB, free: 10.03 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003817/0.5765, allocations: 0.9391 MB / 0.9059 GB, free: 9.086 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5765, allocations: 0 / 0.9059 GB, free: 9.086 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.5766, allocations: 0 / 0.9059 GB, free: 9.086 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000478/0.5771, allocations: 351.2 kB / 0.9063 GB, free: 8.695 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.5771, allocations: 12.03 kB / 0.9063 GB, free: 8.684 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.012e-05/0.5772, allocations: 3.938 kB / 0.9063 GB, free: 8.68 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.5773, allocations: 159.1 kB / 0.9064 GB, free: 8.484 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.5773, allocations: 8 kB / 0.9065 GB, free: 8.477 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.639e-05/0.5774, allocations: 0 / 0.9065 GB, free: 8.477 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.5776, allocations: 61.66 kB / 0.9065 GB, free: 8.41 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.5777, allocations: 4 kB / 0.9065 GB, free: 8.406 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.5777, allocations: 7.953 kB / 0.9065 GB, free: 8.398 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.5777, allocations: 0 / 0.9065 GB, free: 8.398 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003355/0.578, allocations: 47.95 kB / 0.9066 GB, free: 8.352 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005764/0.5786, allocations: 284.8 kB / 0.9068 GB, free: 8.023 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.5791, allocations: 69.47 kB / 0.9069 GB, free: 7.949 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.5793, allocations: 36.89 kB / 0.9069 GB, free: 7.91 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001584/0.5795, allocations: 85.06 kB / 0.907 GB, free: 7.809 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.5796, allocations: 34.56 kB / 0.9071 GB, free: 7.766 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.843e-06/0.5796, allocations: 0 / 0.9071 GB, free: 7.766 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0006307/0.5802, allocations: 113.6 kB / 0.9072 GB, free: 7.648 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.5803, allocations: 55.41 kB / 0.9072 GB, free: 7.582 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.127e-05/0.5804, allocations: 101.8 kB / 0.9073 GB, free: 7.473 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.5804, allocations: 25.7 kB / 0.9073 GB, free: 7.441 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.935e-05/0.5804, allocations: 84.14 kB / 0.9074 GB, free: 7.355 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.303e-05/0.5805, allocations: 11.91 kB / 0.9074 GB, free: 7.344 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.501e-06/0.5805, allocations: 0 / 0.9074 GB, free: 7.344 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.5806, allocations: 310.8 kB / 0.9077 GB, free: 7.031 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.5808, allocations: 27.97 kB / 0.9078 GB, free: 7.004 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.581, allocations: 23.98 kB / 0.9078 GB, free: 6.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.5812, allocations: 24.45 kB / 0.9078 GB, free: 6.957 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5812, allocations: 3.938 kB / 0.9078 GB, free: 6.953 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004052/0.5816, allocations: 97.56 kB / 0.9079 GB, free: 6.852 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.5816, allocations: 7.953 kB / 0.9079 GB, free: 6.844 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.5816, allocations: 0 / 0.9079 GB, free: 6.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.5817, allocations: 0 / 0.9079 GB, free: 6.844 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.5818, allocations: 15.98 kB / 0.9079 GB, free: 6.828 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.5818, allocations: 0 / 0.9079 GB, free: 6.828 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.5819, allocations: 7.906 kB / 0.9079 GB, free: 6.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.616e-05/0.582, allocations: 11.97 kB / 0.9079 GB, free: 6.809 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.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 9.712e-05/0.5821, allocations: 113.8 kB / 0.908 GB, free: 6.688 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.5821, allocations: 4 kB / 0.9081 GB, free: 6.684 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004381/0.5826, allocations: 93.03 kB / 0.9081 GB, free: 6.586 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.5826, allocations: 7.938 kB / 0.9081 GB, free: 6.578 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.5826, allocations: 4 kB / 0.9082 GB, free: 6.574 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.5826, allocations: 0 / 0.9082 GB, free: 6.574 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.5828, allocations: 165.6 kB / 0.9083 GB, free: 6.363 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5829, allocations: 0 / 0.9083 GB, free: 6.363 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.583, allocations: 15.98 kB / 0.9083 GB, free: 6.348 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.583, allocations: 0 / 0.9083 GB, free: 6.348 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.583, allocations: 0 / 0.9083 GB, free: 6.348 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.583, allocations: 3.953 kB / 0.9083 GB, free: 6.344 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5831, allocations: 0 / 0.9083 GB, free: 6.344 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.5835, allocations: 183.5 kB / 0.9085 GB, free: 6.148 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.5836, allocations: 81.02 kB / 0.9086 GB, free: 6.051 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.5836, allocations: 0 / 0.9086 GB, free: 6.051 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.5838, allocations: 15.98 kB / 0.9086 GB, free: 6.035 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/0.5838, allocations: 11.89 kB / 0.9086 GB, free: 6.023 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.5838, allocations: 4 kB / 0.9086 GB, free: 6.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.596e-05/0.5839, allocations: 79.27 kB / 0.9087 GB, free: 5.941 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5839, allocations: 0 / 0.9087 GB, free: 5.941 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003019/0.5842, allocations: 23.94 kB / 0.9087 GB, free: 5.918 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.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.0001856/0.5844, allocations: 103.2 kB / 0.9088 GB, free: 5.805 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003879/0.5848, allocations: 51.95 kB / 0.9089 GB, free: 5.754 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5848, allocations: 3.938 kB / 0.9089 GB, free: 5.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.585, allocations: 35.97 kB / 0.9089 GB, free: 5.715 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.5854, allocations: 4 kB / 0.9089 GB, free: 5.711 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000361/0.5858, allocations: 117.9 kB / 0.909 GB, free: 5.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.586, allocations: 0.6809 MB / 0.9097 GB, free: 4.863 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 5.386e-05/0.5861, allocations: 12 kB / 0.9097 GB, free: 4.852 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.686e-05/0.5862, allocations: 7.438 kB / 0.9097 GB, free: 4.844 MB / 458.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5862, allocations: 7.938 kB / 0.9097 GB, free: 4.836 MB / 458.7 MB Notification: Performance of Templates: time 0.003509/0.5897, allocations: 0.5809 MB / 0.9103 GB, free: 4.262 MB / 458.7 MB