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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1179
RA = 353.869, Dec = -1.476
tmin = 544924801, tmax = 545184001
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='34394', job_status='RUN', time_executed='2021-09-30 00:25:31.049632', time_epoch_executed='1632986731.05' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34394

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34394/ft1_4FGL_J2335.4-0128_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34394/ft2_4FGL_J2335.4-0128_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34394/ft1_4FGL_J2335.4-0128_daily_bin1179.fits outfile=/scratch/kocevski/34394/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1179.fits ra=353.869 dec=-1.476 rad=12.0 tmin=544924801.0 tmax=545184001.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 4.12
user 3.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34394/ft2_4FGL_J2335.4-0128_daily_bin1179.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/34394/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/34394/ft1_filtered_4FGL_J2335.4-0128_daily_bin1179.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34394/ft1_filtered_4FGL_J2335.4-0128_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/34394/ft2_4FGL_J2335.4-0128_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/34394/ltcube_544924801_545184001_4FGL_J2335.4-0128_daily_bin1179.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/34394/ft2_4FGL_J2335.4-0128_daily_bin1179.fits
.....................!
real 11.69
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34394/ft1_filtered_4FGL_J2335.4-0128_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/34394/ft2_4FGL_J2335.4-0128_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/34394/ltcube_544924801_545184001_4FGL_J2335.4-0128_daily_bin1179.fits outfile=/scratch/kocevski/34394/expmap_544924801_545184001_4FGL_J2335.4-0128_daily_bin1179.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/34394/ltcube_544924801_545184001_4FGL_J2335.4-0128_daily_bin1179.fits
.....................!
real 192.29
user 186.72
sys 5.24

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/34394/ft1_filtered_4FGL_J2335.4-0128_daily_bin1179.fits scfile=/scratch/kocevski/34394/ft2_4FGL_J2335.4-0128_daily_bin1179.fits outfile=/scratch/kocevski/34394/cmap_544924801_545184001_4FGL_J2335.4-0128_daily_bin1179.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.35
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34394/ft1_filtered_4FGL_J2335.4-0128_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/34394/ft2_4FGL_J2335.4-0128_daily_bin1179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34394/Model_4FGL_J2335.4-0128_daily_bin1179.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/34394/ft1_filtered_4FGL_J2335.4-0128_daily_bin1179.fits.....................!
real 30.29
user 29.01
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .86228E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    172.71       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.411       1.0000         .10000E-03   10000.    
     5 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    43.642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    88.692       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1047       1.0000         .10000E-03   10000.    
    14 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.760       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    48.123       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .62345E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11563E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.821       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10148E-03   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'    .61590       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96077       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=   2246.841     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3719 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    21.268        .11206E-04** at limit **
   2  Prefactor     172.62        159.60       -.69006E-04   -.41333E-03
   3  Prefactor     .10000E-03    20.606        .91034E-06** at limit **
   4  Prefactor     12.410        16.840        .90722E-05   -.37702E-03
   5  norm          .10001E-03    7.3659        .16720E-06** at limit **
   6  Prefactor     .10000E-03    19.706       -.27522E-05** at limit **
   7  norm          .10000E-03    4.1059        .16058E-06** at limit **
   8  norm          43.642        28.208       -.24908E-05    .47567E-04
   9  Prefactor     19.881        118.89       -.22582E-03    .17408E-04
  10  Prefactor     .10000E-03    16.073       -.70759E-06** at limit **
  11  Prefactor     88.677        75.840       -.13357E-04   -.12998E-04
  12  Prefactor     .10000E-03    14.720        .30436E-05** at limit **
  13  norm          5.1047        2.2820       -.30780E-06    .11105E-03
  14  norm          .10000E-03    14.809       -.34769E-05** at limit **
  15  Prefactor     55.817        74.990        .61575E-04    .13300E-04
  16  Prefactor     .10000E-03    93.182        .14292E-04** at limit **
  17  norm          48.060        105.28       -.84039E-04    .14109E-04
  18  Prefactor     .10000E-03    299.95       -.70499E-04** at limit **
  19  Prefactor     .10000E-03    16.913        .22226E-05** at limit **
  20  Prefactor     .10001E-03    127.84       -.68051E-05** at limit **
  21  norm          .10000E-03    47.076        .90813E-05** at limit **
  22  Prefactor     .10000E-03    102.18        .17386E-04** at limit **
  23  Prefactor     24.819        13.290       -.85453E-06   -.20491E-03
  24  Prefactor     .10000E-03    77.437       -.65917E-05** at limit **
  25  Prefactor     .10000E-03    111.33        .13433E-04** at limit **
  26  Prefactor     .10000E-03    64.952       -.25400E-04** at limit **
  27  Prefactor     .10000E-03    6.6434       -.54921E-07** at limit **
  28  Normalizat    .61584        .36385        .14607E-04   -.35128E-03
  29  Prefactor     .96081        .25147        .76561E-05   -.61496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100174
  Prefactor  = 172.615
  Prefactor  = 0.0001
  Prefactor  = 12.4098
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 43.6422
  Prefactor  = 19.8809
  Prefactor  = 0.0001
  Prefactor  = 88.6767
  Prefactor  = 0.0001
  norm       = 5.10473
  norm       = 0.0001
  Prefactor  = 55.8169
  Prefactor  = 0.0001
  norm       = 48.0601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.615841
  Prefactor  = 0.96081
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.841     FROM HESSE     STATUS=OK           533 CALLS     4252 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    150.85        .39145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     172.62        155.52        .15352E-03   -1.3073    
   3  Prefactor     .10000E-03    20.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.410        16.803        .11370E-03   -1.5003    
   5  norm          .10001E-03    17.248        .24988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.1080        .93745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          43.642        28.133        .60686E-04   -1.4386    
   9  Prefactor     19.881        118.55        .89559E-04   -1.4816    
  10  Prefactor     .10000E-03    16.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     88.677        75.857        .42664E-04   -1.3822    
  12  Prefactor     .10000E-03    14.821        .17725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1047        2.2763        .44626E-04   -1.5256    
  14  norm          .10000E-03    15.204        .35535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     55.817        75.060        .53719E-04   -1.4212    
  16  Prefactor     .10000E-03    93.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          48.060        105.17        .57804E-04   -1.4320    
  18  Prefactor     .10000E-03    299.93        .21044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    127.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    47.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    102.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.819        13.275        .80404E-04   -1.4711    
  24  Prefactor     .10000E-03    77.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    111.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    65.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.6544        .11928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .61584        .40104        .36567E-03   -1.0732    
  29  Prefactor     .96081        .28355        .22104E-03   -.94047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43864e-09
