Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.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.662/1.662, allocations: 292.6 MB / 307.5 MB, free: 5.23 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.001962/0.001962, allocations: 181 kB / 377.1 MB, free: 1.562 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.649/1.649, allocations: 205.4 MB / 0.6367 GB, free: 8.648 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.0008747/0.0008749, allocations: 92.94 kB / 0.751 GB, free: 63.12 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003875/0.0003876, allocations: 12 kB / 0.8748 GB, free: 11.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3032, allocations: 116.3 MB / 0.9884 GB, free: 6.785 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7825/1.086, allocations: 138.3 MB / 1.123 GB, free: 36.21 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/1.086, allocations: 80.41 kB / 1.123 GB, free: 36.14 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.001034/1.087, allocations: 0.5156 MB / 1.124 GB, free: 35.68 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.799e-06/1.087, allocations: 0.6875 kB / 1.124 GB, free: 35.68 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.354e-06/1.087, allocations: 4 kB / 1.124 GB, free: 35.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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0001977/1.087, allocations: 320.2 kB / 1.124 GB, free: 35.33 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.087, allocations: 16.61 kB / 1.124 GB, free: 35.32 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.482e-05/1.087, allocations: 3.312 kB / 1.124 GB, free: 35.32 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.911e-05/1.087, allocations: 159.1 kB / 1.124 GB, free: 35.12 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/1.088, allocations: 0.8438 kB / 1.124 GB, free: 35.12 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/1.088, allocations: 0 / 1.124 GB, free: 35.12 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.99e-05/1.088, allocations: 41.67 kB / 1.125 GB, free: 35.08 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/1.088, allocations: 0 / 1.125 GB, free: 35.08 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/1.088, allocations: 3.531 kB / 1.125 GB, free: 35.08 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/1.088, allocations: 0.5625 kB / 1.125 GB, free: 35.08 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.075e-05/1.088, allocations: 4 kB / 1.125 GB, free: 35.08 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001147/1.088, allocations: 149.1 kB / 1.125 GB, free: 34.89 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 4.863e-05/1.088, allocations: 26.55 kB / 1.125 GB, free: 34.85 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001273/1.088, allocations: 86.7 kB / 1.125 GB, free: 34.75 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/1.088, allocations: 31.47 kB / 1.125 GB, free: 34.71 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=2): time 2.074e-06/1.088, allocations: 1.688 kB / 1.125 GB, free: 34.71 MB / 0.7292 GB Notification: Performance of matching and sorting (n=2): time 0.0001385/1.088, allocations: 41.33 kB / 1.125 GB, free: 34.67 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.583e-05/1.088, allocations: 55.34 kB / 1.125 GB, free: 34.61 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.78e-05/1.088, allocations: 90.16 kB / 1.125 GB, free: 34.52 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/1.088, allocations: 29.7 kB / 1.125 GB, free: 34.48 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 1.512e-05/1.088, allocations: 80.14 kB / 1.125 GB, free: 34.4 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/1.088, allocations: 5.438 kB / 1.125 GB, free: 34.39 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/1.088, allocations: 4 kB / 1.125 GB, free: 34.39 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.088e-05/1.088, allocations: 315.5 kB / 1.125 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.417e-06/1.088, allocations: 0 / 1.125 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/1.088, allocations: 4.656 kB / 1.125 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.909e-05/1.088, allocations: 4 kB / 1.125 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/1.088, allocations: 0 / 1.125 GB, free: 34.07 MB / 0.7292 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.897e-05/1.089, allocations: 45.17 kB / 1.125 GB, free: 34.02 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/1.089, allocations: 7.938 kB / 1.125 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/1.089, allocations: 4.094 kB / 1.125 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/1.089, allocations: 0 / 1.125 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.636e-05/1.089, allocations: 4.562 kB / 1.125 GB, free: 34 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/1.089, allocations: 4.438 kB / 1.125 GB, free: 34 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.351e-05/1.089, allocations: 0 / 1.125 GB, free: 34 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/1.089, allocations: 0 / 1.125 GB, free: 34 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,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 4.849e-05/1.089, allocations: 113.4 kB / 1.126 GB, free: 33.88 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.833e-06/1.089, allocations: 3.953 kB / 1.126 GB, free: 33.88 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.441e-05/1.089, allocations: 50.36 kB / 1.126 GB, free: 33.83 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/1.089, allocations: 0 / 1.126 GB, free: 33.83 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/1.089, allocations: 0 / 1.126 GB, free: 33.83 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/1.089, allocations: 0.875 kB / 1.126 GB, free: 33.83 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.302e-05/1.089, allocations: 149.7 kB / 1.126 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/1.089, allocations: 0 / 1.126 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.144e-05/1.089, allocations: 3.422 kB / 1.126 GB, free: 33.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/1.089, allocations: 4.938 kB / 1.126 GB, free: 33.63 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-06/1.089, allocations: 3.953 kB / 1.126 GB, free: 33.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/1.089, allocations: 0.5625 kB / 1.126 GB, free: 33.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/1.089, allocations: 4.969 kB / 1.126 GB, free: 33.62 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.611e-05/1.089, allocations: 64.64 kB / 1.126 GB, free: 33.55 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.845e-05/1.089, allocations: 77.11 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/1.089, allocations: 4.562 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.212e-05/1.089, allocations: 3.953 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/1.089, allocations: 3.422 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-06/1.089, allocations: 0 / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 1.19e-05/1.089, allocations: 75.28 kB / 1.126 GB, free: 33.37 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1e-07/1.089, allocations: 4.031 kB / 1.126 GB, free: 33.37 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002043/1.089, allocations: 15.31 kB / 1.126 GB, free: 33.36 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,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.0001369/1.09, allocations: 99.25 kB / 1.126 GB, free: 33.25 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 6.975e-05/1.09, allocations: 20.53 kB / 1.126 GB, free: 33.23 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/1.09, allocations: 0 / 1.126 GB, free: 33.23 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.361e-05/1.09, allocations: 4 kB / 1.126 GB, free: 33.23 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.06e-05/1.09, allocations: 0.625 kB / 1.126 GB, free: 33.23 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001767/1.09, allocations: 92.41 kB / 1.126 GB, free: 33.12 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/1.09, allocations: 0.6767 MB / 1.127 GB, free: 32.42 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 1.535e-05/1.09, allocations: 0.5625 kB / 1.127 GB, free: 32.42 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/1.09, allocations: 11.44 kB / 1.127 GB, free: 32.41 MB / 0.7292 GB Notification: Performance of SimCode: time 3.01e-07/1.09, allocations: 0 / 1.127 GB, free: 32.41 MB / 0.7292 GB Notification: Performance of Templates: time 0.001983/1.092, allocations: 303 kB / 1.127 GB, free: 32.23 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)