Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.576/2.576, allocations: 287.3 MB / 302.3 MB, free: 8.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.001594/0.001594, allocations: 190.7 kB / 370.8 MB, free: 10.86 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.229/2.229, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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: 96.11 kB / 0.7428 GB, free: 6.637 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004888/0.000489, allocations: 13.31 kB / 0.8656 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.213, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007029/0.2137, allocations: 321.8 kB / 0.9785 GB, free: 28.07 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002156/0.2139, allocations: 41.56 kB / 0.9785 GB, free: 28.03 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.423e-05/0.214, allocations: 0 / 0.9785 GB, free: 28.03 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 9.919e-06/0.214, allocations: 0 / 0.9785 GB, free: 28.03 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.889e-06/0.214, allocations: 0 / 0.9785 GB, free: 28.03 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.2142, allocations: 8 kB / 0.9786 GB, free: 28.02 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 3.356e-05/0.2142, allocations: 8 kB / 0.9786 GB, free: 28.02 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.817e-05/0.2143, allocations: 0 / 0.9786 GB, free: 28.02 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.455e-05/0.2143, allocations: 3.984 kB / 0.9786 GB, free: 28.01 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.398e-05/0.2143, allocations: 3.984 kB / 0.9786 GB, free: 28.01 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.787e-06/0.2144, allocations: 0 / 0.9786 GB, free: 28.01 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.101e-05/0.2144, allocations: 8 kB / 0.9786 GB, free: 28 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.314e-06/0.2145, allocations: 11.88 kB / 0.9786 GB, free: 27.99 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.768e-05/0.2145, allocations: 25.7 kB / 0.9786 GB, free: 27.96 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 5.596e-05/0.2146, allocations: 3.984 kB / 0.9786 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.2146, allocations: 0 / 0.9786 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.705e-06/0.2146, allocations: 4 kB / 0.9786 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.888e-06/0.2146, allocations: 4 kB / 0.9786 GB, free: 27.95 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002171/0.2148, allocations: 309.4 kB / 0.9789 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2149, allocations: 16.08 kB / 0.9789 GB, free: 27.58 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.475e-05/0.2149, allocations: 0 / 0.9789 GB, free: 27.58 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.372e-05/0.215, allocations: 163 kB / 0.9791 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.215, allocations: 0 / 0.9791 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.215, allocations: 0 / 0.9791 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.114e-05/0.2151, allocations: 33.69 kB / 0.9791 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.2151, allocations: 4 kB / 0.9791 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.565e-06/0.2152, allocations: 0 / 0.9791 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.2152, allocations: 0 / 0.9791 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.546e-05/0.2152, allocations: 7.938 kB / 0.9791 GB, free: 27.33 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001172/0.2153, allocations: 157.6 kB / 0.9793 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.676e-05/0.2154, allocations: 22.61 kB / 0.9793 GB, free: 27.1 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.2156, allocations: 85.16 kB / 0.9794 GB, free: 27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.2156, allocations: 34.56 kB / 0.9794 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.532e-06/0.2156, allocations: 0 / 0.9794 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001292/0.2157, allocations: 41.64 kB / 0.9795 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.2158, allocations: 51.41 kB / 0.9795 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.757e-05/0.2158, allocations: 93.8 kB / 0.9796 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.775e-06/0.2158, allocations: 25.7 kB / 0.9796 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.536e-05/0.2159, allocations: 84.12 kB / 0.9797 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.2159, allocations: 7.906 kB / 0.9797 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-06/0.2159, allocations: 0 / 0.9797 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.221e-05/0.216, allocations: 315 kB / 0.98 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.216, allocations: 0 / 0.98 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.184e-05/0.216, allocations: 8 kB / 0.98 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.126e-05/0.216, allocations: 3.938 kB / 0.98 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.216, allocations: 4 kB / 0.98 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.661e-05/0.2161, allocations: 41.64 kB / 0.9801 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.2161, allocations: 7.938 kB / 0.9801 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2162, allocations: 0 / 0.9801 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.2162, allocations: 4.094 kB / 0.9801 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.947e-05/0.2162, allocations: 4 kB / 0.9801 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.2163, allocations: 3.984 kB / 0.9801 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.93e-05/0.2163, allocations: 8.266 kB / 0.9801 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.2163, allocations: 0 / 0.9801 GB, free: 26.21 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,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.352e-05/0.2164, allocations: 113.8 kB / 0.9802 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-06/0.2164, allocations: 3.953 kB / 0.9802 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.796e-05/0.2165, allocations: 48.81 kB / 0.9802 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.2165, allocations: 4.031 kB / 0.9803 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2165, allocations: 0 / 0.9803 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2165, allocations: 0 / 0.9803 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.619e-05/0.2166, allocations: 153.7 kB / 0.9804 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2166, allocations: 0 / 0.9804 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-05/0.2166, allocations: 3.938 kB / 0.9804 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.2167, allocations: 3.953 kB / 0.9804 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.2167, allocations: 4 kB / 0.9804 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2167, allocations: 0 / 0.9804 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2167, allocations: 0 / 0.9804 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.299e-05/0.2168, allocations: 65.12 kB / 0.9805 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.021e-05/0.2168, allocations: 77.11 kB / 0.9805 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.2168, allocations: 7.953 kB / 0.9806 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.596e-05/0.2169, allocations: 4 kB / 0.9806 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3e-05/0.2169, allocations: 3.984 kB / 0.9806 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.2169, allocations: 0 / 0.9806 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.477e-05/0.2169, allocations: 75.28 kB / 0.9806 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.1e-07/0.2169, allocations: 0 / 0.9806 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000231/0.2172, allocations: 8.031 kB / 0.9806 GB, free: 25.55 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,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 (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.0001322/0.2173, allocations: 99.25 kB / 0.9807 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 6.922e-05/0.2174, allocations: 19.86 kB / 0.9808 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2174, allocations: 3.938 kB / 0.9808 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.997e-05/0.2174, allocations: 8 kB / 0.9808 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.734e-05/0.2175, allocations: 0 / 0.9808 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001544/0.2177, allocations: 82.88 kB / 0.9808 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.2178, allocations: 0.6731 MB / 0.9815 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.516e-05/0.2179, allocations: 0 / 0.9815 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.651e-05/0.2179, allocations: 11.44 kB / 0.9815 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of SimCode: time 6.21e-07/0.2179, allocations: 0 / 0.9815 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of Templates: time 0.002414/0.2203, allocations: 297.9 kB / 0.9818 GB, free: 24.3 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)