Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.726/1.726, allocations: 288.4 MB / 304.3 MB, free: 8.156 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.001092/0.001092, allocations: 177.6 kB / 372.9 MB, free: 10.15 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.366/1.366, allocations: 205.4 MB / 0.6317 GB, free: 9.895 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008444/0.0008446, allocations: 104.1 kB / 0.745 GB, free: 5.793 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004281/0.0004283, allocations: 14.25 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.2092, allocations: 115.3 MB / 0.9807 GB, free: 27.39 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6792/0.8884, allocations: 137.3 MB / 1.115 GB, free: 16.59 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.8887, allocations: 76.09 kB / 1.115 GB, free: 16.59 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001538/0.8903, allocations: 0.5183 MB / 1.115 GB, free: 32.27 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.455e-06/0.8903, allocations: 0 / 1.115 GB, free: 32.27 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.718e-06/0.8903, allocations: 3.531 kB / 1.115 GB, free: 32.27 MB / 0.698 GB 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.0002439/0.8906, allocations: 321.8 kB / 1.116 GB, free: 31.93 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.8906, allocations: 7.719 kB / 1.116 GB, free: 31.93 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.495e-05/0.8906, allocations: 0.9375 kB / 1.116 GB, free: 31.93 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.941e-05/0.8907, allocations: 167.5 kB / 1.116 GB, free: 31.73 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.8908, allocations: 4.219 kB / 1.116 GB, free: 31.73 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.8908, allocations: 384 / 1.116 GB, free: 31.73 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.388e-05/0.8909, allocations: 37.36 kB / 1.116 GB, free: 31.69 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.8909, allocations: 192 / 1.116 GB, free: 31.69 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.8909, allocations: 3.938 kB / 1.116 GB, free: 31.69 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.8909, allocations: 0 / 1.116 GB, free: 31.69 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.114e-05/0.8909, allocations: 7.125 kB / 1.116 GB, free: 31.69 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001257/0.8911, allocations: 145.8 kB / 1.116 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.076e-05/0.8911, allocations: 29.36 kB / 1.116 GB, free: 31.47 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.638e-05/0.8912, allocations: 10.02 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.8913, allocations: 88.09 kB / 1.116 GB, free: 31.37 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.8913, allocations: 30.56 kB / 1.116 GB, free: 31.33 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.8913, allocations: 0 / 1.116 GB, free: 31.33 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001346/0.8915, allocations: 44.02 kB / 1.116 GB, free: 31.29 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.8915, allocations: 54.55 kB / 1.116 GB, free: 31.23 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.673e-05/0.8916, allocations: 89.86 kB / 1.116 GB, free: 31.13 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.438e-06/0.8916, allocations: 25.7 kB / 1.116 GB, free: 31.1 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.692e-05/0.8916, allocations: 84.27 kB / 1.117 GB, free: 31.02 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.8916, allocations: 11.53 kB / 1.117 GB, free: 31.01 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-06/0.8917, allocations: 0 / 1.117 GB, free: 31.01 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.8918, allocations: 314.7 kB / 1.117 GB, free: 30.7 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.063e-05/0.8918, allocations: 3.938 kB / 1.117 GB, free: 30.69 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-06/0.8918, allocations: 0 / 1.117 GB, free: 30.69 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.846e-05/0.8918, allocations: 22.89 kB / 1.117 GB, free: 30.68 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.8919, allocations: 0 / 1.117 GB, free: 30.68 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.152e-05/0.8919, allocations: 41.39 kB / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.8919, allocations: 3.875 kB / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.8919, allocations: 0 / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.892, allocations: 7.078 kB / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.36e-05/0.892, allocations: 8.281 kB / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.892, allocations: 0 / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.451e-05/0.8921, allocations: 3.844 kB / 1.117 GB, free: 30.64 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.8921, allocations: 0 / 1.117 GB, free: 30.64 MB / 0.698 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,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 6.132e-05/0.8921, allocations: 105.8 kB / 1.117 GB, free: 30.52 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.78e-06/0.8921, allocations: 4.031 kB / 1.117 GB, free: 30.52 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.495e-05/0.8922, allocations: 48.77 kB / 1.117 GB, free: 30.48 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.8922, allocations: 3.984 kB / 1.117 GB, free: 30.48 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.8923, allocations: 2.391 kB / 1.117 GB, free: 30.48 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.8923, allocations: 3.844 kB / 1.117 GB, free: 30.48 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.093e-05/0.8923, allocations: 148.3 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.8923, allocations: 0 / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.039e-05/0.8924, allocations: 3.688 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.8924, allocations: 0 / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.8924, allocations: 3.938 kB / 1.117 GB, free: 30.29 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.8924, allocations: 7.969 kB / 1.117 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.8924, allocations: 3.875 kB / 1.117 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.99e-05/0.8925, allocations: 59.41 kB / 1.117 GB, free: 30.22 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.8925, allocations: 77.11 kB / 1.117 GB, free: 30.12 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.8925, allocations: 3.938 kB / 1.117 GB, free: 30.12 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.206e-05/0.8925, allocations: 3.938 kB / 1.117 GB, free: 30.12 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.627e-05/0.8926, allocations: 7.031 kB / 1.117 GB, free: 30.12 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.8926, allocations: 4.031 kB / 1.117 GB, free: 30.12 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.88e-05/0.8926, allocations: 78.09 kB / 1.117 GB, free: 30.04 MB / 0.698 GB Notification: Performance of sort global known variables: time 1e-07/0.8926, allocations: 3.938 kB / 1.117 GB, free: 30.04 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002066/0.8928, allocations: 3.844 kB / 1.117 GB, free: 30.04 MB / 0.698 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,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.0001518/0.893, allocations: 109.1 kB / 1.118 GB, free: 29.95 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 6.744e-05/0.8931, allocations: 14.62 kB / 1.118 GB, free: 29.95 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.8931, allocations: 0 / 1.118 GB, free: 29.95 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.372e-05/0.8931, allocations: 10.95 kB / 1.118 GB, free: 29.94 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.8932, allocations: 2.234 kB / 1.118 GB, free: 29.94 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001683/0.8934, allocations: 77.7 kB / 1.118 GB, free: 29.85 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.8936, allocations: 0.6757 MB / 1.118 GB, free: 29.15 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.196e-05/0.8936, allocations: 3.938 kB / 1.118 GB, free: 29.15 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.229e-05/0.8937, allocations: 11.28 kB / 1.118 GB, free: 29.14 MB / 0.698 GB Notification: Performance of SimCode: time 2e-07/0.8937, allocations: 0 / 1.118 GB, free: 29.14 MB / 0.698 GB Notification: Performance of Templates: time 0.001971/0.8956, allocations: 312.3 kB / 1.119 GB, free: 29.09 MB / 0.698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)