/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 184 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2335.4-0128_daily_bin311
RA = 353.869, Dec = -1.476
tmin = 319939201, tmax = 320198401
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='30108', job_status='RUN', time_executed='2021-09-30 00:13:47.354916', time_epoch_executed='1632986027.35' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30108/ft1_4FGL_J2335.4-0128_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30108/ft2_4FGL_J2335.4-0128_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30108/ft1_4FGL_J2335.4-0128_daily_bin311.fits outfile=/scratch/kocevski/30108/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin311.fits ra=353.869 dec=-1.476 rad=12.0 tmin=319939201.0 tmax=320198401.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.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30108/ft1_filtered_4FGL_J2335.4-0128_daily_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/30108/ft2_4FGL_J2335.4-0128_daily_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/30108/ltcube_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.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/30108/ft2_4FGL_J2335.4-0128_daily_bin311.fits
.....................!
real 11.58
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30108/ft1_filtered_4FGL_J2335.4-0128_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/30108/ft2_4FGL_J2335.4-0128_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/30108/ltcube_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.fits outfile=/scratch/kocevski/30108/expmap_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.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/30108/ltcube_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.fits
.....................!
real 190.68
user 184.76
sys 5.57

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/30108/ft1_filtered_4FGL_J2335.4-0128_daily_bin311.fits scfile=/scratch/kocevski/30108/ft2_4FGL_J2335.4-0128_daily_bin311.fits outfile=/scratch/kocevski/30108/cmap_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30108/ft1_filtered_4FGL_J2335.4-0128_daily_bin311.fits scfile=/scratch/kocevski/30108/ft2_4FGL_J2335.4-0128_daily_bin311.fits outfile=/scratch/kocevski/30108/cmap_HighResolution_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.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/30108/ft1_filtered_4FGL_J2335.4-0128_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/30108/ft2_4FGL_J2335.4-0128_daily_bin311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30108/Model_4FGL_J2335.4-0128_daily_bin311.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/30108/ft1_filtered_4FGL_J2335.4-0128_daily_bin311.fits.....................!
real 52.35
user 51.06
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .27278       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.611       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    27.604       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6877       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1669       1.0000         .10000E-03   10000.    
    14 'norm      '    9.4298       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7546       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    98.053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.964       1.0000         .10000E-03   10000.    
    21 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.241       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8594       1.0000         .10000E-03   10000.    
    24 'Prefactor '    57.482       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.825       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.7376       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .70321       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .92391       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=   5049.877     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     4533 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3743       -.27057E-07** at limit **
   2  Prefactor     46.940        45.538       -.31906E-07   -.53305E-04
   3  Prefactor     .10000E-03    8.4575        .44307E-06** at limit **
   4  Prefactor     .10000E-03    2.4137       -.28027E-07** at limit **
   5  norm          .26841        1.7210       -.44123E-06   -.67844E-04
   6  Prefactor     13.610        14.787       -.58403E-07   -.23874E-04
   7  norm          .10000E-03    1.6625       -.16207E-07** at limit **
   8  norm          27.604        14.092        .18023E-06   -.27337E-04
   9  Prefactor     32.330        47.721        .82621E-06   -.40579E-05
  10  Prefactor     .10000E-03    9.6658        .69265E-07** at limit **
  11  Prefactor     6.6794        96.861        .16610E-05   -.42453E-04
  12  Prefactor     .10000E-03    9.1391       -.66636E-06** at limit **
  13  norm          1.1667        1.2097        .50987E-07   -.27578E-04
  14  norm          9.4302        7.1239       -.11436E-06   -.19029E-03
  15  Prefactor     7.7554        10.438        .47760E-06    .12823E-03
  16  Prefactor     .10000E-03    16.876        .43346E-06** at limit **
  17  norm          .10000E-03    6.1258       -.67080E-07** at limit **
  18  Prefactor     98.028        217.30        .30787E-06   -.85683E-05
  19  Prefactor     17.614        15.076       -.60863E-07    .18209E-03
  20  Prefactor     42.965        26.590        .23200E-06    .52869E-04
  21  norm          .10000E-03    11.644       -.80839E-06** at limit **
  22  Prefactor     44.235        53.507        .12891E-06   -.61748E-04
  23  Prefactor     4.8588        5.1759        .92719E-06    .15636E-03
  24  Prefactor     57.478        48.640        .63190E-06   -.37157E-04
  25  Prefactor     15.824        18.014        .23472E-06   -.21301E-04
  26  Prefactor     .10000E-03    4.5304        .60456E-07** at limit **
  27  Prefactor     2.7355        8.1906        .60061E-05   -.26251E-04
  28  Normalizat    .70345        .21719       -.16429E-05    .20187E-05
  29  Prefactor     .92376        .14788       -.40971E-06   -.16313E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.9399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.268413
  Prefactor  = 13.6099
  norm       = 0.0001
  norm       = 27.6036
  Prefactor  = 32.33
  Prefactor  = 0.0001
  Prefactor  = 6.6794
  Prefactor  = 0.000100001
  norm       = 1.16673
  norm       = 9.43019
  Prefactor  = 7.75538
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 98.0278
  Prefactor  = 17.6141
  Prefactor  = 42.9647
  norm       = 0.000100001
  Prefactor  = 44.2353
  Prefactor  = 4.85884
  Prefactor  = 57.4776
  Prefactor  = 15.8243
  Prefactor  = 0.0001
  Prefactor  = 2.73546
  Normalizat = 0.703448
  Prefactor  = 0.923764
 **********
 **   18 **HESSE 
 **********

 FCN=   5049.877     FROM HESSE     STATUS=OK           551 CALLS     5084 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.3772        .12748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.940        45.570        .29261E-03   -1.4337    
   3  Prefactor     .10000E-03    8.5055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4192        .10779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26841        5.6510        .17479E-02   -1.5604    
   6  Prefactor     13.610        14.780        .10857E-03   -1.4970    
   7  norm          .10000E-03    1.6739        .89430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          27.604        14.098        .76251E-04   -1.4657    
   9  Prefactor     32.330        47.788        .70470E-04   -1.4570    
  10  Prefactor     .10000E-03    9.6829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6794        97.066        .15517E-03   -1.5191    
  12  Prefactor     .10000E-03    9.2488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1667        1.1766        .71512E-04   -1.5492    
  14  norm          9.4302        7.0947        .13051E-03   -1.5094    
  15  Prefactor     7.7554        10.431        .14400E-03   -1.5151    
  16  Prefactor     .10000E-03    16.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1832        .17157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     98.028        217.76        .40595E-04   -1.3725    
  19  Prefactor     17.614        15.035        .95432E-04   -1.4868    
  20  Prefactor     42.965        26.579        .61161E-04   -1.4396    
  21  norm          .10000E-03    11.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     44.235        53.627        .60275E-04   -1.4377    
  23  Prefactor     4.8588        5.1654        .73628E-03   -1.5267    
  24  Prefactor     57.478        48.718        .52913E-04   -1.4190    
  25  Prefactor     15.824        18.015        .10068E-03   -1.4912    
  26  Prefactor     .10000E-03    4.5330        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.7355        8.2720        .12304E-02   -1.5377    
  28  Normalizat    .70345        .25096        .31160E-03   -1.0376    
  29  Prefactor     .92376        .17237        .20188E-03   -.95316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44412e-08
