aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 65 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7654
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0628.8-6250_daily_bin1685
RA = 97.2174, Dec = -62.8405
tmin = 676080001, tmax = 676339201
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='365609', job_status='RUN', time_executed='2022-06-08 00:40:28.143285', time_epoch_executed='1654674028.14' WHERE source_name='4FGL J0628.8-6250' and cadence='daily' and bin_id='1685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365609

Creating custom pfile directory:
/scratch/kocevski/365609/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=676080001.0 && nMetStart<676339201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=676080001.0 && nMetStart<676339201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365609/ft1_4FGL_J0628.8-6250_daily_bin1685.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=676080001.0 && nMetStart<676339201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365609/ft1_4FGL_J0628.8-6250_daily_bin1685.fits outfile=/scratch/kocevski/365609/ft1_filteredMKT_4FGL_J0628.8-6250_daily_bin1685.fits ra=97.2174 dec=-62.8405 rad=12.0 tmin=676080001.0 tmax=676339201.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 3.71
user 3.43
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/365609/ft1_filteredMKT_4FGL_J0628.8-6250_daily_bin1685.fits evtable="EVENTS" outfile="/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1134

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits" evtable="EVENTS" scfile=/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits sctable="SC_DATA" outfile=/scratch/kocevski/365609/ltcube_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.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 /scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits
.....................!
real 15.55
user 15.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits sctable="SC_DATA" expcube=/scratch/kocevski/365609/ltcube_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.fits outfile=/scratch/kocevski/365609/expmap_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.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 /scratch/kocevski/365609/ltcube_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.fits
.....................!
real 192.38
user 186.41
sys 5.47

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 LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Added 212 point sources and 4 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 J0628.8-6250 @ 97.2174 -62.8405

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits scfile=/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits outfile=/scratch/kocevski/365609/cmap_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.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=97.2174 yref=-62.8405 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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits scfile=/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits outfile=/scratch/kocevski/365609/cmap_HighResolution_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.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=97.2174 yref=-62.8405 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits evtable="EVENTS" scfile=/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365609/Model_4FGL_J0628.8-6250_daily_bin1685.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
Working on...
/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits.....................!
real 6831.25
user 6794.73
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits', '/scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits', expMap='/scratch/kocevski/365609/expmap_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.fits', expCube='/scratch/kocevski/365609/ltcube_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365609/Model_4FGL_J0628.8-6250_daily_bin1685.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0628.8-6250'

4FGL J0628.8-6250
   Spectrum: PowerLaw
357    Prefactor:  4.126e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.204e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  1.359e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/365609/ft1_filtered_4FGL_J0628.8-6250_daily_bin1685.fits
Spacecraft file(s): /scratch/kocevski/365609/ft2_4FGL_J0628.8-6250_daily_bin1685.fits
Exposure map: /scratch/kocevski/365609/expmap_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.fits
Exposure cube: /scratch/kocevski/365609/ltcube_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365609/Model_4FGL_J0628.8-6250_daily_bin1685.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) = 11833.8092556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1309       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.657       1.0000         .10000E-03   10000.    
     9 'norm      '    17.809       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3635       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.490       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.675       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0687       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.404       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91474       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11833.79     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3277 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.706        .52021E-06** at limit **
   2  Prefactor     .10000E-03    9.7802        .11613E-06** at limit **
   3  Prefactor     2.2141        33.338        .75184E-05   -.57447E-05
   4  Prefactor     .10000E-03    57.633       -.52260E-05** at limit **
   5  norm          3.1202        2.8144       -.42978E-07   -.82397E-05
   6  Prefactor     1.1308        11.823        .11117E-05   -.38906E-05
   7  Prefactor     .10000E-03    1.2218       -.30374E-07** at limit **
   8  norm          10.657        6.7008        .80420E-08    .34570E-05
   9  norm          17.809        7.8868        .13735E-07    .18324E-04
  10  Prefactor     .10000E-03    11.608       -.22456E-06** at limit **
  11  Prefactor     .10000E-03    3.3590       -.21749E-07** at limit **
  12  Prefactor     13.246        10.830        .50107E-07    .17017E-04
  13  Prefactor     1.3631        4.3555        .66008E-06    .61062E-05
  14  Prefactor     20.690        11.628        .19026E-07    .12275E-04
  15  Prefactor     27.525        150.85       -.68925E-05    .13976E-05
  16  Prefactor     29.673        16.165        .22298E-06    .49549E-05
  17  norm          .10000E-03    .78486       -.10517E-07** at limit **
  18  Prefactor     .10000E-03    6.2356       -.72926E-07** at limit **
  19  norm          1.0687        1.8471       -.19924E-06   -.73248E-03
  20  Prefactor     16.404        9.2475        .46883E-07    .31029E-05
  21  Prefactor     .10000E-03    5.8992       -.30392E-07** at limit **
  22  Prefactor     .10000E-03    71.474        .60093E-05** at limit **
  23  Prefactor     .10000E-03    5.8531       -.27321E-07** at limit **
  24  Normalizat    .91476        .17803       -.22734E-06    .20013E-04
  25  Prefactor     1.0290        .81086E-01    .83249E-08    .20216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.21414
  Prefactor  = 0.0001
  norm       = 3.12023
  Prefactor  = 1.13078
  Prefactor  = 0.0001
  norm       = 10.6574
  norm       = 17.8087
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2456
  Prefactor  = 1.3631
  Prefactor  = 20.6897
  Prefactor  = 27.5245
  Prefactor  = 29.6732
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.0687
  Prefactor  = 16.4042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.914759
  Prefactor  = 1.02904
 **********
 **   18 **HESSE 
 **********

 FCN=   11833.79     FROM HESSE     STATUS=OK           431 CALLS     3708 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2141        33.151        .13819E-02   -1.5410    
   4  Prefactor     .10000E-03    57.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1202        2.8075        .16473E-03   -1.5355    
   6  Prefactor     1.1308        11.993        .43926E-03   -1.5495    
   7  Prefactor     .10000E-03    1.2331        .11734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.657        6.6998        .12273E-03   -1.5055    
   9  norm          17.809        7.8620        .94908E-04   -1.4864    
  10  Prefactor     .10000E-03    11.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.246        10.845        .11006E-03   -1.4980    
  13  Prefactor     1.3631        4.3071        .37383E-03   -1.5474    
  14  Prefactor     20.690        11.625        .88056E-04   -1.4798    
  15  Prefactor     27.525        150.24        .76408E-04   -1.4658    
  16  Prefactor     29.673        16.138        .73549E-04   -1.4618    
  17  norm          .10000E-03    1.3183        .18739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0687        1.3824        .19169E-02   -1.5501    
  20  Prefactor     16.404        9.2445        .98887E-04   -1.4898    
  21  Prefactor     .10000E-03    5.9791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    71.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.9704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91476        .19751        .38198E-03   -.95943    
  25  Prefactor     1.0290        .90672E-01    .17329E-03   -.91768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81606e-10
