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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin170
RA = 353.869, Dec = -1.476
tmin = 283392001, tmax = 283651201
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='29887', job_status='RUN', time_executed='2021-09-30 00:14:13.044285', time_epoch_executed='1632986053.04' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29887

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29887/ft1_4FGL_J2335.4-0128_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29887/ft2_4FGL_J2335.4-0128_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29887/ft1_4FGL_J2335.4-0128_daily_bin170.fits outfile=/scratch/kocevski/29887/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin170.fits ra=353.869 dec=-1.476 rad=12.0 tmin=283392001.0 tmax=283651201.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.62
user 3.41
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29887/ft1_filtered_4FGL_J2335.4-0128_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/29887/ft2_4FGL_J2335.4-0128_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/29887/ltcube_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.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/29887/ft2_4FGL_J2335.4-0128_daily_bin170.fits
.....................!
real 14.09
user 13.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29887/ft1_filtered_4FGL_J2335.4-0128_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/29887/ft2_4FGL_J2335.4-0128_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/29887/ltcube_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.fits outfile=/scratch/kocevski/29887/expmap_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.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/29887/ltcube_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.fits
.....................!
real 192.07
user 185.81
sys 5.91

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/29887/ft1_filtered_4FGL_J2335.4-0128_daily_bin170.fits scfile=/scratch/kocevski/29887/ft2_4FGL_J2335.4-0128_daily_bin170.fits outfile=/scratch/kocevski/29887/cmap_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29887/ft1_filtered_4FGL_J2335.4-0128_daily_bin170.fits scfile=/scratch/kocevski/29887/ft2_4FGL_J2335.4-0128_daily_bin170.fits outfile=/scratch/kocevski/29887/cmap_HighResolution_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/29887/ft1_filtered_4FGL_J2335.4-0128_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/29887/ft2_4FGL_J2335.4-0128_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29887/Model_4FGL_J2335.4-0128_daily_bin170.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/29887/ft1_filtered_4FGL_J2335.4-0128_daily_bin170.fits....................!
real 55.06
user 53.67
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.410       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5477       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0823       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .48729       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9699       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .84971       1.0000         .10000E-03   10000.    
    14 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7272       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35498E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.3515       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.782       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4927       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .40441       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1745       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1693       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5164.915     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     3126 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9241        .85295E-06** at limit **
   2  Prefactor     25.387        2.8299       -.23665E-07    .22685E-02
   3  Prefactor     8.5474        2.7385        .81765E-07    .34036E-02
   4  Prefactor     .10000E-03    2.6279       -.17732E-06** at limit **
   5  norm          2.0815        2.9362        .18794E-06   -.40343E-04
   6  Prefactor     .10000E-03    6.8880       -.26255E-05** at limit **
   7  norm          .10000E-03    2.5258        .31620E-06** at limit **
   8  norm          .48656        7.2373        .17539E-06    .22309E-03
   9  Prefactor     .10000E-03    16.667       -.41932E-05** at limit **
  10  Prefactor     .10000E-03    12.724        .16856E-06** at limit **
  11  Prefactor     10.133        13.049       -.19145E-06    .55430E-02
  12  Prefactor     .10127E-03    42.411        .56095E-05** at limit **
  13  norm          .84944        .82523       -.41708E-06   -.67775E-03
  14  norm          .10262E-03    60.114       -.90471E-06** at limit **
  15  Prefactor     9.7269        1.7657       -.23271E-07    .75237E-03
  16  Prefactor     .14171E-03    22.247        .61822E-06** at limit **
  17  norm          3.3514        3.9716       -.58228E-07   -.11220E-02
  18  Prefactor     .10131E-03    21.812        .29659E-05** at limit **
  19  Prefactor     .10000E-03    3.9964        .10208E-05** at limit **
  20  Prefactor     .10131E-03    28.599        .17469E-05** at limit **
  21  norm          .10000E-03    6.9924       -.10834E-05** at limit **
  22  Prefactor     13.798        4.3040       -.88189E-07    .39539E-02
  23  Prefactor     .10000E-03    2.1542        .73508E-07** at limit **
  24  Prefactor     3.4919        6.6129        .94408E-07   -.11406E-02
  25  Prefactor     .21502E-03    1788.8        .60145E-06** at limit **
  26  Prefactor     6.1723        1.1346        .14082E-08   -.11377E-02
  27  Prefactor     .10000E-03    2.5766        .11484E-05** at limit **
  28  Normalizat    1.1698        .22976       -.58005E-06   -.37531E-04
  29  Prefactor     .83208        .16501        .33977E-06   -.29077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.3867
  Prefactor  = 8.54738
  Prefactor  = 0.0001
  norm       = 2.08149
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.486559
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.1331
  Prefactor  = 0.000101266
  norm       = 0.849439
  norm       = 0.000102616
  Prefactor  = 9.72691
  Prefactor  = 0.000141714
  norm       = 3.35137
  Prefactor  = 0.000101313
  Prefactor  = 0.0001
  Prefactor  = 0.000101308
  norm       = 0.0001
  Prefactor  = 13.798
  Prefactor  = 0.0001
  Prefactor  = 3.49194
  Prefactor  = 0.000215025
  Prefactor  = 6.17231
  Prefactor  = 0.0001
  Normalizat = 1.16976
  Prefactor  = 0.83208
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.915     FROM HESSE     STATUS=OK           625 CALLS     3751 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.387        50.355        .19867E-02   -1.4700    
   3  Prefactor     8.5474        12.427        .34278E-02   -1.5123    
   4  Prefactor     .10000E-03    2.6143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0815        3.0628        .71541E-02   -1.5419    
   6  Prefactor     .10000E-03    6.8830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4241        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .48656        12.039        .11219E-01   -1.5568    
   9  Prefactor     .10000E-03    16.671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.133        91.602        .31727E-02   -1.5071    
  12  Prefactor     .10127E-03    12.093        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .84944        .87440        .12624E-01   -1.5524    
  14  norm          .10262E-03    7.4838        .57809E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7269        7.4217        .32121E-02   -1.5084    
  16  Prefactor     .14171E-03    222.69        .10659E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.3514        6.4839        .55266E-02   -1.5342    
  18  Prefactor     .10131E-03    51.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10131E-03    53.788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.9788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.798        47.806        .26973E-02   -1.4965    
  23  Prefactor     .10000E-03    2.1317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4919        45.530        .54087E-02   -1.5334    
  25  Prefactor     .21502E-03    29.237        .11906       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.1723        9.3249        .40390E-02   -1.5211    
  27  Prefactor     .10000E-03    2.5708        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1698        .20480        .56747E-01   -.87543    
  29  Prefactor     .83208        .14113        .44135E-01   -.98556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63292e-06
