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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin530
RA = 353.869, Dec = -1.476
tmin = 376704001, tmax = 376963201
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='31428', job_status='RUN', time_executed='2021-09-30 00:18:40.624851', time_epoch_executed='1632986320.62' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31428/ft1_4FGL_J2335.4-0128_daily_bin530.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31428/ft2_4FGL_J2335.4-0128_daily_bin530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31428/ft1_4FGL_J2335.4-0128_daily_bin530.fits outfile=/scratch/kocevski/31428/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin530.fits ra=353.869 dec=-1.476 rad=12.0 tmin=376704001.0 tmax=376963201.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.85
user 3.62
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31428/ft1_filtered_4FGL_J2335.4-0128_daily_bin530.fits" evtable="EVENTS" scfile=/scratch/kocevski/31428/ft2_4FGL_J2335.4-0128_daily_bin530.fits sctable="SC_DATA" outfile=/scratch/kocevski/31428/ltcube_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.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/31428/ft2_4FGL_J2335.4-0128_daily_bin530.fits
.....................!
real 13.66
user 13.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31428/ft1_filtered_4FGL_J2335.4-0128_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/31428/ft2_4FGL_J2335.4-0128_daily_bin530.fits sctable="SC_DATA" expcube=/scratch/kocevski/31428/ltcube_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.fits outfile=/scratch/kocevski/31428/expmap_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.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/31428/ltcube_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.fits
.....................!
real 215.76
user 209.80
sys 5.58

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/31428/ft1_filtered_4FGL_J2335.4-0128_daily_bin530.fits scfile=/scratch/kocevski/31428/ft2_4FGL_J2335.4-0128_daily_bin530.fits outfile=/scratch/kocevski/31428/cmap_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31428/ft1_filtered_4FGL_J2335.4-0128_daily_bin530.fits scfile=/scratch/kocevski/31428/ft2_4FGL_J2335.4-0128_daily_bin530.fits outfile=/scratch/kocevski/31428/cmap_HighResolution_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.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.60
user 0.44
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/31428/ft1_filtered_4FGL_J2335.4-0128_daily_bin530.fits evtable="EVENTS" scfile=/scratch/kocevski/31428/ft2_4FGL_J2335.4-0128_daily_bin530.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31428/Model_4FGL_J2335.4-0128_daily_bin530.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/31428/ft1_filtered_4FGL_J2335.4-0128_daily_bin530.fits.....................!
real 66.73
user 65.26
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    58.287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0773       1.0000         .10000E-03   10000.    
     5 'norm      '    .47356E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10407E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1631       1.0000         .10000E-03   10000.    
     8 'norm      '    43.555       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6214       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.651       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3204       1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11696E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    102.75       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.862       1.0000         .10000E-03   10000.    
    21 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    107.46       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.9735       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .18275E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88336       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1010       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=   5485.814     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3668 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2971        .93394E-06** at limit **
   2  Prefactor     58.273        72.195       -.15472E-04   -.11428E-03
   3  Prefactor     .10000E-03    25.762       -.45696E-05** at limit **
   4  Prefactor     4.0714        10.401        .13914E-05   -.42716E-03
   5  norm          .10001E-03    1.6240        .92170E-06** at limit **
   6  Prefactor     .10000E-03    16.968        .90138E-05** at limit **
   7  norm          4.1626        5.2743       -.12634E-05   -.50243E-03
   8  norm          43.553        18.854        .11690E-06   -.75921E-06
   9  Prefactor     .10000E-03    22.758       -.69411E-05** at limit **
  10  Prefactor     7.6183        23.632       -.21725E-05   -.21402E-04
  11  Prefactor     .10000E-03    51.528       -.11291E-04** at limit **
  12  Prefactor     10.647        10.329       -.72974E-06   -.93656E-03
  13  norm          3.3201        1.4132        .32777E-07   -.89938E-04
  14  norm          .10000E-03    4.6890       -.68848E-06** at limit **
  15  Prefactor     .10000E-03    3.2454       -.17084E-06** at limit **
  16  Prefactor     .10000E-03    21.925       -.61634E-05** at limit **
  17  norm          .10001E-03    18.265       -.13886E-05** at limit **
  18  Prefactor     102.76        123.98        .94794E-05   -.43778E-06
  19  Prefactor     .10000E-03    4.0463       -.22123E-06** at limit **
  20  Prefactor     17.889        27.969        .23642E-04    .88679E-05
  21  norm          .10000E-03    11.546       -.23334E-05** at limit **
  22  Prefactor     .10000E-03    33.642        .13348E-04** at limit **
  23  Prefactor     .10000E-03    1.8600        .24015E-07** at limit **
  24  Prefactor     107.46        47.531       -.48699E-05   -.12116E-04
  25  Prefactor     6.9714        16.020       -.11191E-05   -.58270E-04
  26  Prefactor     .10000E-03    4.3316        .68389E-06** at limit **
  27  Prefactor     .10013E-03    6.4547        .23987E-05** at limit **
  28  Normalizat    .88337        .23036        .12310E-05   -.44760E-03
  29  Prefactor     1.1010        .16481       -.20657E-05   -.23245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 58.2726
  Prefactor  = 0.0001
  Prefactor  = 4.07139
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 4.16262
  norm       = 43.553
  Prefactor  = 0.0001
  Prefactor  = 7.61827
  Prefactor  = 0.0001
  Prefactor  = 10.6471
  norm       = 3.32009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 102.76
  Prefactor  = 0.0001
  Prefactor  = 17.8887
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.456
  Prefactor  = 6.97142
  Prefactor  = 0.0001
  Prefactor  = 0.000100131
  Normalizat = 0.88337
  Prefactor  = 1.101
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.814     FROM HESSE     STATUS=OK           545 CALLS     4213 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     58.273        71.857        .52549E-04   -1.4180    
   3  Prefactor     .10000E-03    25.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0714        10.317        .19967E-03   -1.5304    
   5  norm          .10001E-03    6.8771        .17954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1626        5.2536        .14679E-03   -1.5300    
   8  norm          43.553        18.835        .60746E-04   -1.4387    
   9  Prefactor     .10000E-03    22.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6183        23.595        .14526E-03   -1.5156    
  11  Prefactor     .10000E-03    51.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.647        10.354        .61383E-03   -1.5055    
  13  norm          3.3201        1.4103        .54339E-04   -1.5344    
  14  norm          .10000E-03    4.7494        .15618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.2520        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10001E-03    19.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     102.76        123.99        .19833E-03   -1.3677    
  19  Prefactor     .10000E-03    4.0515        .14548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.889        27.846        .94766E-04   -1.4862    
  21  norm          .10000E-03    11.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8723        .98611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     107.46        47.460        .38796E-04   -1.3631    
  25  Prefactor     6.9714        16.004        .15192E-03   -1.5180    
  26  Prefactor     .10000E-03    4.3345        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10013E-03    45.162        .35444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88337        .25534        .31798E-03   -.97047    
  29  Prefactor     1.1010        .18794        .21413E-03   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.11759e-09
