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 106 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).
nnumber of points = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0635.6-7518_daily_bin1692
RA = 98.9022, Dec = -75.3046
tmin = 677894401, tmax = 678153601
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='404341', job_status='RUN', time_executed='2022-06-29 04:12:41.050571', time_epoch_executed='1656501161.05' WHERE source_name='4FGL J0635.6-7518' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/404341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/404341/ft1_4FGL_J0635.6-7518_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/404341/ft1_4FGL_J0635.6-7518_daily_bin1692.fits outfile=/scratch/kocevski/404341/ft1_filteredMKT_4FGL_J0635.6-7518_daily_bin1692.fits ra=98.9022 dec=-75.3046 rad=12.0 tmin=677894401.0 tmax=678153601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.51
user 4.24
sys 0.24

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

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

Number of photons that the gtmktime cut: 1063

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/404341/ltcube_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.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/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits
.....................!
real 15.15
user 14.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/404341/ltcube_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.fits outfile=/scratch/kocevski/404341/expmap_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.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/404341/ltcube_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.fits
.....................!
real 195.87
user 189.25
sys 5.73

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/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits scfile=/scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits outfile=/scratch/kocevski/404341/cmap_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.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.64
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits scfile=/scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits outfile=/scratch/kocevski/404341/cmap_HighResolution_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/404341/Model_4FGL_J0635.6-7518_daily_bin1692.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/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits.....................!
real 9531.07
user 9510.32
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits', '/scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits', expMap='/scratch/kocevski/404341/expmap_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.fits', expCube='/scratch/kocevski/404341/ltcube_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/404341/Model_4FGL_J0635.6-7518_daily_bin1692.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/404341/ft1_filtered_4FGL_J0635.6-7518_daily_bin1692.fits
Spacecraft file(s): /scratch/kocevski/404341/ft2_4FGL_J0635.6-7518_daily_bin1692.fits
Exposure map: /scratch/kocevski/404341/expmap_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.fits
Exposure cube: /scratch/kocevski/404341/ltcube_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/404341/Model_4FGL_J0635.6-7518_daily_bin1692.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) = 11186.9050367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15358E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13249E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2163       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2224       1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23550E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.149       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12874E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79961       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0653       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=   11186.78     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     2006 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    21.227        .14911    ** at limit **
   2  Prefactor     .10000E-03    22.759        .18142E-02** at limit **
   3  Prefactor     2.7689        5.9244        .12226E-02    .72641E-04
   4  Prefactor     .10000E-03    8.4746        .18142E-02** at limit **
   5  Prefactor     .10000E-03    169.72        .36285E-03** at limit **
   6  norm          .10000E-03    23.096        .18142E-02** at limit **
   7  Prefactor     .10001E-03    17.586        .37931E-02** at limit **
   8  norm          .10005E-03    2.7596        .60918E-01** at limit **
   9  Prefactor     .10000E-03    2.6917        .16920E-02** at limit **
  10  norm          1.2159        2.3588        .21948E-03   -.65265E-05
  11  norm          6.2226        3.4071        .69150E-03   -.44653E-04
  12  norm          .10000E-03    1.6872        .13301E-02** at limit **
  13  Prefactor     .10000E-03    275.19        .18142E-02** at limit **
  14  Prefactor     .10000E-03    34.206        .18142E-02** at limit **
  15  norm          16.150        12.487        .99667E-04   -.27148E-04
  16  Prefactor     .10002E-03    32.580        .47607E-02** at limit **
  17  Prefactor     .10000E-03    21.053        .18142E-02** at limit **
  18  Normalizat    .79967        .22863        .44413E-03   -.75462E-04
  19  Prefactor     1.0654        .88826E-01    .15209E-03   -.17416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.76894
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.000100053
  Prefactor  = 0.0001
  norm       = 1.21593
  norm       = 6.22265
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.1502
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Normalizat = 0.799674
  Prefactor  = 1.06535
 **********
 **   18 **HESSE 
 **********

 FCN=   11186.78     FROM HESSE     STATUS=OK           270 CALLS     2276 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    21.290        .14876       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7689        5.9213        .48905E-04   -1.5375    
   4  Prefactor     .10000E-03    8.4751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    169.73        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    23.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    17.919        .75862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10005E-03    2.7546        .61028E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6919        .33840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2159        2.3583        .87794E-05   -1.5487    
  11  norm          6.2226        3.4065        .27660E-04   -1.5209    
  12  norm          .10000E-03    1.6878        .26602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    275.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.150        12.486        .39867E-05   -1.4904    
  16  Prefactor     .10002E-03    33.265        .95215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79967        .22867        .17765E-04   -1.0008    
  19  Prefactor     1.0654        .88866E-01    .60837E-05   -.90582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17656e-09
