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.688/1.688, allocations: 288.3 MB / 303.2 MB, free: 8.219 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.001248/0.001248, allocations: 192 kB / 371.9 MB, free: 10.26 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.771/1.771, allocations: 205.4 MB / 0.6306 GB, free: 10.02 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.001046/0.001046, allocations: 93.23 kB / 0.7439 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004539/0.000454, allocations: 24.52 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2483, allocations: 115.3 MB / 0.9794 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7425/0.9909, allocations: 138.2 MB / 1.114 GB, free: 16.51 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000247/0.9912, allocations: 72.5 kB / 1.115 GB, free: 16.51 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003292/0.9945, allocations: 0.9319 MB / 1.115 GB, free: 32.17 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.795e-06/0.9945, allocations: 0 / 1.115 GB, free: 32.17 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.334e-05/0.9946, allocations: 0 / 1.115 GB, free: 32.17 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004404/0.995, allocations: 346.5 kB / 1.116 GB, free: 31.81 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.9951, allocations: 11.8 kB / 1.116 GB, free: 31.81 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.394e-05/0.9951, allocations: 7.812 kB / 1.116 GB, free: 31.8 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.9953, allocations: 165.5 kB / 1.116 GB, free: 31.61 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.9953, allocations: 5.688 kB / 1.116 GB, free: 31.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.9953, allocations: 3.75 kB / 1.116 GB, free: 31.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.9956, allocations: 66.19 kB / 1.116 GB, free: 31.57 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.9956, allocations: 4 kB / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.9956, allocations: 0 / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.9956, allocations: 0 / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.9958, allocations: 50.06 kB / 1.116 GB, free: 31.56 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000532/0.9964, allocations: 285.2 kB / 1.116 GB, free: 31.29 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.9967, allocations: 64.92 kB / 1.116 GB, free: 31.27 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001419/0.9968, allocations: 85.05 kB / 1.116 GB, free: 31.17 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.143e-05/0.9969, allocations: 30.56 kB / 1.116 GB, free: 31.13 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 1.753e-06/0.9969, allocations: 0 / 1.116 GB, free: 31.13 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0004252/0.9973, allocations: 119.5 kB / 1.117 GB, free: 31.09 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.9974, allocations: 59.19 kB / 1.117 GB, free: 31.02 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001055/0.9975, allocations: 92.75 kB / 1.117 GB, free: 30.93 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.9975, allocations: 32.19 kB / 1.117 GB, free: 30.89 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.562e-05/0.9976, allocations: 80.14 kB / 1.117 GB, free: 30.81 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.9976, allocations: 7.812 kB / 1.117 GB, free: 30.81 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.9976, allocations: 0 / 1.117 GB, free: 30.81 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.9978, allocations: 322.4 kB / 1.117 GB, free: 30.49 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.326e-05/0.9979, allocations: 25.39 kB / 1.117 GB, free: 30.49 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.293e-05/0.998, allocations: 21.03 kB / 1.117 GB, free: 30.49 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.416e-05/0.9981, allocations: 29.14 kB / 1.117 GB, free: 30.48 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.9981, allocations: 0 / 1.117 GB, free: 30.48 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002058/0.9983, allocations: 82.19 kB / 1.117 GB, free: 30.45 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.9983, allocations: 7.812 kB / 1.117 GB, free: 30.45 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.9983, allocations: 3.984 kB / 1.117 GB, free: 30.45 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.9983, allocations: 0 / 1.117 GB, free: 30.45 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.357e-05/0.9984, allocations: 17.92 kB / 1.117 GB, free: 30.45 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.9985, allocations: 7.812 kB / 1.117 GB, free: 30.44 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.084e-05/0.9985, allocations: 6.688 kB / 1.117 GB, free: 30.44 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.9985, allocations: 0 / 1.117 GB, free: 30.44 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.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 0.0001092/0.9986, allocations: 118.7 kB / 1.117 GB, free: 30.32 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.9987, allocations: 7.234 kB / 1.117 GB, free: 30.32 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002618/0.9989, allocations: 91.8 kB / 1.118 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.999, allocations: 3.906 kB / 1.118 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.999, allocations: 0 / 1.118 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.999, allocations: 2.812 kB / 1.118 GB, free: 30.28 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.9991, allocations: 162.2 kB / 1.118 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.9992, allocations: 7.938 kB / 1.118 GB, free: 30.08 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.403e-05/0.9992, allocations: 13.28 kB / 1.118 GB, free: 30.08 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.9992, allocations: 0 / 1.118 GB, free: 30.08 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.9993, allocations: 11.41 kB / 1.118 GB, free: 30.08 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.155e-06/0.9993, allocations: 3.938 kB / 1.118 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.9993, allocations: 0 / 1.118 GB, free: 30.07 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.9995, allocations: 179.1 kB / 1.118 GB, free: 29.94 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/0.9996, allocations: 80.86 kB / 1.118 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.9996, allocations: 0 / 1.118 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.9997, allocations: 14.3 kB / 1.118 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.6e-05/0.9998, allocations: 3.656 kB / 1.118 GB, free: 29.84 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.9998, allocations: 7.844 kB / 1.118 GB, free: 29.84 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.915e-05/0.9998, allocations: 78.05 kB / 1.118 GB, free: 29.77 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9998, allocations: 0 / 1.118 GB, free: 29.77 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002185/1, allocations: 19.16 kB / 1.118 GB, free: 29.76 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.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.0001748/1, allocations: 108 kB / 1.118 GB, free: 29.67 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000241/1, allocations: 64.72 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/1.001, allocations: 0 / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 9.437e-05/1.001, allocations: 28.8 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/1.001, allocations: 6.547 kB / 1.118 GB, free: 29.66 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000367/1.001, allocations: 124.9 kB / 1.118 GB, free: 29.54 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/1.002, allocations: 0.679 MB / 1.119 GB, free: 28.84 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.391e-05/1.002, allocations: 9.656 kB / 1.119 GB, free: 28.84 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.954e-05/1.002, allocations: 11.28 kB / 1.119 GB, free: 28.84 MB / 0.698 GB Notification: Performance of SimCode: time 2.11e-07/1.002, allocations: 0 / 1.119 GB, free: 28.84 MB / 0.698 GB Notification: Performance of Templates: time 0.002761/1.004, allocations: 0.5894 MB / 1.12 GB, free: 28.79 MB / 0.698 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)