Minuit parameter uncertainties:
  1  8.7179e-05
  2  71.9645
  3  1.63072e-07
  4  10.3218
  5  0.000450545
  6  0.000130376
  7  5.25418
  8  18.8375
  9  8.68298e-06
  10  23.6243
  11  0.000114226
  12  10.3561
  13  1.41031
  14  2.26963e-05
  15  4.03753e-05
  16  1.77675e-05
  17  0.000970846
  18  124.309
  19  5.77779e-06
  20  27.8661
  21  1.61852e-05
  22  1.53301e-05
  23  3.68725e-06
  24  47.4764
  25  16.014
  26  4.97866e-06
  27  0.00487216
  28  0.255694
  29  0.188057
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.619e-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:  1.101e+00  1.881e-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:  8.834e-01  2.557e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/31428/likelihoodResults_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.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) = 5485.81433933
delta logL = -0.000411348330999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5485.81392926
delta logL = -1.2783712009e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10897E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4799       1.0000          .0000       5.0000    
     3 'Normalizat'    .88304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1012       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=   5485.814     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      247 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    469.13        .18142E-01** at limit **
   2  alpha         1.7604        3.0221        .16461        .38675E-08
   3  Normalizat    .88338        .30216E-01    .31798E-03    .56846E-04
   4  Prefactor     1.1010        .22611E-01    .21414E-03    .77534E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.76041
  Normalizat = 0.883377
  Prefactor  = 1.101
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.814     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.248        .29800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7604        3.3800        .65845E-02   -.30033    
   3  Normalizat    .88338        .24580        .12719E-04   -.97047    
   4  Prefactor     1.1010        .18405        .42827E-04   -.89435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06975e-12
Minuit parameter uncertainties:
  1  2.12174e-05
  2  483.146
  3  0.246114
  4  0.184159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31428': 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) = 5485.81392659
delta logL = 1.39316580317e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.101e+00  1.842e-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:  8.834e-01  2.461e-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/31428/cmap_HighResolution_376704001_376963201_4FGL_J2335.4-0128_daily_bin530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='5.96e-08', time_completed='2021-09-30 00:31:50.535009', job_id='31428', GAL2='1.10', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632987110.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='530' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 31428: <4FGL_J2335.4-0128_daily_bin530> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin530> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep 30 00:15:32 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:15:35 2021
Terminated at Thu Sep 30 00:31:51 2021
Results reported at Thu Sep 30 00:31:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin530 353.869 -1.476 376704001 376963201 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 :                                   790.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            979 sec.

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

