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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin731
RA = 353.869, Dec = -1.476
tmin = 428803201, tmax = 429062401
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='32743', job_status='RUN', time_executed='2021-09-30 00:21:12.440776', time_epoch_executed='1632986472.44' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32743/ft1_4FGL_J2335.4-0128_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32743/ft2_4FGL_J2335.4-0128_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32743/ft1_4FGL_J2335.4-0128_daily_bin731.fits outfile=/scratch/kocevski/32743/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin731.fits ra=353.869 dec=-1.476 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.52
user 6.23
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32743/ft2_4FGL_J2335.4-0128_daily_bin731.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/32743/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/32743/ft1_filtered_4FGL_J2335.4-0128_daily_bin731.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.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32743/ft1_filtered_4FGL_J2335.4-0128_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/32743/ft2_4FGL_J2335.4-0128_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/32743/ltcube_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.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/32743/ft2_4FGL_J2335.4-0128_daily_bin731.fits
.....................!
real 12.56
user 12.13
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32743/ft1_filtered_4FGL_J2335.4-0128_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/32743/ft2_4FGL_J2335.4-0128_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/32743/ltcube_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.fits outfile=/scratch/kocevski/32743/expmap_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.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/32743/ltcube_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.fits
.....................!
real 190.78
user 184.78
sys 5.64

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/32743/ft1_filtered_4FGL_J2335.4-0128_daily_bin731.fits scfile=/scratch/kocevski/32743/ft2_4FGL_J2335.4-0128_daily_bin731.fits outfile=/scratch/kocevski/32743/cmap_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32743/ft1_filtered_4FGL_J2335.4-0128_daily_bin731.fits scfile=/scratch/kocevski/32743/ft2_4FGL_J2335.4-0128_daily_bin731.fits outfile=/scratch/kocevski/32743/cmap_HighResolution_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/32743/ft1_filtered_4FGL_J2335.4-0128_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/32743/ft2_4FGL_J2335.4-0128_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32743/Model_4FGL_J2335.4-0128_daily_bin731.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/32743/ft1_filtered_4FGL_J2335.4-0128_daily_bin731.fits.....................!
real 34.79
user 33.49
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6553       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .38437       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.884       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48627       1.0000         .10000E-03   10000.    
    13 'norm      '    .10890E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4109       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25456E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.256       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    430.23       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.386       1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.486       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.169       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .57573E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0240       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .62750       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=   2938.491     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3793 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.715        14.810       -.10056E-06    .22091E-04
   2  Prefactor     11.369        49.436        .20978E-05   -.10976E-04
   3  Prefactor     .10000E-03    10.625        .27719E-06** at limit **
   4  Prefactor     5.6919        11.963        .10347E-05    .91302E-04
   5  norm          .10000E-03    1.7222        .22437E-06** at limit **
   6  Prefactor     .10000E-03    22.604       -.42584E-06** at limit **
   7  norm          .36084        17.393        .82941E-06   -.22820E-03
   8  norm          .10000E-03    5.6677        .61750E-07** at limit **
   9  Prefactor     9.6785        99.630        .31228E-05   -.18037E-04
  10  Prefactor     .10000E-03    8.6834       -.17872E-06** at limit **
  11  Prefactor     36.217        82.103        .52408E-05    .53649E-04
  12  Prefactor     .42541        65.146       -.46999E-05   -.68023E-04
  13  norm          .10000E-03    .73909        .29038E-06** at limit **
  14  norm          6.4132        6.1568        .76252E-08    .46521E-04
  15  Prefactor     .10004E-03    17.702       -.10386E-05** at limit **
  16  Prefactor     81.260        83.866       -.37263E-06   -.10211E-04
  17  norm          .10000E-03    7.3118        .13928E-06** at limit **
  18  Prefactor     430.23        316.99       -.21662E-05   -.15272E-04
  19  Prefactor     .10000E-03    7.3222        .12252E-06** at limit **
  20  Prefactor     23.401        36.340       -.62663E-06    .16932E-04
  21  norm          .10000E-03    9.9257        .53932E-07** at limit **
  22  Prefactor     .10000E-03    23.927        .90424E-07** at limit **
  23  Prefactor     .10000E-03    2.2708        .14914E-06** at limit **
  24  Prefactor     35.490        42.327       -.18673E-06    .20889E-05
  25  Prefactor     14.167        24.815        .45639E-07    .19268E-05
  26  Prefactor     .10001E-03    12.747       -.81536E-06** at limit **
  27  Prefactor     .10000E-03    3.4461        .77384E-07** at limit **
  28  Normalizat    1.0234        .26871        .26689E-05   -.39507E-04
  29  Prefactor     .62794        .18880       -.26061E-05    .13787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7147
  Prefactor  = 11.3693
  Prefactor  = 0.0001
  Prefactor  = 5.69187
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.360845
  norm       = 0.0001
  Prefactor  = 9.67854
  Prefactor  = 0.0001
  Prefactor  = 36.217
  Prefactor  = 0.425406
  norm       = 0.0001
  norm       = 6.41321
  Prefactor  = 0.00010004
  Prefactor  = 81.2599
  norm       = 0.0001
  Prefactor  = 430.228
  Prefactor  = 0.0001
  Prefactor  = 23.4006
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4899
  Prefactor  = 14.1674
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Normalizat = 1.02341
  Prefactor  = 0.627944
 **********
 **   18 **HESSE 
 **********

 FCN=   2938.491     FROM HESSE     STATUS=OK           561 CALLS     4354 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.715        14.826        .84051E-04   -1.4754    
   2  Prefactor     11.369        49.528        .11867E-03   -1.5033    
   3  Prefactor     .10000E-03    10.649        .17250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6919        29.777        .16892E-03   -1.5231    
   5  norm          .10000E-03    1.7424        .69186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .36084        155.92        .19008E-02   -1.5588    
   8  norm          .10000E-03    5.6712        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.6785        96.399        .12815E-03   -1.5086    
  10  Prefactor     .10000E-03    8.6857        .15601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.217        94.024        .66901E-04   -1.4504    
  12  Prefactor     .42541        93.413        .29383E-02   -1.5578    
  13  norm          .10000E-03    1.0939        .87016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4132        6.1532        .12532E-03   -1.5201    
  15  Prefactor     .10004E-03    140.64        .38835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     81.260        83.839        .44557E-04   -1.3903    
  17  norm          .10000E-03    7.3235        .14306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     430.23        313.53        .98566E-04   -1.1529    
  19  Prefactor     .10000E-03    7.3375        .14318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.401        35.450        .82831E-04   -1.4740    
  21  norm          .10000E-03    9.9286        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2816        .79661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     35.490        42.333        .67274E-04   -1.4516    
  25  Prefactor     14.167        24.788        .10641E-03   -1.4955    
  26  Prefactor     .10001E-03    143.69        .36157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.4575        .98228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0234        .29305        .23511E-03   -.92250    
  29  Prefactor     .62794        .20474        .21822E-03   -1.0642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18741e-09
