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.572/1.572, allocations: 292.3 MB / 308.1 MB, free: 4.289 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.001159/0.001159, allocations: 192.5 kB / 376.9 MB, free: 1.82 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.336/1.336, allocations: 205 MB / 0.6353 GB, free: 9.816 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.0009213/0.0009213, allocations: 96.14 kB / 0.748 GB, free: 60.96 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009178/0.000918, allocations: 51.92 kB / 0.8704 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2116, allocations: 114.5 MB / 0.9822 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001799/0.2134, allocations: 0.6626 MB / 0.9829 GB, free: 9.723 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0002696/0.2137, allocations: 55.78 kB / 0.9829 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.262e-05/0.2137, allocations: 0 / 0.9829 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.2138, allocations: 0 / 0.9829 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 6.372e-06/0.2138, allocations: 0 / 0.9829 GB, free: 9.668 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.214, allocations: 4 kB / 0.9829 GB, free: 9.664 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 5.667e-05/0.2141, allocations: 8 kB / 0.9829 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 5.364e-05/0.2142, allocations: 0 / 0.9829 GB, free: 9.656 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 2.334e-05/0.2142, allocations: 7.922 kB / 0.9829 GB, free: 9.648 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 2.383e-05/0.2142, allocations: 0 / 0.9829 GB, free: 9.648 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.2143, allocations: 4 kB / 0.9829 GB, free: 9.645 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 8.426e-05/0.2144, allocations: 19.98 kB / 0.983 GB, free: 9.625 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.293e-05/0.2144, allocations: 0 / 0.983 GB, free: 9.625 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 2.407e-05/0.2144, allocations: 0 / 0.983 GB, free: 9.625 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 8.852e-05/0.2145, allocations: 11.97 kB / 0.983 GB, free: 9.613 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2145, allocations: 0 / 0.983 GB, free: 9.613 MB / 0.7136 GB Notification: Performance of FrontEnd: time 9.01e-07/0.2145, allocations: 0 / 0.983 GB, free: 9.613 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.2145, allocations: 0 / 0.983 GB, free: 9.613 MB / 0.7136 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.0003422/0.2149, allocations: 315.6 kB / 0.9833 GB, free: 9.254 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.2149, allocations: 12.03 kB / 0.9833 GB, free: 9.242 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.215, allocations: 0.9375 kB / 0.9833 GB, free: 9.242 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.271e-05/0.2151, allocations: 168.4 kB / 0.9834 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.044e-05/0.2151, allocations: 384 / 0.9834 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/0.2151, allocations: 384 / 0.9834 GB, free: 9.039 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.2152, allocations: 34.2 kB / 0.9835 GB, free: 9 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.2152, allocations: 192 / 0.9835 GB, free: 9 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.2152, allocations: 3.938 kB / 0.9835 GB, free: 8.996 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.2153, allocations: 3.938 kB / 0.9835 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.662e-05/0.2153, allocations: 11.98 kB / 0.9835 GB, free: 8.98 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000137/0.2154, allocations: 145.7 kB / 0.9836 GB, free: 8.789 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 4.919e-05/0.2155, allocations: 26.61 kB / 0.9837 GB, free: 8.754 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.198e-05/0.2155, allocations: 20.84 kB / 0.9837 GB, free: 8.73 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.2157, allocations: 77.11 kB / 0.9838 GB, free: 8.637 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.2157, allocations: 34.56 kB / 0.9838 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=2): time 1.163e-06/0.2157, allocations: 0 / 0.9838 GB, free: 8.594 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2): time 0.0001335/0.2159, allocations: 49.53 kB / 0.9838 GB, free: 8.539 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.783e-05/0.2159, allocations: 55.53 kB / 0.9839 GB, free: 8.473 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.315e-05/0.2159, allocations: 89.86 kB / 0.984 GB, free: 8.375 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.759e-06/0.2159, allocations: 25.7 kB / 0.984 GB, free: 8.344 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 1.885e-05/0.216, allocations: 80.14 kB / 0.9841 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.216, allocations: 4 kB / 0.9841 GB, free: 8.258 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.216, allocations: 13.72 kB / 0.9841 GB, free: 8.238 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.361e-05/0.2161, allocations: 310.8 kB / 0.9844 GB, free: 7.926 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.412e-05/0.2161, allocations: 7.984 kB / 0.9844 GB, free: 7.918 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.454e-06/0.2161, allocations: 7.938 kB / 0.9844 GB, free: 7.91 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.251e-05/0.2162, allocations: 16.86 kB / 0.9844 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2162, allocations: 0 / 0.9844 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.413e-05/0.2163, allocations: 37.7 kB / 0.9845 GB, free: 7.848 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.2163, allocations: 4 kB / 0.9845 GB, free: 7.844 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2163, allocations: 3.984 kB / 0.9845 GB, free: 7.84 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2163, allocations: 3.938 kB / 0.9845 GB, free: 7.836 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.508e-05/0.2164, allocations: 4 kB / 0.9845 GB, free: 7.832 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.2164, allocations: 3.938 kB / 0.9845 GB, free: 7.828 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.283e-05/0.2164, allocations: 4.375 kB / 0.9845 GB, free: 7.824 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.2164, allocations: 0 / 0.9845 GB, free: 7.824 MB / 0.7136 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 6.796e-05/0.2165, allocations: 121.7 kB / 0.9846 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-06/0.2165, allocations: 0 / 0.9846 GB, free: 7.695 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.435e-05/0.2166, allocations: 56.73 kB / 0.9846 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.2166, allocations: 0 / 0.9846 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2166, allocations: 0 / 0.9846 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.2166, allocations: 0 / 0.9846 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.828e-05/0.2167, allocations: 153.7 kB / 0.9848 GB, free: 7.438 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2167, allocations: 0 / 0.9848 GB, free: 7.438 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.399e-05/0.2167, allocations: 4 kB / 0.9848 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2167, allocations: 0 / 0.9848 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.2167, allocations: 3.938 kB / 0.9848 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.2167, allocations: 0 / 0.9848 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2168, allocations: 0 / 0.9848 GB, free: 7.43 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.217, allocations: 0.62 MB / 0.9854 GB, free: 6.75 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.588e-05/0.2171, allocations: 81.05 kB / 0.9855 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.2171, allocations: 0 / 0.9855 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.068e-05/0.2171, allocations: 3.938 kB / 0.9855 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.317e-05/0.2171, allocations: 4 kB / 0.9855 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.2171, allocations: 4 kB / 0.9855 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.997e-05/0.2172, allocations: 75.28 kB / 0.9856 GB, free: 6.566 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1e-07/0.2172, allocations: 0 / 0.9856 GB, free: 6.566 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000291/0.2175, allocations: 4 kB / 0.9856 GB, free: 6.562 MB / 0.7136 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.000169/0.2176, allocations: 109.1 kB / 0.9857 GB, free: 6.445 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.628e-05/0.2177, allocations: 8 kB / 0.9857 GB, free: 6.438 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2177, allocations: 0 / 0.9857 GB, free: 6.438 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.54e-05/0.2177, allocations: 4 kB / 0.9857 GB, free: 6.434 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.2179, allocations: 7.938 kB / 0.9857 GB, free: 6.426 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000249/0.2181, allocations: 193.5 kB / 0.9859 GB, free: 6.199 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.2184, allocations: 0.6731 MB / 0.9865 GB, free: 5.5 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.709e-05/0.2184, allocations: 4 kB / 0.9865 GB, free: 5.496 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.392e-05/0.2184, allocations: 7.438 kB / 0.9865 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of SimCode: time 4.91e-07/0.2184, allocations: 0 / 0.9865 GB, free: 5.488 MB / 0.7136 GB Notification: Performance of Templates: time 0.001911/0.2203, allocations: 304.6 kB / 0.9868 GB, free: 5.191 MB / 0.7136 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)