/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 110 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 = 7386
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin216
RA = 353.869, Dec = -1.476
tmin = 295315201, tmax = 295574401
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='29960', job_status='RUN', time_executed='2021-09-30 00:12:21.393170', time_epoch_executed='1632985941.39' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29960/ft1_4FGL_J2335.4-0128_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29960/ft2_4FGL_J2335.4-0128_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29960/ft1_4FGL_J2335.4-0128_daily_bin216.fits outfile=/scratch/kocevski/29960/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin216.fits ra=353.869 dec=-1.476 rad=12.0 tmin=295315201.0 tmax=295574401.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.33
user 2.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29960/ft2_4FGL_J2335.4-0128_daily_bin216.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/29960/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin216.fits evtable="EVENTS" outfile="/scratch/kocevski/29960/ft1_filtered_4FGL_J2335.4-0128_daily_bin216.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/29960/ft1_filtered_4FGL_J2335.4-0128_daily_bin216.fits" evtable="EVENTS" scfile=/scratch/kocevski/29960/ft2_4FGL_J2335.4-0128_daily_bin216.fits sctable="SC_DATA" outfile=/scratch/kocevski/29960/ltcube_295315201_295574401_4FGL_J2335.4-0128_daily_bin216.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/29960/ft2_4FGL_J2335.4-0128_daily_bin216.fits
.....................!
real 11.84
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29960/ft1_filtered_4FGL_J2335.4-0128_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/29960/ft2_4FGL_J2335.4-0128_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/29960/ltcube_295315201_295574401_4FGL_J2335.4-0128_daily_bin216.fits outfile=/scratch/kocevski/29960/expmap_295315201_295574401_4FGL_J2335.4-0128_daily_bin216.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/29960/ltcube_295315201_295574401_4FGL_J2335.4-0128_daily_bin216.fits
.....................!
real 191.24
user 185.63
sys 5.30

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/29960/ft1_filtered_4FGL_J2335.4-0128_daily_bin216.fits scfile=/scratch/kocevski/29960/ft2_4FGL_J2335.4-0128_daily_bin216.fits outfile=/scratch/kocevski/29960/cmap_295315201_295574401_4FGL_J2335.4-0128_daily_bin216.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.56
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29960/ft1_filtered_4FGL_J2335.4-0128_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/29960/ft2_4FGL_J2335.4-0128_daily_bin216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29960/Model_4FGL_J2335.4-0128_daily_bin216.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/29960/ft1_filtered_4FGL_J2335.4-0128_daily_bin216.fits.....................!
real 63.87
user 62.55
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0951       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6007       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3838       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0141       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6184       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.537       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3980       1.0000         .10000E-03   10000.    
    13 'norm      '    .74267       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.749       1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.535       1.0000         .10000E-03   10000.    
    17 'norm      '    14.293       1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.575       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.920       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9948       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.298       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14757E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.771       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .59923       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94618       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=   6927.146     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3669 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0954        4.1845       -.45875E-06   -.66262E-04
   2  Prefactor     25.980        24.469        .18972E-05    .43108E-04
   3  Prefactor     2.6030        12.392       -.14118E-05   -.49844E-04
   4  Prefactor     1.3818        6.1838        .46162E-06   -.16432E-03
   5  norm          .10000E-03    1.1744        .19579E-07** at limit **
   6  Prefactor     7.0139        10.422        .23539E-06   -.30211E-03
   7  norm          1.6205        4.5512       -.20717E-06   -.23030E-03
   8  norm          .10000E-03    5.7191        .41755E-07** at limit **
   9  Prefactor     .10000E-03    12.232        .14687E-05** at limit **
  10  Prefactor     4.9612        19.075        .33818E-05    .10124E-04
  11  Prefactor     52.541        35.589        .19886E-05    .48687E-04
  12  Prefactor     3.3995        2.7496        .45111E-06   -.20092E-02
  13  norm          .74279        .56536       -.19972E-07   -.20146E-03
  14  norm          2.0198        2.3111       -.12228E-06   -.32633E-04
  15  Prefactor     13.750        10.851       -.65530E-07   -.49640E-04
  16  Prefactor     57.537        48.025        .92713E-06    .46849E-05
  17  norm          14.294        9.0839        .16262E-06   -.24236E-03
  18  Prefactor     68.577        73.374        .13400E-05    .95199E-05
  19  Prefactor     .10000E-03    2.1619        .85220E-08** at limit **
  20  Prefactor     .10000E-03    14.308        .21896E-05** at limit **
  21  norm          .10000E-03    4.2218        .36439E-07** at limit **
  22  Prefactor     30.926        41.462        .61734E-05    .59462E-04
  23  Prefactor     8.9958        3.8372        .47582E-07    .13429E-04
  24  Prefactor     13.292        22.336       -.27822E-05   -.48788E-04
  25  Prefactor     .10000E-03    49.893        .53781E-06** at limit **
  26  Prefactor     .10000E-03    13.197       -.30052E-05** at limit **
  27  Prefactor     13.773        6.7983       -.28393E-06   -.70886E-04
  28  Normalizat    .59904        .16655       -.12205E-05   -.25918E-05
  29  Prefactor     .94625        .11662       -.61507E-07   -.53827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.09536
  Prefactor  = 25.9802
  Prefactor  = 2.60301
  Prefactor  = 1.38182
  norm       = 0.0001
  Prefactor  = 7.01393
  norm       = 1.62048
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9612
  Prefactor  = 52.541
  Prefactor  = 3.39948
  norm       = 0.742795
  norm       = 2.0198
  Prefactor  = 13.7496
  Prefactor  = 57.5365
  norm       = 14.2936
  Prefactor  = 68.5769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.9258
  Prefactor  = 8.99577
  Prefactor  = 13.2922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7731
  Normalizat = 0.599038
  Prefactor  = 0.946253
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.146     FROM HESSE     STATUS=OK           555 CALLS     4224 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0954        4.1743        .19160E-03   -1.5356    
   2  Prefactor     25.980        24.474        .78598E-04   -1.4688    
   3  Prefactor     2.6030        12.318        .25298E-03   -1.5385    
   4  Prefactor     1.3818        5.1284        .26559E-03   -1.5473    
   5  norm          .10000E-03    1.2128        .17478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0139        10.430        .75738E-03   -1.5178    
   7  norm          1.6205        3.9725        .18063E-03   -1.5453    
   8  norm          .10000E-03    5.7556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9612        19.027        .18068E-03   -1.5262    
  11  Prefactor     52.541        36.692        .55334E-04   -1.4257    
  12  Prefactor     3.3995        5.2800        .10974E-02   -1.5339    
  13  norm          .74279        .55877        .52491E-04   -1.5536    
  14  norm          2.0198        2.3116        .13131E-03   -1.5424    
  15  Prefactor     13.750        10.847        .10802E-03   -1.4966    
  16  Prefactor     57.537        47.993        .52889E-04   -1.4189    
  17  norm          14.294        9.1017        .52971E-03   -1.4952    
  18  Prefactor     68.577        73.384        .48471E-04   -1.4050    
  19  Prefactor     .10000E-03    2.1636        .11948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.2235        .16700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.926        41.639        .72057E-04   -1.4595    
  23  Prefactor     8.9958        3.8429        .10050E-03   -1.5108    
  24  Prefactor     13.292        22.384        .10984E-03   -1.4979    
  25  Prefactor     .10000E-03    51.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.773        6.8247        .10794E-03   -1.4966    
  28  Normalizat    .59904        .19084        .30109E-03   -1.0802    
  29  Prefactor     .94625        .13545        .18637E-03   -.94543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62359e-09
