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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin725
RA = 353.869, Dec = -1.476
tmin = 427248001, tmax = 427507201
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='32734', job_status='RUN', time_executed='2021-09-30 00:23:09.312868', time_epoch_executed='1632986589.31' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32734

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32734/ft1_4FGL_J2335.4-0128_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32734/ft2_4FGL_J2335.4-0128_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32734/ft1_4FGL_J2335.4-0128_daily_bin725.fits outfile=/scratch/kocevski/32734/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin725.fits ra=353.869 dec=-1.476 rad=12.0 tmin=427248001.0 tmax=427507201.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 5.48
user 5.22
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32734/ft1_filtered_4FGL_J2335.4-0128_daily_bin725.fits" evtable="EVENTS" scfile=/scratch/kocevski/32734/ft2_4FGL_J2335.4-0128_daily_bin725.fits sctable="SC_DATA" outfile=/scratch/kocevski/32734/ltcube_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.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/32734/ft2_4FGL_J2335.4-0128_daily_bin725.fits
.....................!
real 12.05
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32734/ft1_filtered_4FGL_J2335.4-0128_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/32734/ft2_4FGL_J2335.4-0128_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/32734/ltcube_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.fits outfile=/scratch/kocevski/32734/expmap_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.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/32734/ltcube_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.fits
.....................!
real 191.43
user 185.89
sys 5.13

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/32734/ft1_filtered_4FGL_J2335.4-0128_daily_bin725.fits scfile=/scratch/kocevski/32734/ft2_4FGL_J2335.4-0128_daily_bin725.fits outfile=/scratch/kocevski/32734/cmap_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32734/ft1_filtered_4FGL_J2335.4-0128_daily_bin725.fits scfile=/scratch/kocevski/32734/ft2_4FGL_J2335.4-0128_daily_bin725.fits outfile=/scratch/kocevski/32734/cmap_HighResolution_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12425E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.286       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.422       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67526E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1903       1.0000         .10000E-03   10000.    
    13 'norm      '    .35575       1.0000         .10000E-03   10000.    
    14 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15753E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.697       1.0000         .10000E-03   10000.    
    21 'norm      '    57.956       1.0000         .10000E-03   10000.    
    22 'Prefactor '    113.99       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9003       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4289       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .48641       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=   2174.776     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3742 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.870       -.12011E-05** at limit **
   2  Prefactor     41.474        116.88        .40704E-05   -.24290E-04
   3  Prefactor     15.428        35.538        .11191E-05    .32956E-04
   4  Prefactor     .10012E-03    22.702        .56321E-05** at limit **
   5  norm          .10000E-03    2.5846       -.16888E-06** at limit **
   6  Prefactor     .10000E-03    23.838       -.10854E-05** at limit **
   7  norm          .10000E-03    5.1587       -.11021E-06** at limit **
   8  norm          16.478        18.415       -.87305E-07    .76339E-04
   9  Prefactor     .10000E-03    30.956       -.23346E-06** at limit **
  10  Prefactor     .10000E-03    130.75       -.48518E-05** at limit **
  11  Prefactor     .10000E-03    30.333        .17334E-06** at limit **
  12  Prefactor     8.1911        13.026        .25216E-06    .17713E-03
  13  norm          .35404        2.5958        .55630E-07    .27974E-03
  14  norm          .10000E-03    33.376       -.77389E-06** at limit **
  15  Prefactor     .10000E-03    7.5031       -.46193E-07** at limit **
  16  Prefactor     .10000E-03    96.340        .96450E-06** at limit **
  17  norm          .10000E-03    9.9145       -.95363E-07** at limit **
  18  Prefactor     .10000E-03    287.10        .33286E-05** at limit **
  19  Prefactor     .10002E-03    45.991       -.87442E-06** at limit **
  20  Prefactor     32.695        41.093       -.64628E-06    .30468E-04
  21  norm          57.980        58.559       -.35480E-06    .11949E-03
  22  Prefactor     113.96        116.86        .21656E-05    .86120E-04
  23  Prefactor     2.9073        12.316        .11740E-05    .22528E-03
  24  Prefactor     .10000E-03    28.464        .61022E-06** at limit **
  25  Prefactor     .10000E-03    14.292       -.12243E-06** at limit **
  26  Prefactor     .10000E-03    18.017       -.15170E-06** at limit **
  27  Prefactor     .10000E-03    25.279       -.21078E-06** at limit **
  28  Normalizat    1.4288        .35983       -.45581E-05    .15600E-03
  29  Prefactor     .48657        .22518        .70234E-05    .37709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 41.474
  Prefactor  = 15.4277
  Prefactor  = 0.000100118
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.4782
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 8.19112
  norm       = 0.354044
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  Prefactor  = 32.6948
  norm       = 57.9795
  Prefactor  = 113.958
  Prefactor  = 2.90729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.42884
  Prefactor  = 0.486566
 **********
 **   18 **HESSE 
 **********

 FCN=   2174.776     FROM HESSE     STATUS=OK           543 CALLS     4285 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.474        116.55        .31193E-03   -1.4419    
   3  Prefactor     15.428        35.609        .10199E-03   -1.4922    
   4  Prefactor     .10012E-03    38.104        .26540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6057        .73070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.2054        .10326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.478        18.406        .98660E-04   -1.4896    
   9  Prefactor     .10000E-03    31.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    135.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1911        12.973        .14009E-03   -1.5135    
  13  norm          .35404        3.4449        .12497E-02   -1.5589    
  14  norm          .10000E-03    34.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5244        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    96.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.9599        .14333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    286.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    142.81        .44344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.695        41.095        .70076E-04   -1.4564    
  21  norm          57.980        53.566        .52697E-04   -1.4184    
  22  Prefactor     113.96        117.09        .18841E-03   -1.3569    
  23  Prefactor     2.9073        10.799        .23860E-03   -1.5367    
  24  Prefactor     .10000E-03    28.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.315        .17224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    25.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4288        .38594        .22658E-03   -.79798    
  29  Prefactor     .48657        .24387        .25295E-03   -1.1260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48596e-09