Minuit parameter uncertainties:
  1  3.55665e-06
  2  45.6037
  3  7.8978e-05
  4  2.25847e-06
  5  2.46298
  6  14.7842
  7  4.51511e-07
  8  14.1
  9  47.8446
  10  1.16113e-05
  11  51.0247
  12  0.000187519
  13  1.17665
  14  7.09532
  15  10.4333
  16  0.000122391
  17  5.93554e-05
  18  219.571
  19  15.0382
  20  26.5864
  21  0.000195002
  22  53.6857
  23  5.16588
  24  48.7517
  25  18.0214
  26  6.3694e-06
  27  8.27541
  28  0.25137
  29  0.172468
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.950e-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.238e-01  1.725e-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.034e-01  2.514e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/30108/likelihoodResults_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.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) = 5049.87692797
delta logL = -0.000405237075938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5049.87652274
delta logL = -4.95674612466e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5032       1.0000          .0000       5.0000    
     3 'Normalizat'    .70345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92377       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=   5049.877     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      232 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.452        .18142E-02** at limit **
   2  alpha         2.2788        3.4871        .16461        .54562E-08
   3  Normalizat    .70345        .22653        .31159E-03    .11675E-04
   4  Prefactor     .92377        .16777        .20188E-03    .19428E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27882
  Normalizat = 0.703446
  Prefactor  = 0.923765
 **********
 **   18 **HESSE 
 **********

 FCN=   5049.877     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2788        2.9465        .65843E-02   -.88588E-01
   3  Normalizat    .70345        .22669        .12464E-04   -1.0376    
   4  Prefactor     .92377        .16789        .80752E-05   -.95316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11146e-12
Minuit parameter uncertainties:
  1  8.88042e-06
  2  859.652
  3  0.22699
  4  0.167988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30108': 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) = 5049.8765227
delta logL = 3.23016138282e-08

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  8.880e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.279e+00  8.597e+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:  9.238e-01  1.680e-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.034e-01  2.270e-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/30108/cmap_HighResolution_319939201_320198401_4FGL_J2335.4-0128_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-30 00:25:24.438935', job_id='30108', GAL2='0.92', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632986724.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.23e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='311' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 30108: <4FGL_J2335.4-0128_daily_bin311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin311 353.869 -1.476 319939201 320198401 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 :                                   696.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

