Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 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(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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.005954/0.005954, allocations: 105.1 kB / 15.73 MB, free: 6.043 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.001302/0.001302, allocations: 191.1 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.354/1.354, allocations: 251.7 MB / 0.5094 GB, free: 3.086 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001256, allocations: 71.91 kB / 0.7258 GB, free: 9.012 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.1753, allocations: 104.7 MB / 0.828 GB, free: 204 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002379/0.1777, allocations: 1.507 MB / 0.8295 GB, free: 14.68 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.000308/0.1781, allocations: 128.4 kB / 0.8296 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.229e-05/0.1781, allocations: 0 / 0.8296 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.195e-05/0.1781, allocations: 7.938 kB / 0.8296 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.765e-05/0.1782, allocations: 0 / 0.8296 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001854/0.1784, allocations: 19.92 kB / 0.8297 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.292e-05/0.1784, allocations: 31.92 kB / 0.8297 GB, free: 14.49 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 8.957e-05/0.1785, allocations: 15.97 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 3.749e-05/0.1786, allocations: 11.94 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 4.165e-05/0.1786, allocations: 11.98 kB / 0.8297 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.1786, allocations: 4 kB / 0.8297 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 4.967e-05/0.1787, allocations: 7.984 kB / 0.8297 GB, free: 14.44 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.48e-05/0.1787, allocations: 15.94 kB / 0.8298 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.413e-05/0.1787, allocations: 15.91 kB / 0.8298 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 9.307e-05/0.1788, allocations: 39.84 kB / 0.8298 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.175e-06/0.1788, allocations: 0 / 0.8298 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.202e-06/0.1789, allocations: 0 / 0.8298 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.1789, allocations: 0 / 0.8298 GB, free: 14.37 MB / 0.6544 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.0004065/0.1793, allocations: 343.5 kB / 0.8301 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.1793, allocations: 8.031 kB / 0.8301 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.145e-05/0.1793, allocations: 8.844 kB / 0.8302 GB, free: 13.97 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1795, allocations: 168.4 kB / 0.8303 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.1795, allocations: 4.312 kB / 0.8303 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.1795, allocations: 4.375 kB / 0.8303 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.1797, allocations: 58.16 kB / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.1797, allocations: 192 / 0.8304 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.1797, allocations: 11.94 kB / 0.8304 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1797, allocations: 0 / 0.8304 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001727/0.1799, allocations: 39.95 kB / 0.8304 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003477/0.1802, allocations: 264.9 kB / 0.8307 GB, free: 13.34 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003045/0.1806, allocations: 62.41 kB / 0.8307 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.285e-05/0.1807, allocations: 32.89 kB / 0.8308 GB, free: 13.23 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.1808, allocations: 85.09 kB / 0.8309 GB, free: 13.13 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.77e-05/0.1808, allocations: 34.56 kB / 0.8309 GB, free: 13.09 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1808, allocations: 0 / 0.8309 GB, free: 13.09 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003626/0.1812, allocations: 97.53 kB / 0.831 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.1812, allocations: 59.34 kB / 0.831 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.736e-05/0.1813, allocations: 97.86 kB / 0.8311 GB, free: 12.81 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.1813, allocations: 29.7 kB / 0.8312 GB, free: 12.77 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.039e-05/0.1814, allocations: 88.06 kB / 0.8312 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.1814, allocations: 11.91 kB / 0.8313 GB, free: 12.67 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.1814, allocations: 13.72 kB / 0.8313 GB, free: 12.65 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.1815, allocations: 310.8 kB / 0.8316 GB, free: 12.34 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.638e-05/0.1816, allocations: 19.97 kB / 0.8316 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.724e-05/0.1817, allocations: 19.98 kB / 0.8316 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.1819, allocations: 52.81 kB / 0.8317 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1819, allocations: 3.938 kB / 0.8317 GB, free: 12.24 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001933/0.1821, allocations: 65.66 kB / 0.8317 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.1821, allocations: 11.94 kB / 0.8317 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1821, allocations: 0 / 0.8317 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1821, allocations: 0 / 0.8317 GB, free: 12.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.537e-05/0.1822, allocations: 11.98 kB / 0.8317 GB, free: 12.15 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.1822, allocations: 4 kB / 0.8317 GB, free: 12.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.29e-05/0.1823, allocations: 11.98 kB / 0.8318 GB, free: 12.13 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1823, allocations: 0 / 0.8318 GB, free: 12.13 MB / 0.6544 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.529e-05/0.1824, allocations: 113.8 kB / 0.8319 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.335e-05/0.1824, allocations: 3.906 kB / 0.8319 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002512/0.1826, allocations: 81.14 kB / 0.8319 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1827, allocations: 4 kB / 0.8319 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1827, allocations: 4 kB / 0.832 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1827, allocations: 3.984 kB / 0.832 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.1828, allocations: 157.6 kB / 0.8321 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1828, allocations: 3.938 kB / 0.8321 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.296e-05/0.1829, allocations: 11.98 kB / 0.8321 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1829, allocations: 4.5 kB / 0.8321 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-06/0.1829, allocations: 4 kB / 0.8321 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.183, allocations: 0 / 0.8321 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.183, allocations: 3.984 kB / 0.8321 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.1832, allocations: 175.4 kB / 0.8323 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/0.1833, allocations: 77.11 kB / 0.8324 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.1833, allocations: 4 kB / 0.8324 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.085e-05/0.1834, allocations: 7.984 kB / 0.8324 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.1834, allocations: 11.98 kB / 0.8324 GB, free: 11.37 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.1834, allocations: 0 / 0.8324 GB, free: 11.37 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.575e-05/0.1835, allocations: 87.28 kB / 0.8325 GB, free: 11.28 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1835, allocations: 3.938 kB / 0.8325 GB, free: 11.28 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002098/0.1837, allocations: 8 kB / 0.8325 GB, free: 11.27 MB / 0.6544 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.0001455/0.1839, allocations: 107.2 kB / 0.8326 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002329/0.1841, allocations: 43.95 kB / 0.8326 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1841, allocations: 0 / 0.8326 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.308e-05/0.1842, allocations: 27.98 kB / 0.8327 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.1845, allocations: 6.594 kB / 0.8327 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002874/0.1848, allocations: 129.4 kB / 0.8328 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.185, allocations: 0.6805 MB / 0.8335 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.019e-05/0.185, allocations: 4 kB / 0.8335 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.705e-05/0.1851, allocations: 11.44 kB / 0.8335 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.1851, allocations: 0 / 0.8335 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of Templates: time 0.002839/0.1879, allocations: 0.7144 MB / 0.8342 GB, free: 9.492 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)