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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 100.8 kB / 16.29 MB, free: 6.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 187.8 kB / 17.22 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.609/1.609, allocations: 292.3 MB / 0.5495 GB, free: 17.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 67.91 kB / 0.6722 GB, free: 6.488 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1899, allocations: 114.6 MB / 0.7841 GB, free: 3.816 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001606/0.1915, allocations: 0.5708 MB / 0.7846 GB, free: 3.234 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0002203/0.1918, allocations: 55.83 kB / 0.7847 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.316e-05/0.1918, allocations: 0 / 0.7847 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.267e-05/0.1918, allocations: 0 / 0.7847 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 4.268e-06/0.1918, allocations: 4 kB / 0.7847 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.192, allocations: 11.94 kB / 0.7847 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 3.933e-05/0.1921, allocations: 8 kB / 0.7847 GB, free: 3.156 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.151e-05/0.1921, allocations: 3.984 kB / 0.7847 GB, free: 3.152 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 1.35e-05/0.1921, allocations: 4 kB / 0.7847 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 1.765e-05/0.1921, allocations: 0 / 0.7847 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.1922, allocations: 3.984 kB / 0.7847 GB, free: 3.145 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.411e-05/0.1922, allocations: 8 kB / 0.7847 GB, free: 3.137 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.266e-06/0.1922, allocations: 0 / 0.7847 GB, free: 3.137 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 1.914e-05/0.1923, allocations: 7.938 kB / 0.7847 GB, free: 3.129 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 6.653e-05/0.1923, allocations: 3.984 kB / 0.7848 GB, free: 3.125 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1923, allocations: 8 kB / 0.7848 GB, free: 3.117 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1924, allocations: 3.938 kB / 0.7848 GB, free: 3.113 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.648e-06/0.1924, allocations: 0 / 0.7848 GB, free: 3.113 MB / 0.6544 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.0002529/0.1926, allocations: 319.6 kB / 0.7851 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/0.1927, allocations: 8.031 kB / 0.7851 GB, free: 2.742 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.707e-05/0.1927, allocations: 0.9375 kB / 0.7851 GB, free: 2.742 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.626e-05/0.1928, allocations: 160.4 kB / 0.7852 GB, free: 2.547 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.709e-06/0.1928, allocations: 4.375 kB / 0.7852 GB, free: 2.543 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.392e-06/0.1928, allocations: 384 / 0.7852 GB, free: 2.543 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.563e-05/0.1929, allocations: 46.19 kB / 0.7853 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.1929, allocations: 192 / 0.7853 GB, free: 2.492 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.286e-06/0.1929, allocations: 3.938 kB / 0.7853 GB, free: 2.488 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.1929, allocations: 0 / 0.7853 GB, free: 2.488 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.565e-05/0.1929, allocations: 4 kB / 0.7853 GB, free: 2.484 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.1931, allocations: 145.7 kB / 0.7854 GB, free: 2.293 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 4.25e-05/0.1931, allocations: 26.59 kB / 0.7854 GB, free: 2.258 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.715e-05/0.1931, allocations: 8.859 kB / 0.7855 GB, free: 2.246 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001302/0.1933, allocations: 85.11 kB / 0.7855 GB, free: 2.145 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.1933, allocations: 38.55 kB / 0.7856 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=2): time 2.244e-06/0.1933, allocations: 0 / 0.7856 GB, free: 2.098 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2): time 0.000115/0.1934, allocations: 45.56 kB / 0.7856 GB, free: 2.047 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.1935, allocations: 55.41 kB / 0.7857 GB, free: 1.98 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.197e-05/0.1935, allocations: 89.86 kB / 0.7858 GB, free: 1.883 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/0.1935, allocations: 29.7 kB / 0.7858 GB, free: 1.848 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.941e-05/0.1935, allocations: 84.27 kB / 0.7859 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.1936, allocations: 3.906 kB / 0.7859 GB, free: 1.758 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.1936, allocations: 17.7 kB / 0.7859 GB, free: 1.734 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.458e-05/0.1937, allocations: 310.8 kB / 0.7862 GB, free: 1.422 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.278e-06/0.1937, allocations: 0 / 0.7862 GB, free: 1.422 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.178e-05/0.1937, allocations: 15.94 kB / 0.7862 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.539e-05/0.1937, allocations: 8.859 kB / 0.7862 GB, free: 1.395 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1937, allocations: 4.062 kB / 0.7862 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.201e-05/0.1938, allocations: 41.69 kB / 0.7863 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.1938, allocations: 4 kB / 0.7863 GB, free: 1.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.1938, allocations: 4 kB / 0.7863 GB, free: 1.336 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1938, allocations: 3.938 kB / 0.7863 GB, free: 1.332 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.487e-05/0.1939, allocations: 0 / 0.7863 GB, free: 1.332 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1939, allocations: 7.984 kB / 0.7863 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.144e-05/0.1939, allocations: 288 / 0.7863 GB, free: 1.324 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-06/0.1939, allocations: 0 / 0.7863 GB, free: 1.324 MB / 0.6544 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.661e-05/0.194, allocations: 121.7 kB / 0.7864 GB, free: 1.195 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.194, allocations: 4 kB / 0.7864 GB, free: 1.191 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.16e-05/0.1941, allocations: 40.77 kB / 0.7864 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1941, allocations: 3.938 kB / 0.7864 GB, free: 1.141 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.1941, allocations: 4 kB / 0.7864 GB, free: 1.137 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1941, allocations: 3.984 kB / 0.7864 GB, free: 1.133 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.069e-05/0.1942, allocations: 149.7 kB / 0.7866 GB, free: 0.9375 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1942, allocations: 0 / 0.7866 GB, free: 0.9375 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.073e-05/0.1942, allocations: 4 kB / 0.7866 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1942, allocations: 0 / 0.7866 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.1942, allocations: 7.969 kB / 0.7866 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1942, allocations: 3.984 kB / 0.7866 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1942, allocations: 4 kB / 0.7866 GB, free: 0.918 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.163e-05/0.1943, allocations: 61.08 kB / 0.7867 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.323e-05/0.1943, allocations: 77.11 kB / 0.7867 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.1944, allocations: 7.922 kB / 0.7867 GB, free: 0.7383 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-06/0.1944, allocations: 3.938 kB / 0.7867 GB, free: 0.7344 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.361e-05/0.1944, allocations: 8.031 kB / 0.7868 GB, free: 0.7266 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.1944, allocations: 0 / 0.7868 GB, free: 0.7266 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 1.894e-05/0.1944, allocations: 75.28 kB / 0.7868 GB, free: 0.6523 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1944, allocations: 0 / 0.7868 GB, free: 0.6523 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0001694/0.1946, allocations: 4 kB / 0.7868 GB, free: 0.6484 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001134/0.1947, allocations: 99.25 kB / 0.7869 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 6.725e-05/0.1948, allocations: 19.92 kB / 0.7869 GB, free: 0.5234 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1948, allocations: 4.062 kB / 0.7869 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.431e-05/0.1948, allocations: 4 kB / 0.7869 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001157/0.1949, allocations: 4 kB / 0.787 GB, free: 0.5117 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001509/0.1951, allocations: 76.97 kB / 0.787 GB, free: 420 kB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2742/0.4693, allocations: 0.6729 MB / 0.7877 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 2.082e-05/0.4694, allocations: 0.6875 kB / 0.7877 GB, free: 48.16 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/0.4694, allocations: 10.19 kB / 0.7877 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of SimCode: time 8.81e-07/0.4694, allocations: 0 / 0.7877 GB, free: 48.15 MB / 0.6544 GB Notification: Performance of Templates: time 0.001799/0.4712, allocations: 317.1 kB / 0.788 GB, free: 48.15 MB / 0.6544 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)