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.007481/0.00748, allocations: 101.8 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.001173/0.001173, allocations: 197.4 kB / 16.68 MB, free: 5.965 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.676/1.676, allocations: 205.1 MB / 222.5 MB, free: 4.359 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.6184/0.6184, allocations: 95.48 MB / 365.4 MB, free: 9.707 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.00144/0.00144, allocations: 71.91 kB / 0.5036 GB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1444, allocations: 69.09 MB / 0.5711 GB, free: 8.336 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.001802/0.1463, allocations: 0.5426 MB / 0.5716 GB, free: 7.793 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003043/0.1466, allocations: 79.75 kB / 0.5717 GB, free: 7.715 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.184e-05/0.1466, allocations: 0 / 0.5717 GB, free: 7.715 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 4.085e-05/0.1467, allocations: 0 / 0.5717 GB, free: 7.715 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.981e-05/0.1467, allocations: 0 / 0.5717 GB, free: 7.715 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.147, allocations: 23.91 kB / 0.5717 GB, free: 7.691 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.035e-05/0.147, allocations: 8 kB / 0.5717 GB, free: 7.684 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.492e-05/0.1471, allocations: 0 / 0.5717 GB, free: 7.684 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.315e-05/0.1471, allocations: 7.984 kB / 0.5717 GB, free: 7.676 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.362e-05/0.1472, allocations: 0 / 0.5717 GB, free: 7.676 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.1472, allocations: 0 / 0.5717 GB, free: 7.676 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.237e-05/0.1473, allocations: 8 kB / 0.5718 GB, free: 7.668 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.75e-05/0.1473, allocations: 11.92 kB / 0.5718 GB, free: 7.656 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.164e-05/0.1474, allocations: 7.938 kB / 0.5718 GB, free: 7.648 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.271e-05/0.1475, allocations: 19.92 kB / 0.5718 GB, free: 7.629 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1475, allocations: 7.922 kB / 0.5718 GB, free: 7.621 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1475, allocations: 0 / 0.5718 GB, free: 7.621 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1475, allocations: 4 kB / 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.0003953/0.1479, allocations: 339.8 kB / 0.5721 GB, free: 7.234 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1479, allocations: 11.98 kB / 0.5721 GB, free: 7.223 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.148, allocations: 0.9375 kB / 0.5721 GB, free: 7.223 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/0.1481, allocations: 168.3 kB / 0.5723 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.1481, allocations: 384 / 0.5723 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.497e-06/0.1482, allocations: 384 / 0.5723 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.1483, allocations: 50.17 kB / 0.5724 GB, free: 6.965 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.1483, allocations: 192 / 0.5724 GB, free: 6.965 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.1483, allocations: 7.938 kB / 0.5724 GB, free: 6.957 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.56e-05/0.1484, allocations: 7.984 kB / 0.5724 GB, free: 6.949 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.924e-05/0.1484, allocations: 15.98 kB / 0.5724 GB, free: 6.934 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007/0.1491, allocations: 0.79 MB / 0.5732 GB, free: 6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.025e-05/0.1492, allocations: 181.1 kB / 0.5733 GB, free: 5.812 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.035e-05/0.1493, allocations: 84.14 kB / 0.5734 GB, free: 5.727 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.1493, allocations: 75.28 kB / 0.5735 GB, free: 5.652 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.1494, allocations: 105.8 kB / 0.5736 GB, free: 5.539 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.1494, allocations: 0 / 0.5736 GB, free: 5.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 7.426e-05/0.1494, allocations: 33.61 kB / 0.5736 GB, free: 5.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.962e-05/0.1495, allocations: 152.4 kB / 0.5738 GB, free: 5.332 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.1497, allocations: 145.7 kB / 0.5739 GB, free: 5.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.1497, allocations: 29.7 kB / 0.5739 GB, free: 5.145 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.723e-05/0.1497, allocations: 88.03 kB / 0.574 GB, free: 5.055 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.036e-06/0.1497, allocations: 0 / 0.574 GB, free: 5.055 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-05/0.1498, allocations: 21.72 kB / 0.574 GB, free: 5.027 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1499, allocations: 326.8 kB / 0.5743 GB, free: 4.699 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.663e-05/0.15, allocations: 7.984 kB / 0.5743 GB, free: 4.691 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.778e-05/0.15, allocations: 52.22 kB / 0.5744 GB, free: 4.625 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.869e-05/0.1501, allocations: 48.22 kB / 0.5744 GB, free: 4.562 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1501, allocations: 0 / 0.5744 GB, free: 4.562 MB / 446.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002494/0.1503, allocations: 81.86 kB / 0.5745 GB, free: 4.477 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1504, allocations: 8 kB / 0.5745 GB, free: 4.469 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1504, allocations: 0 / 0.5745 GB, free: 4.469 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.1504, allocations: 0 / 0.5745 GB, free: 4.469 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.362e-05/0.1505, allocations: 15.94 kB / 0.5745 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1505, allocations: 7.984 kB / 0.5746 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.103e-05/0.1506, allocations: 0 / 0.5746 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.1506, allocations: 4 kB / 0.5746 GB, free: 4.441 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.000121/0.1507, allocations: 201.2 kB / 0.5747 GB, free: 4.234 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.414e-05/0.1508, allocations: 112.9 kB / 0.5749 GB, free: 4.117 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.867e-05/0.1508, allocations: 108.5 kB / 0.575 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.85e-05/0.1509, allocations: 180.2 kB / 0.5751 GB, free: 3.816 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.937e-05/0.151, allocations: 176.4 kB / 0.5753 GB, free: 3.637 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.931e-05/0.1511, allocations: 192.2 kB / 0.5755 GB, free: 3.441 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.1513, allocations: 413.2 kB / 0.5759 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.355e-05/0.1513, allocations: 101 kB / 0.576 GB, free: 2.875 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.601e-05/0.1514, allocations: 112.9 kB / 0.5761 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.057e-05/0.1515, allocations: 176.3 kB / 0.5762 GB, free: 2.578 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/0.1516, allocations: 180.2 kB / 0.5764 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-05/0.1517, allocations: 184.2 kB / 0.5766 GB, free: 2.207 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.674e-05/0.1518, allocations: 184.3 kB / 0.5768 GB, free: 2.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.1519, allocations: 307.7 kB / 0.5771 GB, free: 1.695 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.825e-05/0.152, allocations: 186.3 kB / 0.5772 GB, free: 1.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-05/0.1521, allocations: 180.3 kB / 0.5774 GB, free: 1.305 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.1522, allocations: 109 kB / 0.5775 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.892e-05/0.1523, allocations: 184.2 kB / 0.5777 GB, free: 1.004 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.1524, allocations: 101 kB / 0.5778 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.227e-05/0.1524, allocations: 103.2 kB / 0.5779 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1525, allocations: 0 / 0.5779 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002851/0.1527, allocations: 8 kB / 0.5779 GB, free: 0.7891 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.000171/0.1529, allocations: 182.4 kB / 0.5781 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.337e-05/0.153, allocations: 23.98 kB / 0.5781 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.153, allocations: 3.938 kB / 0.5781 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.665e-06/0.153, allocations: 3.938 kB / 0.5781 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003905/0.1534, allocations: 467.9 kB / 0.5785 GB, free: 112 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002459/0.1537, allocations: 170.8 kB / 0.5787 GB, free: 15.92 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.154, allocations: 0.6809 MB / 0.5794 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.067e-05/0.154, allocations: 15.88 kB / 0.5794 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.08e-05/0.154, allocations: 11.44 kB / 0.5794 GB, free: 15.18 MB / 462.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1541, allocations: 3.938 kB / 0.5794 GB, free: 15.18 MB / 462.1 MB Notification: Performance of Templates: time 0.002897/0.157, allocations: 476.3 kB / 0.5799 GB, free: 14.71 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)