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.0008925/0.0008926, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008356/0.008356, allocations: 169.1 kB / 16.26 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.792/1.792, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.6652/0.6652, allocations: 95.63 MB / 366.4 MB, free: 10.22 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.0006648/0.000665, allocations: 16.42 kB / 447.5 MB, free: 8.945 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3708, allocations: 70.34 MB / 0.5057 GB, free: 16.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial): time 0.0007377/0.3716, allocations: 275.9 kB / 0.5059 GB, free: 16.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003249/0.3719, allocations: 70.88 kB / 0.506 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.641e-05/0.3719, allocations: 7.938 kB / 0.506 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.976e-05/0.372, allocations: 0 / 0.506 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.089e-05/0.372, allocations: 0 / 0.506 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.3722, allocations: 15.98 kB / 0.506 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.495e-05/0.3723, allocations: 7.984 kB / 0.506 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.136e-05/0.3724, allocations: 4 kB / 0.5061 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.361e-05/0.3724, allocations: 0 / 0.5061 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.455e-05/0.3725, allocations: 7.984 kB / 0.5061 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.3725, allocations: 0 / 0.5061 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.552e-05/0.3725, allocations: 8 kB / 0.5061 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.597e-05/0.3726, allocations: 7.938 kB / 0.5061 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.039e-05/0.3727, allocations: 33.62 kB / 0.5061 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.672e-05/0.3728, allocations: 19.92 kB / 0.5061 GB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3728, allocations: 0 / 0.5061 GB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3728, allocations: 0 / 0.5061 GB, free: 15.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.3728, allocations: 3.938 kB / 0.5061 GB, free: 15.86 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.0003/0.3731, allocations: 333.5 kB / 0.5064 GB, free: 15.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3731, allocations: 11.98 kB / 0.5065 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.3732, allocations: 8.844 kB / 0.5065 GB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.83e-05/0.3733, allocations: 172.3 kB / 0.5066 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.3733, allocations: 384 / 0.5066 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-06/0.3733, allocations: 384 / 0.5066 GB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.3735, allocations: 42.25 kB / 0.5067 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.3735, allocations: 192 / 0.5067 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.3735, allocations: 3.938 kB / 0.5067 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.647e-05/0.3735, allocations: 11.98 kB / 0.5067 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.989e-05/0.3736, allocations: 15.98 kB / 0.5067 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005993/0.3742, allocations: 0.7939 MB / 0.5075 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.246e-05/0.3742, allocations: 173.1 kB / 0.5076 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.782e-05/0.3743, allocations: 88.12 kB / 0.5077 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.3743, allocations: 75.28 kB / 0.5078 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.3743, allocations: 109.8 kB / 0.5079 GB, free: 13.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.3743, allocations: 0 / 0.5079 GB, free: 13.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 6.554e-05/0.3744, allocations: 29.64 kB / 0.5079 GB, free: 13.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.3745, allocations: 156.4 kB / 0.5081 GB, free: 13.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.962e-05/0.3746, allocations: 125.8 kB / 0.5082 GB, free: 13.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.3746, allocations: 33.64 kB / 0.5082 GB, free: 13.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.172e-05/0.3746, allocations: 95.95 kB / 0.5083 GB, free: 13.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.186e-06/0.3746, allocations: 0 / 0.5083 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.351e-05/0.3746, allocations: 21.7 kB / 0.5083 GB, free: 13.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.02e-05/0.3747, allocations: 314.8 kB / 0.5086 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.854e-05/0.3747, allocations: 11.98 kB / 0.5087 GB, free: 12.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.3748, allocations: 40.28 kB / 0.5087 GB, free: 12.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.534e-05/0.3748, allocations: 52.25 kB / 0.5087 GB, free: 12.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3748, allocations: 0 / 0.5087 GB, free: 12.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001417/0.375, allocations: 81.58 kB / 0.5088 GB, free: 12.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.375, allocations: 8 kB / 0.5088 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.375, allocations: 384 / 0.5088 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.375, allocations: 4 kB / 0.5088 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.341e-05/0.3751, allocations: 11.98 kB / 0.5088 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3751, allocations: 0 / 0.5088 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.172e-05/0.3752, allocations: 11.88 kB / 0.5089 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-06/0.3752, allocations: 0 / 0.5089 GB, free: 12.71 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 7.388e-05/0.3753, allocations: 209.1 kB / 0.5091 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.3753, allocations: 108.9 kB / 0.5092 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.687e-05/0.3754, allocations: 112.5 kB / 0.5093 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/0.3754, allocations: 180.4 kB / 0.5094 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.343e-05/0.3754, allocations: 184.2 kB / 0.5096 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-05/0.3755, allocations: 184.2 kB / 0.5098 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.3756, allocations: 417.1 kB / 0.5102 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.986e-05/0.3756, allocations: 108.9 kB / 0.5103 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.516e-05/0.3757, allocations: 101 kB / 0.5104 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.477e-05/0.3757, allocations: 176.3 kB / 0.5106 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.3757, allocations: 184.2 kB / 0.5107 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.461e-05/0.3757, allocations: 184.3 kB / 0.5109 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.609e-05/0.3758, allocations: 184.2 kB / 0.5111 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.588e-05/0.3758, allocations: 303.8 kB / 0.5114 GB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.3759, allocations: 193.9 kB / 0.5116 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.3759, allocations: 180.2 kB / 0.5117 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.57e-05/0.376, allocations: 108.9 kB / 0.5118 GB, free: 9.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.416e-05/0.3761, allocations: 184.3 kB / 0.512 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.3761, allocations: 101 kB / 0.5121 GB, free: 9.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.306e-05/0.3761, allocations: 107.1 kB / 0.5122 GB, free: 9.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3761, allocations: 0 / 0.5122 GB, free: 9.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.3764, allocations: 15.98 kB / 0.5122 GB, free: 9.039 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.0001451/0.3765, allocations: 182.5 kB / 0.5124 GB, free: 8.848 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.976e-05/0.3766, allocations: 24.25 kB / 0.5124 GB, free: 8.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3766, allocations: 0 / 0.5124 GB, free: 8.824 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.144e-06/0.3766, allocations: 4 kB / 0.5124 GB, free: 8.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.377, allocations: 0.5149 MB / 0.5129 GB, free: 8.301 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002096/0.3772, allocations: 186 kB / 0.5131 GB, free: 8.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.3773, allocations: 0.677 MB / 0.5138 GB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.962e-05/0.3774, allocations: 15.97 kB / 0.5138 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.3774, allocations: 7.719 kB / 0.5138 GB, free: 7.363 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3774, allocations: 4 kB / 0.5138 GB, free: 7.359 MB / 382.1 MB Notification: Performance of Templates: time 0.002634/0.38, allocations: 470.1 kB / 0.5142 GB, free: 6.906 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.Factorial.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: