/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 58 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin81
RA = 353.869, Dec = -1.476
tmin = 260323201, tmax = 260582401
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='28878', job_status='RUN', time_executed='2021-09-30 00:07:10.748705', time_epoch_executed='1632985630.75' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28878/ft1_4FGL_J2335.4-0128_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28878/ft2_4FGL_J2335.4-0128_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28878/ft1_4FGL_J2335.4-0128_daily_bin81.fits outfile=/scratch/kocevski/28878/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin81.fits ra=353.869 dec=-1.476 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.52
user 1.35
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28878/ft2_4FGL_J2335.4-0128_daily_bin81.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/28878/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/28878/ft1_filtered_4FGL_J2335.4-0128_daily_bin81.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/28878/ft1_filtered_4FGL_J2335.4-0128_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/28878/ft2_4FGL_J2335.4-0128_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/28878/ltcube_260323201_260582401_4FGL_J2335.4-0128_daily_bin81.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/28878/ft2_4FGL_J2335.4-0128_daily_bin81.fits
.....................!
real 12.65
user 12.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28878/ft1_filtered_4FGL_J2335.4-0128_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/28878/ft2_4FGL_J2335.4-0128_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/28878/ltcube_260323201_260582401_4FGL_J2335.4-0128_daily_bin81.fits outfile=/scratch/kocevski/28878/expmap_260323201_260582401_4FGL_J2335.4-0128_daily_bin81.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/28878/ltcube_260323201_260582401_4FGL_J2335.4-0128_daily_bin81.fits
.....................!
real 190.08
user 185.31
sys 4.46

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/28878/ft1_filtered_4FGL_J2335.4-0128_daily_bin81.fits scfile=/scratch/kocevski/28878/ft2_4FGL_J2335.4-0128_daily_bin81.fits outfile=/scratch/kocevski/28878/cmap_260323201_260582401_4FGL_J2335.4-0128_daily_bin81.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.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28878/ft1_filtered_4FGL_J2335.4-0128_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/28878/ft2_4FGL_J2335.4-0128_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28878/Model_4FGL_J2335.4-0128_daily_bin81.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/28878/ft1_filtered_4FGL_J2335.4-0128_daily_bin81.fits.....................!
real 68.25
user 67.00
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0532       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.776       1.0000         .10000E-03   10000.    
    17 'norm      '    29.040       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.765       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.050       1.0000         .10000E-03   10000.    
    21 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13030E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.388       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.9460       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0288       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0786       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=   7185.604     FROM MIGRAD    STATUS=CONVERGED    724 CALLS     3673 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9650       -.41721E-07** at limit **
   2  Prefactor     .10000E-03    29.579        .31114E-05** at limit **
   3  Prefactor     1.2956        40.102       -.16315E-06   -.20444E-04
   4  Prefactor     .10000E-03    6.2925        .99218E-07** at limit **
   5  norm          2.8234        3.2374        .41376E-07   -.64304E-04
   6  Prefactor     .10000E-03    7.2580        .24152E-06** at limit **
   7  norm          .10000E-03    2.1066        .21164E-08** at limit **
   8  norm          1.0549        2.0247        .52039E-06   -.15288E-02
   9  Prefactor     .10000E-03    31.912       -.55840E-05** at limit **
  10  Prefactor     .10000E-03    4.0891        .77342E-07** at limit **
  11  Prefactor     .10000E-03    34.913       -.12937E-04** at limit **
  12  Prefactor     .10000E-03    3.5269        .13181E-07** at limit **
  13  norm          .10000E-03    .31614        .24915E-07** at limit **
  14  norm          .10000E-03    2.5225        .23029E-07** at limit **
  15  Prefactor     .10000E-03    10.426       -.40383E-05** at limit **
  16  Prefactor     39.779        36.577        .15410E-05    .68042E-05
  17  norm          29.045        12.507       -.50156E-07    .12503E-03
  18  Prefactor     .10000E-03    72.576        .41690E-04** at limit **
  19  Prefactor     11.765        16.222       -.12376E-06    .13922E-03
  20  Prefactor     21.056        25.427        .65473E-06    .57286E-05
  21  norm          .10000E-03    14.626       -.13037E-04** at limit **
  22  Prefactor     .10000E-03    114.57       -.43140E-04** at limit **
  23  Prefactor     16.386        6.6761       -.40807E-06    .29899E-03
  24  Prefactor     .10000E-03    12.206        .11437E-04** at limit **
  25  Prefactor     .10000E-03    21.058        .10103E-04** at limit **
  26  Prefactor     .10000E-03    19.412        .12970E-05** at limit **
  27  Prefactor     1.9462        5.5423        .31996E-05   -.17623E-04
  28  Normalizat    1.0288        .19223       -.32523E-06    .88201E-04
  29  Prefactor     1.0785        .13773       -.92065E-07    .85802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29558
  Prefactor  = 0.0001
  norm       = 2.82341
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.05486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.7794
  norm       = 29.0449
  Prefactor  = 0.0001
  Prefactor  = 11.7647
  Prefactor  = 21.056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.94618
  Normalizat = 1.02884
  Prefactor  = 1.07852
 **********
 **   18 **HESSE 
 **********

 FCN=   7185.604     FROM HESSE     STATUS=OK           541 CALLS     4214 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9791        .16483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2956        38.404        .38736E-03   -1.5480    
   4  Prefactor     .10000E-03    6.4508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8234        3.1378        .14084E-03   -1.5372    
   6  Prefactor     .10000E-03    7.2733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1438        .12005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0549        15.007        .24048E-02   -1.5503    
   9  Prefactor     .10000E-03    32.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0912        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.5396        .15544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .32539        .92891E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.5405        .13145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.779        36.571        .63555E-04   -1.4446    
  17  norm          29.045        12.490        .74347E-04   -1.4630    
  18  Prefactor     .10000E-03    72.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.765        16.177        .11679E-03   -1.5022    
  20  Prefactor     21.056        25.420        .87301E-04   -1.4790    
  21  norm          .10000E-03    14.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    115.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.386        6.6712        .98937E-04   -1.4898    
  24  Prefactor     .10000E-03    12.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.9462        5.5368        .29754E-03   -1.5429    
  28  Normalizat    1.0288        .22243        .29349E-03   -.92070    
  29  Prefactor     1.0785        .16003        .21500E-03   -.90156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35494e-08
