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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin581
RA = 353.869, Dec = -1.476
tmin = 389923201, tmax = 390182401
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='31509', job_status='RUN', time_executed='2021-09-30 00:19:49.616837', time_epoch_executed='1632986389.62' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='581'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31509

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31509/ft1_4FGL_J2335.4-0128_daily_bin581.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31509/ft2_4FGL_J2335.4-0128_daily_bin581.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31509/ft1_4FGL_J2335.4-0128_daily_bin581.fits outfile=/scratch/kocevski/31509/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin581.fits ra=353.869 dec=-1.476 rad=12.0 tmin=389923201.0 tmax=390182401.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.48
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/31509/ft2_4FGL_J2335.4-0128_daily_bin581.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/31509/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin581.fits evtable="EVENTS" outfile="/scratch/kocevski/31509/ft1_filtered_4FGL_J2335.4-0128_daily_bin581.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31509/ft1_filtered_4FGL_J2335.4-0128_daily_bin581.fits" evtable="EVENTS" scfile=/scratch/kocevski/31509/ft2_4FGL_J2335.4-0128_daily_bin581.fits sctable="SC_DATA" outfile=/scratch/kocevski/31509/ltcube_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.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/31509/ft2_4FGL_J2335.4-0128_daily_bin581.fits
.....................!
real 11.81
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31509/ft1_filtered_4FGL_J2335.4-0128_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/31509/ft2_4FGL_J2335.4-0128_daily_bin581.fits sctable="SC_DATA" expcube=/scratch/kocevski/31509/ltcube_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.fits outfile=/scratch/kocevski/31509/expmap_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.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/31509/ltcube_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.fits
.....................!
real 190.36
user 185.13
sys 4.92

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/31509/ft1_filtered_4FGL_J2335.4-0128_daily_bin581.fits scfile=/scratch/kocevski/31509/ft2_4FGL_J2335.4-0128_daily_bin581.fits outfile=/scratch/kocevski/31509/cmap_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31509/ft1_filtered_4FGL_J2335.4-0128_daily_bin581.fits scfile=/scratch/kocevski/31509/ft2_4FGL_J2335.4-0128_daily_bin581.fits outfile=/scratch/kocevski/31509/cmap_HighResolution_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31509/ft1_filtered_4FGL_J2335.4-0128_daily_bin581.fits evtable="EVENTS" scfile=/scratch/kocevski/31509/ft2_4FGL_J2335.4-0128_daily_bin581.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31509/Model_4FGL_J2335.4-0128_daily_bin581.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/31509/ft1_filtered_4FGL_J2335.4-0128_daily_bin581.fits....................!
real 49.82
user 48.50
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2199       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1761       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2896       1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13964       1.0000         .10000E-03   10000.    
    11 'Prefactor '    59.454       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14094E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5628       1.0000         .10000E-03   10000.    
    14 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    40.560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.219       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.110       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .38368E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0937       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76569       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=   5035.046     FROM MIGRAD    STATUS=CONVERGED   1298 CALLS     4295 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.997        .36285E-02** at limit **
   2  Prefactor     26.172        35.543        .78314E-04    .15765E-04
   3  Prefactor     6.2243        17.204        .16096E-03   -.90406E-05
   4  Prefactor     3.1769        8.6071        .11370E-02    .10905E-03
   5  norm          2.0317        2.1937        .10185E-03   -.54695E-05
   6  Prefactor     .10000E-03    7.7700        .18142E-02** at limit **
   7  norm          2.2901        5.2101        .16403E-03    .17812E-04
   8  norm          .10000E-03    5.4851        .16193E-02** at limit **
   9  Prefactor     4.9546        42.914        .18051E-03   -.97621E-05
  10  Prefactor     .24751        17.518        .82739E-01    .16172E-04
  11  Prefactor     59.486        62.355        .52033E-04   -.99063E-04
  12  Prefactor     .10000E-03    7.0710        .18142E-02** at limit **
  13  norm          4.5631        1.3530        .42982E-04   -.46790E-03
  14  norm          .10000E-03    2.3185        .10529E-02** at limit **
  15  Prefactor     .10000E-03    4.5249        .14721E-02** at limit **
  16  Prefactor     .10000E-03    107.49        .18142E-02** at limit **
  17  norm          40.561        13.669        .62940E-04   -.86701E-05
  18  Prefactor     .10000E-03    138.67        .18142E-02** at limit **
  19  Prefactor     .10000E-03    7.0533        .18142E-02** at limit **
  20  Prefactor     28.225        23.356        .75417E-04    .18994E-04
  21  norm          .10000E-03    9.4949        .18142E-02** at limit **
  22  Prefactor     38.121        44.606        .64924E-04   -.22764E-05
  23  Prefactor     .10000E-03    3.2845        .12408E-02** at limit **
  24  Prefactor     19.027        42.147        .91954E-04    .56872E-04
  25  Prefactor     .10020E-03    150.52        .62128E-02** at limit **
  26  Prefactor     .10000E-03    11.747        .18142E-02** at limit **
  27  Prefactor     .10000E-03    8.4926        .18142E-02** at limit **
  28  Normalizat    1.0930        .25046        .25956E-03    .40121E-04
  29  Prefactor     .76618        .16864        .22089E-03   -.20235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 26.1722
  Prefactor  = 6.22426
  Prefactor  = 3.17686
  norm       = 2.03171
  Prefactor  = 0.0001
  norm       = 2.29008
  norm       = 0.0001
  Prefactor  = 4.95461
  Prefactor  = 0.247512
  Prefactor  = 59.4863
  Prefactor  = 0.0001
  norm       = 4.56313
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 40.561
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 28.2249
  norm       = 0.0001
  Prefactor  = 38.1213
  Prefactor  = 0.0001
  Prefactor  = 19.0274
  Prefactor  = 0.000100204
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.093
  Prefactor  = 0.76618
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.046     FROM HESSE     STATUS=OK           537 CALLS     4832 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.134        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.172        35.538        .15663E-04   -1.4684    
   3  Prefactor     6.2243        17.201        .64385E-05   -1.5209    
   4  Prefactor     3.1769        8.5699        .45479E-04   -1.5351    
   5  norm          2.0317        2.1934        .40740E-05   -1.5423    
   6  Prefactor     .10000E-03    7.7701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2901        5.1895        .32806E-04   -1.5405    
   8  norm          .10000E-03    5.4858        .32385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9546        42.929        .72203E-05   -1.5263    
  10  Prefactor     .24751        16.735        .85619E-01   -1.5608    
  11  Prefactor     59.486        62.348        .10407E-04   -1.4164    
  12  Prefactor     .10000E-03    7.0712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5631        1.3530        .85963E-05   -1.5281    
  14  norm          .10000E-03    2.3186        .21058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.5252        .29442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    107.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          40.561        13.668        .25176E-05   -1.4433    
  18  Prefactor     .10000E-03    138.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.225        23.355        .30167E-05   -1.4645    
  21  norm          .10000E-03    9.4956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.121        44.605        .12985E-04   -1.4472    
  23  Prefactor     .10000E-03    3.2858        .24816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.027        42.143        .36782E-05   -1.4835    
  25  Prefactor     .10020E-03    153.75        .12426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    11.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.4987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0930        .25061        .10382E-04   -.89977    
  29  Prefactor     .76618        .16875        .44178E-04   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41669e-07
