/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 = 7671
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0011.4+0057_daily_bin1964
RA = 2.8551, Dec = 0.9646
tmin = 748396801, tmax = 748656001
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='55944333', job_status='RUN', time_executed='2024-09-22 00:01:46.243763', time_epoch_executed='1726988506.24' WHERE source_name='4FGL J0011.4+0057' and cadence='daily' and bin_id='1964'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/55944333

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/55944333/ft1_4FGL_J0011.4+0057_daily_bin1964.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/55944333/ft1_4FGL_J0011.4+0057_daily_bin1964.fits outfile=/lscratch/kocevski/55944333/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1964.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=748396801.0 tmax=748656001.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 1.78
user 1.45
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.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/55944333/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1964.fits evtable="EVENTS" outfile="/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.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.46
user 0.17
sys 0.12

Number of photons that the gtmktime cut: 68

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits" evtable="EVENTS" scfile=/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits sctable="SC_DATA" outfile=/lscratch/kocevski/55944333/ltcube_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.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/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits
.....................!
real 7.87
user 7.41
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits evtable="EVENTS" scfile=/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits sctable="SC_DATA" expcube=/lscratch/kocevski/55944333/ltcube_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.fits outfile=/lscratch/kocevski/55944333/expmap_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.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/55944333/ltcube_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.fits
.....................!
real 59.33
user 55.27
sys 3.64

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
Added 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits scfile=/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits outfile=/lscratch/kocevski/55944333/cmap_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.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=2.8551 yref=0.9646 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.42
user 0.19
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits scfile=/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits outfile=/lscratch/kocevski/55944333/cmap_HighResolution_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.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=2.8551 yref=0.9646 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.46
user 0.19
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits evtable="EVENTS" scfile=/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/55944333/Model_4FGL_J0011.4+0057_daily_bin1964.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 GAL_V02
Working on...
/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits.......................!
real 8.43
user 7.59
sys 0.67

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits', '/lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits', expMap='/lscratch/kocevski/55944333/expmap_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.fits', expCube='/lscratch/kocevski/55944333/ltcube_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/55944333/Model_4FGL_J0011.4+0057_daily_bin1964.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/55944333/ft1_filtered_4FGL_J0011.4+0057_daily_bin1964.fits
Spacecraft file(s): /lscratch/kocevski/55944333/ft2_4FGL_J0011.4+0057_daily_bin1964.fits
Exposure map: /lscratch/kocevski/55944333/expmap_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.fits
Exposure cube: /lscratch/kocevski/55944333/ltcube_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/55944333/Model_4FGL_J0011.4+0057_daily_bin1964.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 892.19469862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 889.079473456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3466       1.0000          .0000       .10000E+07
     2 'Prefactor '    .45325E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .98000       1.0000          .0000       .10000E+07
     4 'norm      '    4.7032       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6742       1.0000          .0000       .10000E+07
     6 'norm      '    1.2226       1.0000          .0000       .10000E+07
     7 'norm      '    .24797E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64344E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .62177E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    16.806       1.0000          .0000       .10000E+07
    11 'Prefactor '    .92031E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .87699E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    129.28       1.0000          .0000       .10000E+07
    14 'norm      '    .29929E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .41632E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .43207E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14945       1.0000          .0000       .10000E+07
    18 'Prefactor '    4.0764       1.0000          .0000       .10000E+07
    19 'Normalizat'    .40872E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.4387       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   889.0769     FROM MIGRAD    STATUS=CONVERGED    238 CALLS      532 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3466        1.0116         .0000         .0000    
   2  Prefactor      .0000        .61872        .80897E-07** at limit **
   3  Prefactor     .14204E-02    .46346E-01    .15578E-06** at limit **
   4  norm          4.5346        .98758       -.23803E-06    .41669E-03
   5  Prefactor     .94661E-03    .97004E-01    .27052E-06** at limit **
   6  norm          .91835E-05    .25960       -.13600E-05** at limit **
   7  norm           .0000        .44347E-01    .48349E-07** at limit **
   8  Prefactor      .0000        .44347E-01    .16948E-06** at limit **
   9  norm          .94369E-09    .44347E-01   -.34217E-06** at limit **
  10  Prefactor     16.825        1.0010        .18884E-06   -.42506E-03
  11  Prefactor     .16653E-09    .44347E-01   -.29494E-06** at limit **
  12  Prefactor     .24425E-08    .44347E-01    .27502E-06** at limit **
  13  Prefactor     129.60        1.0012        .42714E-08    .16660    
  14  norm           .0000        .67685        .13266E-06** at limit **
  15  Prefactor     .55511E-10    .44347E-01    .35923E-06** at limit **
  16  Prefactor      .0000        .62585        .67094E-07** at limit **
  17  Prefactor     .11102E-09    .40673       -.27822E-06** at limit **
  18  Prefactor     4.0764        1.0077         .0000         .0000    
  19  Normalizat    .39852E-01    .26160       -.18542E-03   -.13684E-05
  20  Prefactor     1.4397        1.0558        .99631E-05    .31048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.34657
  Prefactor  = 0
  Prefactor  = 0.00142039
  norm       = 4.53463
  Prefactor  = 0.000946609
  norm       = 9.18354e-06
  norm       = 0
  Prefactor  = 0
  norm       = 9.4369e-10
  Prefactor  = 16.8253
  Prefactor  = 1.66533e-10
  Prefactor  = 2.44249e-09
  Prefactor  = 129.604
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 4.0764
  Normalizat = 0.0398521
  Prefactor  = 1.43975
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   889.0769     FROM HESSE     STATUS=FAILED        11 CALLS      543 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62738.        62734.         .0000       -1.5671    
   2  Prefactor      .0000        .61872        .80897E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .14204E-02    .46346E-01    .15578E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5346        .98758       -.23803E-06   -1.5665    
   5  Prefactor     .94661E-03    .97004E-01    .27052E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .91835E-05    .25960       -.13600E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .44347E-01    .48349E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .44347E-01    .16948E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .94369E-09    .44347E-01   -.34217E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.825        1.0010        .18884E-06   -1.5626    
  11  Prefactor     .16653E-09    .44347E-01   -.29494E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .24425E-08    .44347E-01    .27502E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     129.60        1.0012        .42714E-08   -1.5480    
  14  norm           .0000        .67685        .13266E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    .44347E-01    .35923E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        .62585        .67094E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    .40673       -.27822E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0764        1.0077         .0000       -1.5668    
  19  Normalizat    .39852E-01    .26160       -.18542E-03   -1.4614    
  20  Prefactor     1.4397        1.0558        .99631E-05   -.79241    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.89291e-10
