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.719/2.719, allocations: 287.5 MB / 302.4 MB, free: 8.418 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.00135/0.00135, allocations: 186 kB / 371 MB, free: 10.85 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.216/2.216, allocations: 205.4 MB / 0.6297 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.001296/0.001295, allocations: 96.45 kB / 0.743 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007731/0.0007736, allocations: 21.66 kB / 0.8658 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2147, allocations: 115.3 MB / 0.9784 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007102/0.2155, allocations: 323.5 kB / 0.9787 GB, free: 27.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002569/0.2158, allocations: 39.91 kB / 0.9787 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.112e-05/0.2158, allocations: 0 / 0.9787 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.077e-05/0.2158, allocations: 0 / 0.9787 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.154e-06/0.2158, allocations: 0 / 0.9787 GB, free: 27.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.216, allocations: 15.97 kB / 0.9787 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 3.743e-05/0.2161, allocations: 0 / 0.9787 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.561e-05/0.2161, allocations: 4 kB / 0.9787 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.313e-05/0.2162, allocations: 0 / 0.9787 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.548e-05/0.2162, allocations: 0 / 0.9787 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.2162, allocations: 3.938 kB / 0.9787 GB, free: 27.92 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.319e-05/0.2163, allocations: 15.98 kB / 0.9787 GB, free: 27.91 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.014e-06/0.2163, allocations: 4 kB / 0.9788 GB, free: 27.9 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 1.771e-05/0.2163, allocations: 25.7 kB / 0.9788 GB, free: 27.87 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 5.518e-05/0.2164, allocations: 4 kB / 0.9788 GB, free: 27.87 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2164, allocations: 0 / 0.9788 GB, free: 27.87 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.555e-06/0.2164, allocations: 4 kB / 0.9788 GB, free: 27.86 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.038e-06/0.2164, allocations: 0 / 0.9788 GB, free: 27.86 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.0002165/0.2166, allocations: 307.4 kB / 0.9791 GB, free: 27.52 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.2167, allocations: 16.08 kB / 0.9791 GB, free: 27.5 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.51e-05/0.2167, allocations: 0 / 0.9791 GB, free: 27.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.001e-05/0.2168, allocations: 171 kB / 0.9793 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.2168, allocations: 0 / 0.9793 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.2168, allocations: 0 / 0.9793 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.824e-05/0.2169, allocations: 33.69 kB / 0.9793 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.217, allocations: 3.938 kB / 0.9793 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.217, allocations: 0 / 0.9793 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.217, allocations: 3.938 kB / 0.9793 GB, free: 27.25 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.474e-05/0.217, allocations: 11.94 kB / 0.9793 GB, free: 27.23 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001139/0.2172, allocations: 161.6 kB / 0.9795 GB, free: 27.03 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.65e-05/0.2172, allocations: 22.61 kB / 0.9795 GB, free: 27 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.147e-05/0.2172, allocations: 8.859 kB / 0.9795 GB, free: 26.98 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001421/0.2174, allocations: 81.17 kB / 0.9796 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.2174, allocations: 34.55 kB / 0.9796 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 1.613e-06/0.2174, allocations: 0 / 0.9796 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.000129/0.2176, allocations: 45.64 kB / 0.9796 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.073e-05/0.2176, allocations: 55.53 kB / 0.9797 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.283e-05/0.2176, allocations: 89.86 kB / 0.9798 GB, free: 26.63 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.198e-06/0.2177, allocations: 25.7 kB / 0.9798 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.236e-05/0.2177, allocations: 80.14 kB / 0.9799 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.2177, allocations: 3.906 kB / 0.9799 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.2177, allocations: 0 / 0.9799 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.336e-05/0.2178, allocations: 318.8 kB / 0.9802 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.483e-05/0.2178, allocations: 4 kB / 0.9802 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.049e-05/0.2178, allocations: 4 kB / 0.9802 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.098e-05/0.2179, allocations: 8.062 kB / 0.9802 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2179, allocations: 3.953 kB / 0.9802 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.652e-05/0.2179, allocations: 41.62 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.218, allocations: 4 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.218, allocations: 4 kB / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.218, allocations: 0 / 0.9803 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.039e-05/0.2181, allocations: 4 kB / 0.9803 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.2181, allocations: 4 kB / 0.9803 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.744e-05/0.2181, allocations: 288 / 0.9803 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-06/0.2181, allocations: 8.016 kB / 0.9803 GB, free: 26.1 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.113e-05/0.2182, allocations: 109.8 kB / 0.9804 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.2182, allocations: 3.953 kB / 0.9804 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.754e-05/0.2183, allocations: 48.75 kB / 0.9804 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2183, allocations: 0 / 0.9804 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2183, allocations: 4 kB / 0.9804 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2183, allocations: 0 / 0.9804 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.59e-05/0.2184, allocations: 149.6 kB / 0.9806 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2184, allocations: 4.031 kB / 0.9806 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.379e-05/0.2185, allocations: 7.953 kB / 0.9806 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2185, allocations: 0 / 0.9806 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.2185, allocations: 0 / 0.9806 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2185, allocations: 0 / 0.9806 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2185, allocations: 0 / 0.9806 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.172e-05/0.2186, allocations: 65.12 kB / 0.9806 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.2186, allocations: 85.05 kB / 0.9807 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.2187, allocations: 7.984 kB / 0.9807 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.473e-05/0.2187, allocations: 0 / 0.9807 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.151e-05/0.2187, allocations: 7.984 kB / 0.9807 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.2187, allocations: 0 / 0.9807 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.548e-05/0.2188, allocations: 79.22 kB / 0.9808 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.5e-07/0.2188, allocations: 0 / 0.9808 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002221/0.219, allocations: 4 kB / 0.9808 GB, free: 25.44 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.0001284/0.2191, allocations: 99.25 kB / 0.9809 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 8.012e-05/0.2192, allocations: 19.98 kB / 0.9809 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2192, allocations: 0 / 0.9809 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.943e-05/0.2193, allocations: 4 kB / 0.9809 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001458/0.2194, allocations: 0 / 0.9809 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001576/0.2196, allocations: 78.67 kB / 0.981 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001081/0.2197, allocations: 0.6731 MB / 0.9817 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.925e-05/0.2197, allocations: 15.88 kB / 0.9817 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.721e-05/0.2198, allocations: 11.56 kB / 0.9817 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of SimCode: time 6.41e-07/0.2198, allocations: 4 kB / 0.9817 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of Templates: time 0.002463/0.2223, allocations: 303.1 kB / 0.982 GB, free: 24.18 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)