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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1634
RA = 353.869, Dec = -1.476
tmin = 662860801, tmax = 663120001
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='773063', job_status='RUN', time_executed='2022-01-06 02:16:36.165728', time_epoch_executed='1641464196.17' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/773063

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/773063/ft1_4FGL_J2335.4-0128_daily_bin1634.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/773063/ft2_4FGL_J2335.4-0128_daily_bin1634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/773063/ft1_4FGL_J2335.4-0128_daily_bin1634.fits outfile=/scratch/kocevski/773063/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1634.fits ra=353.869 dec=-1.476 rad=12.0 tmin=662860801.0 tmax=663120001.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 2.97
user 2.74
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/773063/ft2_4FGL_J2335.4-0128_daily_bin1634.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/773063/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1634.fits evtable="EVENTS" outfile="/scratch/kocevski/773063/ft1_filtered_4FGL_J2335.4-0128_daily_bin1634.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.57
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/773063/ft1_filtered_4FGL_J2335.4-0128_daily_bin1634.fits" evtable="EVENTS" scfile=/scratch/kocevski/773063/ft2_4FGL_J2335.4-0128_daily_bin1634.fits sctable="SC_DATA" outfile=/scratch/kocevski/773063/ltcube_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.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/773063/ft2_4FGL_J2335.4-0128_daily_bin1634.fits
.....................!
real 16.53
user 16.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/773063/ft1_filtered_4FGL_J2335.4-0128_daily_bin1634.fits evtable="EVENTS" scfile=/scratch/kocevski/773063/ft2_4FGL_J2335.4-0128_daily_bin1634.fits sctable="SC_DATA" expcube=/scratch/kocevski/773063/ltcube_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.fits outfile=/scratch/kocevski/773063/expmap_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.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/773063/ltcube_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.fits
.....................!
real 196.15
user 190.87
sys 4.78

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/773063/ft1_filtered_4FGL_J2335.4-0128_daily_bin1634.fits scfile=/scratch/kocevski/773063/ft2_4FGL_J2335.4-0128_daily_bin1634.fits outfile=/scratch/kocevski/773063/cmap_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/773063/ft1_filtered_4FGL_J2335.4-0128_daily_bin1634.fits scfile=/scratch/kocevski/773063/ft2_4FGL_J2335.4-0128_daily_bin1634.fits outfile=/scratch/kocevski/773063/cmap_HighResolution_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.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.56
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19299E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.008       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.408       1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .70218E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    21.907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6955       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40720       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5299       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38536E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.045       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0772       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8554       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .21357E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12927E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16906E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90771       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97181       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=   8439.717     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3322 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    3.5329        .47338E-06** at limit **
   2  Prefactor     18.996        30.601        .38359E-05   -.15127E-04
   3  Prefactor     .10000E-03    6.3839        .14279E-07** at limit **
   4  Prefactor     14.416        7.3623        .27631E-06    .56891E-03
   5  norm          .10000E-03    1.0380        .57874E-08** at limit **
   6  Prefactor     .10000E-03    11.657        .60571E-05** at limit **
   7  norm          .10004E-03    1.8024       -.57808E-06** at limit **
   8  norm          21.909        11.061       -.10273E-06    .19856E-05
   9  Prefactor     4.6953        13.650       -.27568E-07   -.45899E-04
  10  Prefactor     6.9977        12.703        .12023E-06   -.48545E-04
  11  Prefactor     .10000E-03    14.859       -.59645E-05** at limit **
  12  Prefactor     .10000E-03    2.4830        .10653E-07** at limit **
  13  norm          .40683        .60663        .10603E-07    .38713E-04
  14  norm          2.5302        2.9500        .22637E-07    .23892E-04
  15  Prefactor     .10000E-03    5.5267        .64172E-07** at limit **
  16  Prefactor     33.039        30.403        .12680E-05    .88823E-05
  17  norm          8.0674        7.6100       -.28383E-06   -.38594E-04
  18  Prefactor     .10000E-03    65.100        .89563E-06** at limit **
  19  Prefactor     1.8977        1.8162        .67994E-08   -.31069E-03
  20  Prefactor     .10000E-03    8.9895        .14597E-05** at limit **
  21  norm          .10001E-03    12.599       -.93162E-07** at limit **
  22  Prefactor     .10000E-03    13.698        .50884E-06** at limit **
  23  Prefactor     .10000E-03    1.9552       -.19872E-07** at limit **
  24  Prefactor     .10000E-03    10.679       -.51028E-05** at limit **
  25  Prefactor     .10000E-03    8.4344       -.53928E-06** at limit **
  26  Prefactor     .16125E-01    4.8640       -.36627E-06    .17414E-03
  27  Prefactor     .10000E-03    2.8467       -.34764E-07** at limit **
  28  Normalizat    .90753        .15546       -.22167E-06    .11603E-03
  29  Prefactor     .97185        .11577       -.35684E-08    .97217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100038
  Prefactor  = 18.9956
  Prefactor  = 0.0001
  Prefactor  = 14.4159
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100042
  norm       = 21.9092
  Prefactor  = 4.69526
  Prefactor  = 6.99766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.406833
  norm       = 2.53024
  Prefactor  = 0.000100001
  Prefactor  = 33.0392
  norm       = 8.06736
  Prefactor  = 0.0001
  Prefactor  = 1.89772
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0161251
  Prefactor  = 0.0001
  Normalizat = 0.907534
  Prefactor  = 0.97185
 **********
 **   18 **HESSE 
 **********

 FCN=   8439.717     FROM HESSE     STATUS=OK           577 CALLS     3899 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    16.670        .32625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.996        30.173        .91865E-04   -1.4836    
   3  Prefactor     .10000E-03    6.4348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.416        6.3746        .10552E-03   -1.4948    
   5  norm          .10000E-03    1.0792        .18257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10004E-03    36.505        .20096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          21.909        11.061        .85577E-04   -1.4771    
   9  Prefactor     4.6953        13.727        .92853E-03   -1.5275    
  10  Prefactor     6.9977        12.753        .75833E-03   -1.5179    
  11  Prefactor     .10000E-03    14.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4970        .14130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40683        .52708        .82245E-03   -1.5580    
  14  norm          2.5302        2.9354        .16459E-03   -1.5390    
  15  Prefactor     .10000E-03    19.356        .39276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.039        30.508        .69706E-04   -1.4558    
  17  norm          8.0674        7.1891        .14107E-03   -1.5140    
  18  Prefactor     .10000E-03    65.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.8977        14.496        .15300E-02   -1.5432    
  20  Prefactor     .10000E-03    9.0152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10001E-03    21.984        .94092E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4260        .23590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.4669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .16125E-01    6.2496        .71553E-01   -1.5683    
  27  Prefactor     .10000E-03    2.8773        .15125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .90753        .18092        .26793E-03   -.96196    
  29  Prefactor     .97185        .13560        .19909E-03   -.93674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28438e-09