Minuit parameter uncertainties:
  1  1.01162
  2  4.32737e-06
  3  0.0162271
  4  0.987577
  5  0.0191651
  6  0.00308807
  7  5.76316e-07
  8  2.15594e-06
  9  1.27788e-05
  10  1.00103
  11  5.55867e-06
  12  2.09076e-05
  13  1.00124
  14  7.75793e-06
  15  3.36937e-06
  16  3.38195e-06
  17  1.25221e-05
  18  1.00773
  19  0.177791
  20  1.07243
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 889.076885981

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  4.327e-06  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.440e+00  1.072e+00  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  3.985e-02  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 9.56505530154e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.073581864074 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/55944333/likelihoodResults_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.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): 0
logL (Free Index) = 889.079739965
delta logL = -0.0028539840489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 889.076887513
delta logL = -1.53199698616e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   889.0769     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      248 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-08    180.91        .11246E-04** at limit **
   2  Index         2.5433        8.7046        .27212E-03   -.10966E-10
   3  Normalizat    .39857E-01    6.0092       -.51237E-03   -.26649E-04
   4  Prefactor     1.4397        .39831        .36116E-04   -.32933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-09
  Index      = 2.54326
  Normalizat = 0.0398568
  Prefactor  = 1.43974
 **********
 **   18 **HESSE 
 **********

 FCN=   889.0769     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      287 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-08    4.1231        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5433        8.1965        .50000       -.51364    
   3  Normalizat    .39857E-01    .15341E-02    .22859       -1.4614    
   4  Prefactor     1.4397        .14663E-02    .30540E-01   -.79242    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.59638e-13
Minuit parameter uncertainties:
  1  0.000270763
  2  9236.42
  3  0.00153413
  4  0.00146633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 889.076885981
delta logL = -2.14186002268e-10

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  4.441e-09  2.708e-04  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.543e+00  9.236e+03  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.440e+00  1.466e-03  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  3.986e-02  1.534e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 2.855 0.965

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/55944333/cmap_HighResolution_748396801_748656001_4FGL_J0011.4+0057_daily_bin1964.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-02', job_status='DONE', photon_flux_upper_limit='9.57e-07', time_completed='2024-09-22 00:04:12.681493', job_id='55944333', GAL2='1.44', fit_tolerance='1e-08', EG2='0.04', EG='0.04', time_epoch_completed='1726988652.68', return_code2='102', ts='0.00', comment='SUCCESS', return_code='101', GAL='1.44', dlogl='-2.14e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1964' AND source_name='4FGL J0011.4+0057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 22 00:04:12 PDT 2024

