Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.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.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.661/1.661, allocations: 287.5 MB / 302.6 MB, free: 8.176 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.001514/0.001514, allocations: 189.5 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.803/1.803, allocations: 205.4 MB / 0.6298 GB, free: 10.58 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.000914/0.0009142, allocations: 90.34 kB / 0.7432 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005418/0.0005418, allocations: 15.55 kB / 0.8661 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2159, allocations: 115.3 MB / 0.9787 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001488/0.2174, allocations: 1.22 MB / 0.9799 GB, free: 26.97 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003144/0.2177, allocations: 124.5 kB / 0.98 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.65e-05/0.2178, allocations: 0 / 0.98 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.997e-05/0.2178, allocations: 0 / 0.98 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.33e-05/0.2179, allocations: 0 / 0.98 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.2181, allocations: 19.92 kB / 0.98 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.284e-05/0.2182, allocations: 35.84 kB / 0.98 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.823e-05/0.2183, allocations: 8 kB / 0.98 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.083e-05/0.2183, allocations: 7.984 kB / 0.9801 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.687e-05/0.2184, allocations: 11.94 kB / 0.9801 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.2184, allocations: 4 kB / 0.9801 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.192e-05/0.2185, allocations: 15.98 kB / 0.9801 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.097e-05/0.2185, allocations: 3.984 kB / 0.9801 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 1.984e-05/0.2185, allocations: 25.7 kB / 0.9801 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.099e-05/0.2186, allocations: 23.95 kB / 0.9801 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2186, allocations: 0 / 0.9801 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2186, allocations: 0 / 0.9801 GB, free: 26.68 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.2186, allocations: 3.938 kB / 0.9801 GB, free: 26.68 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003947/0.219, allocations: 351.7 kB / 0.9805 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.2191, allocations: 12.03 kB / 0.9805 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.2191, allocations: 0.9375 kB / 0.9805 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.36e-05/0.2192, allocations: 164.4 kB / 0.9806 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.2192, allocations: 384 / 0.9806 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.2192, allocations: 384 / 0.9806 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.2194, allocations: 66.22 kB / 0.9807 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.2194, allocations: 4.188 kB / 0.9807 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.2195, allocations: 3.938 kB / 0.9807 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2195, allocations: 4 kB / 0.9807 GB, free: 25.99 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001751/0.2196, allocations: 47.95 kB / 0.9808 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003019/0.22, allocations: 268.8 kB / 0.981 GB, free: 25.63 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.2203, allocations: 62.47 kB / 0.9811 GB, free: 25.56 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.617e-05/0.2204, allocations: 36.89 kB / 0.9811 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.2205, allocations: 81.11 kB / 0.9812 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.2205, allocations: 34.56 kB / 0.9812 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.653e-06/0.2206, allocations: 0 / 0.9812 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004075/0.221, allocations: 113.6 kB / 0.9813 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.221, allocations: 51.41 kB / 0.9814 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.477e-05/0.2211, allocations: 97.86 kB / 0.9815 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.628e-06/0.2211, allocations: 25.7 kB / 0.9815 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.644e-05/0.2211, allocations: 92.12 kB / 0.9816 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/0.2212, allocations: 7.844 kB / 0.9816 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.2212, allocations: 4 kB / 0.9816 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.084e-05/0.2212, allocations: 310.8 kB / 0.9819 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.973e-05/0.2213, allocations: 27.97 kB / 0.9819 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.79e-05/0.2214, allocations: 23.98 kB / 0.9819 GB, free: 24.6 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.2216, allocations: 61.22 kB / 0.982 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2216, allocations: 3.938 kB / 0.982 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002055/0.2218, allocations: 93.55 kB / 0.9821 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.2218, allocations: 7.938 kB / 0.9821 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2219, allocations: 3.938 kB / 0.9821 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.2219, allocations: 0 / 0.9821 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.103e-05/0.222, allocations: 19.98 kB / 0.9821 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.222, allocations: 0 / 0.9821 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.757e-05/0.2221, allocations: 11.98 kB / 0.9821 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.2221, allocations: 4 kB / 0.9821 GB, free: 24.39 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.429e-05/0.2221, allocations: 119.1 kB / 0.9823 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.2222, allocations: 4 kB / 0.9823 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002533/0.2224, allocations: 93.08 kB / 0.9824 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.2225, allocations: 4 kB / 0.9824 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.2225, allocations: 0 / 0.9824 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2225, allocations: 0 / 0.9824 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001348/0.2226, allocations: 169.6 kB / 0.9825 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2226, allocations: 4 kB / 0.9825 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.197e-05/0.2227, allocations: 11.98 kB / 0.9825 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2227, allocations: 0 / 0.9825 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.425e-06/0.2227, allocations: 0 / 0.9825 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.2227, allocations: 0 / 0.9825 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2227, allocations: 8 kB / 0.9825 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000237/0.223, allocations: 183.4 kB / 0.9827 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.439e-05/0.223, allocations: 81.02 kB / 0.9828 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.223, allocations: 4 kB / 0.9828 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.104e-05/0.2231, allocations: 11.98 kB / 0.9828 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.081e-05/0.2232, allocations: 7.984 kB / 0.9828 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.2232, allocations: 4 kB / 0.9828 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.537e-05/0.2232, allocations: 79.28 kB / 0.9829 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2232, allocations: 0 / 0.9829 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002004/0.2234, allocations: 8 kB / 0.9829 GB, free: 23.51 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0001535/0.2236, allocations: 103.2 kB / 0.983 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002406/0.2238, allocations: 51.95 kB / 0.983 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2239, allocations: 0 / 0.983 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.954e-05/0.224, allocations: 39.91 kB / 0.9831 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.2243, allocations: 7.938 kB / 0.9831 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002598/0.2245, allocations: 120.6 kB / 0.9832 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.912e-05/0.2247, allocations: 0.677 MB / 0.9839 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.846e-05/0.2247, allocations: 8.469 kB / 0.9839 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.151e-05/0.2247, allocations: 11.42 kB / 0.9839 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of SimCode: time 3.61e-07/0.2247, allocations: 0 / 0.9839 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of Templates: time 0.002606/0.2273, allocations: 0.6022 MB / 0.9845 GB, free: 21.84 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)