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

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


Waiting 223 seconds before starting...
Proceeding.

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

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

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

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

number of points = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin240
RA = 353.869, Dec = -1.476
tmin = 301536001, tmax = 301795201
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='29997', job_status='RUN', time_executed='2021-09-30 00:14:16.737972', time_epoch_executed='1632986056.74' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29997

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29997/ft1_4FGL_J2335.4-0128_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29997/ft2_4FGL_J2335.4-0128_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29997/ft1_4FGL_J2335.4-0128_daily_bin240.fits outfile=/scratch/kocevski/29997/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin240.fits ra=353.869 dec=-1.476 rad=12.0 tmin=301536001.0 tmax=301795201.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 4.57
user 4.31
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29997/ft2_4FGL_J2335.4-0128_daily_bin240.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/29997/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin240.fits evtable="EVENTS" outfile="/scratch/kocevski/29997/ft1_filtered_4FGL_J2335.4-0128_daily_bin240.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.53
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29997/ft1_filtered_4FGL_J2335.4-0128_daily_bin240.fits" evtable="EVENTS" scfile=/scratch/kocevski/29997/ft2_4FGL_J2335.4-0128_daily_bin240.fits sctable="SC_DATA" outfile=/scratch/kocevski/29997/ltcube_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.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/29997/ft2_4FGL_J2335.4-0128_daily_bin240.fits
.....................!
real 11.65
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29997/ft1_filtered_4FGL_J2335.4-0128_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/29997/ft2_4FGL_J2335.4-0128_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/29997/ltcube_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.fits outfile=/scratch/kocevski/29997/expmap_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.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/29997/ltcube_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.fits
.....................!
real 190.23
user 185.71
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/29997/ft1_filtered_4FGL_J2335.4-0128_daily_bin240.fits scfile=/scratch/kocevski/29997/ft2_4FGL_J2335.4-0128_daily_bin240.fits outfile=/scratch/kocevski/29997/cmap_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29997/ft1_filtered_4FGL_J2335.4-0128_daily_bin240.fits scfile=/scratch/kocevski/29997/ft2_4FGL_J2335.4-0128_daily_bin240.fits outfile=/scratch/kocevski/29997/cmap_HighResolution_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.202       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .80752E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .52540       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3920       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.731       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2444       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    106.27       1.0000         .10000E-03   10000.    
    17 'norm      '    22.457       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.3081       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.2398       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.846       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5925       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.415       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .34328       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1947       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=   4818.636     FROM MIGRAD    STATUS=CONVERGED   1298 CALLS     4270 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2310        14.194        .80399E-03    .11097E-03
   2  Prefactor     .10000E-03    45.664        .18142E-02** at limit **
   3  Prefactor     12.184        20.932        .11468E-03    .91107E-04
   4  Prefactor     .10067E-03    84.685        .28887E-02** at limit **
   5  norm          .52760        4.5520        .23689E-03    .11648E-03
   6  Prefactor     .10000E-03    28.199        .18142E-02** at limit **
   7  norm          3.3856        4.5112        .15998E-03    .10816E-03
   8  norm          .10000E-03    9.3361        .18142E-02** at limit **
   9  Prefactor     .10000E-03    16.145        .18142E-02** at limit **
  10  Prefactor     19.732        24.743        .90169E-04    .37447E-04
  11  Prefactor     15.574        42.259        .10148E-03    .12323E-04
  12  Prefactor     .10000E-03    3.8705        .13314E-02** at limit **
  13  norm          5.2447        1.5212        .43677E-04    .37586E-03
  14  norm          .10000E-03    2.0537        .97010E-03** at limit **
  15  Prefactor     .10000E-03    10.859        .18142E-02** at limit **
  16  Prefactor     106.30        81.970        .19506E-03   -.35961E-04
  17  norm          22.457        12.918        .84525E-04    .80432E-04
  18  Prefactor     .10001E-03    125.98        .18142E-02** at limit **
  19  Prefactor     .10000E-03    12.037        .18142E-02** at limit **
  20  Prefactor     .10001E-03    209.25        .71374E-02** at limit **
  21  norm          7.3088        21.478        .14837E-03    .51798E-04
  22  Prefactor     .10000E-03    13.966        .18142E-02** at limit **
  23  Prefactor     9.2406        5.1897        .10859E-03    .16091E-03
  24  Prefactor     .10000E-03    33.766        .18142E-02** at limit **
  25  Prefactor     17.844        20.232        .94809E-04    .24822E-04
  26  Prefactor     1.5924        32.128        .33619E-03    .34865E-04
  27  Prefactor     20.411        13.569        .88647E-04    .70536E-04
  28  Normalizat    .34319        .26735        .44188E-03    .84105E-04
  29  Prefactor     1.1947        .18670        .18581E-03    .67424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23104
  Prefactor  = 0.0001
  Prefactor  = 12.1836
  Prefactor  = 0.000100674
  norm       = 0.527604
  Prefactor  = 0.000100001
  norm       = 3.38556
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.732
  Prefactor  = 15.5742
  Prefactor  = 0.0001
  norm       = 5.24469
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.301
  norm       = 22.4574
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 7.30878
  Prefactor  = 0.0001
  Prefactor  = 9.24056
  Prefactor  = 0.0001
  Prefactor  = 17.8439
  Prefactor  = 1.59236
  Prefactor  = 20.4114
  Normalizat = 0.343193
  Prefactor  = 1.19472
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.636     FROM HESSE     STATUS=OK           523 CALLS     4793 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2310        14.184        .32160E-04   -1.5209    
   2  Prefactor     .10000E-03    45.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.184        20.892        .45870E-05   -1.5010    
   4  Prefactor     .10067E-03    85.370        .11555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .52760        4.5296        .94754E-05   -1.5563    
   6  Prefactor     .10000E-03    28.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3856        4.4630        .63991E-05   -1.5340    
   8  norm          .10000E-03    9.3381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.146        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.732        24.747        .36067E-05   -1.4819    
  11  Prefactor     15.574        42.253        .40592E-05   -1.4918    
  12  Prefactor     .10000E-03    3.8706        .26628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2447        1.5212        .17471E-05   -1.5250    
  14  norm          .10000E-03    2.0537        .19402E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     106.30        81.974        .78022E-05   -1.3642    
  17  norm          22.457        12.894        .33810E-05   -1.4760    
  18  Prefactor     .10001E-03    125.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    214.72        .28550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.3088        21.477        .59347E-05   -1.5167    
  22  Prefactor     .10000E-03    13.966        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.2406        5.1894        .43436E-05   -1.5100    
  24  Prefactor     .10000E-03    33.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.844        20.232        .37924E-05   -1.4863    
  26  Prefactor     1.5924        32.107        .13447E-04   -1.5456    
  27  Prefactor     20.411        13.564        .35459E-05   -1.4804    
  28  Normalizat    .34319        .26712        .17675E-04   -1.2035    
  29  Prefactor     1.1947        .18660        .37162E-04   -.86494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21368e-09
