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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin556
RA = 353.869, Dec = -1.476
tmin = 383443201, tmax = 383702401
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='31469', job_status='RUN', time_executed='2021-09-30 00:18:41.597744', time_epoch_executed='1632986321.6' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31469

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31469/ft1_4FGL_J2335.4-0128_daily_bin556.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31469/ft2_4FGL_J2335.4-0128_daily_bin556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31469/ft1_4FGL_J2335.4-0128_daily_bin556.fits outfile=/scratch/kocevski/31469/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin556.fits ra=353.869 dec=-1.476 rad=12.0 tmin=383443201.0 tmax=383702401.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.41
user 3.22
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31469/ft1_filtered_4FGL_J2335.4-0128_daily_bin556.fits" evtable="EVENTS" scfile=/scratch/kocevski/31469/ft2_4FGL_J2335.4-0128_daily_bin556.fits sctable="SC_DATA" outfile=/scratch/kocevski/31469/ltcube_383443201_383702401_4FGL_J2335.4-0128_daily_bin556.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/31469/ft2_4FGL_J2335.4-0128_daily_bin556.fits
.....................!
real 11.98
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31469/ft1_filtered_4FGL_J2335.4-0128_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/31469/ft2_4FGL_J2335.4-0128_daily_bin556.fits sctable="SC_DATA" expcube=/scratch/kocevski/31469/ltcube_383443201_383702401_4FGL_J2335.4-0128_daily_bin556.fits outfile=/scratch/kocevski/31469/expmap_383443201_383702401_4FGL_J2335.4-0128_daily_bin556.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/31469/ltcube_383443201_383702401_4FGL_J2335.4-0128_daily_bin556.fits
.....................!
real 190.76
user 186.58
sys 3.85

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/31469/ft1_filtered_4FGL_J2335.4-0128_daily_bin556.fits scfile=/scratch/kocevski/31469/ft2_4FGL_J2335.4-0128_daily_bin556.fits outfile=/scratch/kocevski/31469/cmap_383443201_383702401_4FGL_J2335.4-0128_daily_bin556.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31469/ft1_filtered_4FGL_J2335.4-0128_daily_bin556.fits evtable="EVENTS" scfile=/scratch/kocevski/31469/ft2_4FGL_J2335.4-0128_daily_bin556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31469/Model_4FGL_J2335.4-0128_daily_bin556.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/31469/ft1_filtered_4FGL_J2335.4-0128_daily_bin556.fits.....................!
real 63.60
user 62.33
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10828E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.7643       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8607       1.0000         .10000E-03   10000.    
     8 'norm      '    7.3489       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.324       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.581       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0283       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11331E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.379       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2647       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.658       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5816       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70610       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1925       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=   6875.088     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3699 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.151        8.2033        .29852E-06    .39684E-04
   2  Prefactor     .10000E-03    21.530        .74299E-06** at limit **
   3  Prefactor     .10000E-03    21.618        .13411E-05** at limit **
   4  Prefactor     .10000E-03    3.2389       -.15553E-06** at limit **
   5  norm          .10000E-03    1.3613       -.90097E-07** at limit **
   6  Prefactor     9.7690        15.387       -.39131E-06   -.89665E-06
   7  norm          3.8627        3.0410       -.49010E-07    .56727E-04
   8  norm          7.3498        10.014        .15155E-06   -.46831E-05
   9  Prefactor     25.320        31.282        .19253E-06    .55867E-05
  10  Prefactor     11.582        14.184        .55271E-07    .95038E-06
  11  Prefactor     .10000E-03    16.126       -.25989E-05** at limit **
  12  Prefactor     .10000E-03    1.9174       -.67547E-07** at limit **
  13  norm          1.0281        .83996        .69087E-08   -.96539E-04
  14  norm          .10000E-03    1.5384       -.68373E-07** at limit **
  15  Prefactor     .10000E-03    3.4748        .19803E-06** at limit **
  16  Prefactor     .10000E-03    15.916        .21419E-05** at limit **
  17  norm          1.7276        7.3944       -.34198E-05   -.18506E-03
  18  Prefactor     .10000E-03    209.59       -.40989E-05** at limit **
  19  Prefactor     .10000E-03    4.4229       -.75998E-07** at limit **
  20  Prefactor     .10000E-03    7.2883       -.30535E-07** at limit **
  21  norm          12.378        15.951        .23971E-07    .88214E-05
  22  Prefactor     .10000E-03    25.317       -.18027E-05** at limit **
  23  Prefactor     1.2643        4.1764       -.17030E-06   -.27187E-03
  24  Prefactor     .10000E-03    40.609        .64778E-06** at limit **
  25  Prefactor     17.658        20.750        .98159E-07    .53379E-05
  26  Prefactor     3.5797        11.148        .25007E-05   -.34726E-03
  27  Prefactor     .10000E-03    2.5877        .41168E-07** at limit **
  28  Normalizat    .70625        .17937       -.15306E-06    .59899E-04
  29  Prefactor     1.1924        .13612        .15582E-06    .71055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.76903
  norm       = 3.86271
  norm       = 7.34976
  Prefactor  = 25.3196
  Prefactor  = 11.5824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02808
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.3778
  Prefactor  = 0.0001
  Prefactor  = 1.26425
  Prefactor  = 0.0001
  Prefactor  = 17.658
  Prefactor  = 3.57974
  Prefactor  = 0.0001
  Normalizat = 0.706249
  Prefactor  = 1.1924
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.088     FROM HESSE     STATUS=OK           555 CALLS     4254 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.151        8.2023        .12576E-03   -1.5071    
   2  Prefactor     .10000E-03    21.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1718        .27643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.2910        .18694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7690        15.270        .12824E-03   -1.5083    
   7  norm          3.8627        2.9498        .11712E-03   -1.5315    
   8  norm          7.3498        10.024        .14795E-03   -1.5166    
   9  Prefactor     25.320        31.305        .79602E-04   -1.4701    
  10  Prefactor     11.582        14.192        .11772E-03   -1.5027    
  11  Prefactor     .10000E-03    16.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9224        .11212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0281        .80633        .64934E-03   -1.5505    
  14  norm          .10000E-03    1.5493        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4992        .15115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7276        8.0736        .31957E-03   -1.5445    
  18  Prefactor     .10000E-03    209.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4274        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.2953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.378        15.773        .11385E-03   -1.5004    
  22  Prefactor     .10000E-03    25.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2643        4.1556        .26910E-03   -1.5483    
  24  Prefactor     .10000E-03    40.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.658        20.760        .95311E-04   -1.4867    
  26  Prefactor     3.5797        21.776        .10677E-02   -1.5330    
  27  Prefactor     .10000E-03    2.6030        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .70625        .20567        .30880E-03   -1.0365    
  29  Prefactor     1.1924        .15516        .19106E-03   -.86565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92402e-09
