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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1481
RA = 353.869, Dec = -1.476
tmin = 623203201, tmax = 623462401
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='35448', job_status='RUN', time_executed='2021-09-30 00:33:35.121610', time_epoch_executed='1632987215.12' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35448/ft1_4FGL_J2335.4-0128_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35448/ft1_4FGL_J2335.4-0128_daily_bin1481.fits outfile=/scratch/kocevski/35448/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1481.fits ra=353.869 dec=-1.476 rad=12.0 tmin=623203201.0 tmax=623462401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.90
user 2.68
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/35448/ltcube_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.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/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits
.....................!
real 12.49
user 12.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/35448/ltcube_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.fits outfile=/scratch/kocevski/35448/expmap_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.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/35448/ltcube_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.fits
.....................!
real 190.76
user 186.14
sys 4.22

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/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits scfile=/scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits outfile=/scratch/kocevski/35448/cmap_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits scfile=/scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits outfile=/scratch/kocevski/35448/cmap_HighResolution_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35448/Model_4FGL_J2335.4-0128_daily_bin1481.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/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits......................................!
real 17.46
user 16.20
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits', '/scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits', expMap='/scratch/kocevski/35448/expmap_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.fits', expCube='/scratch/kocevski/35448/ltcube_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/35448/Model_4FGL_J2335.4-0128_daily_bin1481.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/35448/ft1_filtered_4FGL_J2335.4-0128_daily_bin1481.fits
Spacecraft file(s): /scratch/kocevski/35448/ft2_4FGL_J2335.4-0128_daily_bin1481.fits
Exposure map: /scratch/kocevski/35448/expmap_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.fits
Exposure cube: /scratch/kocevski/35448/ltcube_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/35448/Model_4FGL_J2335.4-0128_daily_bin1481.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) = 504.186538005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.753       1.0000         .10000E-03   10000.    
     8 'norm      '    31.989       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25531E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.518       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1816       1.0000         .10000E-03   10000.    
    14 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    220.55       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10497E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14466E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16779E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .11676E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11071E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18525E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .11695       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89606       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=   504.1538     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3617 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.417       -.42979E-06** at limit **
   2  Prefactor     .10000E-03    207.21       -.22844E-06** at limit **
   3  Prefactor     .10000E-03    117.97        .41574E-07** at limit **
   4  Prefactor     .10000E-03    56.460       -.30707E-06** at limit **
   5  norm          .10000E-03    15.574       -.48048E-08** at limit **
   6  Prefactor     .10000E-03    43.041       -.61980E-08** at limit **
   7  norm          14.751        17.118        .19348E-06    .71087E-05
   8  norm          31.993        51.332        .94866E-06    .16609E-05
   9  Prefactor     .10000E-03    171.98        .42402E-06** at limit **
  10  Prefactor     73.512        152.13        .13795E-05    .38407E-05
  11  Prefactor     .10000E-03    301.44        .60211E-07** at limit **
  12  Prefactor     37.542        32.933        .51688E-06    .34192E-05
  13  norm          1.1824        2.4993        .20682E-06    .26772E-04
  14  norm          .10000E-03    9.9586       -.26493E-08** at limit **
  15  Prefactor     220.56        258.39       -.11641E-04   -.11317E-05
  16  Prefactor     .10000E-03    597.30        .18757E-05** at limit **
  17  norm          .10002E-03    2084.9        .83862E-05** at limit **
  18  Prefactor     .10000E-03    649.90       -.65430E-07** at limit **
  19  Prefactor     .10000E-03    37.425       -.71706E-07** at limit **
  20  Prefactor     .10000E-03    507.01        .36175E-06** at limit **
  21  norm          .10000E-03    765.23       -.30699E-05** at limit **
  22  Prefactor     .10000E-03    324.52        .11313E-06** at limit **
  23  Prefactor     .10000E-03    10.477       -.43831E-07** at limit **
  24  Prefactor     .10000E-03    1597.8       -.14621E-05** at limit **
  25  Prefactor     .10000E-03    6335.2       -.12576E-05** at limit **
  26  Prefactor     .10000E-03    45.291       -.27368E-07** at limit **
  27  Prefactor     .10000E-03    34.503       -.26626E-06** at limit **
  28  Normalizat    .11712        2.1101       -.10043E-05   -.57480E-06
  29  Prefactor     .89582        .75612        .15664E-06    .13079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7507
  norm       = 31.9931
  Prefactor  = 0.0001
  Prefactor  = 73.5116
  Prefactor  = 0.0001
  Prefactor  = 37.5415
  norm       = 1.18244
  norm       = 0.0001
  Prefactor  = 220.556
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.117115
  Prefactor  = 0.895816
 **********
 **   18 **HESSE 
 **********

 FCN=   504.1538     FROM HESSE     STATUS=OK           537 CALLS     4154 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.678        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    207.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    117.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.535        .16443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    15.574        .86597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.045        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.751        16.677        .93997E-04   -1.4940    
   8  norm          31.993        50.446        .70845E-04   -1.4576    
   9  Prefactor     .10000E-03    171.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     73.512        152.35        .23433E-03   -1.3991    
  11  Prefactor     .10000E-03    301.80        .21457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.542        31.020        .65433E-04   -1.4482    
  13  norm          1.1824        2.4344        .49905E-03   -1.5490    
  14  norm          .10000E-03    9.9678        .69224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     220.56        258.09        .13618E-03   -1.2727    
  16  Prefactor     .10000E-03    597.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10002E-03    2113.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    649.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.432        .13429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    506.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    771.23        .20657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    324.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.479        .71019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1598.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6335.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    45.291        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    34.586        .12840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .11712        .77089        .61113E-03   -1.3633    
  29  Prefactor     .89582        .46833        .17749E-03   -.96287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89433e-11
