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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin315
RA = 353.869, Dec = -1.476
tmin = 320976001, tmax = 321235201
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='30113', job_status='RUN', time_executed='2021-09-30 00:10:47.092284', time_epoch_executed='1632985847.09' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/30113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/30113/ft1_4FGL_J2335.4-0128_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/30113/ft2_4FGL_J2335.4-0128_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/30113/ft1_4FGL_J2335.4-0128_daily_bin315.fits outfile=/scratch/kocevski/30113/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin315.fits ra=353.869 dec=-1.476 rad=12.0 tmin=320976001.0 tmax=321235201.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.57
user 3.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/30113/ft1_filtered_4FGL_J2335.4-0128_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/30113/ft2_4FGL_J2335.4-0128_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/30113/ltcube_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.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/30113/ft2_4FGL_J2335.4-0128_daily_bin315.fits
.....................!
real 11.75
user 11.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/30113/ft1_filtered_4FGL_J2335.4-0128_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/30113/ft2_4FGL_J2335.4-0128_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/30113/ltcube_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.fits outfile=/scratch/kocevski/30113/expmap_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.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/30113/ltcube_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.fits
.....................!
real 191.30
user 185.73
sys 5.23

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/30113/ft1_filtered_4FGL_J2335.4-0128_daily_bin315.fits scfile=/scratch/kocevski/30113/ft2_4FGL_J2335.4-0128_daily_bin315.fits outfile=/scratch/kocevski/30113/cmap_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/30113/ft1_filtered_4FGL_J2335.4-0128_daily_bin315.fits scfile=/scratch/kocevski/30113/ft2_4FGL_J2335.4-0128_daily_bin315.fits outfile=/scratch/kocevski/30113/cmap_HighResolution_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.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/30113/ft1_filtered_4FGL_J2335.4-0128_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/30113/ft2_4FGL_J2335.4-0128_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/30113/Model_4FGL_J2335.4-0128_daily_bin315.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/30113/ft1_filtered_4FGL_J2335.4-0128_daily_bin315.fits.....................!
real 60.35
user 59.15
sys 1.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51142       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.956       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44004E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6376       1.0000         .10000E-03   10000.    
    13 'norm      '    .69117       1.0000         .10000E-03   10000.    
    14 'norm      '    10.511       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.9336       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    108.68       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10983E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.196       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2284       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3398       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=   5560.541     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3703 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49824        5.8673        .15265E-05   -.10971E-02
   2  Prefactor     .10000E-03    21.384       -.61107E-05** at limit **
   3  Prefactor     .10000E-03    6.2649        .50219E-07** at limit **
   4  Prefactor     .10000E-03    2.3347       -.49961E-07** at limit **
   5  norm          .10000E-03    1.6947       -.22263E-06** at limit **
   6  Prefactor     .10000E-03    9.7012       -.61641E-06** at limit **
   7  norm          .10000E-03    1.9932       -.51119E-07** at limit **
   8  norm          10.959        22.274       -.16099E-05    .10610E-03
   9  Prefactor     .10000E-03    49.616       -.26237E-04** at limit **
  10  Prefactor     .10002E-03    159.32       -.76209E-04** at limit **
  11  Prefactor     .10000E-03    43.039       -.34084E-04** at limit **
  12  Prefactor     8.6413        11.464       -.10760E-05    .13137E-03
  13  norm          .69112        1.1724       -.12829E-06   -.81903E-03
  14  norm          10.512        8.6419       -.16201E-05    .97452E-04
  15  Prefactor     .10000E-03    5.9261       -.10832E-06** at limit **
  16  Prefactor     .10000E-03    75.256        .77123E-04** at limit **
  17  norm          .10000E-03    4.7973       -.34418E-07** at limit **
  18  Prefactor     .10000E-03    58.289        .42216E-05** at limit **
  19  Prefactor     9.9373        11.318       -.17654E-06   -.23009E-03
  20  Prefactor     .10000E-03    27.632        .29637E-04** at limit **
  21  norm          .10000E-03    17.627        .10257E-04** at limit **
  22  Prefactor     .10000E-03    19.453       -.15645E-04** at limit **
  23  Prefactor     .10000E-03    1.2234        .26571E-07** at limit **
  24  Prefactor     108.66        65.389       -.17845E-04   -.24242E-03
  25  Prefactor     .10000E-03    121.83        .72639E-04** at limit **
  26  Prefactor     21.199        19.621       -.49262E-06   -.27708E-04
  27  Prefactor     .10000E-03    2.7289       -.47041E-07** at limit **
  28  Normalizat    1.2279        .25661        .40810E-05   -.11187E-03
  29  Prefactor     1.3400        .18782        .49253E-06   -.11767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.49824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.9588
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 8.64126
  norm       = 0.69112
  norm       = 10.5123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.93729
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 108.657
  Prefactor  = 0.000100001
  Prefactor  = 21.1994
  Prefactor  = 0.0001
  Normalizat = 1.22794
  Prefactor  = 1.33996
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.541     FROM HESSE     STATUS=OK           547 CALLS     4250 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49824        15.492        .35078E-02   -1.5567    
   2  Prefactor     .10000E-03    21.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.3405        .11127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9814        .18767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0122        .10279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.959        22.275        .12104E-03   -1.5046    
   9  Prefactor     .10000E-03    50.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    164.59        .36963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6413        11.443        .13639E-03   -1.5120    
  13  norm          .69112        1.0813        .98664E-03   -1.5542    
  14  norm          10.512        8.6031        .12358E-03   -1.5059    
  15  Prefactor     .10000E-03    5.9419        .17727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    75.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8255        .15950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.9373        11.265        .12714E-03   -1.5077    
  20  Prefactor     .10000E-03    27.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    17.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.2250        .80518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     108.66        65.928        .38580E-04   -1.3619    
  25  Prefactor     .10000E-03    124.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.199        19.649        .86999E-04   -1.4787    
  27  Prefactor     .10000E-03    2.7342        .12030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2279        .30206        .31921E-03   -.85744    
  29  Prefactor     1.3400        .22368        .23154E-03   -.82126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80321e-09
