Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 105.5 kB / 16.37 MB, free: 6.309 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.001058/0.001058, allocations: 189.5 kB / 17.3 MB, free: 5.871 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.636/1.636, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.866/1.866, allocations: 292.3 MB / 0.5496 GB, free: 17.46 MB / 462.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: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 67.91 kB / 0.6729 GB, free: 5.773 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.224, allocations: 114.6 MB / 0.7848 GB, free: 3.102 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics): time 0.7538/0.9778, allocations: 292.5 MB / 1.07 GB, free: 5.207 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.8098/1.788, allocations: 70.04 MB / 1.139 GB, free: 27.64 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.02082/1.809, allocations: 363.2 kB / 1.139 GB, free: 27.64 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.01925/1.828, allocations: 4.916 MB / 1.144 GB, free: 27.64 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.05249/1.88, allocations: 12.78 MB / 1.156 GB, free: 27.55 MB / 0.92 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/internalResistancesOneUTube.mo:2:1-155:32:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.internalResistancesOneUTube' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/internalResistancesTwoUTube.mo:2:1-162:32:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.internalResistancesTwoUTube' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.03144/1.912, allocations: 9.481 MB / 1.166 GB, free: 27.36 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.3675/2.279, allocations: 222.5 MB / 1.383 GB, free: 11.49 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.1994/2.479, allocations: 104.8 MB / 1.485 GB, free: 3.594 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 1.676/4.155, allocations: 73.21 MB / 1.557 GB, free: 96.23 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1297/4.285, allocations: 63.51 MB / 1.619 GB, free: 91.82 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 0.04001/4.325, allocations: 11.01 MB / 1.63 GB, free: 91.82 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.09227/4.417, allocations: 18.17 MB / 1.647 GB, free: 91.82 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 0.06292/4.48, allocations: 24.5 MB / 1.671 GB, free: 88.77 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 0.1289/4.609, allocations: 53.07 MB / 1.723 GB, free: 76.55 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.224/4.833, allocations: 182.5 MB / 1.901 GB, free: 7.891 MB / 1.233 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/4.833, allocations: 0 / 1.901 GB, free: 7.891 MB / 1.233 GB Notification: Performance of FrontEnd: time 4.258e-06/4.833, allocations: 0 / 1.901 GB, free: 7.891 MB / 1.233 GB Notification: Performance of Transformations before backend: time 0.005522/4.839, allocations: 7.031 kB / 1.901 GB, free: 7.887 MB / 1.233 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12889 * Number of variables: 12889 Notification: Performance of Generate backend data structure: time 0.2949/5.134, allocations: 93.38 MB / 1.993 GB, free: 11.18 MB / 1.326 GB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/5.134, allocations: 8.75 kB / 1.993 GB, free: 11.18 MB / 1.326 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05114/5.185, allocations: 9.162 MB / 2.002 GB, free: 1.91 MB / 1.326 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.115/6.3, allocations: 89.91 MB / 2.089 GB, free: 498.2 MB / 1.358 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.004903/6.304, allocations: 3.81 MB / 2.093 GB, free: 496.4 MB / 1.358 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.02142/6.326, allocations: 5.098 MB / 2.098 GB, free: 494.8 MB / 1.358 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2081/6.534, allocations: 77.36 MB / 2.174 GB, free: 463.3 MB / 1.358 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002772/6.537, allocations: 144.2 kB / 2.174 GB, free: 463.2 MB / 1.358 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0193/6.556, allocations: 2.095 MB / 2.176 GB, free: 461.6 MB / 1.358 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00173/6.558, allocations: 1.465 MB / 2.177 GB, free: 461.6 MB / 1.358 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1676/6.726, allocations: 66.22 MB / 2.242 GB, free: 418.1 MB / 1.358 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5912/7.317, allocations: 380.9 MB / 2.614 GB, free: 14.98 MB / 1.358 GB Notification: Performance of preOpt comSubExp (simulation): time 0.7193/8.036, allocations: 40.74 MB / 2.654 GB, free: 462.4 MB / 1.358 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0546/8.091, allocations: 25.9 MB / 2.679 GB, free: 458 MB / 1.358 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006378/8.097, allocations: 5.239 MB / 2.684 GB, free: 452.6 MB / 1.358 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006525/8.098, allocations: 405.1 kB / 2.684 GB, free: 452.3 MB / 1.358 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.03746/8.135, allocations: 3.082 MB / 2.687 GB, free: 451.8 MB / 1.358 GB Notification: Performance of pre-optimization done (n=2661): time 0.0001421/8.136, allocations: 3.906 kB / 2.687 GB, free: 451.8 MB / 1.358 GB Notification: Performance of matching and sorting (n=2661): time 0.1669/8.302, allocations: 68.3 MB / 2.754 GB, free: 425.8 MB / 1.358 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002419/8.303, allocations: 0.8313 MB / 2.755 GB, free: 425.1 MB / 1.358 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2167/8.52, allocations: 85.74 MB / 2.839 GB, free: 397.8 MB / 1.358 GB Notification: Performance of collectPreVariables (initialization): time 0.0109/8.53, allocations: 0.6167 MB / 2.839 GB, free: 397.3 MB / 1.358 GB Notification: Performance of collectInitialEqns (initialization): time 0.04766/8.578, allocations: 35.44 MB / 2.874 GB, free: 370.2 MB / 1.358 GB Notification: Performance of collectInitialBindings (initialization): time 0.0202/8.598, allocations: 9.464 MB / 2.883 GB, free: 361.6 MB / 1.358 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.03782/8.636, allocations: 8.915 MB / 2.892 GB, free: 353.5 MB / 1.358 GB Notification: Performance of setup shared object (initialization): time 4.373e-05/8.636, allocations: 301.1 kB / 2.892 GB, free: 353.2 MB / 1.358 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04262/8.679, allocations: 21.97 MB / 2.914 GB, free: 334.5 MB / 1.358 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05271/8.732, allocations: 33.38 MB / 2.946 GB, free: 297.3 MB / 1.358 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07575/8.808, allocations: 51.85 MB / 2.997 GB, free: 242.2 MB / 1.358 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000278/8.808, allocations: 68 kB / 2.997 GB, free: 242.1 MB / 1.358 GB Notification: Performance of matching and sorting (n=5346) (initialization): time 0.151/8.959, allocations: 69.51 MB / 3.065 GB, free: 172.1 MB / 1.358 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/8.959, allocations: 104 kB / 3.065 GB, free: 172 MB / 1.358 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009344/8.96, allocations: 360 kB / 3.065 GB, free: 171.7 MB / 1.358 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6054/9.565, allocations: 43.46 MB / 3.108 GB, free: 435 MB / 1.358 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03028/9.596, allocations: 7.798 MB / 3.115 GB, free: 435 MB / 1.358 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1074/9.703, allocations: 134.3 MB / 3.246 GB, free: 343.3 MB / 1.358 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.06824/9.771, allocations: 3.141 MB / 3.25 GB, free: 342.7 MB / 1.358 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009652/9.781, allocations: 1.616 MB / 3.251 GB, free: 342.4 MB / 1.358 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.1006/9.882, allocations: 49.79 MB / 3.3 GB, free: 323.8 MB / 1.358 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.05691/9.939, allocations: 33.35 MB / 3.332 GB, free: 303.8 MB / 1.358 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.08567/10.02, allocations: 51.8 MB / 3.383 GB, free: 275.7 MB / 1.358 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 0.0005815/10.03, allocations: 70.38 kB / 3.383 GB, free: 275.7 MB / 1.358 GB Notification: Performance of matching and sorting (n=5346) (initialization_lambda0): time 0.1568/10.18, allocations: 69.48 MB / 3.451 GB, free: 220.2 MB / 1.358 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002334/10.18, allocations: 110.7 kB / 3.451 GB, free: 220.1 MB / 1.358 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001081/10.18, allocations: 354.5 kB / 3.451 GB, free: 219.8 MB / 1.358 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04809/10.23, allocations: 43.39 MB / 3.494 GB, free: 176 MB / 1.358 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02909/10.26, allocations: 7.807 MB / 3.501 GB, free: 168.2 MB / 1.358 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09173/10.35, allocations: 136.9 MB / 3.635 GB, free: 23.21 MB / 1.358 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.06935/10.42, allocations: 3.878 MB / 3.639 GB, free: 19.38 MB / 1.358 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.009462/10.43, allocations: 1.613 MB / 3.64 GB, free: 17.77 MB / 1.358 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1088 * 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 initialization (4218): * Single equations (assignments): 4114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 40 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 64 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 60 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(32,530), (1,4), (1,4), (11,229)} Notification: Performance of prepare postOptimizeDAE: time 0.01639/10.45, allocations: 2.431 MB / 3.643 GB, free: 15.47 MB / 1.358 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.02644/10.47, allocations: 6.324 MB / 3.649 GB, free: 10.8 MB / 1.358 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7293/11.2, allocations: 52.02 MB / 3.7 GB, free: 390.9 MB / 1.358 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.08628/11.29, allocations: 40.3 MB / 3.739 GB, free: 375.7 MB / 1.358 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001229/11.29, allocations: 0 / 3.739 GB, free: 375.7 MB / 1.358 GB Notification: Performance of postOpt removeConstants (simulation): time 0.04341/11.33, allocations: 13.43 MB / 3.752 GB, free: 371.6 MB / 1.358 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.02563/11.36, allocations: 0.5284 MB / 3.753 GB, free: 371.2 MB / 1.358 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.05048/11.41, allocations: 2.024 MB / 3.755 GB, free: 370.8 MB / 1.358 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00651/11.42, allocations: 1.556 MB / 3.756 GB, free: 370.6 MB / 1.358 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.1242/11.54, allocations: 55.82 MB / 3.811 GB, free: 354.1 MB / 1.358 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.132/11.67, allocations: 63.95 MB / 3.873 GB, free: 331.1 MB / 1.358 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.02998/11.7, allocations: 18.62 MB / 3.891 GB, free: 324.3 MB / 1.358 GB Notification: Performance of sorting global known variables: time 0.1333/11.84, allocations: 61.05 MB / 3.951 GB, free: 269.4 MB / 1.358 GB Notification: Performance of Backend: time 1.152e-06/11.84, allocations: 3.844 kB / 3.951 GB, free: 269.4 MB / 1.358 GB Notification: Performance of simCode: created initialization part: time 0.1873/12.02, allocations: 85.96 MB / 4.035 GB, free: 183.1 MB / 1.358 GB Notification: Performance of SimCode: time 1.598/13.62, allocations: 192 MB / 4.222 GB, free: 350.3 MB / 1.358 GB Notification: Performance of Templates: time 4.057/17.68, allocations: 1.588 GB / 5.81 GB, free: 277.7 MB / 1.358 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.Examples.BoreholeDynamics.pipe 2>&1)