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.01149/0.01149, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001546/0.001546, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.604/1.604, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4817/0.4817, allocations: 95.48 MB / 365.4 MB, free: 12.16 MB / 318.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.0015/0.0015, allocations: 63.91 kB / 0.5036 GB, free: 11.82 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4748/0.4763, allocations: 69.09 MB / 0.5711 GB, free: 4.129 MB / 430.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.001987/0.4783, allocations: 0.5358 MB / 0.5716 GB, free: 3.594 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003336/0.4787, allocations: 81.69 kB / 0.5717 GB, free: 3.516 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.289e-05/0.4787, allocations: 4 kB / 0.5717 GB, free: 3.512 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 4.926e-05/0.4788, allocations: 0 / 0.5717 GB, free: 3.512 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.328e-05/0.4788, allocations: 0 / 0.5717 GB, free: 3.512 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.4791, allocations: 15.98 kB / 0.5717 GB, free: 3.496 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.926e-05/0.4792, allocations: 4 kB / 0.5717 GB, free: 3.492 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.447e-05/0.4792, allocations: 4 kB / 0.5717 GB, free: 3.488 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.28e-05/0.4793, allocations: 7.969 kB / 0.5717 GB, free: 3.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.009e-05/0.4793, allocations: 4 kB / 0.5717 GB, free: 3.477 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.4793, allocations: 3.938 kB / 0.5718 GB, free: 3.473 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.611e-05/0.4794, allocations: 8 kB / 0.5718 GB, free: 3.465 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.46e-05/0.4795, allocations: 7.938 kB / 0.5718 GB, free: 3.457 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.275e-05/0.4795, allocations: 11.92 kB / 0.5718 GB, free: 3.445 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.569e-05/0.4796, allocations: 19.92 kB / 0.5718 GB, free: 3.426 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.4796, allocations: 0 / 0.5718 GB, free: 3.426 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4796, allocations: 0 / 0.5718 GB, free: 3.426 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.4796, allocations: 0 / 0.5718 GB, free: 3.426 MB / 430.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.0004426/0.4801, allocations: 343 kB / 0.5721 GB, free: 3.043 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4801, allocations: 11.98 kB / 0.5721 GB, free: 3.031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.732e-05/0.4802, allocations: 0.9375 kB / 0.5721 GB, free: 3.031 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.4803, allocations: 164.4 kB / 0.5723 GB, free: 2.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.4803, allocations: 4.375 kB / 0.5723 GB, free: 2.828 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.4804, allocations: 384 / 0.5723 GB, free: 2.828 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.4805, allocations: 46.23 kB / 0.5723 GB, free: 2.777 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.4805, allocations: 192 / 0.5723 GB, free: 2.777 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.4806, allocations: 7.875 kB / 0.5723 GB, free: 2.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.846e-05/0.4806, allocations: 4 kB / 0.5724 GB, free: 2.766 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.127e-05/0.4807, allocations: 27.91 kB / 0.5724 GB, free: 2.738 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.4817, allocations: 0.8017 MB / 0.5732 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/0.4818, allocations: 165.1 kB / 0.5733 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.877e-05/0.4818, allocations: 80.14 kB / 0.5734 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.111e-05/0.4819, allocations: 75.28 kB / 0.5735 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.215e-05/0.482, allocations: 109.8 kB / 0.5736 GB, free: 1.348 MB / 430.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.482, allocations: 8 kB / 0.5736 GB, free: 1.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=0): time 9.073e-05/0.4821, allocations: 25.7 kB / 0.5736 GB, free: 1.309 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.4822, allocations: 160.4 kB / 0.5738 GB, free: 1.133 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.4823, allocations: 140 kB / 0.5739 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.4824, allocations: 25.7 kB / 0.5739 GB, free: 0.957 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.535e-05/0.4824, allocations: 88.03 kB / 0.574 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.462e-06/0.4825, allocations: 4 kB / 0.574 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.536e-05/0.4825, allocations: 17.72 kB / 0.574 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4827, allocations: 330.8 kB / 0.5743 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.671e-05/0.4827, allocations: 7.984 kB / 0.5743 GB, free: 0.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.878e-05/0.4828, allocations: 48.22 kB / 0.5744 GB, free: 448 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.498e-05/0.4829, allocations: 52.25 kB / 0.5744 GB, free: 380 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.4829, allocations: 0 / 0.5744 GB, free: 380 kB / 430.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001879/0.4831, allocations: 73.52 kB / 0.5745 GB, free: 300 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4831, allocations: 8 kB / 0.5745 GB, free: 292 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4831, allocations: 128 / 0.5745 GB, free: 292 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.4831, allocations: 4 kB / 0.5745 GB, free: 288 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.679e-05/0.4832, allocations: 20.09 kB / 0.5745 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.4833, allocations: 4 kB / 0.5745 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.874e-05/0.4834, allocations: 11.92 kB / 0.5746 GB, free: 252 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.4834, allocations: 0 / 0.5746 GB, free: 252 kB / 430.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.0002339/0.4836, allocations: 194.8 kB / 0.5747 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-05/0.4837, allocations: 116.9 kB / 0.5749 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.987e-05/0.4838, allocations: 104.5 kB / 0.575 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-05/0.4839, allocations: 180.6 kB / 0.5751 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001661/0.484, allocations: 184.2 kB / 0.5753 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001496/0.4842, allocations: 176.3 kB / 0.5755 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.4846, allocations: 417.1 kB / 0.5759 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.845e-05/0.4846, allocations: 112.9 kB / 0.576 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.4847, allocations: 101 kB / 0.5761 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.32e-05/0.4848, allocations: 184.2 kB / 0.5762 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.4849, allocations: 176.3 kB / 0.5764 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001305/0.4851, allocations: 185.2 kB / 0.5766 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.181e-05/0.4851, allocations: 180.2 kB / 0.5768 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.4853, allocations: 319.6 kB / 0.5771 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.667e-05/0.4854, allocations: 178.1 kB / 0.5772 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.261e-05/0.4855, allocations: 188.2 kB / 0.5774 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.4856, allocations: 104.9 kB / 0.5775 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-05/0.4857, allocations: 180.3 kB / 0.5777 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.951e-05/0.4858, allocations: 113.2 kB / 0.5778 GB, free: 12.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.705e-05/0.4858, allocations: 99.25 kB / 0.5779 GB, free: 12.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4858, allocations: 0 / 0.5779 GB, free: 12.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000303/0.4862, allocations: 8 kB / 0.5779 GB, free: 12.59 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.0002449/0.4864, allocations: 181.8 kB / 0.5781 GB, free: 12.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.4866, allocations: 23.92 kB / 0.5781 GB, free: 12.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4866, allocations: 320 / 0.5781 GB, free: 12.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.483e-06/0.4866, allocations: 4 kB / 0.5781 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004272/0.487, allocations: 459.7 kB / 0.5785 GB, free: 11.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003289/0.4873, allocations: 172.3 kB / 0.5787 GB, free: 11.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.4877, allocations: 0.6807 MB / 0.5794 GB, free: 11.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.075e-05/0.4878, allocations: 11.97 kB / 0.5794 GB, free: 11.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.978e-05/0.4878, allocations: 15.44 kB / 0.5794 GB, free: 11 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4878, allocations: 0 / 0.5794 GB, free: 11 MB / 446.1 MB Notification: Performance of Templates: time 0.00302/0.4908, allocations: 484.5 kB / 0.5799 GB, free: 10.53 MB / 446.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)