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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1827
RA = 193.552, Dec = -22.0872
tmin = 712886401, tmax = 713145601
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='28598146', job_status='RUN', time_executed='2023-09-19 16:59:46.988239', time_epoch_executed='1695167986.99' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1827'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/28598146

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/28598146/ft1_4FGL_J1254.2-2205_daily_bin1827.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/28598146/ft1_4FGL_J1254.2-2205_daily_bin1827.fits outfile=/lscratch/kocevski/28598146/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1827.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=712886401.0 tmax=713145601.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 2.13
user 1.43
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.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/28598146/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1827.fits evtable="EVENTS" outfile="/lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.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.71
user 0.17
sys 0.15

Number of photons that the gtmktime cut: 1198

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits" evtable="EVENTS" scfile=/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits sctable="SC_DATA" outfile=/lscratch/kocevski/28598146/ltcube_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.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/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits
.....................!
real 9.39
user 8.61
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits evtable="EVENTS" scfile=/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits sctable="SC_DATA" expcube=/lscratch/kocevski/28598146/ltcube_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.fits outfile=/lscratch/kocevski/28598146/expmap_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.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/28598146/ltcube_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.fits
.....................!
real 62.88
user 58.64
sys 3.35

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

Setting source of interest to:
4FGL J1254.2-2205 @ 193.552 -22.0872

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits scfile=/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits outfile=/lscratch/kocevski/28598146/cmap_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.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=193.552 yref=-22.0872 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.70
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits scfile=/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits outfile=/lscratch/kocevski/28598146/cmap_HighResolution_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.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=193.552 yref=-22.0872 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.92
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits evtable="EVENTS" scfile=/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/28598146/Model_4FGL_J1254.2-2205_daily_bin1827.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/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits.....................!
real 36.10
user 32.61
sys 2.29

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits', '/lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits', expMap='/lscratch/kocevski/28598146/expmap_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.fits', expCube='/lscratch/kocevski/28598146/ltcube_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/28598146/Model_4FGL_J1254.2-2205_daily_bin1827.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.2-2205'

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  8.803e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/28598146/ft1_filtered_4FGL_J1254.2-2205_daily_bin1827.fits
Spacecraft file(s): /lscratch/kocevski/28598146/ft2_4FGL_J1254.2-2205_daily_bin1827.fits
Exposure map: /lscratch/kocevski/28598146/expmap_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.fits
Exposure cube: /lscratch/kocevski/28598146/ltcube_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/28598146/Model_4FGL_J1254.2-2205_daily_bin1827.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) = 12507.4350757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55429E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    20.122       1.0000          .0000       .10000E+07
     3 'Prefactor '    .13816E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    56.864       1.0000          .0000       .10000E+07
     5 'Prefactor '    .19310E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.2836       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.1836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2015       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17643E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .95701E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0858       1.0000          .0000       .10000E+07
    12 'norm      '    3.7553       1.0000          .0000       .10000E+07
    13 'norm      '    .47461E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33763E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.5901       1.0000          .0000       .10000E+07
    16 'norm      '    .46629E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    .56427E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .37413E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    18.307       1.0000          .0000       .10000E+07
    20 'Prefactor '    .44904E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .81023E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4944       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12507.43     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     1931 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.3586       -.25819E-08** at limit **
   2  Prefactor     19.931        5.5830       -.62494E-07   -.20780E-02
   3  Prefactor     .15710E-07    17.056        .24733E-06** at limit **
   4  Prefactor     56.876        34.961        .45967E-07    .63481E-02
   5  Prefactor     .27756E-09    8.3268        .11528E-06** at limit **
   6  Prefactor     2.2821        2.6256        .52069E-07    .12476E-02
   7  Prefactor     7.1818        2.0736        .40624E-07    .10779E-03
   8  Prefactor     2.1985        7.8963       -.35975E-06   -.19388E-03
   9  Prefactor     .11102E-09    5.5335       -.99783E-07** at limit **
  10  norm           .0000        .28785       -.10148E-07** at limit **
  11  Prefactor     .45534        1751.0       -.10555E-04    .19627E-04
  12  norm          3.7274        4.5197       -.77529E-07   -.66854E-03
  13  norm          .11718E-06    27.580        .99160E-07** at limit **
  14  Prefactor      .0000        2.7754        .26134E-07** at limit **
  15  norm          1.5914        4.7211       -.92751E-07    .14684E-03
  16  norm           .0000        .73100       -.61973E-08** at limit **
  17  Prefactor      .0000        2.1247        .95820E-07** at limit **
  18  Prefactor     .50515E-08    11.233        .20485E-07** at limit **
  19  Prefactor     18.354        6.8501       -.46740E-07    .54689E-01
  20  Prefactor     .17597E-07    13.165        .19447E-06** at limit **
  21  Prefactor     .87153E-08    10.707       -.25479E-06** at limit **
  22  Normalizat    1.4948        .22295        .19528E-05    .87251E-04
  23  Prefactor     .99134        .10688        .70934E-06    .15725E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 19.9306
  Prefactor  = 1.57097e-08
  Prefactor  = 56.8756
  Prefactor  = 2.77556e-10
  Prefactor  = 2.28208
  Prefactor  = 7.18177
  Prefactor  = 2.19854
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 0.455344
  norm       = 3.72743
  norm       = 1.17184e-07
  Prefactor  = 0
  norm       = 1.59138
  norm       = 0
  Prefactor  = 0
  Prefactor  = 5.05151e-09
  Prefactor  = 18.3538
  Prefactor  = 1.7597e-08
  Prefactor  = 8.71525e-09
  Normalizat = 1.49479
  Prefactor  = 0.991343
 **********
 **   18 **HESSE 
 **********

 FCN=   12507.43     FROM HESSE     STATUS=OK           426 CALLS     2357 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.3651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.931        29.009        .22300E-03   -1.5619    
   3  Prefactor     .15710E-07    17.384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.876        35.616        .13262E-03   -1.5557    
   5  Prefactor     .27756E-09    8.3444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2821        2.6450        .67911E-03   -1.5678    
   7  Prefactor     7.1818        2.0766        .37415E-02   -1.5172    
   8  Prefactor     2.1985        7.9547        .69314E-03   -1.5678    
   9  Prefactor     .11102E-09    5.5311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .28471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .45534        81.127        .14853E-01   -1.5694    
  12  norm          3.7274        4.5394        .52075E-03   -1.5669    
  13  norm          .11718E-06    2.8907        .56236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        2.7754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5914        4.7441        .84120E-03   -1.5683    
  16  norm           .0000        .73004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.1346        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .50515E-08    11.278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.354        20.528        .23381E-03   -1.5622    
  20  Prefactor     .17597E-07    13.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .87153E-08    10.832        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4948        .18919        .75601E-01   -.77925    
  23  Prefactor     .99134        .89525E-01    .46155E-01   -.93019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79152e-07
