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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin867
RA = 353.869, Dec = -1.476
tmin = 464054401, tmax = 464313601
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='32972', job_status='RUN', time_executed='2021-09-30 00:24:27.566216', time_epoch_executed='1632986667.57' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='867'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32972

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32972/ft1_4FGL_J2335.4-0128_daily_bin867.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32972/ft2_4FGL_J2335.4-0128_daily_bin867.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32972/ft1_4FGL_J2335.4-0128_daily_bin867.fits outfile=/scratch/kocevski/32972/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin867.fits ra=353.869 dec=-1.476 rad=12.0 tmin=464054401.0 tmax=464313601.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.44
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32972/ft1_filtered_4FGL_J2335.4-0128_daily_bin867.fits" evtable="EVENTS" scfile=/scratch/kocevski/32972/ft2_4FGL_J2335.4-0128_daily_bin867.fits sctable="SC_DATA" outfile=/scratch/kocevski/32972/ltcube_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.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/32972/ft2_4FGL_J2335.4-0128_daily_bin867.fits
.....................!
real 11.89
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32972/ft1_filtered_4FGL_J2335.4-0128_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/32972/ft2_4FGL_J2335.4-0128_daily_bin867.fits sctable="SC_DATA" expcube=/scratch/kocevski/32972/ltcube_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.fits outfile=/scratch/kocevski/32972/expmap_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.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/32972/ltcube_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.fits
.....................!
real 190.68
user 185.19
sys 5.11

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/32972/ft1_filtered_4FGL_J2335.4-0128_daily_bin867.fits scfile=/scratch/kocevski/32972/ft2_4FGL_J2335.4-0128_daily_bin867.fits outfile=/scratch/kocevski/32972/cmap_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.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/32972/ft1_filtered_4FGL_J2335.4-0128_daily_bin867.fits scfile=/scratch/kocevski/32972/ft2_4FGL_J2335.4-0128_daily_bin867.fits outfile=/scratch/kocevski/32972/cmap_HighResolution_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32972/ft1_filtered_4FGL_J2335.4-0128_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/32972/ft2_4FGL_J2335.4-0128_daily_bin867.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32972/Model_4FGL_J2335.4-0128_daily_bin867.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/32972/ft1_filtered_4FGL_J2335.4-0128_daily_bin867.fits.....................!
real 56.02
user 54.63
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9350       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9630       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .44489E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    96.809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11163E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.661       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2047       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5773       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4623       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    32.149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11481E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.345       1.0000         .10000E-03   10000.    
    21 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6336       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8413       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2367       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.153       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78523       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88586       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=   5349.563     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3707 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.128       -.33277E-06** at limit **
   2  Prefactor     .10000E-03    52.589       -.48469E-06** at limit **
   3  Prefactor     .10000E-03    8.0837       -.27161E-06** at limit **
   4  Prefactor     3.9413        6.9950        .12889E-05    .38172E-03
   5  norm          1.9633        2.5686        .96507E-07    .87635E-04
   6  Prefactor     .10000E-03    8.2404       -.95720E-07** at limit **
   7  norm          .10010E-03    2.7587       -.75102E-06** at limit **
   8  norm          96.813        23.656        .53647E-07   -.54754E-05
   9  Prefactor     .10000E-03    11.545       -.12978E-06** at limit **
  10  Prefactor     .10000E-03    27.124       -.73947E-06** at limit **
  11  Prefactor     29.616        63.152        .51368E-06   -.17335E-04
  12  Prefactor     16.662        14.926       -.37167E-06   -.10085E-03
  13  norm          4.2049        1.4991       -.22209E-07   -.21317E-03
  14  norm          1.5770        7.7748        .34966E-05    .10018E-04
  15  Prefactor     7.4541        18.367        .16583E-06    .62459E-05
  16  Prefactor     .10000E-03    27.040       -.21456E-06** at limit **
  17  norm          32.145        16.246       -.12089E-07    .39359E-05
  18  Prefactor     .10000E-03    83.622        .18165E-06** at limit **
  19  Prefactor     .10000E-03    6.2540       -.12792E-06** at limit **
  20  Prefactor     51.392        33.892       -.11185E-07    .27811E-04
  21  norm          .10000E-03    9.0337       -.10450E-06** at limit **
  22  Prefactor     6.7760        211.47       -.59822E-05    .77810E-05
  23  Prefactor     6.8440        5.2029        .26599E-06   -.14035E-04
  24  Prefactor     .10000E-03    31.568       -.56214E-06** at limit **
  25  Prefactor     7.2157        18.842        .24417E-06    .36618E-05
  26  Prefactor     .10000E-03    19.420       -.76448E-06** at limit **
  27  Prefactor     24.154        12.109        .31181E-06    .38702E-04
  28  Normalizat    .78499        .23240       -.25899E-05    .12719E-03
  29  Prefactor     .88597        .15722        .16581E-05   -.15643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94128
  norm       = 1.9633
  Prefactor  = 0.0001
  norm       = 0.000100096
  norm       = 96.8129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.6157
  Prefactor  = 16.6617
  norm       = 4.20493
  norm       = 1.57704
  Prefactor  = 7.45408
  Prefactor  = 0.0001
  norm       = 32.1452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3924
  norm       = 0.0001
  Prefactor  = 6.77604
  Prefactor  = 6.84402
  Prefactor  = 0.0001
  Prefactor  = 7.21574
  Prefactor  = 0.0001
  Prefactor  = 24.1544
  Normalizat = 0.784989
  Prefactor  = 0.885972
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.563     FROM HESSE     STATUS=OK           563 CALLS     4270 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9413        7.5989        .20336E-03   -1.5311    
   5  norm          1.9633        2.5502        .12744E-03   -1.5428    
   6  Prefactor     .10000E-03    8.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10010E-03    5.3812        .38086E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          96.813        23.653        .40853E-04   -1.3737    
   9  Prefactor     .10000E-03    11.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.616        63.147        .73635E-04   -1.4619    
  12  Prefactor     16.662        14.849        .98123E-04   -1.4891    
  13  norm          4.2049        1.4955        .49857E-04   -1.5298    
  14  norm          1.5770        7.5701        .33828E-03   -1.5457    
  15  Prefactor     7.4541        18.241        .14681E-03   -1.5162    
  16  Prefactor     .10000E-03    27.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          32.145        16.167        .70669E-04   -1.4573    
  18  Prefactor     .10000E-03    83.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2682        .17853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.392        33.857        .55969E-04   -1.4273    
  21  norm          .10000E-03    9.0384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7760        207.15        .15580E-03   -1.5187    
  23  Prefactor     6.8440        5.1947        .13631E-03   -1.5185    
  24  Prefactor     .10000E-03    31.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.2157        18.830        .14911E-03   -1.5171    
  26  Prefactor     .10000E-03    19.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.154        12.132        .81506E-04   -1.4725    
  28  Normalizat    .78499        .25753        .31843E-03   -1.0063    
  29  Prefactor     .88597        .17556        .21884E-03   -.96633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19218e-10
