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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin913
RA = 353.869, Dec = -1.476
tmin = 475977601, tmax = 476236801
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='33041', job_status='RUN', time_executed='2021-09-30 00:22:46.240382', time_epoch_executed='1632986566.24' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33041/ft1_4FGL_J2335.4-0128_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33041/ft2_4FGL_J2335.4-0128_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33041/ft1_4FGL_J2335.4-0128_daily_bin913.fits outfile=/scratch/kocevski/33041/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin913.fits ra=353.869 dec=-1.476 rad=12.0 tmin=475977601.0 tmax=476236801.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.53
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33041/ft2_4FGL_J2335.4-0128_daily_bin913.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/33041/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin913.fits evtable="EVENTS" outfile="/scratch/kocevski/33041/ft1_filtered_4FGL_J2335.4-0128_daily_bin913.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/33041/ft1_filtered_4FGL_J2335.4-0128_daily_bin913.fits" evtable="EVENTS" scfile=/scratch/kocevski/33041/ft2_4FGL_J2335.4-0128_daily_bin913.fits sctable="SC_DATA" outfile=/scratch/kocevski/33041/ltcube_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.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/33041/ft2_4FGL_J2335.4-0128_daily_bin913.fits
.....................!
real 12.28
user 11.92
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33041/ft1_filtered_4FGL_J2335.4-0128_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/33041/ft2_4FGL_J2335.4-0128_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/33041/ltcube_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.fits outfile=/scratch/kocevski/33041/expmap_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.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/33041/ltcube_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.fits
.....................!
real 190.15
user 184.65
sys 5.20

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/33041/ft1_filtered_4FGL_J2335.4-0128_daily_bin913.fits scfile=/scratch/kocevski/33041/ft2_4FGL_J2335.4-0128_daily_bin913.fits outfile=/scratch/kocevski/33041/cmap_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/33041/ft1_filtered_4FGL_J2335.4-0128_daily_bin913.fits scfile=/scratch/kocevski/33041/ft2_4FGL_J2335.4-0128_daily_bin913.fits outfile=/scratch/kocevski/33041/cmap_HighResolution_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.5205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.094       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .76998       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4116       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13965E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.948       1.0000         .10000E-03   10000.    
    17 'norm      '    35.555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.427       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.825       1.0000         .10000E-03   10000.    
    21 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4810       1.0000         .10000E-03   10000.    
    24 'Prefactor '    64.783       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.385       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.9052       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0121       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97887       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=   5786.725     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     4205 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5819       -.91586E-07** at limit **
   2  Prefactor     .10000E-03    16.353        .28154E-09** at limit **
   3  Prefactor     .10000E-03    6.0242        .31649E-07** at limit **
   4  Prefactor     .10000E-03    1.9064        .89813E-08** at limit **
   5  norm          .10000E-03    1.2660        .50603E-07** at limit **
   6  Prefactor     .10000E-03    7.2685        .73669E-08** at limit **
   7  norm          .10000E-03    1.1503        .76372E-08** at limit **
   8  norm          7.5185        13.052        .49572E-06   -.10789E-06
   9  Prefactor     19.094        38.815        .24958E-06   -.99139E-05
  10  Prefactor     .10000E-03    11.438        .79724E-07** at limit **
  11  Prefactor     .10000E-03    20.796       -.12668E-07** at limit **
  12  Prefactor     .10000E-03    3.6919       -.52537E-07** at limit **
  13  norm          .76999        .89584       -.26755E-06   -.30548E-03
  14  norm          1.4114        3.6267        .80944E-06    .26810E-04
  15  Prefactor     .10003E-03    12.793        .10942E-05** at limit **
  16  Prefactor     18.941        28.276        .10556E-06   -.91957E-05
  17  norm          35.546        14.812       -.12583E-06   -.24598E-03
  18  Prefactor     26.202        185.18       -.14949E-05   -.24735E-04
  19  Prefactor     .10000E-03    4.1383       -.18614E-06** at limit **
  20  Prefactor     22.820        28.546       -.17822E-06   -.76860E-04
  21  norm          .10000E-03    7.5403       -.96500E-07** at limit **
  22  Prefactor     .10000E-03    21.952       -.40180E-07** at limit **
  23  Prefactor     3.4796        5.4920        .62287E-06    .69430E-05
  24  Prefactor     64.786        42.556        .24108E-06   -.13687E-04
  25  Prefactor     24.389        27.692        .23454E-06   -.10246E-04
  26  Prefactor     .10000E-03    5.3027        .45695E-07** at limit **
  27  Prefactor     7.9045        9.7327        .31811E-05   -.42679E-04
  28  Normalizat    1.0124        .21407       -.21824E-05   -.10740E-04
  29  Prefactor     .97869        .14980        .83320E-06   -.21986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.5185
  Prefactor  = 19.0943
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.769994
  norm       = 1.41142
  Prefactor  = 0.000100033
  Prefactor  = 18.9413
  norm       = 35.5456
  Prefactor  = 26.2017
  Prefactor  = 0.0001
  Prefactor  = 22.8201
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.47959
  Prefactor  = 64.786
  Prefactor  = 24.3885
  Prefactor  = 0.0001
  Prefactor  = 7.90451
  Normalizat = 1.01236
  Prefactor  = 0.97869
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.725     FROM HESSE     STATUS=OK           549 CALLS     4754 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9126        .10257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2860        .83552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1548        .79669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.5185        13.052        .14624E-03   -1.5160    
   9  Prefactor     19.094        38.830        .91659E-04   -1.4834    
  10  Prefactor     .10000E-03    11.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7002        .14266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76999        .85903        .73178E-03   -1.5532    
  14  norm          1.4114        3.5868        .22486E-03   -1.5470    
  15  Prefactor     .10003E-03    65.910        .48107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.941        28.275        .92011E-04   -1.4837    
  17  norm          35.546        14.223        .67209E-04   -1.4515    
  18  Prefactor     26.202        185.75        .38964E-03   -1.4684    
  19  Prefactor     .10000E-03    4.1412        .15104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.820        28.176        .83842E-04   -1.4752    
  21  norm          .10000E-03    7.5449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4796        5.4889        .20267E-03   -1.5335    
  24  Prefactor     64.786        42.570        .49860E-04   -1.4096    
  25  Prefactor     24.389        27.689        .81119E-04   -1.4720    
  26  Prefactor     .10000E-03    5.3070        .17108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.9045        9.6829        .71305E-03   -1.5146    
  28  Normalizat    1.0124        .24360        .29029E-03   -.92618    
  29  Prefactor     .97869        .17187        .21556E-03   -.93443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7938e-10
