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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin988
RA = 353.869, Dec = -1.476
tmin = 495417601, tmax = 495676801
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='33155', job_status='RUN', time_executed='2021-09-30 00:22:59.844873', time_epoch_executed='1632986579.84' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='988'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33155

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33155/ft1_4FGL_J2335.4-0128_daily_bin988.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33155/ft2_4FGL_J2335.4-0128_daily_bin988.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33155/ft1_4FGL_J2335.4-0128_daily_bin988.fits outfile=/scratch/kocevski/33155/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin988.fits ra=353.869 dec=-1.476 rad=12.0 tmin=495417601.0 tmax=495676801.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.53
user 3.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33155/ft2_4FGL_J2335.4-0128_daily_bin988.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/33155/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin988.fits evtable="EVENTS" outfile="/scratch/kocevski/33155/ft1_filtered_4FGL_J2335.4-0128_daily_bin988.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/33155/ft1_filtered_4FGL_J2335.4-0128_daily_bin988.fits" evtable="EVENTS" scfile=/scratch/kocevski/33155/ft2_4FGL_J2335.4-0128_daily_bin988.fits sctable="SC_DATA" outfile=/scratch/kocevski/33155/ltcube_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.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/33155/ft2_4FGL_J2335.4-0128_daily_bin988.fits
.....................!
real 12.32
user 11.97
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33155/ft1_filtered_4FGL_J2335.4-0128_daily_bin988.fits evtable="EVENTS" scfile=/scratch/kocevski/33155/ft2_4FGL_J2335.4-0128_daily_bin988.fits sctable="SC_DATA" expcube=/scratch/kocevski/33155/ltcube_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.fits outfile=/scratch/kocevski/33155/expmap_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.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/33155/ltcube_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.fits
.....................!
real 190.82
user 185.18
sys 5.01

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/33155/ft1_filtered_4FGL_J2335.4-0128_daily_bin988.fits scfile=/scratch/kocevski/33155/ft2_4FGL_J2335.4-0128_daily_bin988.fits outfile=/scratch/kocevski/33155/cmap_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.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/33155/ft1_filtered_4FGL_J2335.4-0128_daily_bin988.fits scfile=/scratch/kocevski/33155/ft2_4FGL_J2335.4-0128_daily_bin988.fits outfile=/scratch/kocevski/33155/cmap_HighResolution_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33155/ft1_filtered_4FGL_J2335.4-0128_daily_bin988.fits evtable="EVENTS" scfile=/scratch/kocevski/33155/ft2_4FGL_J2335.4-0128_daily_bin988.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33155/Model_4FGL_J2335.4-0128_daily_bin988.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/33155/ft1_filtered_4FGL_J2335.4-0128_daily_bin988.fits.....................!
real 47.10
user 45.65
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20884E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.687       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17741E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.239       1.0000         .10000E-03   10000.    
     5 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.040       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17259E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.727       1.0000         .10000E-03   10000.    
    13 'norm      '    .41717       1.0000         .10000E-03   10000.    
    14 'norm      '    7.5292       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1623       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9407       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0721       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.692       1.0000         .10000E-03   10000.    
    25 'Prefactor '    55.849       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4442       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.0756       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73630       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .95676       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=   4386.972     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3792 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    50.807       -.18072E-04** at limit **
   2  Prefactor     42.576        61.493       -.34870E-06    .31897E-04
   3  Prefactor     .10000E-03    30.536        .11225E-04** at limit **
   4  Prefactor     10.226        8.0972       -.36726E-06   -.29341E-03
   5  norm          .10000E-03    2.4884        .14004E-05** at limit **
   6  Prefactor     .10000E-03    13.502        .46952E-06** at limit **
   7  norm          .10000E-03    4.5577        .15190E-05** at limit **
   8  norm          .10000E-03    21.809        .12973E-05** at limit **
   9  Prefactor     .10000E-03    28.563        .56193E-06** at limit **
  10  Prefactor     38.035        22.712        .31874E-06   -.41831E-04
  11  Prefactor     .10001E-03    83.445        .82963E-06** at limit **
  12  Prefactor     15.744        13.469        .30713E-06    .26810E-03
  13  norm          .41735        .75370       -.25473E-06   -.14170E-02
  14  norm          7.5260        7.4844        .14787E-06    .32383E-03
  15  Prefactor     1.1630        6.5066        .84589E-06    .34868E-03
  16  Prefactor     .10000E-03    53.987        .85694E-06** at limit **
  17  norm          .10000E-03    4.4388        .24560E-06** at limit **
  18  Prefactor     .10000E-03    101.31        .72990E-06** at limit **
  19  Prefactor     1.9417        8.3779        .12261E-05    .37046E-03
  20  Prefactor     .10000E-03    8.6992        .12004E-06** at limit **
  21  norm          .10000E-03    25.734        .14025E-05** at limit **
  22  Prefactor     .10000E-03    91.681        .94838E-06** at limit **
  23  Prefactor     2.0720        2.5611        .10518E-06    .30663E-03
  24  Prefactor     15.698        19.814        .42672E-07   -.26824E-04
  25  Prefactor     55.796        29.521        .52036E-06   -.18904E-03
  26  Prefactor     3.4377        38.132       -.18040E-06   -.85439E-04
  27  Prefactor     6.0639        8.4359       -.69230E-06    .28905E-03
  28  Normalizat    .73606        .22354       -.10433E-05   -.28864E-03
  29  Prefactor     .95684        .15502       -.70561E-06   -.41467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  Prefactor  = 42.5757
  Prefactor  = 0.000100003
  Prefactor  = 10.2255
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 38.035
  Prefactor  = 0.000100007
  Prefactor  = 15.7441
  norm       = 0.41735
  norm       = 7.52598
  Prefactor  = 1.16297
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.94168
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 2.07198
  Prefactor  = 15.6985
  Prefactor  = 55.7961
  Prefactor  = 3.43769
  Prefactor  = 6.06387
  Normalizat = 0.736055
  Prefactor  = 0.95684
 **********
 **   18 **HESSE 
 **********

 FCN=   4386.972     FROM HESSE     STATUS=OK           553 CALLS     4345 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    62.302        .38555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.576        61.615        .30679E-03   -1.4402    
   3  Prefactor     .10000E-03    88.698        .49765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.226        8.0634        .12522E-03   -1.5068    
   5  norm          .10000E-03    4.2503        .18977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.8371        .27898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    22.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.035        22.728        .64983E-04   -1.4474    
  11  Prefactor     .10001E-03    83.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.744        13.525        .10100E-03   -1.4914    
  13  norm          .41735        .64639        .74434E-03   -1.5579    
  14  norm          7.5260        7.4718        .14616E-03   -1.5159    
  15  Prefactor     1.1630        6.5136        .32854E-03   -1.5492    
  16  Prefactor     .10000E-03    54.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.4794        .13633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    101.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9417        8.2677        .29802E-03   -1.5429    
  20  Prefactor     .10000E-03    8.7167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    25.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    92.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0720        2.5433        .11259E-03   -1.5420    
  24  Prefactor     15.698        19.811        .10111E-03   -1.4915    
  25  Prefactor     55.796        29.521        .53677E-04   -1.4213    
  26  Prefactor     3.4377        37.851        .21794E-03   -1.5337    
  27  Prefactor     6.0639        8.3821        .16289E-03   -1.5215    
  28  Normalizat    .73606        .25949        .29207E-03   -1.0249    
  29  Prefactor     .95684        .18274        .19427E-03   -.94182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27557e-09
