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


Performing analysis on: 4FGL_J0635.6-7518_daily_bin1673
RA = 98.9022, Dec = -75.3046
tmin = 672969601, tmax = 673228801
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='351795', job_status='RUN', time_executed='2022-05-03 00:20:28.454872', time_epoch_executed='1651562428.45' WHERE source_name='4FGL J0635.6-7518' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351795/ft1_4FGL_J0635.6-7518_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351795/ft1_4FGL_J0635.6-7518_daily_bin1673.fits outfile=/scratch/kocevski/351795/ft1_filteredMKT_4FGL_J0635.6-7518_daily_bin1673.fits ra=98.9022 dec=-75.3046 rad=12.0 tmin=672969601.0 tmax=673228801.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.02
user 2.77
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.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/351795/ft1_filteredMKT_4FGL_J0635.6-7518_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.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.62
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 1393

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351795/ltcube_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.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/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits
.....................!
real 16.11
user 15.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351795/ltcube_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.fits outfile=/scratch/kocevski/351795/expmap_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.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/351795/ltcube_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.fits
.....................!
real 192.99
user 187.07
sys 4.92

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-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.
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-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-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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 173 point sources and 5 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 J0635.6-7518 @ 98.9022 -75.3046

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits scfile=/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits outfile=/scratch/kocevski/351795/cmap_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.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=98.9022 yref=-75.3046 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits scfile=/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits outfile=/scratch/kocevski/351795/cmap_HighResolution_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.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=98.9022 yref=-75.3046 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/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351795/Model_4FGL_J0635.6-7518_daily_bin1673.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
adding source SMC-Galaxy
Working on...
/scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits.....................!
real 12276.56
user 12231.35
sys 16.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits', '/scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits', expMap='/scratch/kocevski/351795/expmap_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.fits', expCube='/scratch/kocevski/351795/ltcube_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351795/Model_4FGL_J0635.6-7518_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0635.6-7518'

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  6.577e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.701e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  5.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351795/ft1_filtered_4FGL_J0635.6-7518_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351795/ft2_4FGL_J0635.6-7518_daily_bin1673.fits
Exposure map: /scratch/kocevski/351795/expmap_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351795/ltcube_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351795/Model_4FGL_J0635.6-7518_daily_bin1673.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) = 14428.7802014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.940       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .98823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.8201       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.029       1.0000         .10000E-03   10000.    
    10 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8052       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2183       1.0000         .10000E-03   10000.    
    13 'Prefactor '    151.41       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.080       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0185       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0141       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14428.78     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1943 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6289       -.93812E-07** at limit **
   2  Prefactor     35.939        34.219        .41341E-06    .24827E-04
   3  Prefactor     .97420        7.8585        .33400E-05    .11911E-03
   4  Prefactor     .10000E-03    10.919       -.28139E-06** at limit **
   5  Prefactor     .10000E-03    27.351       -.28947E-05** at limit **
   6  norm          .10000E-03    30.795        .33230E-05** at limit **
   7  Prefactor     .10000E-03    1.3217        .92033E-07** at limit **
   8  norm          4.8203        5.0833       -.23945E-06   -.41577E-04
   9  Prefactor     12.029        8.5279       -.90204E-07    .38098E-03
  10  norm          .10008E-03    2.1904       -.13506E-05** at limit **
  11  norm          2.8054        2.2465       -.32364E-07    .23516E-03
  12  norm          1.2177        2.9235       -.31015E-06    .33654E-03
  13  Prefactor     151.40        69.912        .19810E-05    .14405E-03
  14  Prefactor     .10000E-03    16.879       -.13918E-05** at limit **
  15  norm          .10000E-03    3.4360        .26891E-07** at limit **
  16  Prefactor     .10000E-03    4.5139        .48172E-07** at limit **
  17  Prefactor     19.071        31.110        .27083E-05    .12353E-03
  18  Normalizat    1.0186        .18482       -.91072E-07    .14182E-03
  19  Prefactor     1.0141        .68813E-01    .26814E-07    .42294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.939
  Prefactor  = 0.974204
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.82032
  Prefactor  = 12.029
  norm       = 0.000100082
  norm       = 2.80544
  norm       = 1.21775
  Prefactor  = 151.398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0715
  Normalizat = 1.01858
  Prefactor  = 1.01414
 **********
 **   18 **HESSE 
 **********

 FCN=   14428.78     FROM HESSE     STATUS=OK           274 CALLS     2217 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.939        34.261        .66849E-04   -1.4508    
   3  Prefactor     .97420        8.6058        .42336E-02   -1.5511    
   4  Prefactor     .10000E-03    11.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    31.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.3273        .13482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.8203        5.0687        .18324E-03   -1.5269    
   9  Prefactor     12.029        8.6553        .57751E-03   -1.5014    
  10  norm          .10008E-03    1.2127        .45080E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8054        2.2404        .15588E-03   -1.5373    
  12  norm          1.2177        2.9804        .31348E-03   -1.5487    
  13  Prefactor     151.40        70.556        .32756E-04   -1.3241    
  14  Prefactor     .10000E-03    16.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.5397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.071        31.504        .91692E-04   -1.4834    
  18  Normalizat    1.0186        .21025        .41277E-03   -.92411    
  19  Prefactor     1.0141        .79217E-01    .15896E-03   -.92260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20545e-09
