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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin662
RA = 353.869, Dec = -1.476
tmin = 410918401, tmax = 411177601
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='31639', job_status='RUN', time_executed='2021-09-30 00:18:18.363973', time_epoch_executed='1632986298.36' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31639/ft1_4FGL_J2335.4-0128_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31639/ft1_4FGL_J2335.4-0128_daily_bin662.fits outfile=/scratch/kocevski/31639/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin662.fits ra=353.869 dec=-1.476 rad=12.0 tmin=410918401.0 tmax=411177601.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 6.91
user 6.65
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.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/31639/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/31639/ltcube_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.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/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits
.....................!
real 11.94
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/31639/ltcube_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.fits outfile=/scratch/kocevski/31639/expmap_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.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/31639/ltcube_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.fits
.....................!
real 190.34
user 185.31
sys 4.72

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

Setting source of interest to:
4FGL J2335.4-0128 @ 353.869 -1.476

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits scfile=/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits outfile=/scratch/kocevski/31639/cmap_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.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=353.869 yref=-1.476 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits scfile=/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits outfile=/scratch/kocevski/31639/cmap_HighResolution_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.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=353.869 yref=-1.476 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31639/Model_4FGL_J2335.4-0128_daily_bin662.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...
/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits.....................!
real 41.17
user 39.74
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits', '/scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits', expMap='/scratch/kocevski/31639/expmap_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.fits', expCube='/scratch/kocevski/31639/ltcube_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/31639/Model_4FGL_J2335.4-0128_daily_bin662.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2335.4-0128'

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.347e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/31639/ft1_filtered_4FGL_J2335.4-0128_daily_bin662.fits
Spacecraft file(s): /scratch/kocevski/31639/ft2_4FGL_J2335.4-0128_daily_bin662.fits
Exposure map: /scratch/kocevski/31639/expmap_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.fits
Exposure cube: /scratch/kocevski/31639/ltcube_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/31639/Model_4FGL_J2335.4-0128_daily_bin662.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) = 3618.55067168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.986       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.351       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5985       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.795       1.0000         .10000E-03   10000.    
     7 'norm      '    .55744E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .73566       1.0000         .10000E-03   10000.    
    14 'norm      '    10.056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.523       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.627       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
    26 'Prefactor '    13.404       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77002       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97051       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3618.545     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3680 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.981        14.801        .45010E-06   -.88397E-04
   2  Prefactor     .10000E-03    22.989       -.29021E-05** at limit **
   3  Prefactor     20.350        20.408       -.93936E-06    .10279E-03
   4  Prefactor     .10000E-03    5.8955       -.29457E-06** at limit **
   5  norm          1.5992        2.7875       -.12896E-06   -.22858E-03
   6  Prefactor     11.860        20.646        .70171E-05   -.73063E-04
   7  norm          .10025E-03    3.0673       -.11611E-05** at limit **
   8  norm          .10000E-03    9.0642        .66478E-06** at limit **
   9  Prefactor     62.239        69.678       -.77209E-05    .17699E-03
  10  Prefactor     .10000E-03    8.6909       -.15874E-05** at limit **
  11  Prefactor     .10000E-03    28.459        .44832E-05** at limit **
  12  Prefactor     .10000E-03    10.174        .26569E-06** at limit **
  13  norm          .73522        1.3710       -.16651E-06   -.64884E-03
  14  norm          10.055        8.2346        .32646E-07   -.51440E-04
  15  Prefactor     .10000E-03    4.9768        .29289E-07** at limit **
  16  Prefactor     21.517        72.352       -.67130E-05    .45714E-04
  17  norm          .10000E-03    3.3143        .80996E-08** at limit **
  18  Prefactor     .10000E-03    227.87       -.62263E-05** at limit **
  19  Prefactor     23.478        23.702        .18638E-05   -.14847E-03
  20  Prefactor     .10000E-03    11.355       -.67152E-06** at limit **
  21  norm          .10001E-03    90.744        .91611E-05** at limit **
  22  Prefactor     .10000E-03    30.221       -.73502E-05** at limit **
  23  Prefactor     12.625        8.5769       -.12045E-05   -.15676E-02
  24  Prefactor     .10000E-03    13.765        .60200E-06** at limit **
  25  Prefactor     23.169        35.240       -.98341E-06    .28569E-04
  26  Prefactor     13.405        13.971        .85499E-07    .17618E-04
  27  Prefactor     .10000E-03    8.3965        .84287E-06** at limit **
  28  Normalizat    .77023        .25388        .14239E-07    .13427E-03
  29  Prefactor     .97042        .18080        .72451E-06    .91971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9809
  Prefactor  = 0.0001
  Prefactor  = 20.3502
  Prefactor  = 0.0001
  norm       = 1.59924
  Prefactor  = 11.8597
  norm       = 0.000100254
  norm       = 0.0001
  Prefactor  = 62.239
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.73522
  norm       = 10.0549
  Prefactor  = 0.0001
  Prefactor  = 21.5175
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 23.4779
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.000100004
  Prefactor  = 12.6247
  Prefactor  = 0.0001
  Prefactor  = 23.169
  Prefactor  = 13.405
  Prefactor  = 0.0001
  Normalizat = 0.770229
  Prefactor  = 0.970418
 **********
 **   18 **HESSE 
 **********

 FCN=   3618.545     FROM HESSE     STATUS=OK           547 CALLS     4227 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.981        14.814        .89592E-04   -1.4814    
   2  Prefactor     .10000E-03    22.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.350        20.296        .88786E-04   -1.4805    
   4  Prefactor     .10000E-03    5.9588        .14236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5992        2.7476        .12269E-03   -1.5455    
   6  Prefactor     11.860        19.754        .11664E-03   -1.5019    
   7  norm          .10025E-03    29.287        .18935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.0806        .17682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.239        69.155        .50858E-04   -1.4128    
  10  Prefactor     .10000E-03    8.6675        .17292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .73522        1.3150        .86626E-04   -1.5536    
  14  norm          10.055        8.2073        .12636E-03   -1.5074    
  15  Prefactor     .10000E-03    4.9856        .13107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.517        72.293        .86336E-04   -1.4780    
  17  norm          .10000E-03    3.3154        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    227.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.478        24.053        .82645E-04   -1.4739    
  20  Prefactor     .10000E-03    11.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    90.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.625        9.1059        .56363E-03   -1.4997    
  24  Prefactor     .10000E-03    13.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.169        35.294        .83213E-04   -1.4745    
  26  Prefactor     13.405        13.972        .10940E-03   -1.4976    
  27  Prefactor     .10000E-03    8.5075        .16987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77023        .29169        .29953E-03   -1.0118    
  29  Prefactor     .97042        .20934        .20615E-03   -.93722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07794e-08
