Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/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_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.693/1.693, allocations: 297.8 MB / 313.7 MB, free: 152 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009952/0.0009952, allocations: 184.5 kB / 384.6 MB, free: 10.89 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.2 MB / 0.6626 GB, free: 4.355 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008397/0.0008396, allocations: 92.97 kB / 0.7808 GB, free: 50.43 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004031, allocations: 12 kB / 0.9088 GB, free: 2.91 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7513/0.7517, allocations: 120.3 MB / 1.026 GB, free: 55.87 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2221/0.9739, allocations: 141.5 MB / 1.164 GB, free: 2.035 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.9742, allocations: 72.16 kB / 1.165 GB, free: 1.977 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.002678/0.9769, allocations: 0.9447 MB / 1.165 GB, free: 1.23 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.454e-06/0.9769, allocations: 0 / 1.165 GB, free: 1.23 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.9769, allocations: 1.938 kB / 1.165 GB, free: 1.23 MB / 0.7292 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.0003802/0.9773, allocations: 348.9 kB / 1.166 GB, free: 0.8516 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.9774, allocations: 8.031 kB / 1.166 GB, free: 0.8438 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.042e-05/0.9774, allocations: 7.781 kB / 1.166 GB, free: 0.8398 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.9775, allocations: 171.5 kB / 1.166 GB, free: 0.6367 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.9776, allocations: 2.781 kB / 1.166 GB, free: 0.6367 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.275e-05/0.9776, allocations: 6.641 kB / 1.166 GB, free: 0.6328 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.9778, allocations: 60.61 kB / 1.166 GB, free: 0.5781 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.9778, allocations: 1.078 kB / 1.166 GB, free: 0.5781 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.9778, allocations: 7.938 kB / 1.166 GB, free: 0.5703 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.9778, allocations: 1.688 kB / 1.166 GB, free: 0.5703 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.978, allocations: 52.08 kB / 1.166 GB, free: 0.5352 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004289/0.9785, allocations: 277.7 kB / 1.166 GB, free: 240 kB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.9788, allocations: 68.38 kB / 1.166 GB, free: 176 kB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.239e-05/0.9789, allocations: 30.08 kB / 1.166 GB, free: 148 kB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.979, allocations: 87.41 kB / 1.167 GB, free: 44 kB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.979, allocations: 32.28 kB / 1.167 GB, free: 4 kB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.163e-06/0.979, allocations: 0 / 1.167 GB, free: 4 kB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0005287/0.9795, allocations: 119.4 kB / 1.167 GB, free: 15.91 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.9796, allocations: 52.28 kB / 1.167 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.26e-05/0.9797, allocations: 108.6 kB / 1.167 GB, free: 15.74 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.9797, allocations: 27.17 kB / 1.167 GB, free: 15.71 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.9798, allocations: 92.7 kB / 1.167 GB, free: 15.62 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.9798, allocations: 4.609 kB / 1.167 GB, free: 15.62 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-06/0.9798, allocations: 4 kB / 1.167 GB, free: 15.62 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.98, allocations: 312.2 kB / 1.167 GB, free: 15.3 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.801e-05/0.9801, allocations: 26.59 kB / 1.167 GB, free: 15.29 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.335e-05/0.9802, allocations: 27.72 kB / 1.167 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.9804, allocations: 49.8 kB / 1.167 GB, free: 15.23 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.5e-05/0.9804, allocations: 3.938 kB / 1.167 GB, free: 15.22 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002229/0.9806, allocations: 90.94 kB / 1.167 GB, free: 15.14 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.9807, allocations: 8.938 kB / 1.167 GB, free: 15.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.9807, allocations: 0.75 kB / 1.167 GB, free: 15.14 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.9807, allocations: 0 / 1.167 GB, free: 15.14 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.154e-05/0.9808, allocations: 12.17 kB / 1.167 GB, free: 15.13 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.9808, allocations: 5.688 kB / 1.167 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.057e-05/0.9809, allocations: 12.02 kB / 1.167 GB, free: 15.12 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.9809, allocations: 0 / 1.167 GB, free: 15.12 MB / 0.7448 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 9.846e-05/0.981, allocations: 121 kB / 1.168 GB, free: 15 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/0.981, allocations: 4.562 kB / 1.168 GB, free: 14.99 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003136/0.9813, allocations: 94.72 kB / 1.168 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.9813, allocations: 1.031 kB / 1.168 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.9814, allocations: 0.6562 kB / 1.168 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.9814, allocations: 0.75 kB / 1.168 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.9816, allocations: 169.5 kB / 1.168 GB, free: 14.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.9816, allocations: 2.219 kB / 1.168 GB, free: 14.7 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.601e-05/0.9817, allocations: 15.61 kB / 1.168 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.9817, allocations: 0 / 1.168 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-06/0.9817, allocations: 3.141 kB / 1.168 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.9817, allocations: 0.75 kB / 1.168 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.9817, allocations: 0 / 1.168 GB, free: 14.69 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.982, allocations: 179.9 kB / 1.168 GB, free: 14.52 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.982, allocations: 86.94 kB / 1.168 GB, free: 14.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.9821, allocations: 0.7969 kB / 1.168 GB, free: 14.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.308e-05/0.9822, allocations: 7.594 kB / 1.168 GB, free: 14.41 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.9822, allocations: 14.56 kB / 1.168 GB, free: 14.4 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-06/0.9822, allocations: 0.5156 kB / 1.168 GB, free: 14.4 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.302e-05/0.9823, allocations: 81.62 kB / 1.168 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9823, allocations: 0 / 1.168 GB, free: 14.32 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002167/0.9825, allocations: 16.97 kB / 1.168 GB, free: 14.3 MB / 0.7448 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.0001955/0.9827, allocations: 117.5 kB / 1.168 GB, free: 14.18 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002357/0.983, allocations: 48.33 kB / 1.168 GB, free: 14.15 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.983, allocations: 8 kB / 1.168 GB, free: 14.14 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.9831, allocations: 26.33 kB / 1.168 GB, free: 14.12 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.9834, allocations: 13.2 kB / 1.168 GB, free: 14.11 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003649/0.9837, allocations: 121.7 kB / 1.169 GB, free: 13.97 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.9841, allocations: 0.6763 MB / 1.169 GB, free: 13.27 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.666e-05/0.9841, allocations: 8.609 kB / 1.169 GB, free: 13.26 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.637e-05/0.9841, allocations: 8.047 kB / 1.169 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of SimCode: time 2.51e-07/0.9841, allocations: 0 / 1.169 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of Templates: time 0.003184/0.9873, allocations: 0.5978 MB / 1.17 GB, free: 12.93 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)