Minuit parameter uncertainties:
  1  14.8281
  2  47.5254
  3  1.43335e-05
  4  26.0576
  5  9.00426e-06
  6  4.39118e-05
  7  15.0393
  8  2.38645e-06
  9  61.2184
  10  1.20487e-06
  11  94.4119
  12  12.6262
  13  2.55008e-05
  14  6.15379
  15  0.00477515
  16  83.9611
  17  3.35074e-06
  18  314.787
  19  5.66415e-06
  20  35.4822
  21  5.44034e-07
  22  1.85583e-05
  23  3.47303e-06
  24  42.3688
  25  24.8056
  26  0.0021111
  27  6.08949e-06
  28  0.293515
  29  0.204984
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  6.279e-01  2.050e-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.023e+00  2.935e-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.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32743/likelihoodResults_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2938.49146378
delta logL = -0.00047586177061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2938.4909879
delta logL = 1.35773916554e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4901       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62793       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=   2938.491     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      234 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    579.52        .16829E-01** at limit **
   2  alpha         1.5479        4.0859        .16461        .51799E-09
   3  Normalizat    1.0234        .41178E-01    .23512E-03    .17915E-04
   4  Prefactor     .62794        .30734E-01    .21822E-03    .19380E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.54787
  Normalizat = 1.02341
  Prefactor  = 0.627941
 **********
 **   18 **HESSE 
 **********

 FCN=   2938.491     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.770        .19622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5479        4.2189        .65843E-02   -.39072    
   3  Normalizat    1.0234        .26796        .94048E-05   -.92250    
   4  Prefactor     .62794        .20004        .87289E-05   -1.0642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35964e-11
Minuit parameter uncertainties:
  1  9.88789e-05
  2  562.156
  3  0.268317
  4  0.200263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32743': 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) = 2938.49098652
delta logL = 1.39583244163e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  6.279e-01  2.003e-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.023e+00  2.683e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/32743/cmap_HighResolution_428803201_429062401_4FGL_J2335.4-0128_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-05', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-30 00:30:19.835246', job_id='32743', GAL2='0.63', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632987019.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='1.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='731' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:30:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 32743: <4FGL_J2335.4-0128_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin731 353.869 -1.476 428803201 429062401 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            607 sec.

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

