/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 134 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7535
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin900
RA = 353.869, Dec = -1.476
tmin = 472608001, tmax = 472867201
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='33023', job_status='RUN', time_executed='2021-09-30 00:23:03.381802', time_epoch_executed='1632986583.38' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33023/ft1_4FGL_J2335.4-0128_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33023/ft2_4FGL_J2335.4-0128_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33023/ft1_4FGL_J2335.4-0128_daily_bin900.fits outfile=/scratch/kocevski/33023/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin900.fits ra=353.869 dec=-1.476 rad=12.0 tmin=472608001.0 tmax=472867201.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.50
user 3.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33023/ft2_4FGL_J2335.4-0128_daily_bin900.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/33023/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin900.fits evtable="EVENTS" outfile="/scratch/kocevski/33023/ft1_filtered_4FGL_J2335.4-0128_daily_bin900.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/33023/ft1_filtered_4FGL_J2335.4-0128_daily_bin900.fits" evtable="EVENTS" scfile=/scratch/kocevski/33023/ft2_4FGL_J2335.4-0128_daily_bin900.fits sctable="SC_DATA" outfile=/scratch/kocevski/33023/ltcube_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.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/33023/ft2_4FGL_J2335.4-0128_daily_bin900.fits
.....................!
real 11.83
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33023/ft1_filtered_4FGL_J2335.4-0128_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/33023/ft2_4FGL_J2335.4-0128_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/33023/ltcube_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.fits outfile=/scratch/kocevski/33023/expmap_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.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/33023/ltcube_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.fits
.....................!
real 189.71
user 185.26
sys 4.15

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/33023/ft1_filtered_4FGL_J2335.4-0128_daily_bin900.fits scfile=/scratch/kocevski/33023/ft2_4FGL_J2335.4-0128_daily_bin900.fits outfile=/scratch/kocevski/33023/cmap_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33023/ft1_filtered_4FGL_J2335.4-0128_daily_bin900.fits scfile=/scratch/kocevski/33023/ft2_4FGL_J2335.4-0128_daily_bin900.fits outfile=/scratch/kocevski/33023/cmap_HighResolution_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33023/ft1_filtered_4FGL_J2335.4-0128_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/33023/ft2_4FGL_J2335.4-0128_daily_bin900.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33023/Model_4FGL_J2335.4-0128_daily_bin900.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/33023/ft1_filtered_4FGL_J2335.4-0128_daily_bin900.fits.....................!
real 49.71
user 48.46
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3764       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1509       1.0000         .10000E-03   10000.    
     5 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2660       1.0000         .10000E-03   10000.    
     7 'norm      '    .25331E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.881       1.0000         .10000E-03   10000.    
     9 'Prefactor '    83.649       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7753       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3500       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5605       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8269       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6079       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4110       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11816E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6955       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .21505E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1605       1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.169       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.481       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .67786       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0670       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=   4825.588     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3740 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3767        10.626        .47125E-06   -.10046E-03
   2  Prefactor     24.813        52.600        .17499E-05   -.86545E-04
   3  Prefactor     .10000E-03    6.7017       -.10236E-07** at limit **
   4  Prefactor     6.1584        8.9300       -.71908E-06   -.13055E-02
   5  norm          .10000E-03    1.3628        .64417E-07** at limit **
   6  Prefactor     2.2766        46.490       -.55020E-06   -.23231E-03
   7  norm          .10001E-03    4.7445        .33415E-05** at limit **
   8  norm          10.885        15.135        .29114E-06   -.81417E-05
   9  Prefactor     83.663        42.625       -.29535E-06   -.62125E-05
  10  Prefactor     8.7760        27.361        .61429E-06   -.20388E-04
  11  Prefactor     .10000E-03    51.629       -.30063E-05** at limit **
  12  Prefactor     1.3560        40.496        .21602E-05    .13939E-04
  13  norm          3.5606        1.4559        .19404E-07   -.17652E-03
  14  norm          2.8151        12.748       -.66762E-07   -.31544E-04
  15  Prefactor     4.6093        11.765        .45767E-06    .53654E-04
  16  Prefactor     .10000E-03    61.366        .42814E-05** at limit **
  17  norm          3.4107        10.747        .41294E-05    .40267E-04
  18  Prefactor     .10000E-03    94.127       -.29679E-05** at limit **
  19  Prefactor     .10000E-03    9.9627        .33585E-07** at limit **
  20  Prefactor     .10000E-03    7.7683        .12218E-06** at limit **
  21  norm          7.6992        18.577       -.18721E-06   -.72913E-05
  22  Prefactor     .10000E-03    252.23        .15818E-05** at limit **
  23  Prefactor     2.1612        4.8330        .29999E-06   -.29703E-04
  24  Prefactor     68.179        48.019       -.29119E-06   -.48200E-04
  25  Prefactor     .10000E-03    37.865        .47020E-06** at limit **
  26  Prefactor     25.481        19.190        .20293E-06   -.82881E-04
  27  Prefactor     .10000E-03    4.1884       -.12295E-06** at limit **
  28  Normalizat    .67769        .23396       -.19451E-05   -.25292E-03
  29  Prefactor     1.0670        .16318        .14563E-06   -.29789E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.3767
  Prefactor  = 24.8126
  Prefactor  = 0.0001
  Prefactor  = 6.15838
  norm       = 0.0001
  Prefactor  = 2.2766
  norm       = 0.00010001
  norm       = 10.8847
  Prefactor  = 83.6626
  Prefactor  = 8.77598
  Prefactor  = 0.0001
  Prefactor  = 1.356
  norm       = 3.5606
  norm       = 2.81508
  Prefactor  = 4.60934
  Prefactor  = 0.0001
  norm       = 3.4107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.69925
  Prefactor  = 0.000100001
  Prefactor  = 2.16117
  Prefactor  = 68.1792
  Prefactor  = 0.0001
  Prefactor  = 25.4809
  Prefactor  = 0.0001
  Normalizat = 0.677692
  Prefactor  = 1.06702
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.588     FROM HESSE     STATUS=OK           555 CALLS     4295 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3767        10.602        .14767E-03   -1.5165    
   2  Prefactor     24.813        52.413        .80390E-04   -1.4711    
   3  Prefactor     .10000E-03    6.7133        .17560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1584        8.1531        .16187E-03   -1.5212    
   5  norm          .10000E-03    2.4342        .15684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2766        43.094        .27286E-03   -1.5406    
   7  norm          .10001E-03    10.925        .21131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.885        15.130        .12146E-03   -1.5048    
   9  Prefactor     83.663        42.579        .43920E-04   -1.3876    
  10  Prefactor     8.7760        27.332        .13531E-03   -1.5115    
  11  Prefactor     .10000E-03    51.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3560        31.462        .37659E-03   -1.5475    
  13  norm          3.5606        1.4506        .50047E-04   -1.5331    
  14  norm          2.8151        10.449        .24189E-03   -1.5372    
  15  Prefactor     4.6093        11.450        .93753E-03   -1.5279    
  16  Prefactor     .10000E-03    60.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4107        10.916        .10952E-02   -1.5339    
  18  Prefactor     .10000E-03    93.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6992        18.411        .14456E-03   -1.5153    
  22  Prefactor     .10000E-03    253.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1612        4.7644        .19098E-03   -1.5414    
  24  Prefactor     68.179        48.152        .48614E-04   -1.4055    
  25  Prefactor     .10000E-03    38.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     25.481        19.201        .79357E-04   -1.4698    
  27  Prefactor     .10000E-03    4.2121        .13882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .67769        .26308        .32176E-03   -1.0478    
  29  Prefactor     1.0670        .18674        .19741E-03   -.90528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32164e-09