Minuit parameter uncertainties:
  1  14.1915
  2  0.000232488
  3  20.9048
  4  0.0151931
  5  3.09184
  6  0.000276282
  7  4.46348
  8  1.43215e-05
  9  9.60448e-06
  10  24.7601
  11  42.3342
  12  3.18816e-06
  13  1.52119
  14  5.69748e-07
  15  7.41412e-06
  16  82.0619
  17  12.8957
  18  0.00237497
  19  9.23282e-06
  20  0.00316469
  21  21.4996
  22  3.66417e-05
  23  5.18966
  24  0.000233867
  25  20.2397
  26  14.3088
  27  13.5655
  28  0.268122
  29  0.186708
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  7.309e+00  2.150e+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.195e+00  1.867e-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:  3.432e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/29997/likelihoodResults_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.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) = 4818.5646241
delta logL = 0.0717759124063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4818.55558422
delta logL = 0.0808157924903

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5547       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1141       1.0000          .0000       5.0000    
     3 'Normalizat'    .33703       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1961       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=   4818.556     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5471        17.212        .17046E-03    .13297E-02
   2  alpha         3.1150        1.5313        .23355E-01    .17870E-03
   3  Normalizat    .33726        .23829        .44547E-03   -.72338E-03
   4  Prefactor     1.1959        .18163        .18566E-03   -.18687E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 5.54715
  alpha      = 3.11498
  Normalizat = 0.337258
  Prefactor  = 1.19587
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.556     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5471        15.042        .68186E-05   -1.5237    
   2  alpha         3.1150        1.3637        .93418E-03    .24854    
   3  Normalizat    .33726        .23818        .17819E-04   -1.2068    
   4  Prefactor     1.1959        .18153        .37133E-04   -.86459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01291e-08
Minuit parameter uncertainties:
  1  15.0527
  2  1.44842
  3  0.2389
  4  0.181625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29997': 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) = 4818.55558335
delta logL = 0.080816657327

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  5.547e+00  1.505e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.115e+00  1.448e+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.196e+00  1.816e-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:  3.373e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/29997/cmap_HighResolution_301536001_301795201_4FGL_J2335.4-0128_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='8.58e-08', time_completed='2021-09-30 00:25:41.405967', job_id='29997', GAL2='1.20', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1632986741.41', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='8.08e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='240' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 29997: <4FGL_J2335.4-0128_daily_bin240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin240 353.869 -1.476 301536001 301795201 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