Minuit parameter uncertainties:
  1  4.17467
  2  24.483
  3  11.3288
  4  5.13007
  5  1.09942e-05
  6  10.4328
  7  3.97318
  8  6.09973e-07
  9  2.52236e-05
  10  19.05
  11  36.708
  12  5.28077
  13  0.55877
  14  2.31169
  15  10.8489
  16  48.0256
  17  9.1026
  18  73.4813
  19  4.3514e-08
  20  5.36079e-05
  21  4.67887e-07
  22  41.6778
  23  3.84303
  24  22.3979
  25  0.000258807
  26  5.70994e-06
  27  6.82506
  28  0.191051
  29  0.135501
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.679e-07  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.463e-01  1.355e-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:  5.990e-01  1.911e-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: 2.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29960/likelihoodResults_295315201_295574401_4FGL_J2335.4-0128_daily_bin216.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) = 6927.14748696
delta logL = -0.00111532574647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6927.14637151
delta logL = 1.20876393339e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4888       1.0000          .0000       5.0000    
     3 'Normalizat'    .59903       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94626       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=   6927.146     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      246 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    237.48        .16877E-01** at limit **
   2  alpha         1.6066        4.0517        .16461        .62158E-09
   3  Normalizat    .59904        .26213E-01    .30109E-03    .91376E-05
   4  Prefactor     .94625        .20217E-01    .18637E-03    .11590E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6066
  Normalizat = 0.599038
  Prefactor  = 0.946253
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.146     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7891        .19529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6066        3.2478        .65844E-02   -.36544    
   3  Normalizat    .59904        .17171        .12044E-04   -1.0802    
   4  Prefactor     .94625        .13250        .74549E-05   -.94543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42855e-13
Minuit parameter uncertainties:
  1  2.84118e-06
  2  370.281
  3  0.171862
  4  0.132549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29960': 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) = 6927.14636845
delta logL = 3.18079219142e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.841e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.607e+00  3.703e+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:  9.463e-01  1.325e-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:  5.990e-01  1.719e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/29960/cmap_HighResolution_295315201_295574401_4FGL_J2335.4-0128_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-05', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2021-09-30 00:25:34.099776', job_id='29960', GAL2='0.95', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632986734.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='216' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 29960: <4FGL_J2335.4-0128_daily_bin216> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin216> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:20 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:22 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:10:22 2021
Terminated at Thu Sep 30 00:25:34 2021
Results reported at Thu Sep 30 00:25:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin216 353.869 -1.476 295315201 295574401 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             317.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

