Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 103.5 kB / 16.27 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 190.1 kB / 17.2 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002496/0.002496, allocations: 284.1 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.179/1.179, allocations: 178.6 MB / 0.5079 GB, free: 12.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002604/0.002604, allocations: 99.83 kB / 0.6071 GB, free: 9.281 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.174, allocations: 89.13 MB / 0.6942 GB, free: 68 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002704/0.1767, allocations: 1.516 MB / 0.6956 GB, free: 14.53 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0003269/0.1771, allocations: 120.5 kB / 0.6957 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.095e-05/0.1771, allocations: 0 / 0.6957 GB, free: 14.41 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.627e-05/0.1771, allocations: 7.938 kB / 0.6958 GB, free: 14.4 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.786e-05/0.1772, allocations: 3.938 kB / 0.6958 GB, free: 14.4 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.1774, allocations: 19.98 kB / 0.6958 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.459e-05/0.1775, allocations: 27.92 kB / 0.6958 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.456e-05/0.1776, allocations: 11.98 kB / 0.6958 GB, free: 14.34 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.134e-05/0.1776, allocations: 19.92 kB / 0.6958 GB, free: 14.32 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.323e-05/0.1777, allocations: 19.92 kB / 0.6959 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.1777, allocations: 0 / 0.6959 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.262e-05/0.1777, allocations: 15.98 kB / 0.6959 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.095e-05/0.1777, allocations: 0 / 0.6959 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.67e-05/0.1778, allocations: 11.94 kB / 0.6959 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.597e-05/0.1779, allocations: 35.88 kB / 0.6959 GB, free: 14.24 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1779, allocations: 0 / 0.6959 GB, free: 14.24 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.62e-07/0.1779, allocations: 0 / 0.6959 GB, free: 14.24 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.1779, allocations: 4 kB / 0.6959 GB, free: 14.23 MB / 0.545 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.000454/0.1784, allocations: 351.7 kB / 0.6963 GB, free: 13.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.1784, allocations: 8.031 kB / 0.6963 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.1784, allocations: 4.938 kB / 0.6963 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.1786, allocations: 172.3 kB / 0.6964 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.1786, allocations: 384 / 0.6964 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.1786, allocations: 384 / 0.6964 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001754/0.1788, allocations: 62.17 kB / 0.6965 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.1788, allocations: 192 / 0.6965 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.1788, allocations: 3.938 kB / 0.6965 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1788, allocations: 4 kB / 0.6965 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.179, allocations: 39.95 kB / 0.6965 GB, free: 13.51 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003583/0.1794, allocations: 268.8 kB / 0.6968 GB, free: 13.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.1797, allocations: 66.47 kB / 0.6969 GB, free: 13.12 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.543e-05/0.1798, allocations: 20.91 kB / 0.6969 GB, free: 13.1 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/0.1799, allocations: 89.09 kB / 0.697 GB, free: 12.99 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.18, allocations: 30.56 kB / 0.697 GB, free: 12.95 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.18, allocations: 0 / 0.697 GB, free: 12.95 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003598/0.1803, allocations: 89.58 kB / 0.6971 GB, free: 12.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.1804, allocations: 55.41 kB / 0.6971 GB, free: 12.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.02e-05/0.1805, allocations: 106 kB / 0.6972 GB, free: 12.68 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1805, allocations: 25.7 kB / 0.6973 GB, free: 12.65 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.58e-05/0.1805, allocations: 88.08 kB / 0.6973 GB, free: 12.56 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.1806, allocations: 11.83 kB / 0.6973 GB, free: 12.55 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.1806, allocations: 17.7 kB / 0.6974 GB, free: 12.52 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1807, allocations: 318.8 kB / 0.6977 GB, free: 12.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.519e-05/0.1808, allocations: 15.98 kB / 0.6977 GB, free: 12.19 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.255e-05/0.1809, allocations: 24.16 kB / 0.6977 GB, free: 12.16 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.1811, allocations: 48.89 kB / 0.6978 GB, free: 12.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.1811, allocations: 3.938 kB / 0.6978 GB, free: 12.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002132/0.1813, allocations: 77.59 kB / 0.6978 GB, free: 12.03 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1814, allocations: 8 kB / 0.6978 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.1814, allocations: 0 / 0.6978 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.1814, allocations: 4 kB / 0.6978 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.467e-05/0.1815, allocations: 7.984 kB / 0.6979 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.439e-06/0.1815, allocations: 4 kB / 0.6979 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.765e-05/0.1815, allocations: 11.89 kB / 0.6979 GB, free: 11.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.1815, allocations: 0 / 0.6979 GB, free: 11.99 MB / 0.545 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 (rea2Int.y,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.652e-05/0.1816, allocations: 109.8 kB / 0.698 GB, free: 11.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.1817, allocations: 8 kB / 0.698 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002557/0.1819, allocations: 85.08 kB / 0.6981 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1819, allocations: 0 / 0.6981 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1819, allocations: 0 / 0.6981 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1819, allocations: 0 / 0.6981 GB, free: 11.78 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.1821, allocations: 165.6 kB / 0.6982 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1821, allocations: 0 / 0.6982 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.318e-05/0.1822, allocations: 11.98 kB / 0.6982 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1822, allocations: 4 kB / 0.6982 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.1822, allocations: 4 kB / 0.6982 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1822, allocations: 3.938 kB / 0.6982 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1822, allocations: 4 kB / 0.6982 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.1825, allocations: 175.4 kB / 0.6984 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.817e-05/0.1826, allocations: 85.02 kB / 0.6985 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.1826, allocations: 0 / 0.6985 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.407e-05/0.1827, allocations: 11.98 kB / 0.6985 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.395e-05/0.1827, allocations: 8 kB / 0.6985 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.1827, allocations: 3.938 kB / 0.6985 GB, free: 11.23 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.47e-05/0.1828, allocations: 83.27 kB / 0.6986 GB, free: 11.14 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.1828, allocations: 0 / 0.6986 GB, free: 11.14 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002149/0.183, allocations: 8 kB / 0.6986 GB, free: 11.14 MB / 0.545 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 (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.0001427/0.1832, allocations: 102 kB / 0.6987 GB, free: 11.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002307/0.1834, allocations: 52.23 kB / 0.6987 GB, free: 10.98 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1834, allocations: 0 / 0.6987 GB, free: 10.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.917e-05/0.1835, allocations: 28 kB / 0.6988 GB, free: 10.95 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00023/0.1837, allocations: 11.92 kB / 0.6988 GB, free: 10.94 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002881/0.184, allocations: 143.3 kB / 0.6989 GB, free: 10.76 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.1843, allocations: 0.6846 MB / 0.6996 GB, free: 10.05 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.683e-05/0.1844, allocations: 7.438 kB / 0.6996 GB, free: 10.04 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.1844, allocations: 0 / 0.6996 GB, free: 10.04 MB / 0.545 GB Notification: Performance of Templates: time 0.002135/0.1865, allocations: 0.7381 MB / 0.7003 GB, free: 9.301 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)