Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 198 kB / 16.64 MB, free: 6.449 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.383/1.383, allocations: 205.1 MB / 222.5 MB, free: 4.582 MB / 174.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.658/1.658, allocations: 292.3 MB / 0.549 GB, free: 12.72 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.001435/0.001435, allocations: 71.75 kB / 0.6718 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.223, allocations: 114.6 MB / 0.7837 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002399/0.2255, allocations: 1.414 MB / 0.7851 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004234/0.2297, allocations: 3.064 MB / 0.7881 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.108e-05/0.2298, allocations: 3.938 kB / 0.7881 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.2299, allocations: 7.922 kB / 0.7881 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.2302, allocations: 27.84 kB / 0.7881 GB, free: 8.645 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/gFunction.mo:2:1-295:14:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.gFunction' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.2328, allocations: 1.002 MB / 0.7891 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000128/0.2329, allocations: 75.8 kB / 0.7891 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.233, allocations: 4 kB / 0.7892 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.524e-05/0.233, allocations: 47.77 kB / 0.7892 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.2332, allocations: 143.6 kB / 0.7893 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.2333, allocations: 12 kB / 0.7893 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001895/0.2352, allocations: 1.385 MB / 0.7907 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.2354, allocations: 263.9 kB / 0.7909 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.2356, allocations: 282.3 kB / 0.7912 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.2373, allocations: 1.473 MB / 0.7927 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2373, allocations: 0 / 0.7927 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.323e-06/0.2373, allocations: 0 / 0.7927 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.2373, allocations: 0 / 0.7927 GB, free: 3.957 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.009376/0.2467, allocations: 1.214 MB / 0.7938 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2468, allocations: 8.031 kB / 0.7938 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.649e-05/0.2468, allocations: 34.75 kB / 0.7939 GB, free: 2.641 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003367/0.2471, allocations: 87.69 kB / 0.794 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.2475, allocations: 356.9 kB / 0.7943 GB, free: 2.156 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.2475, allocations: 4.375 kB / 0.7943 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.91e-05/0.2476, allocations: 12.36 kB / 0.7943 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004101/0.248, allocations: 391.2 kB / 0.7947 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.006e-06/0.248, allocations: 0 / 0.7947 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.248, allocations: 4 kB / 0.7947 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.248, allocations: 0 / 0.7947 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004101/0.2485, allocations: 435.7 kB / 0.7951 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.249, allocations: 0.6325 MB / 0.7957 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.2495, allocations: 0.5711 MB / 0.7963 GB, free: 44 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.2498, allocations: 341.7 kB / 0.7966 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009911/0.2508, allocations: 1.028 MB / 0.7976 GB, free: 14.45 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003676/0.2512, allocations: 412.7 kB / 0.798 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.2512, allocations: 0 / 0.798 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001211/0.2524, allocations: 1.293 MB / 0.7993 GB, free: 12.73 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.2525, allocations: 85.23 kB / 0.7994 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.2535, allocations: 1.206 MB / 0.8005 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.2535, allocations: 29.7 kB / 0.8006 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.2537, allocations: 257.4 kB / 0.8008 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.068e-05/0.2538, allocations: 27.64 kB / 0.8008 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002818/0.2541, allocations: 343.5 kB / 0.8012 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.625e-05/0.2542, allocations: 310 kB / 0.8015 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.2552, allocations: 1.361 MB / 0.8028 GB, free: 9.074 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.2565, allocations: 1.501 MB / 0.8043 GB, free: 7.562 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006533/0.263, allocations: 3.537 MB / 0.8077 GB, free: 3.934 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.263, allocations: 4 kB / 0.8077 GB, free: 3.93 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003876/0.2669, allocations: 3.961 MB / 0.8116 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.267, allocations: 8 kB / 0.8116 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.267, allocations: 0 / 0.8116 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.267, allocations: 0 / 0.8116 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.2672, allocations: 19.88 kB / 0.8116 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.2672, allocations: 4 kB / 0.8116 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004601/0.2676, allocations: 232.3 kB / 0.8118 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.884e-05/0.2677, allocations: 23.98 kB / 0.8119 GB, free: 15.65 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0002599/0.268, allocations: 237.7 kB / 0.8121 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.551e-05/0.268, allocations: 70.7 kB / 0.8121 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002661/0.2683, allocations: 78.78 kB / 0.8122 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2683, allocations: 0 / 0.8122 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2683, allocations: 0 / 0.8122 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2683, allocations: 4 kB / 0.8122 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003693/0.2687, allocations: 496.8 kB / 0.8127 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2687, allocations: 3.938 kB / 0.8127 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.379e-05/0.2688, allocations: 7.984 kB / 0.8127 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.818e-06/0.2688, allocations: 4 kB / 0.8127 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.2688, allocations: 0 / 0.8127 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2688, allocations: 0 / 0.8127 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.2688, allocations: 0 / 0.8127 GB, free: 14.7 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000805/0.2696, allocations: 1.009 MB / 0.8137 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 8.893e-05/0.2697, allocations: 151.8 kB / 0.8138 GB, free: 13.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.49e-05/0.2698, allocations: 8 kB / 0.8139 GB, free: 13.49 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.2699, allocations: 7.984 kB / 0.8139 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.27, allocations: 0 / 0.8139 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.27, allocations: 23.91 kB / 0.8139 GB, free: 13.46 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006172/0.2706, allocations: 0.6726 MB / 0.8145 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2706, allocations: 0 / 0.8145 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009478/0.2716, allocations: 395.8 kB / 0.8149 GB, free: 12.39 MB / 0.6387 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002026/0.2736, allocations: 1.922 MB / 0.8168 GB, free: 10.44 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002012/0.2757, allocations: 2.495 MB / 0.8192 GB, free: 7.934 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2757, allocations: 3.938 kB / 0.8192 GB, free: 7.93 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.276, allocations: 336.3 kB / 0.8196 GB, free: 7.602 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.2763, allocations: 39.33 kB / 0.8196 GB, free: 7.566 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.2894, allocations: 15.02 MB / 0.8343 GB, free: 8.367 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005211/0.2899, allocations: 0.9601 MB / 0.8352 GB, free: 7.379 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001331/0.2901, allocations: 40.53 kB / 0.8352 GB, free: 7.34 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002815/0.2904, allocations: 259.3 kB / 0.8355 GB, free: 7.086 MB / 0.6544 GB Notification: Performance of SimCode: time 8.01e-07/0.2904, allocations: 0 / 0.8355 GB, free: 7.086 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0406/0.331, allocations: 19.46 MB / 0.8545 GB, free: 3.828 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.286/9.617, allocations: 22.52 kB / 0.8545 GB, free: 3.812 MB / 0.67 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)