Minuit parameter uncertainties:
  1  0.0102672
  2  155.895
  3  1.40641e-05
  4  16.8096
  5  0.000754004
  6  0.000153464
  7  3.34493e-05
  8  28.1417
  9  97.3853
  10  5.43295e-05
  11  75.9404
  12  0.000123052
  13  2.2763
  14  2.11662e-05
  15  75.188
  16  0.000186115
  17  105.584
  18  0.000106468
  19  2.12316e-05
  20  0.00194383
  21  8.55647e-05
  22  0.000381983
  23  13.2761
  24  0.000164008
  25  0.00020817
  26  6.9427e-06
  27  1.32677e-05
  28  0.402951
  29  0.283985
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  8.556e-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:  9.608e-01  2.840e-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:  6.158e-01  4.030e-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: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34394/likelihoodResults_544924801_545184001_4FGL_J2335.4-0128_daily_bin1179.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) = 2246.84139691
delta logL = -6.9312177402e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2246.84149104
delta logL = -0.000101064029877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96360E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5075       1.0000          .0000       5.0000    
     3 'Normalizat'    .61582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96083       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=   2246.841     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      196 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    46.398        .90712E-02** at limit **
   2  alpha         2.5103        3.5557        .41152       -.30671E-06
   3  Normalizat    .61584        .32573        .82556E-01    .81029E-05
   4  Prefactor     .96081        .24432        .45776E-01    .29729E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.51032
  Normalizat = 0.615843
  Prefactor  = 0.960813
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.841     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    46.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5103        3.5544        .50000        .41261E-02
   3  Normalizat    .61584        .36238        .36566E-03   -1.0732    
   4  Prefactor     .96081        .27258        .22104E-03   -.94047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46928e-13
Minuit parameter uncertainties:
  1  3.27399e-05
  2  2.50055
  3  0.363789
  4  0.272973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34394': 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) = 2246.84138997
delta logL = 1.11140252557e-09

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  3.274e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.510e+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:  9.608e-01  2.730e-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:  6.158e-01  3.638e-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/34394/cmap_HighResolution_544924801_545184001_4FGL_J2335.4-0128_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-05', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2021-09-30 00:33:25.118941', job_id='34394', GAL2='0.96', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632987205.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1179' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:33:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 34394: <4FGL_J2335.4-0128_daily_bin1179> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin1179> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:25:22 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:25:23 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:25:23 2021
Terminated at Thu Sep 30 00:33:26 2021
Results reported at Thu Sep 30 00:33:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1179 353.869 -1.476 544924801 545184001 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 :                                   471.59 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   482 sec.
    Turnaround time :                            484 sec.

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