Minuit parameter uncertainties:
  1  2.56315e-05
  2  35.5672
  3  17.2143
  4  8.57317
  5  2.19348
  6  1.94243e-05
  7  5.19049
  8  1.28496e-06
  9  29.1962
  10  4.07081
  11  62.4166
  12  4.47575e-05
  13  1.35296
  14  2.83742e-06
  15  2.02492e-06
  16  0.000696324
  17  13.669
  18  0.00143561
  19  1.47205e-05
  20  23.3626
  21  1.98762e-05
  22  44.6443
  23  3.59848e-06
  24  42.2092
  25  0.0112417
  26  1.17993e-05
  27  5.15127e-05
  28  0.250882
  29  0.168868
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.988e-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:  7.662e-01  1.689e-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.093e+00  2.509e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31509/likelihoodResults_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.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) = 5035.04675706
delta logL = -0.00050081631889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5035.04625624
delta logL = 6.36555341771e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4977       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76618       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=   5035.046     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      240 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    438.22        .18142E-01** at limit **
   2  alpha         1.9413        3.4128        .16461        .20443E-07
   3  Normalizat    1.0930        .35759E-01    .25956E-03    .26849E-04
   4  Prefactor     .76618        .26072E-01    .22089E-03    .32579E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.94134
  Normalizat = 1.093
  Prefactor  = 0.766182
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.046     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.397        .22272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9413        3.6574        .65843E-02   -.22537    
   3  Normalizat    1.0930        .22718        .10383E-04   -.89977    
   4  Prefactor     .76618        .16567        .88355E-05   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73996e-11
Minuit parameter uncertainties:
  1  2.58879e-05
  2  594.672
  3  0.227382
  4  0.16578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31509': 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) = 5035.04625581
delta logL = 4.3520321924e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.589e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.941e+00  5.947e+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:  7.662e-01  1.658e-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.093e+00  2.274e-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/31509/cmap_HighResolution_389923201_390182401_4FGL_J2335.4-0128_daily_bin581.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2021-09-30 00:31:41.909724', job_id='31509', GAL2='0.77', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1632987101.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='581' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:31:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 31509: <4FGL_J2335.4-0128_daily_bin581> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin581> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:41 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:42 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:42 2021
Terminated at Thu Sep 30 00:31:42 2021
Results reported at Thu Sep 30 00:31:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin581 353.869 -1.476 389923201 390182401 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