Minuit parameter uncertainties:
  1  5.55753
  2  2.03237e-05
  3  4.71618e-06
  4  4.79862e-06
  5  4.19668e-05
  6  1.56115e-05
  7  7.04073e-06
  8  22.2921
  9  0.000195324
  10  0.00354139
  11  7.19936e-05
  12  11.4462
  13  1.08134
  14  8.60412
  15  8.77928e-06
  16  8.54819e-05
  17  1.00769e-05
  18  7.20978e-06
  19  11.2671
  20  6.48675e-05
  21  1.57236e-05
  22  5.29166e-07
  23  2.48921e-06
  24  65.9723
  25  0.000761467
  26  19.6546
  27  5.08455e-06
  28  0.302496
  29  0.223844
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.572e-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.340e+00  2.238e-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.228e+00  3.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/30113/likelihoodResults_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.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) = 5560.5414475
delta logL = -0.000269548538199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5560.54118461
delta logL = -6.65243987896e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2463       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3400       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=   5560.541     FROM MIGRAD    STATUS=CONVERGED    120 CALLS      294 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    759.33        .17327E-01** at limit **
   2  alpha         1.6717        2.9841        .17500        .55870E-08
   3  Normalizat    1.2279        .29716E-01    .31921E-03    .10613E-04
   4  Prefactor     1.3400        .22489E-01    .23154E-03    .14337E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.67167
  Normalizat = 1.22794
  Prefactor  = 1.33996
 **********
 **   18 **HESSE 
 **********

 FCN=   5560.541     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    39.479        .34655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6717        4.1618        .69999E-02   -.33771    
   3  Normalizat    1.2279        .29310        .12768E-04   -.85744    
   4  Prefactor     1.3400        .22194        .92617E-05   -.82126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54441e-12
Minuit parameter uncertainties:
  1  1.92103e-05
  2  529.187
  3  0.293491
  4  0.222098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/30113': 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) = 5560.54117643
delta logL = 1.52307984536e-06

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.921e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.672e+00  5.292e+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.340e+00  2.221e-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.228e+00  2.935e-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/30113/cmap_HighResolution_320976001_321235201_4FGL_J2335.4-0128_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2021-09-30 00:23:01.233227', job_id='30113', GAL2='1.34', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632986581.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='1.52e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='315' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:23:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 30113: <4FGL_J2335.4-0128_daily_bin315> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin315> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:33 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10: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:10:35 2021
Terminated at Thu Sep 30 00:23:01 2021
Results reported at Thu Sep 30 00:23:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin315 353.869 -1.476 320976001 321235201 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 :                                   728.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            748 sec.

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