Minuit parameter uncertainties:
  1  0.000792399
  2  1.09771e-05
  3  5.92256
  4  5.16269e-06
  5  0.00100464
  6  2.05571e-05
  7  0.000712037
  8  0.000767289
  9  1.76366e-06
  10  2.35848
  11  3.40661
  12  1.11212e-06
  13  0.000979634
  14  1.53662e-06
  15  12.488
  16  0.00175989
  17  6.97427e-06
  18  0.228946
  19  0.0888779
Done.

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

Extracting fit parameters...

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.764e-06  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.065e+00  8.888e-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:  7.997e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 98.902 -75.305
Photon Flux Upper Limit: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/404341/likelihoodResults_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.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) = 11186.7859555
delta logL = -0.00177138961044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11186.7841844
delta logL = -2.96557118418e-07

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 'Index     '    2.6929       1.0000          .0000       10.000    
     3 'Normalizat'    .79966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0653       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=   11186.78     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      253 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.882        .16966E-01** at limit **
   2  Index         2.3506        8.7420        .50000       -.15665E-05
   3  Normalizat    .79967        .12643E-01    .44413E-03    .17616E-03
   4  Prefactor     1.0654        .49718E-02    .15209E-03    .52258E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.35059
  Normalizat = 0.799675
  Prefactor  = 1.06535
 **********
 **   18 **HESSE 
 **********

 FCN=   11186.78     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      280 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    220.83        .17436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3506        8.6785        .50000       -.55846    
   3  Normalizat    .79967        .50073E-01    .17765E-04   -1.0008    
   4  Prefactor     1.0654        .19692E-01    .30418E-04   -.90582    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43289e-07
Minuit parameter uncertainties:
  1  1.45233e-05
  2  1031.5
  3  0.0500759
  4  0.019692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/404341': 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): 102
logL (Free Index) = 11186.784183
delta logL = 1.13747955766e-06

Extracting fit parameters...

4FGL J0635.6-7518
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.452e-05  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.351e+00  1.032e+03  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.065e+00  1.969e-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:  7.997e-01  5.008e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 98.902 -75.305

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/404341/cmap_HighResolution_677894401_678153601_4FGL_J0635.6-7518_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2022-06-29 07:07:18.610085', job_id='404341', GAL2='1.07', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1656511638.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1692' AND source_name='4FGL J0635.6-7518' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 07:07:18 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 404342: <4FGL_J0635.6-7518_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0635.6-7518_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:48 2022
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:10:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:10:45 2022
Terminated at Wed Jun 29 06:57:38 2022
Results reported at Wed Jun 29 06:57:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0635.6-7518_daily_bin1692 98.9022 -75.3046 677894401 678153601 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 :                                   9795.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             591.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10013 sec.
    Turnaround time :                            24710 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 404341: <4FGL_J0635.6-7518_daily_bin1692> in cluster <slac> Done

Job <4FGL_J0635.6-7518_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:05:48 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:10:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:10:45 2022
Terminated at Wed Jun 29 07:07:19 2022
Results reported at Wed Jun 29 07:07:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0635.6-7518_daily_bin1692 98.9022 -75.3046 677894401 678153601 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 :                                   10327.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             585.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10594 sec.
    Turnaround time :                            25291 sec.

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