Minuit parameter uncertainties:
  1  8.20324
  2  2.1113e-05
  3  2.28979e-05
  4  4.83546e-05
  5  2.92852e-06
  6  15.2765
  7  2.94987
  8  10.026
  9  31.3249
  10  14.1959
  11  7.3268e-05
  12  6.36524e-07
  13  0.806338
  14  6.70418e-07
  15  1.78176e-05
  16  5.93637e-05
  17  7.47074
  18  0.000385955
  19  7.59683e-07
  20  1.09935e-05
  21  15.7782
  22  6.5024e-05
  23  4.15658
  24  2.43842e-05
  25  20.7684
  26  17.6674
  27  1.18058e-06
  28  0.205899
  29  0.155216
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.238e+01  1.578e+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.192e+00  1.552e-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.062e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 6.34e-06 +/- 8.08e-06

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

Saving results to:
/scratch/kocevski/31469/likelihoodResults_383443201_383702401_4FGL_J2335.4-0128_daily_bin556.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) = 6875.08450804
delta logL = 0.0035940458356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6875.08138044
delta logL = 0.00672163936542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.583       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1337       1.0000          .0000       5.0000    
     3 'Normalizat'    .71205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1905       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=   6875.081     FROM MIGRAD    STATUS=FAILED        98 CALLS      262 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.585        18.293        .10868E-03    .33474E-05
   2  alpha         2.1336        2.0538        .60464E-01   -.16471E-03
   3  Normalizat    .71207        .19464        .30764E-03   -.81669E-05
   4  Prefactor     1.1905        .15208        .19120E-03    .20573E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6875.081     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      332 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.585        18.293        .15107E-03   -1.4971    
   2  alpha         2.1336        2.0538        .42296E-02   -.14709    
   3  Normalizat    .71207        .19464        .32326E-03   -1.0342    
   4  Prefactor     1.1905        .15208        .14412E-03   -.86626    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6875.081     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      370 TOTAL
                     EDM=   .79E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.585        17.795        .43472E-05    .52303E-06
   2  alpha         2.1336        2.0093        .12093E-01   -.28580E-06
   3  Normalizat    .71207        .19406        .12306E-04    .18477E-06
   4  Prefactor     1.1905        .15209        .76479E-05    .29730E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5852
  alpha      = 2.13361
  Normalizat = 0.71207
  Prefactor  = 1.19045
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.081     FROM HESSE     STATUS=OK            25 CALLS      395 TOTAL
                     EDM=   .46E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.585        17.721        .86945E-06   -1.4971    
   2  alpha         2.1336        2.0004        .48371E-03   -.14709    
   3  Normalizat    .71207        .19362        .24611E-05   -1.0342    
   4  Prefactor     1.1905        .15187        .15296E-05   -.86626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62444e-15
Minuit parameter uncertainties:
  1  17.7274
  2  2.33022
  3  0.193807
  4  0.151927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31469': 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) = 6875.08138043
delta logL = 0.00672165098695

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.359e+01  1.773e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.134e+00  2.330e+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.190e+00  1.519e-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.121e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.37
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 2.13 +/- 2.33
Photon Flux (Free Index): 1.02e-08 +/- 2.74e-08
Energy Flux (Free Index): 6.11e-06 +/- 7.63e-06

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/31469/cmap_HighResolution_383443201_383702401_4FGL_J2335.4-0128_daily_bin556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='6.11e-06', photon_flux_error='1.95e-08', dlogl='6.72e-03', energy_flux='6.34e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-30 00:32:11.395943', photon_index_error2='2.33', photon_index2='2.13', ts='1.36', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='6.86e-08', energy_flux_error2='7.63e-06', EG='0.71', time_epoch_completed='1632987131.4', return_code='0', job_id='31469', GAL2='1.19', EG2='0.71', return_code2='0', energy_flux_error='8.08e-06', photon_flux_error2='2.74e-08', ts2='1.37', photon_index='2.50' WHERE bin_id='556' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:32:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 31469: <4FGL_J2335.4-0128_daily_bin556> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin556 353.869 -1.476 383443201 383702401 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 :                                   809.13 sec.
    Max Memory :                                 1198 MB
    Average Memory :                             274.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            994 sec.

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