Minuit parameter uncertainties:
  1  0.000499086
  2  117.198
  3  35.6577
  4  0.00424173
  5  1.71011e-05
  6  5.55441e-05
  7  2.25034e-05
  8  18.4126
  9  7.53151e-05
  10  0.00159554
  11  6.87899e-07
  12  12.9771
  13  2.2086
  14  0.000105703
  15  1.22476e-05
  16  3.48144e-06
  17  2.48742e-05
  18  0.00104438
  19  0.00313737
  20  41.1309
  21  53.611
  22  117.328
  23  10.8064
  24  1.1505e-05
  25  3.67492e-05
  26  4.87965e-05
  27  0.000119497
  28  0.386735
  29  0.244393
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  5.798e+01  5.361e+01  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:  4.866e-01  2.444e-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.429e+00  3.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 6.61e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 2.74e-05

TS (Fixed Index): 3.34
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 2.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/32734/likelihoodResults_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.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) = 2174.43643189
delta logL = 0.339855436399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2174.42511514
delta logL = 0.351172186029

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.448       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3448       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51826       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=   2174.425     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      291 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.442        48.167        .75114E-04    .19762E-03
   2  alpha         3.3448        1.0745        .78460E-02    .34905E-04
   3  Normalizat    1.3520        .35532        .23139E-03   -.96543E-05
   4  Prefactor     .51844        .23822        .24524E-03   -.12477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.4423
  alpha      = 3.34479
  Normalizat = 1.35197
  Prefactor  = 0.518436
 **********
 **   18 **HESSE 
 **********

 FCN=   2174.425     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.442        41.497        .15023E-04   -1.4641    
   2  alpha         3.3448        .93364        .31384E-03    .34470    
   3  Normalizat    1.3520        .35318        .92557E-05   -.82028    
   4  Prefactor     .51844        .23716        .98096E-05   -1.1114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10183e-10
Minuit parameter uncertainties:
  1  41.5391
  2  0.960054
  3  0.35382
  4  0.237617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32734': 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) = 2174.42511476
delta logL = 0.351172563812

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  2.844e+01  4.154e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  3.345e+00  9.601e-01  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:  5.184e-01  2.376e-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.352e+00  3.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 3.34 +/- 0.96
Photon Flux (Free Index): 1.41e-07 +/- 1.20e-07
Energy Flux (Free Index): 3.37e-05 +/- 2.37e-05

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/32734/cmap_HighResolution_427248001_427507201_4FGL_J2335.4-0128_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-05', comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.37e-05', photon_flux_error='6.61e-08', dlogl='3.51e-01', energy_flux='2.97e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-30 00:31:16.235627', photon_index_error2='0.96', photon_index2='3.34', ts='3.34', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='2.15e-07', energy_flux_error2='2.37e-05', EG='1.43', time_epoch_completed='1632987076.24', return_code='0', job_id='32734', GAL2='0.52', EG2='1.35', return_code2='0', energy_flux_error='2.74e-05', photon_flux_error2='1.20e-07', ts2='4.06', photon_index='2.50' WHERE bin_id='725' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:31:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 32734: <4FGL_J2335.4-0128_daily_bin725> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin725> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:12 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:20:14 2021
Terminated at Thu Sep 30 00:31:16 2021
Results reported at Thu Sep 30 00:31:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin725 353.869 -1.476 427248001 427507201 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 :                                   485.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             213.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            664 sec.

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

