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/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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/Buildings 1.6.0+build.1/package.mo): time 0.6112/0.6112, allocations: 94.69 MB / 107.3 MB, free: 5.18 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001152/0.001152, allocations: 172 kB / 130.7 MB, free: 7.539 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.737/1.737, allocations: 170.5 MB / 324.5 MB, free: 3.988 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001565/0.001565, allocations: 103 kB / 386.6 MB, free: 16.19 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.458e-05/5.461e-05, allocations: 4 kB / 456 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5375/0.5376, allocations: 61.52 MB / 0.5054 GB, free: 49.38 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2205/0.7582, allocations: 93.09 MB / 0.5963 GB, free: 2.457 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003969/0.7587, allocations: 86.89 kB / 0.5964 GB, free: 2.375 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004011/0.7627, allocations: 1.014 MB / 0.5974 GB, free: 1.387 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.7627, allocations: 2.469 kB / 0.5974 GB, free: 1.387 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.7628, allocations: 4.75 kB / 0.5974 GB, free: 1.383 MB / 410.7 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.0004412/0.7632, allocations: 323.5 kB / 0.5977 GB, free: 1.023 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.396e-05/0.7633, allocations: 15.97 kB / 0.5977 GB, free: 1.008 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.967e-05/0.7634, allocations: 5.656 kB / 0.5977 GB, free: 1.004 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002314/0.7636, allocations: 163.7 kB / 0.5979 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.7637, allocations: 0.625 kB / 0.5979 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.7637, allocations: 0.5156 kB / 0.5979 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.764, allocations: 84.14 kB / 0.598 GB, free: 0.7031 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.764, allocations: 7.094 kB / 0.598 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.764, allocations: 5.75 kB / 0.598 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.7641, allocations: 0 / 0.598 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.739e-05/0.7641, allocations: 19.92 kB / 0.598 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.7656, allocations: 1.12 MB / 0.5991 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.7658, allocations: 175.5 kB / 0.5992 GB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.279e-05/0.7658, allocations: 80.14 kB / 0.5993 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.7659, allocations: 75.28 kB / 0.5994 GB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.569e-05/0.766, allocations: 109.8 kB / 0.5995 GB, free: 14.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=0): time 1.593e-06/0.766, allocations: 0 / 0.5995 GB, free: 14.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001123/0.7661, allocations: 30.17 kB / 0.5995 GB, free: 14.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.7663, allocations: 161.9 kB / 0.5997 GB, free: 14.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001956/0.7665, allocations: 122.9 kB / 0.5998 GB, free: 14.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.7665, allocations: 29.7 kB / 0.5998 GB, free: 14.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.7667, allocations: 89.16 kB / 0.5999 GB, free: 14.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.454e-06/0.7667, allocations: 4 kB / 0.5999 GB, free: 14.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.979e-06/0.7667, allocations: 0.9688 kB / 0.5999 GB, free: 14.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.7669, allocations: 314.8 kB / 0.6002 GB, free: 14.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.918e-05/0.767, allocations: 16.11 kB / 0.6002 GB, free: 14.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.75e-05/0.7671, allocations: 41 kB / 0.6003 GB, free: 14.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.84e-05/0.7672, allocations: 19.17 kB / 0.6003 GB, free: 14.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.7672, allocations: 7.891 kB / 0.6003 GB, free: 14.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002664/0.7675, allocations: 78.61 kB / 0.6004 GB, free: 13.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.7675, allocations: 4 kB / 0.6004 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.7675, allocations: 4 kB / 0.6004 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.7675, allocations: 0.8125 kB / 0.6004 GB, free: 13.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.7677, allocations: 15.98 kB / 0.6004 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.367e-05/0.7677, allocations: 8.875 kB / 0.6004 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.364e-05/0.7678, allocations: 0 / 0.6004 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.7679, allocations: 6.25 kB / 0.6004 GB, free: 13.96 MB / 426.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001995/0.7681, allocations: 185 kB / 0.6006 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001189/0.7682, allocations: 116.8 kB / 0.6007 GB, free: 13.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.7683, allocations: 116.9 kB / 0.6008 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001128/0.7685, allocations: 176.3 kB / 0.601 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001319/0.7686, allocations: 180.3 kB / 0.6011 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001552/0.7688, allocations: 183.5 kB / 0.6013 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004172/0.7692, allocations: 405.2 kB / 0.6017 GB, free: 12.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.274e-05/0.7693, allocations: 109.3 kB / 0.6018 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.536e-05/0.7694, allocations: 112.9 kB / 0.6019 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.7695, allocations: 180.3 kB / 0.6021 GB, free: 12.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.7696, allocations: 181.8 kB / 0.6023 GB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001468/0.7698, allocations: 178.8 kB / 0.6024 GB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001254/0.7699, allocations: 184.2 kB / 0.6026 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.7702, allocations: 308.3 kB / 0.6029 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.7704, allocations: 187.7 kB / 0.6031 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.7705, allocations: 184.2 kB / 0.6033 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.7707, allocations: 106 kB / 0.6034 GB, free: 10.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.7709, allocations: 188.2 kB / 0.6035 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.918e-05/0.771, allocations: 108.9 kB / 0.6036 GB, free: 10.44 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000103/0.7711, allocations: 97.05 kB / 0.6037 GB, free: 10.34 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7711, allocations: 4 kB / 0.6037 GB, free: 10.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004137/0.7715, allocations: 8 kB / 0.6038 GB, free: 10.33 MB / 426.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000343/0.7719, allocations: 176.4 kB / 0.6039 GB, free: 10.15 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001459/0.772, allocations: 28.89 kB / 0.6039 GB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.7721, allocations: 0 / 0.6039 GB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.924e-06/0.7721, allocations: 0 / 0.6039 GB, free: 10.12 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005771/0.7727, allocations: 0.5279 MB / 0.6045 GB, free: 9.598 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.773, allocations: 138.5 kB / 0.6046 GB, free: 9.445 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000507/0.7735, allocations: 0.6809 MB / 0.6053 GB, free: 8.738 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.7737, allocations: 16.97 kB / 0.6053 GB, free: 8.727 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.504e-05/0.7737, allocations: 7.438 kB / 0.6053 GB, free: 8.723 MB / 426.7 MB Notification: Performance of SimCode: time 3.4e-07/0.7737, allocations: 0 / 0.6053 GB, free: 8.723 MB / 426.7 MB Notification: Performance of Templates: time 0.004053/0.7778, allocations: 475 kB / 0.6057 GB, free: 8.297 MB / 426.7 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)