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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin214
RA = 353.869, Dec = -1.476
tmin = 294796801, tmax = 295056001
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='29956', job_status='RUN', time_executed='2021-09-30 00:12:28.211311', time_epoch_executed='1632985948.21' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='214'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29956/ft1_4FGL_J2335.4-0128_daily_bin214.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29956/ft2_4FGL_J2335.4-0128_daily_bin214.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29956/ft1_4FGL_J2335.4-0128_daily_bin214.fits outfile=/scratch/kocevski/29956/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin214.fits ra=353.869 dec=-1.476 rad=12.0 tmin=294796801.0 tmax=295056001.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.36
user 2.18
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29956/ft1_filtered_4FGL_J2335.4-0128_daily_bin214.fits" evtable="EVENTS" scfile=/scratch/kocevski/29956/ft2_4FGL_J2335.4-0128_daily_bin214.fits sctable="SC_DATA" outfile=/scratch/kocevski/29956/ltcube_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.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/29956/ft2_4FGL_J2335.4-0128_daily_bin214.fits
.....................!
real 12.57
user 12.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29956/ft1_filtered_4FGL_J2335.4-0128_daily_bin214.fits evtable="EVENTS" scfile=/scratch/kocevski/29956/ft2_4FGL_J2335.4-0128_daily_bin214.fits sctable="SC_DATA" expcube=/scratch/kocevski/29956/ltcube_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.fits outfile=/scratch/kocevski/29956/expmap_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.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/29956/ltcube_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.fits
.....................!
real 192.59
user 187.46
sys 4.77

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/29956/ft1_filtered_4FGL_J2335.4-0128_daily_bin214.fits scfile=/scratch/kocevski/29956/ft2_4FGL_J2335.4-0128_daily_bin214.fits outfile=/scratch/kocevski/29956/cmap_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.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/29956/ft1_filtered_4FGL_J2335.4-0128_daily_bin214.fits scfile=/scratch/kocevski/29956/ft2_4FGL_J2335.4-0128_daily_bin214.fits outfile=/scratch/kocevski/29956/cmap_HighResolution_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7074       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7828       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.6236       1.0000         .10000E-03   10000.    
     8 'norm      '    48.325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    50.930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13241E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .63913       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5899       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.834       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.897       1.0000         .10000E-03   10000.    
    24 'Prefactor '    58.029       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8447       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97277       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89338       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=   7334.206     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3786 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5094        5.4706        .29908E-05   -.19343E-02
   2  Prefactor     .10000E-03    14.528       -.47300E-06** at limit **
   3  Prefactor     .10000E-03    7.7838       -.47973E-06** at limit **
   4  Prefactor     4.7071        4.8599        .14428E-05    .37844E-03
   5  norm          2.7821        2.2251       -.10632E-06   -.90669E-04
   6  Prefactor     .10000E-03    5.2083       -.13235E-07** at limit **
   7  norm          6.6231        3.9713       -.90663E-06   -.33851E-03
   8  norm          48.323        18.379       -.25361E-06   -.24599E-04
   9  Prefactor     5.3915        74.581       -.28328E-04   -.12788E-03
  10  Prefactor     .10000E-03    27.850        .27509E-06** at limit **
  11  Prefactor     50.902        43.318       -.38144E-05   -.36867E-03
  12  Prefactor     .10003E-03    4.4347        .82569E-06** at limit **
  13  norm          .63915        .67017       -.16370E-08   -.37131E-03
  14  norm          .10000E-03    1.7257       -.82037E-08** at limit **
  15  Prefactor     .10000E-03    3.5600       -.11939E-07** at limit **
  16  Prefactor     .10000E-03    12.981        .65196E-06** at limit **
  17  norm          15.276        9.4912        .22403E-06    .77362E-04
  18  Prefactor     .10000E-03    185.30        .88712E-05** at limit **
  19  Prefactor     8.5881        11.429        .35117E-06   -.50882E-03
  20  Prefactor     .10000E-03    52.288       -.14377E-06** at limit **
  21  norm          .10000E-03    7.8742        .40686E-06** at limit **
  22  Prefactor     10.828        41.559       -.36553E-05   -.40705E-04
  23  Prefactor     10.896        5.3745        .13917E-06   -.12217E-02
  24  Prefactor     58.026        38.393       -.14551E-05   -.39516E-04
  25  Prefactor     1.8448        48.234       -.55833E-06   -.31425E-04
  26  Prefactor     .10000E-03    11.204       -.19725E-06** at limit **
  27  Prefactor     .10000E-03    1.6243       -.30907E-07** at limit **
  28  Normalizat    .97308        .19246        .21282E-05   -.13818E-03
  29  Prefactor     .89319        .12857       -.22917E-06    .19947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.7071
  norm       = 2.78209
  Prefactor  = 0.0001
  norm       = 6.6231
  norm       = 48.3232
  Prefactor  = 5.39147
  Prefactor  = 0.0001
  Prefactor  = 50.9019
  Prefactor  = 0.000100028
  norm       = 0.639155
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2764
  Prefactor  = 0.000100004
  Prefactor  = 8.58812
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8281
  Prefactor  = 10.8959
  Prefactor  = 58.0259
  Prefactor  = 1.8448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.97308
  Prefactor  = 0.89319
 **********
 **   18 **HESSE 
 **********

 FCN=   7334.206     FROM HESSE     STATUS=OK           563 CALLS     4349 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5094        7.4795        .10788E-02   -1.5333    
   2  Prefactor     .10000E-03    14.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7071        4.8749        .17412E-03   -1.5274    
   5  norm          2.7821        2.2235        .10897E-03   -1.5374    
   6  Prefactor     .10000E-03    5.2148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.6231        3.9746        .11897E-03   -1.5193    
   8  norm          48.323        18.428        .57683E-04   -1.4317    
   9  Prefactor     5.3915        79.009        .17212E-03   -1.5244    
  10  Prefactor     .10000E-03    28.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     50.902        45.286        .56196E-04   -1.4280    
  12  Prefactor     .10003E-03    7.9014        .57485E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .63915        .63060        .68554E-03   -1.5548    
  14  norm          .10000E-03    1.7368        .10981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.5661        .15775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.276        9.4895        .10248E-03   -1.4926    
  18  Prefactor     .10000E-03    185.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.5881        11.477        .68386E-03   -1.5122    
  20  Prefactor     .10000E-03    53.614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.8784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.828        41.632        .12172E-03   -1.5050    
  23  Prefactor     10.896        5.4067        .59585E-03   -1.5048    
  24  Prefactor     58.026        38.414        .52664E-04   -1.4183    
  25  Prefactor     1.8448        48.433        .30705E-03   -1.5436    
  26  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    1.6289        .10659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97308        .22134        .28704E-03   -.93938    
  29  Prefactor     .89319        .14687        .21724E-03   -.96379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15602e-09