Minuit parameter uncertainties:
  1  2.49663e-05
  2  50.439
  3  12.4312
  4  4.18955e-06
  5  3.06303
  6  0.000116937
  7  5.59524e-06
  8  4.84103
  9  0.000241386
  10  6.98909e-06
  11  61.0574
  12  0.00782783
  13  0.87441
  14  0.00885016
  15  7.4224
  16  0.193483
  17  6.48525
  18  0.016483
  19  2.48804e-05
  20  0.0167878
  21  1.40334e-06
  22  47.9395
  23  1.16202e-06
  24  25.2414
  25  0.11604
  26  9.32704
  27  2.38836e-05
  28  0.204944
  29  0.141194
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.403e-06  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:  8.321e-01  1.412e-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.170e+00  2.049e-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: 4.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29887/likelihoodResults_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.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) = 5164.91558635
delta logL = -0.000679032619701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5164.91490729
delta logL = 2.60652086581e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4949       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83207       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=   5164.915     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      229 TOTAL
                     EDM=   .21E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    138.38        .18142E-01** at limit **
   2  alpha         1.6688        4.0271        .50000        .53660E-08
   3  Normalizat    1.1698        .21063E-01    .25094E-03    .27318E-04
   4  Prefactor     .83208        .15362E-01    .21199E-03    .41026E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.6688
  Normalizat = 1.16976
  Prefactor  = 0.83208
 **********
 **   18 **HESSE 
 **********

 FCN=   5164.915     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      256 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1690.8        .20414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6688        4.1568        .20000       -.33893    
   3  Normalizat    1.1698        .12659        .10038E-04   -.87543    
   4  Prefactor     .83208        .92333E-01    .84796E-05   -.98556    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.66577e-11
Minuit parameter uncertainties:
  1  0.000183922
  2  7195.55
  3  0.126626
  4  0.0923505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29887': 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) = 5164.91490607
delta logL = 1.2498576325e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.839e-04  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.669e+00  7.196e+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:  8.321e-01  9.235e-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:  1.170e+00  1.266e-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/29887/cmap_HighResolution_283392001_283651201_4FGL_J2335.4-0128_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', job_status='DONE', photon_flux_upper_limit='4.45e-08', time_completed='2021-09-30 00:25:15.384092', job_id='29887', GAL2='0.83', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632986715.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='170' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:25:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 29887: <4FGL_J2335.4-0128_daily_bin170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin170 353.869 -1.476 283392001 283651201 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 :                                   658.00 sec.
    Max Memory :                                 1035 MB
    Average Memory :                             257.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            902 sec.

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

