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.759/1.759, allocations: 289.7 MB / 302.2 MB, free: 2.18 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.001297/0.001297, allocations: 183.7 kB / 371.6 MB, free: 3.383 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.834/1.834, allocations: 205.1 MB / 0.6309 GB, free: 11.8 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.0009658/0.0009653, allocations: 88.2 kB / 0.745 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.152e-05/4.155e-05, allocations: 8 kB / 0.8662 GB, free: 15.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2639, allocations: 116.3 MB / 0.9798 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7962/1.06, allocations: 138.2 MB / 1.115 GB, free: 45.18 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/1.06, allocations: 72.72 kB / 1.115 GB, free: 45.14 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.0009503/1.061, allocations: 0.5192 MB / 1.115 GB, free: 44.71 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.844e-06/1.061, allocations: 0 / 1.115 GB, free: 44.71 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.25e-06/1.061, allocations: 0.8438 kB / 1.115 GB, free: 44.71 MB / 0.7448 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.0001979/1.062, allocations: 314.2 kB / 1.116 GB, free: 44.38 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.062, allocations: 8.031 kB / 1.116 GB, free: 44.37 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/1.062, allocations: 2.875 kB / 1.116 GB, free: 44.37 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.93e-05/1.062, allocations: 164.2 kB / 1.116 GB, free: 44.17 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/1.062, allocations: 4.062 kB / 1.116 GB, free: 44.17 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/1.062, allocations: 8.203 kB / 1.116 GB, free: 44.17 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.063e-05/1.062, allocations: 34.83 kB / 1.116 GB, free: 44.13 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/1.062, allocations: 0 / 1.116 GB, free: 44.13 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/1.062, allocations: 0.6562 kB / 1.116 GB, free: 44.13 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/1.062, allocations: 0.75 kB / 1.116 GB, free: 44.13 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.425e-05/1.062, allocations: 8.078 kB / 1.116 GB, free: 44.12 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001336/1.062, allocations: 150 kB / 1.116 GB, free: 43.93 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.351e-05/1.062, allocations: 24.11 kB / 1.116 GB, free: 43.91 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.797e-05/1.062, allocations: 9.859 kB / 1.116 GB, free: 43.89 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001242/1.062, allocations: 88.61 kB / 1.116 GB, free: 43.8 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/1.062, allocations: 35.44 kB / 1.116 GB, free: 43.75 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/1.062, allocations: 0 / 1.116 GB, free: 43.75 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001336/1.062, allocations: 41.08 kB / 1.116 GB, free: 43.71 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/1.063, allocations: 53.56 kB / 1.116 GB, free: 43.65 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.266e-05/1.063, allocations: 85 kB / 1.116 GB, free: 43.56 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 9.437e-06/1.063, allocations: 25.7 kB / 1.116 GB, free: 43.53 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 1.361e-05/1.063, allocations: 80.14 kB / 1.116 GB, free: 43.45 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/1.063, allocations: 8.094 kB / 1.116 GB, free: 43.45 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-06/1.063, allocations: 0 / 1.116 GB, free: 43.45 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 5.053e-05/1.063, allocations: 315.3 kB / 1.117 GB, free: 43.13 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.488e-06/1.063, allocations: 0 / 1.117 GB, free: 43.13 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/1.063, allocations: 4.031 kB / 1.117 GB, free: 43.13 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.749e-05/1.063, allocations: 4.062 kB / 1.117 GB, free: 43.12 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/1.063, allocations: 0 / 1.117 GB, free: 43.12 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.877e-05/1.063, allocations: 51.94 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/1.063, allocations: 4 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/1.063, allocations: 1.031 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/1.063, allocations: 0.5625 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.543e-05/1.063, allocations: 4 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/1.063, allocations: 0 / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/1.063, allocations: 5.812 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/1.063, allocations: 4.531 kB / 1.117 GB, free: 43.06 MB / 0.7448 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 4.21e-05/1.063, allocations: 106.6 kB / 1.117 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-06/1.063, allocations: 3.953 kB / 1.117 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.605e-05/1.063, allocations: 49.02 kB / 1.117 GB, free: 42.9 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/1.063, allocations: 3.969 kB / 1.117 GB, free: 42.9 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.063, allocations: 0 / 1.117 GB, free: 42.9 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/1.063, allocations: 1.406 kB / 1.117 GB, free: 42.9 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.041e-05/1.063, allocations: 145.2 kB / 1.117 GB, free: 42.71 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/1.063, allocations: 8.031 kB / 1.117 GB, free: 42.71 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.052e-05/1.063, allocations: 0.75 kB / 1.117 GB, free: 42.71 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/1.063, allocations: 0 / 1.117 GB, free: 42.71 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-06/1.063, allocations: 10.89 kB / 1.117 GB, free: 42.7 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/1.063, allocations: 0 / 1.117 GB, free: 42.7 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/1.063, allocations: 0 / 1.117 GB, free: 42.7 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.742e-05/1.063, allocations: 61.45 kB / 1.117 GB, free: 42.63 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/1.063, allocations: 77.62 kB / 1.117 GB, free: 42.54 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/1.063, allocations: 4.031 kB / 1.117 GB, free: 42.53 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.334e-05/1.063, allocations: 7.953 kB / 1.117 GB, free: 42.52 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.376e-05/1.063, allocations: 7.359 kB / 1.117 GB, free: 42.52 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-06/1.063, allocations: 0 / 1.117 GB, free: 42.52 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 1.994e-05/1.063, allocations: 75.28 kB / 1.117 GB, free: 42.45 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.3e-07/1.063, allocations: 0.8438 kB / 1.117 GB, free: 42.45 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001893/1.064, allocations: 10.88 kB / 1.117 GB, free: 42.44 MB / 0.7448 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.0001442/1.064, allocations: 103.1 kB / 1.117 GB, free: 42.33 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 6.812e-05/1.064, allocations: 19.45 kB / 1.117 GB, free: 42.32 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/1.064, allocations: 0 / 1.117 GB, free: 42.32 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.308e-05/1.064, allocations: 4 kB / 1.117 GB, free: 42.31 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.87e-05/1.064, allocations: 0 / 1.117 GB, free: 42.31 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001431/1.064, allocations: 58.47 kB / 1.118 GB, free: 42.24 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/1.064, allocations: 0.6779 MB / 1.118 GB, free: 41.54 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.431e-05/1.064, allocations: 0.9375 kB / 1.118 GB, free: 41.54 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.398e-05/1.064, allocations: 7.438 kB / 1.118 GB, free: 41.54 MB / 0.7448 GB Notification: Performance of SimCode: time 2.4e-07/1.064, allocations: 4.125 kB / 1.118 GB, free: 41.53 MB / 0.7448 GB Notification: Performance of Templates: time 0.002078/1.066, allocations: 310.7 kB / 1.119 GB, free: 41.36 MB / 0.7448 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)