Minuit parameter uncertainties:
  1  6.1632e-06
  2  3.72833e-06
  3  14.1169
  4  2.837e-06
  5  3.13801
  6  3.14646e-06
  7  9.64314e-07
  8  7.95943
  9  2.00818e-05
  10  5.24345e-07
  11  7.33723e-06
  12  5.97355e-06
  13  1.15313e-06
  14  4.44057e-06
  15  2.12293e-05
  16  36.5917
  17  12.4913
  18  0.000201782
  19  16.1835
  20  25.4326
  21  1.16365e-05
  22  0.000250241
  23  6.67149
  24  1.61076e-05
  25  2.13783e-05
  26  1.43071e-05
  27  5.53822
  28  0.222634
  29  0.160104
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.029e+00  2.226e-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: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28878/likelihoodResults_260323201_260582401_4FGL_J2335.4-0128_daily_bin81.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) = 7185.60455583
delta logL = -0.000325841487211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7185.60423004
delta logL = -5.27734300704e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5197       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0288       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0785       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.

 FCN=   7185.604     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.197        .90712E-02** at limit **
   2  alpha         2.5349        3.5912        .41153       -.53031E-05
   3  Normalizat    1.0288        .18180        .66346E-01    .26296E-04
   4  Prefactor     1.0785        .13672        .38465E-01    .17105E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.53486
  Normalizat = 1.02884
  Prefactor  = 1.07852
 **********
 **   18 **HESSE 
 **********

 FCN=   7185.604     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5349        3.5621        .50000        .13943E-01
   3  Normalizat    1.0288        .20917        .29349E-03   -.92070    
   4  Prefactor     1.0785        .15750        .21500E-03   -.90156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87282e-11
Minuit parameter uncertainties:
  1  3.27211e-05
  2  2.50827
  3  0.209334
  4  0.157571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28878': 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) = 7185.60422993
delta logL = 6.222853699e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.272e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.535e+00  2.508e+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.079e+00  1.576e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  1.029e+00  2.093e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/28878/cmap_HighResolution_260323201_260582401_4FGL_J2335.4-0128_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-30 00:20:32.804125', job_id='28878', GAL2='1.08', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632986432.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='81' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:20:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 28878: <4FGL_J2335.4-0128_daily_bin81> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin81 353.869 -1.476 260323201 260582401 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 :                                   801.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

