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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1503
RA = 353.869, Dec = -1.476
tmin = 628905601, tmax = 629164801
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='35479', job_status='RUN', time_executed='2021-09-30 00:34:09.898326', time_epoch_executed='1632987249.9' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35479

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35479/ft1_4FGL_J2335.4-0128_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35479/ft2_4FGL_J2335.4-0128_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35479/ft1_4FGL_J2335.4-0128_daily_bin1503.fits outfile=/scratch/kocevski/35479/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1503.fits ra=353.869 dec=-1.476 rad=12.0 tmin=628905601.0 tmax=629164801.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.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/35479/ft2_4FGL_J2335.4-0128_daily_bin1503.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/35479/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1503.fits evtable="EVENTS" outfile="/scratch/kocevski/35479/ft1_filtered_4FGL_J2335.4-0128_daily_bin1503.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.61
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35479/ft1_filtered_4FGL_J2335.4-0128_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/35479/ft2_4FGL_J2335.4-0128_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/35479/ltcube_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.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/35479/ft2_4FGL_J2335.4-0128_daily_bin1503.fits
.....................!
real 12.30
user 11.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35479/ft1_filtered_4FGL_J2335.4-0128_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/35479/ft2_4FGL_J2335.4-0128_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/35479/ltcube_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.fits outfile=/scratch/kocevski/35479/expmap_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.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/35479/ltcube_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.fits
.....................!
real 192.61
user 187.43
sys 4.82

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/35479/ft1_filtered_4FGL_J2335.4-0128_daily_bin1503.fits scfile=/scratch/kocevski/35479/ft2_4FGL_J2335.4-0128_daily_bin1503.fits outfile=/scratch/kocevski/35479/cmap_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35479/ft1_filtered_4FGL_J2335.4-0128_daily_bin1503.fits scfile=/scratch/kocevski/35479/ft2_4FGL_J2335.4-0128_daily_bin1503.fits outfile=/scratch/kocevski/35479/cmap_HighResolution_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.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.57
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3871       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1648       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.035       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7304       1.0000         .10000E-03   10000.    
     8 'norm      '    46.570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6835       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.624       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1772       1.0000         .10000E-03   10000.    
    18 'Prefactor '    122.63       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.888       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3058       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.886       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5015       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2743       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9832       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82368       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=   5600.314     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3717 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6911       -.27599E-07** at limit **
   2  Prefactor     .10000E-03    17.941        .10882E-05** at limit **
   3  Prefactor     .10000E-03    6.0655        .15835E-07** at limit **
   4  Prefactor     1.3916        18.265        .67909E-05   -.62804E-04
   5  norm          3.1650        2.8989       -.42371E-07   -.18997E-03
   6  Prefactor     20.038        18.587       -.68527E-07   -.12535E-03
   7  norm          4.7280        7.1446       -.21799E-05   -.43091E-03
   8  norm          46.575        20.451        .24661E-06    .98240E-05
   9  Prefactor     .10000E-03    52.784        .15167E-05** at limit **
  10  Prefactor     4.1113        35.204        .44151E-06   -.14268E-04
  11  Prefactor     .10000E-03    100.34       -.16060E-05** at limit **
  12  Prefactor     2.6666        9.0615        .74274E-06   -.38513E-04
  13  norm          .10000E-03    .72887       -.21584E-06** at limit **
  14  norm          .10000E-03    3.3593       -.18987E-06** at limit **
  15  Prefactor     20.624        13.778       -.53332E-08    .64136E-05
  16  Prefactor     .10000E-03    18.208        .19302E-05** at limit **
  17  norm          5.1802        13.373        .53220E-06   -.79830E-05
  18  Prefactor     122.48        230.57       -.18201E-04   -.79326E-04
  19  Prefactor     .10000E-03    16.694       -.29650E-05** at limit **
  20  Prefactor     29.886        31.397       -.33039E-06   -.17851E-04
  21  norm          .10000E-03    12.570       -.31332E-07** at limit **
  22  Prefactor     .10000E-03    25.825       -.12380E-05** at limit **
  23  Prefactor     7.3095        6.2387        .90432E-06    .18325E-03
  24  Prefactor     51.892        44.337        .61192E-06    .42824E-04
  25  Prefactor     4.5044        33.470        .27884E-06   -.93668E-05
  26  Prefactor     4.2751        12.104        .53091E-05   -.35832E-03
  27  Prefactor     2.9826        6.8509        .32282E-06   -.10105E-03
  28  Normalizat    1.0678        .22106       -.16870E-05    .38999E-04
  29  Prefactor     .82373        .14686        .75556E-06   -.10073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39159
  norm       = 3.16502
  Prefactor  = 20.0376
  norm       = 4.72804
  norm       = 46.5746
  Prefactor  = 0.0001
  Prefactor  = 4.11133
  Prefactor  = 0.0001
  Prefactor  = 2.66656
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 20.6236
  Prefactor  = 0.0001
  norm       = 5.18024
  Prefactor  = 122.483
  Prefactor  = 0.0001
  Prefactor  = 29.8857
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.30946
  Prefactor  = 51.8917
  Prefactor  = 4.50438
  Prefactor  = 4.27511
  Prefactor  = 2.98259
  Normalizat = 1.06779
  Prefactor  = 0.823728
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.314     FROM HESSE     STATUS=OK           557 CALLS     4274 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7841        .17431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0727        .17997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3916        16.607        .36918E-03   -1.5472    
   5  norm          3.1650        2.9047        .11527E-03   -1.5352    
   6  Prefactor     20.038        18.589        .89482E-04   -1.4812    
   7  norm          4.7280        6.7782        .13747E-03   -1.5273    
   8  norm          46.575        20.473        .58755E-04   -1.4342    
   9  Prefactor     .10000E-03    53.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.1113        35.159        .19835E-03   -1.5302    
  11  Prefactor     .10000E-03    100.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6666        9.0294        .24874E-03   -1.5381    
  13  norm          .10000E-03    1.8860        .12128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3745        .13334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.624        13.687        .88197E-04   -1.4799    
  16  Prefactor     .10000E-03    18.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1802        13.244        .17668E-03   -1.5253    
  18  Prefactor     122.48        240.63        .18173E-03   -1.3490    
  19  Prefactor     .10000E-03    16.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.886        31.319        .73286E-04   -1.4614    
  21  norm          .10000E-03    12.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3095        6.3225        .14760E-03   -1.5167    
  24  Prefactor     51.892        44.381        .55678E-04   -1.4266    
  25  Prefactor     4.5044        33.289        .18976E-03   -1.5283    
  26  Prefactor     4.2751        12.286        .97438E-03   -1.5294    
  27  Prefactor     2.9826        6.8750        .23505E-03   -1.5363    
  28  Normalizat    1.0678        .25743        .27900E-03   -.90793    
  29  Prefactor     .82373        .16996        .22477E-03   -.98860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32666e-09