Minuit parameter uncertainties:
  1  1.34836e-05
  2  29.0089
  3  0.00104549
  4  35.6164
  5  9.55441e-05
  6  2.64502
  7  2.07663
  8  7.95475
  9  5.05377e-05
  10  3.75931e-07
  11  12.1559
  12  4.53936
  13  0.00116393
  14  1.39223e-06
  15  4.74411
  16  7.02086e-07
  17  5.12889e-06
  18  0.000477795
  19  20.5285
  20  0.000971804
  21  0.000613884
  22  0.189284
  23  0.089538
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  4.553e-01  1.216e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.913e-01  8.954e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.495e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 8.03698406802e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00611937575976 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/28598146/likelihoodResults_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.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) = 12507.4329582
delta logL = 7.78709363658e-09

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12507.4329559
delta logL = 2.30924342759e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12507.43     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      244 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45551        22.700        .15079E-01   -.70402E-02
   2  Index         2.2275        .76533        .50000        .24295E-04
   3  Normalizat    1.4948        .30692E-02    .75602E-01    .38493E-03
   4  Prefactor     .99134        .14675E-02    .46158E-01    .59667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.455509
  Index      = 2.22751
  Normalizat = 1.49477
  Prefactor  = 0.991343
 **********
 **   18 **HESSE 
 **********

 FCN=   12507.43     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      281 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45551        544.63        .20330E-01   -1.5694    
   2  Index         2.2275        5.7323        .32035E-01   -.58776    
   3  Normalizat    1.4948        .19541E-01    .33456E-03   -.77925    
   4  Prefactor     .99134        .93568E-02    .19021E-03   -.93019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.72971e-07
Minuit parameter uncertainties:
  1  31.5041
  2  32.5632
  3  0.0195411
  4  0.00935685
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) = 12507.4329491
delta logL = 9.08869151317e-06

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  4.555e-01  3.150e+01  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.228e+00  3.256e+01  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  9.913e-01  9.357e-03  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.495e+00  1.954e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 193.552 -22.087

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/28598146/cmap_HighResolution_712886401_713145601_4FGL_J1254.2-2205_daily_bin1827.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2023-09-19 17:06:31.266156', job_id='28598146', GAL2='0.99', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1695168391.27', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.09e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1827' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 19 17:06:31 PDT 2023

