Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.732/1.732, allocations: 293 MB / 309 MB, free: 4.777 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009791/0.0009791, allocations: 176.6 kB / 378.7 MB, free: 1.016 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.4 MB / 0.6383 GB, free: 8.207 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007522/0.0007522, allocations: 93.45 kB / 0.7527 GB, free: 62.61 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.00036, allocations: 12 kB / 0.8768 GB, free: 10.44 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.2251, allocations: 116.4 MB / 0.9904 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5602/0.7854, allocations: 139.3 MB / 1.126 GB, free: 34.49 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001755/0.7856, allocations: 75.86 kB / 1.127 GB, free: 34.43 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.002152/0.7878, allocations: 0.9358 MB / 1.127 GB, free: 33.68 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.264e-06/0.7878, allocations: 0.9688 kB / 1.127 GB, free: 33.68 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.7878, allocations: 0 / 1.127 GB, free: 33.68 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.0002715/0.7881, allocations: 348.7 kB / 1.128 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.7881, allocations: 9.469 kB / 1.128 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.69e-05/0.7882, allocations: 12.89 kB / 1.128 GB, free: 33.29 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.488e-05/0.7882, allocations: 164.3 kB / 1.128 GB, free: 33.09 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.7882, allocations: 4.375 kB / 1.128 GB, free: 33.09 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.828e-06/0.7883, allocations: 1.656 kB / 1.128 GB, free: 33.09 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.7884, allocations: 69.83 kB / 1.128 GB, free: 33.02 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.7885, allocations: 192 / 1.128 GB, free: 33.02 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.7885, allocations: 3.938 kB / 1.128 GB, free: 33.02 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.7885, allocations: 1.328 kB / 1.128 GB, free: 33.02 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.7886, allocations: 46.31 kB / 1.128 GB, free: 32.98 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000358/0.789, allocations: 289.8 kB / 1.128 GB, free: 32.67 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.7893, allocations: 68.61 kB / 1.128 GB, free: 32.61 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.979e-05/0.7894, allocations: 36.34 kB / 1.128 GB, free: 32.57 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 9.03e-05/0.7895, allocations: 81.11 kB / 1.129 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.7895, allocations: 35.19 kB / 1.129 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.7895, allocations: 0 / 1.129 GB, free: 32.43 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0003395/0.7899, allocations: 115 kB / 1.129 GB, free: 32.34 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.084e-05/0.7899, allocations: 51.41 kB / 1.129 GB, free: 32.27 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.176e-05/0.79, allocations: 105.4 kB / 1.129 GB, free: 32.16 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.514e-06/0.79, allocations: 29.7 kB / 1.129 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 2.573e-05/0.79, allocations: 84.14 kB / 1.129 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.185e-05/0.79, allocations: 3.906 kB / 1.129 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-06/0.79, allocations: 4 kB / 1.129 GB, free: 32.04 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.334e-05/0.7901, allocations: 310.8 kB / 1.129 GB, free: 31.72 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.277e-05/0.7902, allocations: 27.08 kB / 1.129 GB, free: 31.7 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.397e-05/0.7903, allocations: 31.22 kB / 1.129 GB, free: 31.68 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.7904, allocations: 48.3 kB / 1.129 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.7904, allocations: 4.781 kB / 1.129 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001848/0.7906, allocations: 88.28 kB / 1.129 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.7906, allocations: 8 kB / 1.129 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.7907, allocations: 0 / 1.129 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.7907, allocations: 3.469 kB / 1.129 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.401e-05/0.7907, allocations: 11.47 kB / 1.129 GB, free: 31.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.7908, allocations: 8 kB / 1.129 GB, free: 31.53 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.479e-05/0.7908, allocations: 5.578 kB / 1.129 GB, free: 31.53 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.7908, allocations: 3.656 kB / 1.129 GB, free: 31.53 MB / 0.7292 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 5.101e-05/0.7909, allocations: 122.3 kB / 1.13 GB, free: 31.4 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.7909, allocations: 3.906 kB / 1.13 GB, free: 31.39 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002291/0.7912, allocations: 95.94 kB / 1.13 GB, free: 31.31 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.7912, allocations: 0 / 1.13 GB, free: 31.31 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.7912, allocations: 3.938 kB / 1.13 GB, free: 31.3 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.7912, allocations: 0 / 1.13 GB, free: 31.3 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.7913, allocations: 172.8 kB / 1.13 GB, free: 31.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.7913, allocations: 0.5 kB / 1.13 GB, free: 31.1 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.999e-05/0.7914, allocations: 20.27 kB / 1.13 GB, free: 31.08 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.7914, allocations: 0 / 1.13 GB, free: 31.08 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.7914, allocations: 0.5 kB / 1.13 GB, free: 31.08 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.7914, allocations: 0 / 1.13 GB, free: 31.08 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.7914, allocations: 0.5625 kB / 1.13 GB, free: 31.08 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.7916, allocations: 185.4 kB / 1.13 GB, free: 30.9 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.715e-05/0.7917, allocations: 86.11 kB / 1.13 GB, free: 30.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.232e-05/0.7917, allocations: 0 / 1.13 GB, free: 30.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-05/0.7918, allocations: 11.7 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.7918, allocations: 7.516 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.7918, allocations: 1.062 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 1.771e-05/0.7918, allocations: 80.03 kB / 1.13 GB, free: 30.71 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7918, allocations: 4 kB / 1.13 GB, free: 30.7 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002125/0.7921, allocations: 27.38 kB / 1.13 GB, free: 30.68 MB / 0.7292 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.0001096/0.7922, allocations: 99.25 kB / 1.13 GB, free: 30.57 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001994/0.7924, allocations: 61.78 kB / 1.13 GB, free: 30.53 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7924, allocations: 0.6562 kB / 1.13 GB, free: 30.53 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 8.733e-05/0.7925, allocations: 34.81 kB / 1.13 GB, free: 30.5 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.7927, allocations: 10.61 kB / 1.13 GB, free: 30.49 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002399/0.793, allocations: 118.1 kB / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.7931, allocations: 0.6767 MB / 1.131 GB, free: 29.66 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.879e-05/0.7931, allocations: 5.438 kB / 1.131 GB, free: 29.66 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.11e-05/0.7932, allocations: 7.438 kB / 1.131 GB, free: 29.66 MB / 0.7292 GB Notification: Performance of SimCode: time 2.4e-07/0.7932, allocations: 0 / 1.131 GB, free: 29.66 MB / 0.7292 GB Notification: Performance of Templates: time 0.002282/0.7955, allocations: 0.5965 MB / 1.132 GB, free: 29.32 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)