Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.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.821/1.821, allocations: 285.4 MB / 298 MB, free: 5.977 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.001323/0.001323, allocations: 184.8 kB / 366.4 MB, free: 2.074 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.827/1.827, allocations: 205.1 MB / 0.6248 GB, free: 7.738 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.0008231/0.0008231, allocations: 89.34 kB / 0.738 GB, free: 40.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.745e-05/2.757e-05, allocations: 4 kB / 0.8583 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6765/0.6766, allocations: 115.3 MB / 0.9709 GB, free: 77.84 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.878, allocations: 138.2 MB / 1.106 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.8782, allocations: 67.97 kB / 1.106 GB, free: 13.54 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.002764/0.881, allocations: 0.9407 MB / 1.107 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.769e-06/0.8811, allocations: 0 / 1.107 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.8811, allocations: 3.938 kB / 1.107 GB, free: 12.61 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003778/0.8815, allocations: 339.6 kB / 1.107 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.8815, allocations: 8.031 kB / 1.107 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.8815, allocations: 3.906 kB / 1.107 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.8817, allocations: 167.9 kB / 1.107 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.8817, allocations: 0 / 1.107 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.8817, allocations: 3.484 kB / 1.107 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.8818, allocations: 50.38 kB / 1.107 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.8819, allocations: 0 / 1.107 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.8819, allocations: 2.438 kB / 1.107 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.8819, allocations: 3.5 kB / 1.107 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.348e-05/0.882, allocations: 23.92 kB / 1.107 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000461/0.8824, allocations: 276.3 kB / 1.108 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00025/0.8827, allocations: 51.78 kB / 1.108 GB, free: 11.56 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.868e-05/0.8827, allocations: 17.67 kB / 1.108 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001265/0.8829, allocations: 77.11 kB / 1.108 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.8829, allocations: 39.22 kB / 1.108 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.8829, allocations: 2.719 kB / 1.108 GB, free: 11.4 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001678/0.8831, allocations: 49.78 kB / 1.108 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.8831, allocations: 54 kB / 1.108 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.345e-05/0.8832, allocations: 96.89 kB / 1.108 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.8832, allocations: 29.7 kB / 1.108 GB, free: 11.15 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.841e-05/0.8833, allocations: 84.95 kB / 1.108 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.8833, allocations: 3.906 kB / 1.108 GB, free: 11.06 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.8833, allocations: 3.938 kB / 1.108 GB, free: 11.05 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.8834, allocations: 319.5 kB / 1.108 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.109e-05/0.8835, allocations: 9.188 kB / 1.108 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.01e-05/0.8835, allocations: 11.98 kB / 1.108 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.428e-05/0.8835, allocations: 6.781 kB / 1.108 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.8835, allocations: 0 / 1.108 GB, free: 10.71 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.313e-05/0.8836, allocations: 53.62 kB / 1.109 GB, free: 10.65 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.8837, allocations: 9.406 kB / 1.109 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.8837, allocations: 3.906 kB / 1.109 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.8837, allocations: 0 / 1.109 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.772e-05/0.8838, allocations: 12.89 kB / 1.109 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.8838, allocations: 4 kB / 1.109 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.192e-05/0.8839, allocations: 8.609 kB / 1.109 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.8839, allocations: 3.656 kB / 1.109 GB, free: 10.62 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.y,fac.u) * Number of discrete 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 6.918e-05/0.884, allocations: 108.9 kB / 1.109 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.361e-05/0.884, allocations: 4 kB / 1.109 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.8841, allocations: 61.11 kB / 1.109 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.8841, allocations: 4 kB / 1.109 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.8842, allocations: 0 / 1.109 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.8842, allocations: 0 / 1.109 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001667/0.8843, allocations: 164.2 kB / 1.109 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.8843, allocations: 3.984 kB / 1.109 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.199e-05/0.8844, allocations: 12 kB / 1.109 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.8844, allocations: 1.875 kB / 1.109 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.8845, allocations: 3.984 kB / 1.109 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.8845, allocations: 0 / 1.109 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.8845, allocations: 4 kB / 1.109 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.8846, allocations: 151.9 kB / 1.109 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.559e-05/0.8847, allocations: 81.14 kB / 1.109 GB, free: 9.938 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.8847, allocations: 4.688 kB / 1.109 GB, free: 9.934 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.8848, allocations: 11.92 kB / 1.109 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.565e-05/0.8849, allocations: 11.98 kB / 1.109 GB, free: 9.91 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-05/0.8849, allocations: 0 / 1.109 GB, free: 9.91 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.152e-05/0.885, allocations: 83.28 kB / 1.109 GB, free: 9.828 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.31e-07/0.885, allocations: 0 / 1.109 GB, free: 9.828 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002145/0.8852, allocations: 15.94 kB / 1.109 GB, free: 9.812 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.y,fac.u) * Number of discrete 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.0001716/0.8854, allocations: 115.2 kB / 1.109 GB, free: 9.691 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.946e-05/0.8855, allocations: 16 kB / 1.109 GB, free: 9.676 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.8855, allocations: 0 / 1.109 GB, free: 9.676 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.564e-05/0.8855, allocations: 15.94 kB / 1.109 GB, free: 9.66 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.8857, allocations: 13.5 kB / 1.109 GB, free: 9.648 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002274/0.8859, allocations: 75.25 kB / 1.109 GB, free: 9.559 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001964/0.8861, allocations: 0.6809 MB / 1.11 GB, free: 8.852 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.228e-05/0.8862, allocations: 2.312 kB / 1.11 GB, free: 8.852 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.547e-05/0.8862, allocations: 11.44 kB / 1.11 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of SimCode: time 3.1e-07/0.8862, allocations: 0 / 1.11 GB, free: 8.84 MB / 0.7136 GB Notification: Performance of Templates: time 0.002496/0.8887, allocations: 0.5952 MB / 1.111 GB, free: 8.273 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)