Minuit parameter uncertainties:
  1  10.6052
  2  52.5106
  3  2.73961e-07
  4  8.15454
  5  1.13693e-06
  6  19.8259
  7  0.000660624
  8  15.1348
  9  42.5947
  10  27.3711
  11  8.42719e-05
  12  13.0706
  13  1.4506
  14  10.4561
  15  11.4559
  16  3.63373e-05
  17  10.9223
  18  3.24596e-05
  19  1.1206e-05
  20  4.47324e-06
  21  18.4248
  22  0.000967868
  23  4.76523
  24  48.1799
  25  9.17002e-05
  26  19.2053
  27  1.55908e-05
  28  0.263568
  29  0.186858
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  7.699e+00  1.842e+01  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:  1.067e+00  1.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.777e-01  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33023/likelihoodResults_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4825.54371091
delta logL = 0.0444440563942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4825.53944484
delta logL = 0.0487101332528

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.818       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0129       1.0000          .0000       5.0000    
     3 'Normalizat'    .68106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0653       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=   4825.539     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.815        21.513        .12181E-03    .83062E-05
   2  alpha         2.0124        1.4276        .36577E-01    .53069E-04
   3  Normalizat    .68117        .24115        .32100E-03    .21852E-04
   4  Prefactor     1.0652        .18375        .19754E-03    .27624E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8153
  alpha      = 2.01237
  Normalizat = 0.681166
  Prefactor  = 1.06517
 **********
 **   18 **HESSE 
 **********

 FCN=   4825.539     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.815        21.203        .48725E-05   -1.5050    
   2  alpha         2.0124        1.4105        .73154E-02   -.19631    
   3  Normalizat    .68117        .24129        .12840E-04   -1.0464    
   4  Prefactor     1.0652        .18388        .79018E-05   -.90587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51614e-12
Minuit parameter uncertainties:
  1  21.218
  2  1.50279
  3  0.241666
  4  0.183987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33023': 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) = 4825.53944467
delta logL = 0.0487102993584

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
529   Normalization:  6.812e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/33023/cmap_HighResolution_472608001_472867201_4FGL_J2335.4-0128_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-09-30 00:34:05.973916', job_id='33023', GAL2='1.07', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632987245.97', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.87e-02', ts2='0.40', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='900' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:34:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 33023: <4FGL_J2335.4-0128_daily_bin900> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin900 353.869 -1.476 472608001 472867201 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 :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

