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 1.624/1.624, allocations: 287.5 MB / 302.6 MB, free: 8.152 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.0009969/0.000997, allocations: 184.1 kB / 371.2 MB, free: 10.76 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.839/1.839, allocations: 205.4 MB / 0.6298 GB, free: 10.57 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.0009251/0.0009252, allocations: 86.36 kB / 0.7432 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004858/0.000486, allocations: 13.34 kB / 0.8661 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2387, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007472/0.2394, allocations: 323.5 kB / 0.979 GB, free: 27.87 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002721/0.2397, allocations: 43.83 kB / 0.979 GB, free: 27.83 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.641e-05/0.2398, allocations: 4 kB / 0.979 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.297e-05/0.2398, allocations: 3.938 kB / 0.979 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.105e-06/0.2398, allocations: 4 kB / 0.979 GB, free: 27.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002308/0.2401, allocations: 4 kB / 0.979 GB, free: 27.81 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 4.446e-05/0.2401, allocations: 7.984 kB / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 5.478e-05/0.2402, allocations: 0 / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.322e-05/0.2402, allocations: 0 / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.712e-05/0.2402, allocations: 7.984 kB / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 9.758e-06/0.2403, allocations: 0 / 0.9791 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.621e-05/0.2403, allocations: 8 kB / 0.9791 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.874e-06/0.2403, allocations: 0 / 0.9791 GB, free: 27.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 1.807e-05/0.2404, allocations: 25.7 kB / 0.9791 GB, free: 27.76 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 6.428e-05/0.2404, allocations: 11.98 kB / 0.9791 GB, free: 27.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.2404, allocations: 4 kB / 0.9791 GB, free: 27.74 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.883e-06/0.2405, allocations: 0 / 0.9791 GB, free: 27.74 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2405, allocations: 0 / 0.9791 GB, free: 27.74 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.0002255/0.2407, allocations: 315.6 kB / 0.9794 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2407, allocations: 8.031 kB / 0.9794 GB, free: 27.38 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.2408, allocations: 4.922 kB / 0.9794 GB, free: 27.37 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.777e-05/0.2408, allocations: 160.4 kB / 0.9796 GB, free: 27.18 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.2409, allocations: 4.375 kB / 0.9796 GB, free: 27.17 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.2409, allocations: 384 / 0.9796 GB, free: 27.17 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.241, allocations: 38.27 kB / 0.9796 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.241, allocations: 192 / 0.9796 GB, free: 27.13 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.241, allocations: 3.938 kB / 0.9796 GB, free: 27.12 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.241, allocations: 0 / 0.9796 GB, free: 27.12 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.032e-05/0.2411, allocations: 11.92 kB / 0.9796 GB, free: 27.11 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001126/0.2412, allocations: 145.7 kB / 0.9798 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.262e-05/0.2412, allocations: 26.55 kB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.849e-05/0.2413, allocations: 12.91 kB / 0.9798 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001607/0.2414, allocations: 85.11 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.2415, allocations: 34.56 kB / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.2415, allocations: 0 / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001336/0.2416, allocations: 45.62 kB / 0.98 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.2416, allocations: 55.34 kB / 0.98 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.277e-05/0.2417, allocations: 89.86 kB / 0.9801 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.467e-06/0.2417, allocations: 29.7 kB / 0.9801 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.473e-05/0.2417, allocations: 84.27 kB / 0.9802 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.2417, allocations: 3.906 kB / 0.9802 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.2417, allocations: 0 / 0.9802 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.168e-05/0.2418, allocations: 318.8 kB / 0.9805 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.1e-05/0.2418, allocations: 4 kB / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-06/0.2419, allocations: 3.984 kB / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.988e-05/0.2419, allocations: 8.859 kB / 0.9805 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2419, allocations: 0 / 0.9805 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.388e-05/0.242, allocations: 45.7 kB / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.242, allocations: 8 kB / 0.9806 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.242, allocations: 0 / 0.9806 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.242, allocations: 3.938 kB / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.456e-05/0.2421, allocations: 7.984 kB / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.2421, allocations: 0 / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.51e-05/0.2421, allocations: 288 / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-06/0.2421, allocations: 0 / 0.9806 GB, free: 25.98 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 4.966e-05/0.2422, allocations: 113.8 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.804e-06/0.2422, allocations: 8.031 kB / 0.9807 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.26e-05/0.2423, allocations: 44.75 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.2423, allocations: 4 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2423, allocations: 0 / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.2423, allocations: 0 / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.015e-05/0.2424, allocations: 153.7 kB / 0.9809 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2424, allocations: 0 / 0.9809 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.314e-05/0.2424, allocations: 7.938 kB / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.093e-06/0.2424, allocations: 3.938 kB / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.2424, allocations: 3.938 kB / 0.9809 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2424, allocations: 8.031 kB / 0.9809 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2424, allocations: 0 / 0.9809 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.364e-05/0.2425, allocations: 61.12 kB / 0.981 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.446e-05/0.2425, allocations: 77.11 kB / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.093e-05/0.2425, allocations: 3.938 kB / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.095e-05/0.2426, allocations: 0 / 0.9811 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.162e-05/0.2426, allocations: 4 kB / 0.9811 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.2426, allocations: 8.031 kB / 0.9811 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.347e-05/0.2426, allocations: 75.28 kB / 0.9812 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.2426, allocations: 0 / 0.9812 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002149/0.2428, allocations: 7.984 kB / 0.9812 GB, free: 25.3 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.0001425/0.243, allocations: 107.2 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 6.503e-05/0.2431, allocations: 8 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2431, allocations: 0 / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.236e-05/0.2431, allocations: 8.062 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.2432, allocations: 3.984 kB / 0.9813 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001607/0.2434, allocations: 83.3 kB / 0.9814 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.2435, allocations: 0.6731 MB / 0.982 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.755e-05/0.2435, allocations: 7.984 kB / 0.982 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.369e-05/0.2435, allocations: 7.438 kB / 0.982 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of SimCode: time 7.92e-07/0.2435, allocations: 0 / 0.982 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of Templates: time 0.001971/0.2455, allocations: 308.9 kB / 0.9823 GB, free: 24.05 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)