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.4-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.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-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.4-maint.8.1.x/package.mo): time 1.706/1.706, allocations: 292.6 MB / 307.5 MB, free: 5.242 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.001199/0.001199, allocations: 179.6 kB / 377.1 MB, free: 1.535 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.719/1.719, allocations: 205.4 MB / 0.6367 GB, free: 8.562 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.0008805/0.0008805, allocations: 93.06 kB / 0.751 GB, free: 63.07 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003427, allocations: 12 kB / 0.8748 GB, free: 11.22 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2706, allocations: 116.3 MB / 0.9884 GB, free: 6.762 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.737/1.008, allocations: 139.2 MB / 1.124 GB, free: 35.5 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/1.008, allocations: 76.33 kB / 1.124 GB, free: 35.44 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.002538/1.01, allocations: 0.9292 MB / 1.125 GB, free: 34.7 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.913e-06/1.011, allocations: 0 / 1.125 GB, free: 34.7 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 6.342e-06/1.011, allocations: 0 / 1.125 GB, free: 34.7 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.0003551/1.011, allocations: 346.4 kB / 1.126 GB, free: 34.33 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/1.011, allocations: 14.11 kB / 1.126 GB, free: 34.32 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/1.011, allocations: 14.14 kB / 1.126 GB, free: 34.31 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.242e-05/1.011, allocations: 161 kB / 1.126 GB, free: 34.11 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/1.011, allocations: 0 / 1.126 GB, free: 34.11 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/1.011, allocations: 8 kB / 1.126 GB, free: 34.11 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/1.011, allocations: 69.02 kB / 1.126 GB, free: 34.05 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/1.011, allocations: 0 / 1.126 GB, free: 34.05 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/1.011, allocations: 0 / 1.126 GB, free: 34.05 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/1.011, allocations: 0 / 1.126 GB, free: 34.05 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/1.012, allocations: 58.3 kB / 1.126 GB, free: 34 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004016/1.012, allocations: 274.6 kB / 1.126 GB, free: 33.7 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/1.012, allocations: 67.81 kB / 1.126 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001028/1.012, allocations: 88.34 kB / 1.126 GB, free: 33.54 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.475e-05/1.012, allocations: 31.12 kB / 1.126 GB, free: 33.5 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/1.012, allocations: 3.938 kB / 1.126 GB, free: 33.5 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0003695/1.013, allocations: 115.4 kB / 1.126 GB, free: 33.39 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/1.013, allocations: 51.95 kB / 1.127 GB, free: 33.33 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.705e-05/1.013, allocations: 93.22 kB / 1.127 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 9.829e-06/1.013, allocations: 29.7 kB / 1.127 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 2.978e-05/1.013, allocations: 88.08 kB / 1.127 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.376e-05/1.013, allocations: 7.906 kB / 1.127 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/1.013, allocations: 0 / 1.127 GB, free: 33.11 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 4.915e-05/1.013, allocations: 322.2 kB / 1.127 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.6e-05/1.013, allocations: 19.56 kB / 1.127 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.782e-05/1.013, allocations: 30.61 kB / 1.127 GB, free: 32.75 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.514e-05/1.013, allocations: 27.08 kB / 1.127 GB, free: 32.73 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/1.013, allocations: 3.938 kB / 1.127 GB, free: 32.72 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001989/1.014, allocations: 84.25 kB / 1.127 GB, free: 32.64 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/1.014, allocations: 4 kB / 1.127 GB, free: 32.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/1.014, allocations: 0.5625 kB / 1.127 GB, free: 32.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/1.014, allocations: 4.656 kB / 1.127 GB, free: 32.64 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.224e-05/1.014, allocations: 11.56 kB / 1.127 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/1.014, allocations: 4.734 kB / 1.127 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.893e-05/1.014, allocations: 8 kB / 1.127 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/1.014, allocations: 0 / 1.127 GB, free: 32.62 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.328e-05/1.014, allocations: 121.2 kB / 1.127 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/1.014, allocations: 7.906 kB / 1.127 GB, free: 32.49 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002439/1.014, allocations: 93.02 kB / 1.127 GB, free: 32.41 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/1.014, allocations: 4 kB / 1.127 GB, free: 32.4 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/1.014, allocations: 3.656 kB / 1.127 GB, free: 32.4 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/1.014, allocations: 0.7031 kB / 1.127 GB, free: 32.4 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/1.014, allocations: 164.6 kB / 1.128 GB, free: 32.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/1.014, allocations: 0.5 kB / 1.128 GB, free: 32.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.565e-05/1.014, allocations: 11.38 kB / 1.128 GB, free: 32.19 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/1.014, allocations: 0 / 1.128 GB, free: 32.19 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/1.014, allocations: 5.656 kB / 1.128 GB, free: 32.19 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/1.014, allocations: 0 / 1.128 GB, free: 32.19 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/1.014, allocations: 3.938 kB / 1.128 GB, free: 32.18 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/1.015, allocations: 190.5 kB / 1.128 GB, free: 32 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.682e-05/1.015, allocations: 77.11 kB / 1.128 GB, free: 31.9 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/1.015, allocations: 4 kB / 1.128 GB, free: 31.9 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.394e-05/1.015, allocations: 11.47 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.855e-05/1.015, allocations: 8.219 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/1.015, allocations: 0.75 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.019e-05/1.015, allocations: 86.89 kB / 1.128 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.015, allocations: 0 / 1.128 GB, free: 31.8 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002135/1.015, allocations: 15.94 kB / 1.128 GB, free: 31.79 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.0001265/1.015, allocations: 107.8 kB / 1.128 GB, free: 31.68 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002242/1.015, allocations: 56.48 kB / 1.128 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/1.015, allocations: 0 / 1.128 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.405e-05/1.016, allocations: 39.72 kB / 1.128 GB, free: 31.61 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/1.016, allocations: 7.312 kB / 1.128 GB, free: 31.6 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00024/1.016, allocations: 117.8 kB / 1.128 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.351e-05/1.016, allocations: 0.6877 MB / 1.129 GB, free: 30.77 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.079e-05/1.016, allocations: 4 kB / 1.129 GB, free: 30.76 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.372e-05/1.016, allocations: 11.44 kB / 1.129 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of SimCode: time 2.91e-07/1.016, allocations: 0 / 1.129 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of Templates: time 0.002277/1.018, allocations: 0.5891 MB / 1.13 GB, free: 30.43 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)