Minuit parameter uncertainties:
  1  1.79992e-05
  2  1.29785e-06
  3  1.29359e-06
  4  2.96443e-07
  5  1.90523e-06
  6  8.59869e-07
  7  2.67345e-07
  8  13.0572
  9  38.8811
  10  5.66582e-06
  11  2.04937e-06
  12  3.3248e-06
  13  0.859046
  14  3.58733
  15  0.00295805
  16  28.2952
  17  14.2244
  18  140.15
  19  1.0819e-06
  20  28.1921
  21  4.3109e-06
  22  3.56969e-07
  23  5.48965
  24  42.5901
  25  27.7035
  26  1.25444e-06
  27  9.68478
  28  0.243872
  29  0.171962
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  4.311e-06  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.787e-01  1.720e-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.012e+00  2.439e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33041/likelihoodResults_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.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) = 5786.72570727
delta logL = -0.000629654191471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5786.72507758
delta logL = 3.42788553098e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4933       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97869       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5786.719     FROM MIGRAD    STATUS=FAILED       149 CALLS      287 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62148E-01    25.694        .18142E-01    .16460E-02
   2  alpha         5.0000        4.9993        .50000    ** at limit **
   3  Normalizat    1.0029        .69514E-01    .29029E-03   -.18015E-04
   4  Prefactor     .98262        .40443E-01    .21556E-03   -.51423E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5786.719     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      442 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62148E-01    25.694        .57399E-06    .16460E-02
   2  alpha         5.0000        4.9993        .12361E-01** at limit **
   3  Normalizat    1.0029        .69514E-01    .75831E-07   -.18015E-04
   4  Prefactor     .98262        .40443E-01    .56308E-08   -.51423E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5786.719     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      492 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62148E-01    1.5343         .0000        .66709E-02
   2  alpha         5.0000        4.8868         .0000    ** at limit **
   3  Normalizat    1.0029        .25631         .0000       -.18211E-04
   4  Prefactor     .98262        .17510         .0000       -.51423E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0621484
  alpha      = 5
  Normalizat = 1.00288
  Prefactor  = 0.982618
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.719     FROM HESSE     STATUS=OK            31 CALLS      523 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62148E-01    1.6115        .17511E-03   -1.5658    
   2  alpha         5.0000        4.8142        .50000       -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0029        .25609        .23223E-05   -.92934    
   4  Prefactor     .98262        .17518        .17244E-05   -.93311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15013e-12
Minuit parameter uncertainties:
  1  0.632454
  2  2.83595e-05
  3  0.256409
  4  0.175277
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33041': 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) = 5786.71896913
delta logL = 0.00610848415909

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  6.215e-02  6.325e-01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  5.000e+00  2.836e-05  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.826e-01  1.753e-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.003e+00  2.564e-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/33041/cmap_HighResolution_475977601_476236801_4FGL_J2335.4-0128_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-05', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-30 00:35:36.261292', job_id='33041', GAL2='0.98', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1632987336.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='6.11e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='913' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 33041: <4FGL_J2335.4-0128_daily_bin913> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin913 353.869 -1.476 475977601 476236801 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 :                                   768.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