Minuit parameter uncertainties:
  1  5.63295e-06
  2  34.2793
  3  5.79178
  4  2.31133e-05
  5  0.000348795
  6  0.000382059
  7  2.00073e-06
  8  5.06916
  9  8.6562
  10  0.000628849
  11  2.24051
  12  2.98072
  13  70.5951
  14  0.000119612
  15  1.9277e-06
  16  1.96351e-06
  17  31.5319
  18  0.210424
  19  0.0792262
Done.

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

Extracting fit parameters...

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  1.203e+01  8.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.701e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  5.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.014e+00  7.923e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.019e+00  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 98.902 -75.305
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 5.94e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.03e-05

TS (Fixed Index): 2.70
Ra Dec: 98.902 -75.305
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351795/likelihoodResults_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.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) = 14428.7766393
delta logL = 0.00154132222451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14428.7761313
delta logL = 0.00204933240821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.757       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7486       1.0000          .0000       10.000    
     3 'Normalizat'    1.0162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5830E+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=   14428.78     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.755        10.119        .11683E-03    .51922E-03
   2  Index         2.7488        .79585        .11937E-01    .80116E-04
   3  Normalizat    1.0162        .20778        .41320E-03    .20371E-03
   4  Prefactor     1.0147        .78875E-01    .15892E-03    .10630E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7552
  Index      = 2.74882
  Normalizat = 1.01616
  Prefactor  = 1.01473
 **********
 **   18 **HESSE 
 **********

 FCN=   14428.78     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.755        9.5917        .46734E-05   -1.5022    
   2  Index         2.7488        .75381        .47749E-03   -.46703    
   3  Normalizat    1.0162        .20769        .16528E-04   -.92491    
   4  Prefactor     1.0147        .78833E-01    .31784E-04   -.92240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44163e-10
Minuit parameter uncertainties:
  1  9.59295
  2  0.75744
  3  0.207859
  4  0.0788423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351795': 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) = 14428.7761311
delta logL = 0.00204951298292

Extracting fit parameters...

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  1.176e+01  9.593e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.749e+00  7.574e-01  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  5.156e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.015e+00  7.884e-02  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.016e+00  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.70
Ra Dec: 98.902 -75.305
Photon Index (Free Index): 2.75 +/- 0.76
Photon Flux (Free Index): 6.11e-08 +/- 5.02e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.03e-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/351795/cmap_HighResolution_672969601_673228801_4FGL_J0635.6-7518_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.94e-08', energy_flux2='1.42e-05', photon_flux_error='4.27e-08', dlogl='2.05e-03', energy_flux='1.43e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2022-05-03 04:00:25.435730', photon_index_error2='0.76', photon_index2='2.75', ts='2.70', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.03e-05', EG='1.02', time_epoch_completed='1651575625.44', return_code='0', job_id='351795', GAL2='1.01', EG2='1.02', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='5.02e-08', ts2='2.70', photon_index='2.70' WHERE bin_id='1673' AND source_name='4FGL J0635.6-7518' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 04:00:25 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 351797: <4FGL_J0635.6-7518_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0635.6-7518_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:06:06 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:17:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:17:52 2022
Terminated at Tue May  3 03:56:24 2022
Results reported at Tue May  3 03:56:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0635.6-7518_daily_bin1673 98.9022 -75.3046 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0635.6-7518 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   12963.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             601.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13115 sec.
    Turnaround time :                            13818 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 351795: <4FGL_J0635.6-7518_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0635.6-7518_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:06:06 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:17:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:17:50 2022
Terminated at Tue May  3 04:00:26 2022
Results reported at Tue May  3 04:00:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0635.6-7518_daily_bin1673 98.9022 -75.3046 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0635.6-7518 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   13177.00 sec.
    Max Memory :                                 770 MB
    Average Memory :                             594.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13355 sec.
    Turnaround time :                            14060 sec.

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