Minuit parameter uncertainties:
  1  0.00159976
  2  30.1972
  3  1.53642e-06
  4  6.37486
  5  3.07488e-07
  6  3.5155e-05
  7  0.0024809
  8  11.0624
  9  13.7357
  10  12.7576
  11  4.94448e-06
  12  1.19494e-06
  13  0.52709
  14  2.93556
  15  0.000269484
  16  30.5221
  17  7.18985
  18  1.42415e-06
  19  10.4933
  20  4.2825e-06
  21  0.000903101
  22  5.30687e-07
  23  1.01214e-05
  24  3.05084e-06
  25  3.41944e-06
  26  0.632998
  27  4.3748e-06
  28  0.181041
  29  0.135644
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  9.031e-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.718e-01  1.356e-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:  9.075e-01  1.810e-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.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/773063/likelihoodResults_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.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) = 8439.71735387
delta logL = -1.78368300112e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8439.71735387
delta logL = -1.78299487743e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96354E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5049       1.0000          .0000       5.0000    
     3 'Normalizat'    .90754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8439.699     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      274 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3480        462.38        .90713E-02    .75611E-03
   2  alpha         3.2815        3.3432        .41152        .59770E-04
   3  Normalizat    .90323        .30118E-01    .44998E-01    .12526E-04
   4  Prefactor     .97188        .23326E-01    .45914E-01    .64699E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34799
  alpha      = 3.28154
  Normalizat = 0.903228
  Prefactor  = 0.971884
 **********
 **   18 **HESSE 
 **********

 FCN=   8439.699     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3480        139.56        .36285E-03   -1.5476    
   2  alpha         3.2815        2.6722        .59076E-01    .31795    
   3  Normalizat    .90323        .17584        .26850E-03   -.96347    
   4  Prefactor     .97188        .13654        .19908E-03   -.93673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6692e-07
Minuit parameter uncertainties:
  1  27.4967
  2  8.63272
  3  0.17595
  4  0.136587
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/773063': 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) = 8439.69863856
delta logL = 0.0186974738263

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  9.719e-01  1.366e-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:  9.032e-01  1.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.869 -1.476

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/773063/cmap_HighResolution_662860801_663120001_4FGL_J2335.4-0128_daily_bin1634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='5.01e-08', time_completed='2022-01-06 02:31:54.942148', job_id='773063', GAL2='0.97', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1641465114.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.87e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1634' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan  6 02:31:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 773063: <4FGL_J2335.4-0128_daily_bin1634> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1634> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jan  6 02:15:25 2022
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan  6 02:16:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan  6 02:16:25 2022
Terminated at Thu Jan  6 02:31:55 2022
Results reported at Thu Jan  6 02:31:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1634 353.869 -1.476 662860801 663120001 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 :                                   920.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            990 sec.

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