Minuit parameter uncertainties:
  1  7.48148
  2  4.37975e-05
  3  3.19791e-05
  4  4.87535
  5  2.22352
  6  2.24016e-06
  7  3.9748
  8  18.4301
  9  41.3436
  10  0.00013233
  11  45.3171
  12  0.000934171
  13  0.63061
  14  1.08801e-06
  15  6.53004e-07
  16  3.27009e-05
  17  9.49041
  18  0.00162219
  19  11.4796
  20  0.000126922
  21  1.18526e-05
  22  41.7441
  23  5.40693
  24  38.4308
  25  18.9215
  26  4.48397e-05
  27  4.06123e-06
  28  0.221548
  29  0.146939
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.185e-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.932e-01  1.469e-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.731e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 4.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29956/likelihoodResults_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.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) = 7334.20650331
delta logL = -0.000604183134783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7334.20589912
delta logL = -7.09405867383e-11

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.5033       1.0000          .0000       5.0000    
     3 'Normalizat'    .97308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89319       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=   7334.206     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9117        .90712E-02** at limit **
   2  alpha         2.5019        3.5551        .41152        .94465E-06
   3  Normalizat    .97308        .17291        .45829E-01    .18167E-04
   4  Prefactor     .89319        .12665        .44918E-01    .99577E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.50186
  Normalizat = 0.973082
  Prefactor  = 0.893189
 **********
 **   18 **HESSE 
 **********

 FCN=   7334.206     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.8637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5019        3.5527        .50000        .74337E-03
   3  Normalizat    .97308        .19613        .28703E-03   -.93938    
   4  Prefactor     .89319        .14368        .21724E-03   -.96380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.00079e-13
Minuit parameter uncertainties:
  1  1.08542e-06
  2  2.50143
  3  0.196275
  4  0.143743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29956': 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) = 7334.20589912
delta logL = 1.17324816529e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.085e-06  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.502e+00  2.501e+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.932e-01  1.437e-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.731e-01  1.963e-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/29956/cmap_HighResolution_294796801_295056001_4FGL_J2335.4-0128_daily_bin214.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-05', job_status='DONE', photon_flux_upper_limit='4.50e-08', time_completed='2021-09-30 00:26:33.455954', job_id='29956', GAL2='0.89', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632986793.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.17e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='214' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:26:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 29956: <4FGL_J2335.4-0128_daily_bin214> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin214> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:19 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 00:10:21 2021
Terminated at Thu Sep 30 00:26:34 2021
Results reported at Thu Sep 30 00:26:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin214 353.869 -1.476 294796801 295056001 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 :                                   843.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

