Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.684/2.684, allocations: 287.3 MB / 302.3 MB, free: 8.277 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.001588/0.001588, allocations: 176.1 kB / 370.8 MB, free: 10.87 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.269/2.269, allocations: 205.4 MB / 0.6295 GB, free: 10.63 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.00116/0.00116, allocations: 77.12 kB / 0.7428 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005025/0.0005033, allocations: 13.17 kB / 0.8656 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2469, allocations: 115.3 MB / 0.9782 GB, free: 28.41 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003808/0.2508, allocations: 1.22 MB / 0.9794 GB, free: 27.18 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0004022/0.2513, allocations: 116.6 kB / 0.9795 GB, free: 27.06 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.361e-05/0.2513, allocations: 0 / 0.9795 GB, free: 27.06 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.2514, allocations: 4 kB / 0.9795 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.184e-05/0.2514, allocations: 7.922 kB / 0.9795 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.2516, allocations: 23.92 kB / 0.9795 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 5.877e-05/0.2517, allocations: 15.97 kB / 0.9795 GB, free: 27.01 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.275e-05/0.2518, allocations: 4 kB / 0.9795 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.172e-05/0.2519, allocations: 15.92 kB / 0.9796 GB, free: 26.99 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.897e-05/0.2519, allocations: 11.98 kB / 0.9796 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.2519, allocations: 0 / 0.9796 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.619e-05/0.252, allocations: 11.98 kB / 0.9796 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.164e-05/0.252, allocations: 4 kB / 0.9796 GB, free: 26.96 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.64e-05/0.2521, allocations: 33.64 kB / 0.9796 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.939e-05/0.2522, allocations: 19.95 kB / 0.9796 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.2522, allocations: 0 / 0.9796 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2522, allocations: 0 / 0.9796 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.249e-06/0.2522, allocations: 0 / 0.9796 GB, free: 26.9 MB / 0.6198 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.0004731/0.2527, allocations: 343.5 kB / 0.98 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.2527, allocations: 20.02 kB / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.2528, allocations: 0 / 0.98 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.408e-05/0.2529, allocations: 167 kB / 0.9801 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.2529, allocations: 0 / 0.9801 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.2529, allocations: 0 / 0.9801 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.2532, allocations: 69.66 kB / 0.9802 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.2532, allocations: 3.938 kB / 0.9802 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.2533, allocations: 3.938 kB / 0.9802 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.2533, allocations: 8 kB / 0.9802 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.2536, allocations: 47.95 kB / 0.9803 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004654/0.2541, allocations: 272.8 kB / 0.9805 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007298/0.2548, allocations: 74.41 kB / 0.9806 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000197/0.2551, allocations: 81.17 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.2551, allocations: 34.64 kB / 0.9807 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 4.98e-06/0.2551, allocations: 0 / 0.9807 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0008805/0.256, allocations: 109.6 kB / 0.9808 GB, free: 25.51 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.2561, allocations: 51.41 kB / 0.9809 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.2562, allocations: 101.8 kB / 0.981 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.2562, allocations: 29.7 kB / 0.981 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.2563, allocations: 80.14 kB / 0.9811 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.2563, allocations: 11.84 kB / 0.9811 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-06/0.2564, allocations: 0 / 0.9811 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.13e-05/0.2565, allocations: 322.8 kB / 0.9814 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.2567, allocations: 23.92 kB / 0.9814 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002154/0.2569, allocations: 27.98 kB / 0.9814 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.2572, allocations: 27.97 kB / 0.9815 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.2572, allocations: 0 / 0.9815 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005822/0.2578, allocations: 85.66 kB / 0.9815 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.2579, allocations: 4 kB / 0.9815 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.2579, allocations: 0 / 0.9815 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.731e-05/0.2579, allocations: 0 / 0.9815 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.2582, allocations: 15.98 kB / 0.9816 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/0.2582, allocations: 0 / 0.9816 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.2585, allocations: 15.89 kB / 0.9816 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.2585, allocations: 4 kB / 0.9816 GB, free: 24.68 MB / 0.6198 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,rea2Int.y) * 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.0001316/0.2587, allocations: 109.8 kB / 0.9817 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.847e-05/0.2588, allocations: 11.94 kB / 0.9817 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006971/0.2595, allocations: 89.14 kB / 0.9818 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.2595, allocations: 4 kB / 0.9818 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.2596, allocations: 0 / 0.9818 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.2596, allocations: 0 / 0.9818 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003113/0.2599, allocations: 165.5 kB / 0.9819 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2599, allocations: 0 / 0.9819 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.2601, allocations: 15.98 kB / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.2602, allocations: 0 / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.2602, allocations: 4.562 kB / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.2602, allocations: 0 / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.2602, allocations: 0 / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005966/0.2608, allocations: 195.4 kB / 0.9822 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.2609, allocations: 85.02 kB / 0.9822 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.2609, allocations: 0 / 0.9822 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.2612, allocations: 15.98 kB / 0.9822 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.314e-05/0.2614, allocations: 3.984 kB / 0.9823 GB, free: 23.89 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.2614, allocations: 7.938 kB / 0.9823 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.066e-05/0.2615, allocations: 79.28 kB / 0.9823 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of sort global known variables: time 9.62e-07/0.2615, allocations: 4 kB / 0.9823 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0007079/0.2622, allocations: 4 kB / 0.9823 GB, free: 23.8 MB / 0.6198 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,rea2Int.y) * 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.0002209/0.2624, allocations: 103.2 kB / 0.9824 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006552/0.2631, allocations: 63.88 kB / 0.9825 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.2631, allocations: 0 / 0.9825 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.2634, allocations: 31.98 kB / 0.9825 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.2637, allocations: 3.953 kB / 0.9825 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003993/0.2642, allocations: 117.7 kB / 0.9826 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001618/0.2643, allocations: 0.6848 MB / 0.9833 GB, free: 22.74 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.024e-05/0.2644, allocations: 11.94 kB / 0.9833 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.74e-05/0.2645, allocations: 7.438 kB / 0.9833 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of SimCode: time 9.72e-07/0.2645, allocations: 0 / 0.9833 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of Templates: time 0.004823/0.2694, allocations: 0.5889 MB / 0.9839 GB, free: 22.14 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)