/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17422
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0512.8+4041_weekly_bin802
RA = 78.2186, Dec = 40.6945
tmin = 724032001, tmax = 724636801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='36604966', job_status='RUN', time_executed='2023-12-19 00:10:59.040869', time_epoch_executed='1702973459.04' WHERE source_name='4FGL J0512.8+4041' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36604966

Creating custom pfile directory:
/lscratch/kocevski/36604966/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36604966/ft1_4FGL_J0512.8+4041_weekly_bin802.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=724032001.0 && nMetStart<724636801.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36604966/ft1_4FGL_J0512.8+4041_weekly_bin802.fits outfile=/lscratch/kocevski/36604966/ft1_filteredMKT_4FGL_J0512.8+4041_weekly_bin802.fits ra=78.2186 dec=40.6945 rad=12.0 tmin=724032001.0 tmax=724636801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.19
user 3.91
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/36604966/ft1_filteredMKT_4FGL_J0512.8+4041_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.42
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 6188

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36604966/ltcube_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits
.....................!
real 26.35
user 25.94
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36604966/ltcube_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits outfile=/lscratch/kocevski/36604966/expmap_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/36604966/ltcube_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits
.....................!
real 62.74
user 59.13
sys 3.36

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HB 9 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/HB9.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Added 159 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0512.8+4041 @ 78.2186 40.6945

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits scfile=/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits outfile=/lscratch/kocevski/36604966/cmap_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=78.2186 yref=40.6945 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.39
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits scfile=/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits outfile=/lscratch/kocevski/36604966/cmap_HighResolution_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=78.2186 yref=40.6945 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.39
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36604966/Model_4FGL_J0512.8+4041_weekly_bin802.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source G150.3+4.5
adding source GAL_V02
adding source HB 9
adding source S 147
Working on...
/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits.....................!
real 503.26
user 500.69
sys 0.68

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits', '/lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits', expMap='/lscratch/kocevski/36604966/expmap_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits', expCube='/lscratch/kocevski/36604966/ltcube_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36604966/Model_4FGL_J0512.8+4041_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0512.8+4041'

4FGL J0512.8+4041
   Spectrum: PowerLaw
282    Prefactor:  4.408e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.477e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36604966/ft1_filtered_4FGL_J0512.8+4041_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36604966/ft2_4FGL_J0512.8+4041_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36604966/expmap_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36604966/ltcube_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36604966/Model_4FGL_J0512.8+4041_weekly_bin802.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 61157.5795275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 61156.9828331

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53274E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .38933       1.0000          .0000       .10000E+07
     3 'norm      '    .55541E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .27706E-06   1.0000          .0000       .10000E+07
     5 'norm      '    .17164       1.0000          .0000       .10000E+07
     6 'Prefactor '    11.476       1.0000          .0000       .10000E+07
     7 'norm      '    .11663E-06   1.0000          .0000       .10000E+07
     8 'norm      '    1.0563       1.0000          .0000       .10000E+07
     9 'norm      '    2.5650       1.0000          .0000       .10000E+07
    10 'Normalizat'    1.2648       1.0000         .10000E-01   10.000    
    11 'Prefactor '    .99985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   61156.98     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      574 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3501       -.20888E-07** at limit **
   2  norm          .38388        3.6463       -.12604E-06    .38345E-03
   3  norm           .0000        1.1218        .64650E-07** at limit **
   4  Prefactor      .0000        2.0931       -.80805E-07** at limit **
   5  norm          .17206        .43385       -.17847E-07** at limit **
   6  Prefactor     11.486        10.208        .34495E-07   -.46258E-04
   7  norm           .0000        1.7091        .16921E-06** at limit **
   8  norm          1.0548        2.2159        .13317E-06   -.90954E-03
   9  norm          2.5674        1.7638       -.43959E-07    .98395E-03
  10  Normalizat    1.2648        .20559        .11544E-05    .79946E-05
  11  Prefactor     .99985        .24654E-01   -.13606E-06    .73768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.383879
  norm       = 0
  Prefactor  = 0
  norm       = 0.172058
  Prefactor  = 11.4858
  norm       = 0
  norm       = 1.05485
  norm       = 2.56741
  Normalizat = 1.26481
  Prefactor  = 0.999854
 **********
 **   18 **HESSE 
 **********

 FCN=   61156.98     FROM HESSE     STATUS=OK           144 CALLS      718 TOTAL
                     EDM=   .25E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .38388        .82207        .90733E-02   -1.5696    
   3  norm           .0000        1.1188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.0921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .17206        .30603        .31485E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.486        10.217        .29547E-03   -1.5640    
   7  norm           .0000        1.6339        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0548        2.2320        .11967E-02   -1.5687    
   9  norm          2.5674        1.7667        .63712E-03   -1.5676    
  10  Normalizat    1.2648        .20237        .19821       -.84623    
  11  Prefactor     .99985        .23982E-01    .26913E-01   -.92734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54007e-05
Minuit parameter uncertainties:
  1  1.75545e-06
  2  0.822069
  3  6.69018e-07
  4  1.25977e-08
  5  0.306027
  6  10.2174
  7  4.92368e-06
  8  2.232
  9  1.76667
  10  0.202499
  11  0.0239827
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 61156.9828236

Extracting fit parameters...

4FGL J0512.8+4041
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  1.260e-08  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  1.477e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.999e-01  2.398e-02  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.265e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 78.219 40.694
Photon Flux Upper Limit: 4.01870716308e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00309216348468 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/36604966/likelihoodResults_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 61156.9830956
delta logL = -0.000272035198577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 61156.9828237
delta logL = -1.11118424684e-07

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32419E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.0034       1.0000          .0000       10.000    
     3 'Normalizat'    1.2649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99984       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   61156.98     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      252 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4954        .42118E-03** at limit **
   2  Index         2.6084        1.8922        .98750E-05     .0000    
   3  Normalizat    1.2648        1.0874        .41213E-05   -.25380E-04
   4  Prefactor     .99985        1.3389       -.14458E-06   -.27863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.6084
  Normalizat = 1.26481
  Prefactor  = 0.999854
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   61156.98     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .76919        2.0727        .98750E-05   -.49874    
   3  Normalizat    1.2648        1.0874        .41213E-05   -.84623    
   4  Prefactor     .99985        1.3389       -.14458E-06   -.92734    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.97346e-12
Minuit parameter uncertainties:
  1  3.60638e-06
  2  1.9563
  3  1.10795
  4  1.38786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 61156.9828236
delta logL = 0.0

Extracting fit parameters...

4FGL J0512.8+4041
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  3.606e-06  0.000e+00  1.000e+06 ( 1.000e-13)
283        Index:  2.608e+00  1.956e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  1.477e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  9.999e-01  1.388e+00  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.265e+00  1.108e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 78.219 40.694

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/36604966/cmap_HighResolution_724032001_724636801_4FGL_J0512.8+4041_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-03', job_status='DONE', photon_flux_upper_limit='4.02e-08', time_completed='2023-12-19 00:28:40.909306', job_id='36604966', GAL2='1.00', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1702974520.91', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='802' AND source_name='4FGL J0512.8+4041' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 00:28:40 PST 2023