Minuit parameter uncertainties:
  1  4.5556e-06
  2  9.12326e-05
  3  8.95514e-07
  4  9.61768
  5  2.90483
  6  18.5942
  7  6.7793
  8  20.4759
  9  0.000199542
  10  24.0647
  11  0.000227986
  12  9.034
  13  0.000176271
  14  1.77132e-06
  15  13.6894
  16  0.000180039
  17  13.2516
  18  242.597
  19  0.00010161
  20  31.3357
  21  4.15286e-05
  22  0.00013279
  23  6.32312
  24  44.409
  25  24.5092
  26  12.2929
  27  6.87678
  28  0.257735
  29  0.170073
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.153e-05  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.237e-01  1.701e-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.068e+00  2.577e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35479/likelihoodResults_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.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) = 5600.31485323
delta logL = -0.0003784319224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5600.31447495
delta logL = -1.56633177539e-07

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.5077       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82365       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=   5600.314     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      197 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.537        .90712E-02** at limit **
   2  alpha         2.5107        3.5551        .41152       -.11747E-05
   3  Normalizat    1.0678        .19787        .63076E-01    .11369E-04
   4  Prefactor     .82373        .14265        .44024E-01    .10197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.51067
  Normalizat = 1.06779
  Prefactor  = 0.82373
 **********
 **   18 **HESSE 
 **********

 FCN=   5600.314     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5107        3.5544        .50000        .42684E-02
   3  Normalizat    1.0678        .22817        .27900E-03   -.90793    
   4  Prefactor     .82373        .16462        .22477E-03   -.98859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38566e-12
Minuit parameter uncertainties:
  1  1.78765e-06
  2  2.50029
  3  0.228381
  4  0.164721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35479': 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) = 5600.31447479
delta logL = 2.78760126093e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.788e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.511e+00  2.500e+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:  8.237e-01  1.647e-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.068e+00  2.284e-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/35479/cmap_HighResolution_628905601_629164801_4FGL_J2335.4-0128_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.55e-05', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-30 00:46:02.430274', job_id='35479', GAL2='0.82', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632987962.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.79e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1503' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:46:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 35479: <4FGL_J2335.4-0128_daily_bin1503> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1503> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 00:30:22 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:30:24 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:30:24 2021
Terminated at Thu Sep 30 00:46:03 2021
Results reported at Thu Sep 30 00:46:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1503 353.869 -1.476 628905601 629164801 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 :                                   709.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