Minuit parameter uncertainties:
  1  0.00374157
  2  61.7072
  3  0.000981718
  4  8.06431
  5  0.000110744
  6  0.000114289
  7  0.0003035
  8  0.000564524
  9  0.000173202
  10  22.733
  11  0.00147779
  12  13.5274
  13  0.646403
  14  7.47277
  15  5.50526
  16  0.000341624
  17  4.08735e-05
  18  0.000226785
  19  8.01497
  20  2.3905e-05
  21  0.000680921
  22  0.00117072
  23  2.54345
  24  19.8192
  25  29.5286
  26  22.8321
  27  8.38371
  28  0.259924
  29  0.182855
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.809e-04  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:  9.568e-01  1.829e-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.361e-01  2.599e-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: 5.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33155/likelihoodResults_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.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) = 4386.97196969
delta logL = -0.000184006391464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4386.97178829
delta logL = -2.60657543549e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2456       1.0000          .0000       5.0000    
     3 'Normalizat'    .73606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95684       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=   4386.972     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      296 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    586.73        .36285E-02** at limit **
   2  alpha         2.3248        2.7004        .50000        .65052E-07
   3  Normalizat    .73606        .25331E-01    .29206E-03    .15434E-03
   4  Prefactor     .95684        .19137E-01    .19427E-03    .20895E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100024
  alpha      = 2.32481
  Normalizat = 0.736057
  Prefactor  = 0.956841
 **********
 **   18 **HESSE 
 **********

 FCN=   4386.972     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    6165.7        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3248        3.8299        .50000       -.70135E-01
   3  Normalizat    .73606        .57758E-01    .11683E-04   -1.0249    
   4  Prefactor     .95684        .43636E-01    .38854E-04   -.94182    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08416e-08
Minuit parameter uncertainties:
  1  0.0154624
  2  4367.93
  3  0.0577632
  4  0.0436377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33155': 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): 102
logL (Free Index) = 4386.97178563
delta logL = 5.72044882574e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.546e-02  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.325e+00  4.368e+03  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:  9.568e-01  4.364e-02  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.361e-01  5.776e-02  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/33155/cmap_HighResolution_495417601_495676801_4FGL_J2335.4-0128_daily_bin988.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='5.95e-08', time_completed='2021-09-30 00:33:36.347371', job_id='33155', GAL2='0.96', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632987216.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='988' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:33:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 33155: <4FGL_J2335.4-0128_daily_bin988> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin988 353.869 -1.476 495417601 495676801 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 :                                   634.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

