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.001367/0.001367, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00148/0.00148, allocations: 197 kB / 16.14 MB, free: 6.652 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.76/1.76, allocations: 205.1 MB / 222 MB, free: 4.738 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.6205/0.6205, allocations: 95.47 MB / 364.8 MB, free: 10.08 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.001358/0.001358, allocations: 71.91 kB / 444.7 MB, free: 10.04 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3679, allocations: 69.07 MB / 0.5017 GB, free: 17.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.001701/0.3696, allocations: 0.6083 MB / 0.5023 GB, free: 16.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003018/0.37, allocations: 82.8 kB / 0.5024 GB, free: 16.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.55e-05/0.37, allocations: 0 / 0.5024 GB, free: 16.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.632e-05/0.37, allocations: 0 / 0.5024 GB, free: 16.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.062e-05/0.3701, allocations: 4 kB / 0.5024 GB, free: 16.9 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002022/0.3703, allocations: 12 kB / 0.5024 GB, free: 16.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.951e-05/0.3703, allocations: 4 kB / 0.5024 GB, free: 16.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.837e-05/0.3704, allocations: 3.984 kB / 0.5024 GB, free: 16.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.206e-05/0.3704, allocations: 3.984 kB / 0.5024 GB, free: 16.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.358e-05/0.3705, allocations: 8 kB / 0.5024 GB, free: 16.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.3705, allocations: 0 / 0.5024 GB, free: 16.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.819e-05/0.3706, allocations: 8 kB / 0.5024 GB, free: 16.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.555e-05/0.3706, allocations: 11.92 kB / 0.5024 GB, free: 16.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.843e-05/0.3707, allocations: 7.938 kB / 0.5024 GB, free: 16.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.162e-05/0.3707, allocations: 19.91 kB / 0.5025 GB, free: 16.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.3707, allocations: 0 / 0.5025 GB, free: 16.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.3708, allocations: 0 / 0.5025 GB, free: 16.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.3708, allocations: 0 / 0.5025 GB, free: 16.82 MB / 382.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.0002945/0.3711, allocations: 333.5 kB / 0.5028 GB, free: 16.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.3711, allocations: 15.62 kB / 0.5028 GB, free: 16.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.3711, allocations: 8.781 kB / 0.5028 GB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.745e-05/0.3712, allocations: 172.3 kB / 0.503 GB, free: 16.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.3712, allocations: 384 / 0.503 GB, free: 16.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.3713, allocations: 384 / 0.503 GB, free: 16.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.3714, allocations: 42.25 kB / 0.503 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3714, allocations: 192 / 0.503 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.3714, allocations: 7.875 kB / 0.503 GB, free: 16.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.3714, allocations: 4 kB / 0.503 GB, free: 16.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.51e-05/0.3715, allocations: 23.97 kB / 0.503 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000496/0.372, allocations: 0.8016 MB / 0.5038 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.719e-05/0.372, allocations: 165.1 kB / 0.504 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.71e-05/0.372, allocations: 80.14 kB / 0.5041 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.3721, allocations: 75.28 kB / 0.5041 GB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.3721, allocations: 109.8 kB / 0.5042 GB, free: 14.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.3721, allocations: 4 kB / 0.5042 GB, free: 14.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 6.362e-05/0.3722, allocations: 29.64 kB / 0.5043 GB, free: 14.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.3722, allocations: 152.4 kB / 0.5044 GB, free: 14.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.793e-05/0.3723, allocations: 145.7 kB / 0.5046 GB, free: 14.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.025e-06/0.3723, allocations: 25.7 kB / 0.5046 GB, free: 14.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.873e-05/0.3723, allocations: 84.05 kB / 0.5047 GB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-06/0.3724, allocations: 12 kB / 0.5047 GB, free: 14.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.3724, allocations: 21.7 kB / 0.5047 GB, free: 14.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.771e-05/0.3724, allocations: 318.8 kB / 0.505 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.963e-05/0.3725, allocations: 7.984 kB / 0.505 GB, free: 13.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.18e-05/0.3725, allocations: 44.28 kB / 0.505 GB, free: 13.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.893e-05/0.3726, allocations: 52.25 kB / 0.5051 GB, free: 13.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3726, allocations: 0 / 0.5051 GB, free: 13.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001448/0.3727, allocations: 77.55 kB / 0.5052 GB, free: 13.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.3727, allocations: 12.16 kB / 0.5052 GB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.3727, allocations: 0 / 0.5052 GB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.3728, allocations: 3.984 kB / 0.5052 GB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.834e-05/0.3728, allocations: 15.92 kB / 0.5052 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.3728, allocations: 4 kB / 0.5052 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.676e-05/0.3729, allocations: 11.84 kB / 0.5052 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.3729, allocations: 0 / 0.5052 GB, free: 13.65 MB / 382.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 8.165e-05/0.373, allocations: 201 kB / 0.5054 GB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.3731, allocations: 113 kB / 0.5055 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.3731, allocations: 108.5 kB / 0.5056 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.024e-05/0.3731, allocations: 176.8 kB / 0.5058 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.533e-05/0.3732, allocations: 188.2 kB / 0.506 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.867e-05/0.3732, allocations: 180.2 kB / 0.5061 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.3734, allocations: 413.2 kB / 0.5065 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.937e-05/0.3734, allocations: 112.9 kB / 0.5066 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.79e-05/0.3734, allocations: 105 kB / 0.5067 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.557e-05/0.3734, allocations: 180.2 kB / 0.5069 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.3735, allocations: 176.3 kB / 0.5071 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.233e-05/0.3735, allocations: 180.2 kB / 0.5073 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.415e-05/0.3736, allocations: 188.2 kB / 0.5074 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.544e-05/0.3737, allocations: 311.6 kB / 0.5077 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.022e-05/0.3737, allocations: 182.1 kB / 0.5079 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/0.3737, allocations: 180.3 kB / 0.5081 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.158e-05/0.3738, allocations: 112.9 kB / 0.5082 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/0.3739, allocations: 180.3 kB / 0.5084 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.3739, allocations: 112.9 kB / 0.5085 GB, free: 10.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.088e-05/0.3739, allocations: 99.25 kB / 0.5086 GB, free: 10.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.374, allocations: 0 / 0.5086 GB, free: 10.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002368/0.3742, allocations: 12 kB / 0.5086 GB, free: 9.996 MB / 382.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.0001331/0.3743, allocations: 180.5 kB / 0.5087 GB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.764e-05/0.3744, allocations: 28.25 kB / 0.5088 GB, free: 9.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3744, allocations: 0 / 0.5088 GB, free: 9.781 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.223e-06/0.3744, allocations: 0 / 0.5088 GB, free: 9.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.3747, allocations: 0.5224 MB / 0.5093 GB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001816/0.3749, allocations: 182.3 kB / 0.5095 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.3751, allocations: 0.677 MB / 0.5101 GB, free: 8.344 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.24e-05/0.3751, allocations: 15.97 kB / 0.5101 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.3751, allocations: 7.438 kB / 0.5101 GB, free: 8.32 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3752, allocations: 0 / 0.5101 GB, free: 8.32 MB / 382.1 MB Notification: Performance of Templates: time 0.002402/0.3776, allocations: 480.5 kB / 0.5106 GB, free: 7.852 MB / 382.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)