Minuit parameter uncertainties:
  1  2.95156e-05
  2  1.00763e-05
  3  17.1458
  4  0.000175206
  5  2.80758
  6  7.36668
  7  7.90929e-07
  8  6.70027
  9  7.86247
  10  1.34147e-06
  11  1.68983e-06
  12  10.8465
  13  4.30809
  14  11.6259
  15  129.118
  16  16.1403
  17  2.27889e-06
  18  5.11023e-07
  19  1.38244
  20  9.2453
  21  2.60436e-06
  22  0.000141123
  23  3.94269e-06
  24  0.197671
  25  0.0906856
Done.

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

Extracting fit parameters...

4FGL J0628.8-6250
   Spectrum: PowerLaw
357    Prefactor:  2.069e+01  1.163e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.204e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  1.359e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.029e+00  9.069e-02  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  9.148e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.44
Ra Dec: 97.217 -62.840
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.35e-05

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) = 11833.784252
delta logL = 0.00194384050701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11833.7829596
delta logL = 0.00323629183731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.404       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1678       1.0000          .0000       10.000    
     3 'Normalizat'    .91675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0285       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11833.78     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      247 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.404        15.457        .86575E-04    .36222E-03
   2  Index         2.1679        .47225        .76405E-02    .15341E-03
   3  Normalizat    .91675        .18908        .38162E-03   -.98250E-04
   4  Prefactor     1.0285        .90132E-01    .17333E-03   -.26186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4039
  Index      = 2.16785
  Normalizat = 0.916748
  Prefactor  = 1.02852
 **********
 **   18 **HESSE 
 **********

 FCN=   11833.78     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.404        14.770        .17315E-04   -1.4782    
   2  Index         2.1679        .45101        .30562E-03   -.60217    
   3  Normalizat    .91675        .18899        .15265E-04   -.95874    
   4  Prefactor     1.0285        .90134E-01    .34666E-04   -.91785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71519e-10
Minuit parameter uncertainties:
  1  14.7728
  2  0.451915
  3  0.189131
  4  0.0901474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365609': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11833.7829596
delta logL = 0.00323630741877

Extracting fit parameters...

4FGL J0628.8-6250
   Spectrum: PowerLaw
357    Prefactor:  2.140e+01  1.477e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.168e+00  4.519e-01  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  1.359e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.029e+00  9.015e-02  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  9.167e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.45
Ra Dec: 97.217 -62.840
Photon Index (Free Index): 2.17 +/- 0.45
Photon Flux (Free Index): 5.24e-08 +/- 3.57e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.86e-05

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 /scratch/kocevski/365609/cmap_HighResolution_676080001_676339201_4FGL_J0628.8-6250_daily_bin1685.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/365609

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='2.50e-05', photon_flux_error='3.04e-08', dlogl='3.24e-03', energy_flux='2.41e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2022-06-08 02:52:39.999676', photon_index_error2='0.45', photon_index2='2.17', ts='6.44', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='0.91', time_epoch_completed='1654681960.0', return_code='0', job_id='365609', GAL2='1.03', EG2='0.92', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='3.57e-08', ts2='6.45', photon_index='2.20' WHERE bin_id='1685' AND source_name='4FGL J0628.8-6250' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun  8 02:52:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0087>
Subject: Job 365609: <4FGL_J0628.8-6250_daily_bin1685> in cluster <slac> Done

Job <4FGL_J0628.8-6250_daily_bin1685> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Jun  8 00:05:21 2022
Job was executed on host(s) <bullet0087>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun  8 00:39:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun  8 00:39:14 2022
Terminated at Wed Jun  8 02:52:40 2022
Results reported at Wed Jun  8 02:52:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0628.8-6250_daily_bin1685 97.2174 -62.8405 676080001 676339201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0628.8-6250 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   7903.40 sec.
    Max Memory :                                 665 MB
    Average Memory :                             606.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2940 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   8006 sec.
    Turnaround time :                            10039 sec.

The output (if any) is above this job summary.

