Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.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.591/1.591, allocations: 289.7 MB / 302.2 MB, free: 2.215 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.001163/0.001163, allocations: 183.7 kB / 371.6 MB, free: 3.441 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.001043/0.001044, allocations: 91 kB / 0.745 GB, free: 54.66 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.751e-05/3.754e-05, allocations: 4 kB / 0.8662 GB, free: 15.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2971, allocations: 116.3 MB / 0.9798 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.311, allocations: 139.1 MB / 1.116 GB, free: 44.61 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/1.311, allocations: 70.38 kB / 1.116 GB, free: 44.58 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.003993/1.315, allocations: 0.9234 MB / 1.117 GB, free: 43.93 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.394e-06/1.315, allocations: 0.8438 kB / 1.117 GB, free: 43.93 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.006e-05/1.315, allocations: 4 kB / 1.117 GB, free: 43.93 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004581/1.316, allocations: 335.2 kB / 1.117 GB, free: 43.57 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 6.681e-05/1.316, allocations: 12.03 kB / 1.117 GB, free: 43.56 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.923e-05/1.316, allocations: 4.562 kB / 1.117 GB, free: 43.56 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/1.316, allocations: 166.5 kB / 1.117 GB, free: 43.36 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/1.316, allocations: 6.188 kB / 1.117 GB, free: 43.36 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/1.316, allocations: 8.234 kB / 1.117 GB, free: 43.36 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001457/1.316, allocations: 41.33 kB / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/1.316, allocations: 0 / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/1.316, allocations: 3.312 kB / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/1.316, allocations: 4 kB / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.894e-05/1.316, allocations: 12.78 kB / 1.117 GB, free: 43.31 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006076/1.317, allocations: 300.6 kB / 1.118 GB, free: 43 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/1.317, allocations: 44.22 kB / 1.118 GB, free: 42.96 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.328e-05/1.318, allocations: 16.23 kB / 1.118 GB, free: 42.95 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001527/1.318, allocations: 81.11 kB / 1.118 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/1.318, allocations: 30.56 kB / 1.118 GB, free: 42.82 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 2.415e-06/1.318, allocations: 4.703 kB / 1.118 GB, free: 42.81 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0002453/1.318, allocations: 53 kB / 1.118 GB, free: 42.76 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/1.318, allocations: 54 kB / 1.118 GB, free: 42.7 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.381e-05/1.318, allocations: 97.3 kB / 1.118 GB, free: 42.61 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/1.318, allocations: 26.45 kB / 1.118 GB, free: 42.57 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.379e-05/1.318, allocations: 87.55 kB / 1.118 GB, free: 42.49 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/1.318, allocations: 7.906 kB / 1.118 GB, free: 42.48 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/1.318, allocations: 0 / 1.118 GB, free: 42.48 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.022e-05/1.318, allocations: 325.5 kB / 1.118 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.707e-05/1.318, allocations: 6.812 kB / 1.118 GB, free: 42.16 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.892e-05/1.318, allocations: 4 kB / 1.118 GB, free: 42.15 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.891e-05/1.319, allocations: 7 kB / 1.118 GB, free: 42.15 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/1.319, allocations: 4.656 kB / 1.118 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000128/1.319, allocations: 52.08 kB / 1.118 GB, free: 42.1 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/1.319, allocations: 4 kB / 1.118 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.319, allocations: 0 / 1.118 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/1.319, allocations: 4 kB / 1.118 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/1.319, allocations: 22.33 kB / 1.118 GB, free: 42.08 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/1.319, allocations: 0 / 1.118 GB, free: 42.08 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.227e-05/1.319, allocations: 8.656 kB / 1.118 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/1.319, allocations: 3.422 kB / 1.118 GB, free: 42.07 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.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 7.723e-05/1.319, allocations: 109.5 kB / 1.119 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.041e-05/1.319, allocations: 4 kB / 1.119 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/1.319, allocations: 57.66 kB / 1.119 GB, free: 41.91 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/1.319, allocations: 4.516 kB / 1.119 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/1.319, allocations: 0 / 1.119 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/1.319, allocations: 0.6562 kB / 1.119 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002044/1.32, allocations: 167.7 kB / 1.119 GB, free: 41.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.32, allocations: 1.438 kB / 1.119 GB, free: 41.7 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/1.32, allocations: 18.14 kB / 1.119 GB, free: 41.69 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/1.32, allocations: 0 / 1.119 GB, free: 41.69 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/1.32, allocations: 0.6094 kB / 1.119 GB, free: 41.69 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/1.32, allocations: 0 / 1.119 GB, free: 41.69 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.32, allocations: 4.75 kB / 1.119 GB, free: 41.68 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001509/1.32, allocations: 153.7 kB / 1.119 GB, free: 41.53 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/1.32, allocations: 77.62 kB / 1.119 GB, free: 41.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/1.32, allocations: 0 / 1.119 GB, free: 41.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/1.32, allocations: 11.42 kB / 1.119 GB, free: 41.43 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.891e-05/1.32, allocations: 15.75 kB / 1.119 GB, free: 41.43 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-06/1.32, allocations: 0 / 1.119 GB, free: 41.43 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 3.371e-05/1.32, allocations: 84.08 kB / 1.119 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.5e-07/1.32, allocations: 0.6562 kB / 1.119 GB, free: 41.34 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003729/1.321, allocations: 19.69 kB / 1.119 GB, free: 41.33 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.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.0002164/1.321, allocations: 108.2 kB / 1.119 GB, free: 41.22 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001435/1.321, allocations: 19.88 kB / 1.119 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/1.321, allocations: 0 / 1.119 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.581e-05/1.321, allocations: 16.2 kB / 1.119 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/1.322, allocations: 9.172 kB / 1.119 GB, free: 41.19 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002893/1.322, allocations: 70.45 kB / 1.119 GB, free: 41.11 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/1.322, allocations: 0.6796 MB / 1.12 GB, free: 40.41 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.222e-05/1.322, allocations: 4 kB / 1.12 GB, free: 40.41 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.56e-05/1.322, allocations: 7.438 kB / 1.12 GB, free: 40.4 MB / 0.7448 GB Notification: Performance of SimCode: time 7.31e-07/1.322, allocations: 0 / 1.12 GB, free: 40.4 MB / 0.7448 GB Notification: Performance of Templates: time 0.004124/1.326, allocations: 0.597 MB / 1.121 GB, free: 40.08 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)