Minuit parameter uncertainties:
  1  14.8169
  2  0.000188545
  3  20.3024
  4  6.89385e-05
  5  2.74782
  6  19.7647
  7  0.00545595
  8  3.32763e-05
  9  69.2448
  10  9.06182e-05
  11  0.000408626
  12  2.09543e-05
  13  1.31509
  14  8.2082
  15  3.58875e-06
  16  72.5899
  17  1.92746e-06
  18  0.00164972
  19  24.0634
  20  4.33569e-05
  21  0.00173297
  22  0.000676071
  23  9.10685
  24  3.07983e-05
  25  35.3261
  26  13.9753
  27  8.58893e-05
  28  0.292279
  29  0.209518
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.733e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.505e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.704e-01  2.095e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.702e-01  2.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31639/likelihoodResults_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.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) = 3618.54547291
delta logL = -5.261385013e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3618.54542041
delta logL = -1.19111064123e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4774       1.0000          .0000       5.0000    
     3 'Normalizat'    .77024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3617.776     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      309 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1057        12.200        .36562E-03    .37114E-03
   2  alpha         4.5262        4.2908        .19000E-01   -.77301E-05
   3  Normalizat    .68601        .27688        .31430E-03   -.78258E-04
   4  Prefactor     1.0024        .20924        .20260E-03   -.91464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10567
  alpha      = 4.52618
  Normalizat = 0.686012
  Prefactor  = 1.00243
 **********
 **   18 **HESSE 
 **********

 FCN=   3617.776     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1057        5.9334        .14625E-04   -1.5998    
   2  alpha         4.5262        1.1867        .76000E-03    .94496    
   3  Normalizat    .68601        .27568        .12572E-04   -1.0445    
   4  Prefactor     1.0024        .20832        .40521E-04   -.92649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92396e-11
Minuit parameter uncertainties:
  1  5.93506
  2  1.38358
  3  0.276241
  4  0.208486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31639': 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) = 3617.77608028
delta logL = 0.769340014777

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.106e+00  5.935e+00  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  4.526e+00  1.384e+00  0.000e+00  5.000e+00 ( 1.000e+00)
453         beta:  3.100e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
454           Eb:  1.202e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.002e+00  2.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.860e-01  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 4.53 +/- 1.38
Photon Flux (Free Index): 1.07e-07 +/- 6.01e-07
Energy Flux (Free Index): 1.76e-05 +/- 9.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/31639/cmap_HighResolution_410918401_411177601_4FGL_J2335.4-0128_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-05', comment='SUCCESS', energy_flux2='1.76e-05', dlogl='7.69e-01', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-30 00:28:08.383500', photon_index_error2='1.38', photon_index2='4.53', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.40e-05', EG='0.77', time_epoch_completed='1632986888.38', return_code='0', job_id='31639', GAL2='1.00', EG2='0.69', return_code2='0', photon_flux_error2='6.01e-07', ts2='1.62', photon_index='2.50' WHERE bin_id='662' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:28:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 31639: <4FGL_J2335.4-0128_daily_bin662> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin662> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:53 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:15:55 2021
Terminated at Thu Sep 30 00:28:09 2021
Results reported at Thu Sep 30 00:28:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin662 353.869 -1.476 410918401 411177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2335.4-0128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   588.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            736 sec.

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

