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.527/1.527, allocations: 289.9 MB / 297.4 MB, free: 6.363 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.0009479/0.0009479, allocations: 172.8 kB / 366.7 MB, free: 1.676 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.296/1.296, allocations: 205.2 MB / 0.626 GB, free: 7.184 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.0007961/0.0007961, allocations: 87.05 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.472e-05/2.468e-05, allocations: 8 kB / 0.8597 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6808/0.6809, allocations: 116.3 MB / 0.9733 GB, free: 76.42 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.8735, allocations: 137.5 MB / 1.108 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.8738, allocations: 77.42 kB / 1.108 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.001112/0.8749, allocations: 0.5092 MB / 1.108 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8749, allocations: 0 / 1.108 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.62e-06/0.8749, allocations: 0.5625 kB / 1.108 GB, free: 12.11 MB / 0.7136 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.000259/0.8752, allocations: 317.9 kB / 1.108 GB, free: 11.76 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.8752, allocations: 12.03 kB / 1.108 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/0.8753, allocations: 4.406 kB / 1.108 GB, free: 11.75 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.8754, allocations: 163 kB / 1.109 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.8754, allocations: 0 / 1.109 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.8754, allocations: 0.5312 kB / 1.109 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.786e-05/0.8755, allocations: 8.516 kB / 1.109 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.957e-05/0.8756, allocations: 34.23 kB / 1.109 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.8756, allocations: 1.5 kB / 1.109 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.8756, allocations: 0 / 1.109 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.8756, allocations: 0 / 1.109 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001245/0.8757, allocations: 133.5 kB / 1.109 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.045e-05/0.8758, allocations: 23.78 kB / 1.109 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.971e-05/0.8758, allocations: 9.609 kB / 1.109 GB, free: 11.3 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001496/0.876, allocations: 85.09 kB / 1.109 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.876, allocations: 31.81 kB / 1.109 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.876, allocations: 0 / 1.109 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.0001511/0.8762, allocations: 46.25 kB / 1.109 GB, free: 11.11 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.8762, allocations: 52.06 kB / 1.109 GB, free: 11.04 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.685e-05/0.8763, allocations: 89.28 kB / 1.109 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.8763, allocations: 25.7 kB / 1.109 GB, free: 10.92 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.009e-05/0.8763, allocations: 80.77 kB / 1.109 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.8763, allocations: 4.625 kB / 1.109 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.8764, allocations: 0 / 1.109 GB, free: 10.84 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.8765, allocations: 319.5 kB / 1.11 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.8765, allocations: 0.6562 kB / 1.11 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.049e-06/0.8765, allocations: 0.7812 kB / 1.11 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.467e-05/0.8765, allocations: 8.797 kB / 1.11 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.8766, allocations: 0 / 1.11 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.482e-05/0.8766, allocations: 34.2 kB / 1.11 GB, free: 10.47 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.8766, allocations: 8.484 kB / 1.11 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.8767, allocations: 0 / 1.11 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.8767, allocations: 0.5938 kB / 1.11 GB, free: 10.46 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.355e-05/0.8767, allocations: 8.75 kB / 1.11 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.8767, allocations: 3.984 kB / 1.11 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.269e-05/0.8768, allocations: 4.75 kB / 1.11 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.8768, allocations: 4 kB / 1.11 GB, free: 10.44 MB / 0.7136 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 () * 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 7.436e-05/0.8769, allocations: 107 kB / 1.11 GB, free: 10.33 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.65e-06/0.8769, allocations: 0 / 1.11 GB, free: 10.33 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001019/0.877, allocations: 47.08 kB / 1.11 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.877, allocations: 0 / 1.11 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.877, allocations: 0 / 1.11 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.877, allocations: 0 / 1.11 GB, free: 10.28 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.942e-05/0.8771, allocations: 132.3 kB / 1.11 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.8771, allocations: 0.625 kB / 1.11 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.928e-05/0.8771, allocations: 2.312 kB / 1.11 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.8771, allocations: 4 kB / 1.11 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.8771, allocations: 3.984 kB / 1.11 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.8771, allocations: 0 / 1.11 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.8772, allocations: 7.891 kB / 1.11 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.046e-05/0.8772, allocations: 59.11 kB / 1.11 GB, free: 10.02 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.656e-05/0.8773, allocations: 81.09 kB / 1.11 GB, free: 9.926 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.848e-06/0.8773, allocations: 0 / 1.11 GB, free: 9.926 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.192e-05/0.8773, allocations: 5.312 kB / 1.11 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.827e-05/0.8773, allocations: 0 / 1.11 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.047e-06/0.8774, allocations: 3.953 kB / 1.11 GB, free: 9.918 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 2.72e-05/0.8774, allocations: 79.84 kB / 1.11 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8774, allocations: 3.75 kB / 1.11 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002005/0.8776, allocations: 12.56 kB / 1.11 GB, free: 9.828 MB / 0.7136 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 () * 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.0001543/0.8778, allocations: 108 kB / 1.11 GB, free: 9.715 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.172e-05/0.8778, allocations: 14.59 kB / 1.11 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.8778, allocations: 0 / 1.11 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.307e-05/0.8779, allocations: 4 kB / 1.11 GB, free: 9.699 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.226e-05/0.878, allocations: 0 / 1.11 GB, free: 9.699 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001594/0.8781, allocations: 56.42 kB / 1.11 GB, free: 9.625 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.8784, allocations: 0.6729 MB / 1.111 GB, free: 8.926 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.518e-05/0.8784, allocations: 10.38 kB / 1.111 GB, free: 8.922 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.8784, allocations: 7.438 kB / 1.111 GB, free: 8.914 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.8784, allocations: 0 / 1.111 GB, free: 8.914 MB / 0.7136 GB Notification: Performance of Templates: time 0.002018/0.8805, allocations: 290.7 kB / 1.111 GB, free: 8.656 MB / 0.7136 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)