Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.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.691/1.691, allocations: 288.3 MB / 303.2 MB, free: 8.094 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.001344/0.001344, allocations: 185 kB / 371.8 MB, free: 10.27 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.909/1.909, allocations: 205.4 MB / 0.6306 GB, free: 9.996 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.001057/0.001057, allocations: 94.89 kB / 0.7439 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003965, allocations: 12.72 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2444, allocations: 115.3 MB / 0.9794 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.755/0.9994, allocations: 137.3 MB / 1.114 GB, free: 16.54 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.9998, allocations: 79.97 kB / 1.114 GB, free: 16.54 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001781/1.002, allocations: 0.5135 MB / 1.114 GB, free: 32.22 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.164e-06/1.002, allocations: 0 / 1.114 GB, free: 32.22 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.879e-06/1.002, allocations: 0 / 1.114 GB, free: 32.22 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002761/1.002, allocations: 320.8 kB / 1.114 GB, free: 31.88 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/1.002, allocations: 11.5 kB / 1.114 GB, free: 31.88 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/1.002, allocations: 0 / 1.114 GB, free: 31.88 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.667e-05/1.002, allocations: 166.7 kB / 1.115 GB, free: 31.68 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/1.002, allocations: 4 kB / 1.115 GB, free: 31.67 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/1.002, allocations: 0 / 1.115 GB, free: 31.67 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/1.002, allocations: 32.77 kB / 1.115 GB, free: 31.64 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/1.002, allocations: 0 / 1.115 GB, free: 31.64 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/1.002, allocations: 0 / 1.115 GB, free: 31.64 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/1.002, allocations: 0 / 1.115 GB, free: 31.64 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.727e-05/1.002, allocations: 7.719 kB / 1.115 GB, free: 31.64 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001469/1.002, allocations: 156.4 kB / 1.115 GB, free: 31.45 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.562e-05/1.003, allocations: 25.23 kB / 1.115 GB, free: 31.42 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001589/1.003, allocations: 88.33 kB / 1.115 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.847e-05/1.003, allocations: 32.09 kB / 1.115 GB, free: 31.28 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.543e-06/1.003, allocations: 0 / 1.115 GB, free: 31.28 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001746/1.003, allocations: 43.75 kB / 1.115 GB, free: 31.25 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/1.003, allocations: 55.25 kB / 1.115 GB, free: 31.18 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.122e-05/1.003, allocations: 88.05 kB / 1.115 GB, free: 31.09 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/1.003, allocations: 29.83 kB / 1.115 GB, free: 31.06 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.773e-05/1.003, allocations: 80.14 kB / 1.115 GB, free: 30.98 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.275e-05/1.003, allocations: 4.531 kB / 1.115 GB, free: 30.97 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/1.003, allocations: 0 / 1.115 GB, free: 30.97 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001616/1.003, allocations: 310.8 kB / 1.115 GB, free: 30.66 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.465e-05/1.003, allocations: 8.266 kB / 1.115 GB, free: 30.66 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.995e-06/1.003, allocations: 0 / 1.115 GB, free: 30.66 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.428e-05/1.003, allocations: 3.875 kB / 1.116 GB, free: 30.66 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.003, allocations: 64 / 1.116 GB, free: 30.66 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.855e-05/1.004, allocations: 48.03 kB / 1.116 GB, free: 30.62 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/1.004, allocations: 7.781 kB / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/1.004, allocations: 3.812 kB / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/1.004, allocations: 0 / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.921e-05/1.004, allocations: 6.359 kB / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/1.004, allocations: 3.875 kB / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.589e-05/1.004, allocations: 0 / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/1.004, allocations: 0.875 kB / 1.116 GB, free: 30.61 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,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 0.0001022/1.004, allocations: 109.9 kB / 1.116 GB, free: 30.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.074e-05/1.004, allocations: 7.641 kB / 1.116 GB, free: 30.49 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/1.004, allocations: 39.47 kB / 1.116 GB, free: 30.46 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/1.004, allocations: 3.844 kB / 1.116 GB, free: 30.46 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.974e-06/1.004, allocations: 6.844 kB / 1.116 GB, free: 30.46 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.004, allocations: 3.984 kB / 1.116 GB, free: 30.45 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/1.004, allocations: 148.3 kB / 1.116 GB, free: 30.27 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/1.004, allocations: 0 / 1.116 GB, free: 30.27 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.614e-05/1.004, allocations: 6.609 kB / 1.116 GB, free: 30.27 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/1.004, allocations: 0 / 1.116 GB, free: 30.27 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/1.004, allocations: 15.55 kB / 1.116 GB, free: 30.26 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/1.004, allocations: 0 / 1.116 GB, free: 30.26 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.004, allocations: 0 / 1.116 GB, free: 30.26 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.552e-05/1.004, allocations: 59.69 kB / 1.116 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.271e-05/1.004, allocations: 77.11 kB / 1.116 GB, free: 30.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/1.004, allocations: 0 / 1.116 GB, free: 30.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.227e-05/1.004, allocations: 7.734 kB / 1.116 GB, free: 30.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.683e-05/1.004, allocations: 7.172 kB / 1.116 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/1.004, allocations: 0 / 1.116 GB, free: 30.09 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.02e-05/1.004, allocations: 79.22 kB / 1.116 GB, free: 30.02 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.052e-06/1.004, allocations: 0 / 1.116 GB, free: 30.02 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002185/1.005, allocations: 15.72 kB / 1.116 GB, free: 30.01 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,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.000181/1.005, allocations: 109.3 kB / 1.116 GB, free: 29.92 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 6.223e-05/1.005, allocations: 7.656 kB / 1.116 GB, free: 29.92 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.005, allocations: 64 / 1.116 GB, free: 29.92 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 1.334e-05/1.005, allocations: 7.875 kB / 1.116 GB, free: 29.91 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.807e-05/1.005, allocations: 4.422 kB / 1.116 GB, free: 29.91 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001904/1.005, allocations: 85.84 kB / 1.116 GB, free: 29.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/1.006, allocations: 0.672 MB / 1.117 GB, free: 29.12 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 1.548e-05/1.006, allocations: 3.812 kB / 1.117 GB, free: 29.12 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.74e-05/1.006, allocations: 7.438 kB / 1.117 GB, free: 29.11 MB / 0.698 GB Notification: Performance of SimCode: time 5.81e-07/1.006, allocations: 3.938 kB / 1.117 GB, free: 29.11 MB / 0.698 GB Notification: Performance of Templates: time 0.002046/1.008, allocations: 304.7 kB / 1.117 GB, free: 29.07 MB / 0.698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)