Minuit parameter uncertainties:
  1  1.77667e-06
  2  5.60129e-05
  3  4.8765e-05
  4  3.61019e-05
  5  3.29392e-07
  6  9.89351e-06
  7  16.6821
  8  50.5132
  9  5.50599e-05
  10  153.169
  11  0.000206199
  12  31.0335
  13  2.43463
  14  5.80945e-06
  15  259.435
  16  0.00014038
  17  0.0141587
  18  6.7794e-05
  19  7.46817e-06
  20  0.000392633
  21  1.10789e-05
  22  0.000336844
  23  6.11592e-07
  24  0.00339685
  25  0.00687498
  26  8.84018e-06
  27  5.72297e-06
  28  0.585731
  29  0.470456
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.108e-05  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:  8.958e-01  4.705e-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:  1.171e-01  5.857e-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: 6.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35448/likelihoodResults_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.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) = 504.153769683
delta logL = -6.02086646495e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 504.153769683
delta logL = -6.02035447628e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5048       1.0000          .0000       5.0000    
     3 'Normalizat'    .11712       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89582       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   504.0151     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      293 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          100.29        225.87        .18142E-01    .78182E-04
   2  alpha         1.2778        1.4265        .16461       -.26886E-04
   3  Normalizat    .17235        .56540        .61105E-02    .52685E-04
   4  Prefactor     .83047        .46372        .17749E-02    .32340E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 100.289
  alpha      = 1.27778
  Normalizat = 0.172346
  Prefactor  = 0.830465
 **********
 **   18 **HESSE 
 **********

 FCN=   504.0151     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          100.29        224.44        .48545E-03   -1.3702    
   2  alpha         1.2778        1.4278        .15446E-02   -.51081    
   3  Normalizat    .17235        .55830        .24442E-03   -1.3151    
   4  Prefactor     .83047        .45762        .35498E-03   -.98615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.637e-09
Minuit parameter uncertainties:
  1  226.384
  2  1.55666
  3  0.57829
  4  0.459748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35448': 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) = 504.015141596
delta logL = 0.138622066289

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.003e+02  2.264e+02  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.278e+00  1.557e+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:  8.305e-01  4.597e-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:  1.723e-01  5.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.869 -1.476

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/35448/cmap_HighResolution_623203201_623462401_4FGL_J2335.4-0128_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-04', job_status='DONE', photon_flux_upper_limit='6.79e-07', time_completed='2021-09-30 00:39:30.824732', job_id='35448', GAL2='0.83', fit_tolerance='1e-08', EG2='0.17', EG='0.12', time_epoch_completed='1632987570.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.39e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1481' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:39:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 35448: <4FGL_J2335.4-0128_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1481> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 00:30:20 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:30:21 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:30:21 2021
Terminated at Thu Sep 30 00:39:31 2021
Results reported at Thu Sep 30 00:39:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1481 353.869 -1.476 623203201 623462401 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 :                                   349.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            551 sec.

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