Minuit parameter uncertainties:
  1  1.0114e-05
  2  5.85253e-05
  3  2.03527e-06
  4  7.60072
  5  2.55031
  6  1.40193e-06
  7  0.00143645
  8  23.6552
  9  1.99139e-06
  10  1.71572e-05
  11  63.2903
  12  14.8525
  13  1.49553
  14  6.91159
  15  18.2548
  16  1.79532e-05
  17  16.1691
  18  8.83378e-05
  19  2.7607e-06
  20  33.8694
  21  6.08695e-06
  22  75.2166
  23  5.19502
  24  9.97364e-06
  25  18.8451
  26  2.31383e-07
  27  12.133
  28  0.257931
  29  0.17567
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.087e-06  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.860e-01  1.757e-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.850e-01  2.579e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32972/likelihoodResults_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.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) = 5349.56381107
delta logL = -0.000526139251633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5349.56328593
delta logL = -1.00051147456e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11412E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4858       1.0000          .0000       5.0000    
     3 'Normalizat'    .78517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88585       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5349.563     FROM MIGRAD    STATUS=FAILED        98 CALLS      235 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1423.3        .18142E-01** at limit **
   2  alpha         1.0084        2.9940        .82305E-01    .99038E-07
   3  Normalizat    .78499        .49387E-01    .31844E-03    .92858E-04
   4  Prefactor     .88597        .36176E-01    .21883E-03    .14024E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5349.563     FROM SIMPLEX   STATUS=UNCHANGED    194 CALLS      429 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1423.3        .75552E-03** at limit **
   2  alpha         1.0084        2.9940        .19068E-05    .99038E-07
   3  Normalizat    .78499        .49387E-01    .12335E-07    .92858E-04
   4  Prefactor     .88597        .36176E-01    .98447E-09    .14024E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5349.563     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      457 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    21.582        .32487E-02** at limit **
   2  alpha         1.0038        2.8287        .32922E-02    .56633E-07
   3  Normalizat    .78499        .23308        .12738E-04    .91930E-04
   4  Prefactor     .88597        .17069        .43767E-04    .13866E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  alpha      = 1.00384
  Normalizat = 0.784987
  Prefactor  = 0.885974
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.563     FROM HESSE     STATUS=OK            29 CALLS      486 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.296        .64974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.0038        4.4439        .65844E-01   -.64158    
   3  Normalizat    .78499        .23338        .25475E-05   -1.0063    
   4  Prefactor     .88597        .17086        .87534E-05   -.96633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02674e-10
Minuit parameter uncertainties:
  1  0.000575985
  2  474.37
  3  0.233674
  4  0.170964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32972': 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) = 5349.56328176
delta logL = 3.17188096233e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.760e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.004e+00  4.744e+02  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.860e-01  1.710e-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.850e-01  2.337e-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/32972/cmap_HighResolution_464054401_464313601_4FGL_J2335.4-0128_daily_bin867.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-30 00:36:18.078105', job_id='32972', GAL2='0.89', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632987378.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='867' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:36:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 32972: <4FGL_J2335.4-0128_daily_bin867> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin867> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:34 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:35 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:20:35 2021
Terminated at Thu Sep 30 00:36:18 2021
Results reported at Thu Sep 30 00:36:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin867 353.869 -1.476 464054401 464313601 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 :                                   708.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             245.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

