Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial") translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005428/0.005427, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001265/0.001265, allocations: 197.1 kB / 16.68 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.714/1.714, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6074/0.6074, allocations: 95.47 MB / 365.4 MB, free: 9.781 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 67.89 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1766, allocations: 69.1 MB / 0.5711 GB, free: 8.316 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.002051/0.1787, allocations: 0.5309 MB / 0.5716 GB, free: 7.785 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003645/0.1791, allocations: 83.75 kB / 0.5717 GB, free: 7.703 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.852e-05/0.1792, allocations: 0 / 0.5717 GB, free: 7.703 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.5e-05/0.1792, allocations: 0 / 0.5717 GB, free: 7.703 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.648e-05/0.1793, allocations: 0 / 0.5717 GB, free: 7.703 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002659/0.1795, allocations: 15.98 kB / 0.5717 GB, free: 7.688 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.163e-05/0.1796, allocations: 7.938 kB / 0.5717 GB, free: 7.68 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.308e-05/0.1797, allocations: 4 kB / 0.5717 GB, free: 7.676 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.567e-05/0.1797, allocations: 0 / 0.5717 GB, free: 7.676 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.795e-05/0.1798, allocations: 7.969 kB / 0.5717 GB, free: 7.668 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.1798, allocations: 4 kB / 0.5718 GB, free: 7.664 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.079e-05/0.1799, allocations: 8 kB / 0.5718 GB, free: 7.656 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.18, allocations: 11.88 kB / 0.5718 GB, free: 7.645 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.007e-05/0.18, allocations: 11.94 kB / 0.5718 GB, free: 7.633 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.1801, allocations: 15.92 kB / 0.5718 GB, free: 7.617 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1801, allocations: 0 / 0.5718 GB, free: 7.617 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1801, allocations: 0 / 0.5718 GB, free: 7.617 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.1801, allocations: 0 / 0.5718 GB, free: 7.617 MB / 446.1 MB 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.000406/0.1806, allocations: 347.7 kB / 0.5721 GB, free: 7.227 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1806, allocations: 11.98 kB / 0.5721 GB, free: 7.215 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.1807, allocations: 0.9375 kB / 0.5721 GB, free: 7.215 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001481/0.1808, allocations: 172.3 kB / 0.5723 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.1808, allocations: 384 / 0.5723 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.1808, allocations: 384 / 0.5723 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001385/0.181, allocations: 46.23 kB / 0.5724 GB, free: 6.957 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.181, allocations: 4.125 kB / 0.5724 GB, free: 6.953 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.181, allocations: 3.938 kB / 0.5724 GB, free: 6.949 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.307e-05/0.181, allocations: 8 kB / 0.5724 GB, free: 6.941 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.379e-05/0.1811, allocations: 15.98 kB / 0.5724 GB, free: 6.926 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008282/0.1819, allocations: 0.7979 MB / 0.5732 GB, free: 5.984 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.206e-05/0.182, allocations: 173.1 kB / 0.5733 GB, free: 5.805 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.307e-05/0.1821, allocations: 84.08 kB / 0.5734 GB, free: 5.719 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.301e-05/0.1821, allocations: 75.28 kB / 0.5735 GB, free: 5.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.1822, allocations: 109.8 kB / 0.5736 GB, free: 5.527 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 1.012e-06/0.1822, allocations: 0 / 0.5736 GB, free: 5.527 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 7.984e-05/0.1823, allocations: 33.61 kB / 0.5736 GB, free: 5.488 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1824, allocations: 156.4 kB / 0.5738 GB, free: 5.316 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1825, allocations: 133.8 kB / 0.5739 GB, free: 5.176 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.1826, allocations: 25.7 kB / 0.5739 GB, free: 5.145 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.439e-05/0.1826, allocations: 92.03 kB / 0.574 GB, free: 5.051 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.555e-06/0.1826, allocations: 0 / 0.574 GB, free: 5.051 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.952e-05/0.1827, allocations: 25.72 kB / 0.574 GB, free: 5.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1828, allocations: 322.8 kB / 0.5743 GB, free: 4.695 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.594e-05/0.1829, allocations: 8.312 kB / 0.5743 GB, free: 4.688 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.591e-05/0.1829, allocations: 48.22 kB / 0.5744 GB, free: 4.625 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.993e-05/0.183, allocations: 52.25 kB / 0.5744 GB, free: 4.559 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.183, allocations: 0 / 0.5744 GB, free: 4.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001954/0.1832, allocations: 93.36 kB / 0.5745 GB, free: 4.461 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1832, allocations: 8 kB / 0.5745 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.1832, allocations: 0 / 0.5745 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.1833, allocations: 4.156 kB / 0.5745 GB, free: 4.449 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.372e-05/0.1834, allocations: 8 kB / 0.5745 GB, free: 4.441 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.1834, allocations: 4 kB / 0.5746 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.175e-05/0.1835, allocations: 0 / 0.5746 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.1835, allocations: 7.984 kB / 0.5746 GB, free: 4.43 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (y[5],y[4],y[3],y[2],y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 0.0001465/0.1836, allocations: 197.1 kB / 0.5747 GB, free: 4.227 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.1837, allocations: 108.8 kB / 0.5749 GB, free: 4.113 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.283e-05/0.1838, allocations: 116.5 kB / 0.575 GB, free: 3.988 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.764e-05/0.1839, allocations: 180.2 kB / 0.5751 GB, free: 3.805 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-05/0.184, allocations: 180.3 kB / 0.5753 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-05/0.1841, allocations: 180.3 kB / 0.5755 GB, free: 3.438 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.1844, allocations: 413.1 kB / 0.5759 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.241e-05/0.1845, allocations: 105 kB / 0.576 GB, free: 2.867 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.017e-05/0.1846, allocations: 112.9 kB / 0.5761 GB, free: 2.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.475e-05/0.1847, allocations: 176.3 kB / 0.5762 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-05/0.1847, allocations: 176.3 kB / 0.5764 GB, free: 2.391 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.575e-05/0.1848, allocations: 180.2 kB / 0.5766 GB, free: 2.207 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.131e-05/0.1849, allocations: 184.3 kB / 0.5768 GB, free: 2.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.1851, allocations: 315.7 kB / 0.5771 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1852, allocations: 178.3 kB / 0.5772 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.1854, allocations: 188.3 kB / 0.5774 GB, free: 1.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.1855, allocations: 113 kB / 0.5775 GB, free: 1.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.1856, allocations: 184.2 kB / 0.5777 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.749e-05/0.1857, allocations: 101 kB / 0.5778 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.362e-05/0.1857, allocations: 99.27 kB / 0.5779 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1858, allocations: 0 / 0.5779 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003171/0.1861, allocations: 11.98 kB / 0.5779 GB, free: 0.7773 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0002636/0.1863, allocations: 178.5 kB / 0.5781 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001493/0.1865, allocations: 24.17 kB / 0.5781 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1865, allocations: 8 kB / 0.5781 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.834e-06/0.1865, allocations: 288 / 0.5781 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.187, allocations: 467.6 kB / 0.5785 GB, free: 104 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003623/0.1874, allocations: 172.5 kB / 0.5787 GB, free: 15.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/0.1879, allocations: 0.6807 MB / 0.5794 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.445e-05/0.1879, allocations: 19.88 kB / 0.5794 GB, free: 15.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.06e-05/0.188, allocations: 11.44 kB / 0.5794 GB, free: 15.16 MB / 462.1 MB Notification: Performance of SimCode: time 2.21e-07/0.188, allocations: 0 / 0.5794 GB, free: 15.16 MB / 462.1 MB Notification: Performance of Templates: time 0.002816/0.1908, allocations: 476.3 kB / 0.5799 GB, free: 14.7 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.pipe 2>&1)