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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin463
RA = 353.869, Dec = -1.476
tmin = 359337601, tmax = 359596801
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='31324', job_status='RUN', time_executed='2021-09-30 00:17:37.512976', time_epoch_executed='1632986257.51' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31324/ft1_4FGL_J2335.4-0128_daily_bin463.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31324/ft2_4FGL_J2335.4-0128_daily_bin463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31324/ft1_4FGL_J2335.4-0128_daily_bin463.fits outfile=/scratch/kocevski/31324/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin463.fits ra=353.869 dec=-1.476 rad=12.0 tmin=359337601.0 tmax=359596801.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.35
user 3.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/31324/ft1_filtered_4FGL_J2335.4-0128_daily_bin463.fits" evtable="EVENTS" scfile=/scratch/kocevski/31324/ft2_4FGL_J2335.4-0128_daily_bin463.fits sctable="SC_DATA" outfile=/scratch/kocevski/31324/ltcube_359337601_359596801_4FGL_J2335.4-0128_daily_bin463.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/31324/ft2_4FGL_J2335.4-0128_daily_bin463.fits
.....................!
real 12.25
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31324/ft1_filtered_4FGL_J2335.4-0128_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/31324/ft2_4FGL_J2335.4-0128_daily_bin463.fits sctable="SC_DATA" expcube=/scratch/kocevski/31324/ltcube_359337601_359596801_4FGL_J2335.4-0128_daily_bin463.fits outfile=/scratch/kocevski/31324/expmap_359337601_359596801_4FGL_J2335.4-0128_daily_bin463.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/31324/ltcube_359337601_359596801_4FGL_J2335.4-0128_daily_bin463.fits
.....................!
real 192.20
user 186.43
sys 5.41

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/31324/ft1_filtered_4FGL_J2335.4-0128_daily_bin463.fits scfile=/scratch/kocevski/31324/ft2_4FGL_J2335.4-0128_daily_bin463.fits outfile=/scratch/kocevski/31324/cmap_359337601_359596801_4FGL_J2335.4-0128_daily_bin463.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/31324/ft1_filtered_4FGL_J2335.4-0128_daily_bin463.fits scfile=/scratch/kocevski/31324/ft2_4FGL_J2335.4-0128_daily_bin463.fits outfile=/scratch/kocevski/31324/cmap_HighResolution_359337601_359596801_4FGL_J2335.4-0128_daily_bin463.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/31324/ft1_filtered_4FGL_J2335.4-0128_daily_bin463.fits evtable="EVENTS" scfile=/scratch/kocevski/31324/ft2_4FGL_J2335.4-0128_daily_bin463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31324/Model_4FGL_J2335.4-0128_daily_bin463.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/31324/ft1_filtered_4FGL_J2335.4-0128_daily_bin463.fits.....................!
real 67.22
user 65.74
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.338       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1844       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16502E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10510E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5999       1.0000         .10000E-03   10000.    
     7 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .57082       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3386       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0144       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .92602       1.0000         .10000E-03   10000.    
    17 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.569       1.0000         .10000E-03   10000.    
    21 'norm      '    16.751       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5595       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.665       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .37158E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4543       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .29761E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98869       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87865       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=   6947.812     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3871 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5242        .11779E-06** at limit **
   2  Prefactor     28.386        48.152       -.58733E-05   -.25434E-03
   3  Prefactor     6.1859        9.6729        .12565E-06    .73413E-04
   4  Prefactor     .10000E-03    5.3307        .49849E-06** at limit **
   5  norm          .10000E-03    1.4379       -.13112E-06** at limit **
   6  Prefactor     4.6029        15.906        .25956E-06   -.13779E-03
   7  norm          .10000E-03    2.1501        .19752E-06** at limit **
   8  norm          .10000E-03    2.2894       -.36883E-07** at limit **
   9  Prefactor     .10000E-03    23.855        .12846E-06** at limit **
  10  Prefactor     .62177        18.950       -.51754E-05    .43145E-03
  11  Prefactor     .10000E-03    12.744       -.82813E-07** at limit **
  12  Prefactor     .10000E-03    6.6882       -.23323E-06** at limit **
  13  norm          2.3387        .97542       -.17494E-08    .25607E-03
  14  norm          .10000E-03    2.3493       -.82904E-07** at limit **
  15  Prefactor     5.0152        7.6760        .14689E-05    .81487E-03
  16  Prefactor     .91013        28.355        .43997E-05   -.17251E-03
  17  norm          .10000E-03    8.7292        .28185E-06** at limit **
  18  Prefactor     .10000E-03    59.255       -.12883E-06** at limit **
  19  Prefactor     2.8462        9.5433        .37651E-06    .64383E-04
  20  Prefactor     12.561        17.959        .14986E-06    .12704E-03
  21  norm          16.741        16.781       -.13619E-06    .91842E-06
  22  Prefactor     2.5703        152.64       -.58262E-06    .26885E-06
  23  Prefactor     .10000E-03    1.5673       -.23194E-07** at limit **
  24  Prefactor     12.648        25.202       -.15473E-05   -.58948E-04
  25  Prefactor     .10001E-03    15.812        .74158E-07** at limit **
  26  Prefactor     3.4546        13.577        .12808E-06    .44468E-06
  27  Prefactor     .10000E-03    3.1544       -.20498E-06** at limit **
  28  Normalizat    .98889        .17508       -.25572E-06    .60076E-05
  29  Prefactor     .87848        .12179        .64589E-06    .21975E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.3858
  Prefactor  = 6.18587
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.60292
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.621771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33868
  norm       = 0.0001
  Prefactor  = 5.01518
  Prefactor  = 0.910128
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84617
  Prefactor  = 12.5607
  norm       = 16.741
  Prefactor  = 2.57032
  Prefactor  = 0.0001
  Prefactor  = 12.6482
  Prefactor  = 0.000100007
  Prefactor  = 3.45458
  Prefactor  = 0.000100001
  Normalizat = 0.988887
  Prefactor  = 0.878479
 **********
 **   18 **HESSE 
 **********

 FCN=   6947.812     FROM HESSE     STATUS=OK           573 CALLS     4444 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5296        .12936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.386        49.171        .75259E-04   -1.4642    
   3  Prefactor     6.1859        9.5332        .16143E-03   -1.5210    
   4  Prefactor     .10000E-03    36.706        .32638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3099        .18975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.6029        14.903        .18767E-03   -1.5279    
   7  norm          .10000E-03    3.5078        .21510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2922        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .62177        48.784        .43217E-02   -1.5550    
  11  Prefactor     .10000E-03    12.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3387        .96962        .50164E-04   -1.5402    
  14  norm          .10000E-03    2.3796        .12473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0152        8.0157        .89789E-03   -1.5260    
  16  Prefactor     .91013        188.63        .69543E-02   -1.5517    
  17  norm          .10000E-03    9.0197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    59.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8462        9.4140        .24114E-03   -1.5371    
  20  Prefactor     12.561        17.944        .56493E-03   -1.4999    
  21  norm          16.741        16.605        .97860E-04   -1.4889    
  22  Prefactor     2.5703        153.28        .25518E-03   -1.5387    
  23  Prefactor     .10000E-03    1.5792        .10172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.648        25.080        .11256E-03   -1.4997    
  25  Prefactor     .10001E-03    20.980        .89128E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.4546        13.563        .21760E-03   -1.5336    
  27  Prefactor     .10000E-03    15.846        .28091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98889        .19783        .25500E-03   -.93404    
  29  Prefactor     .87848        .14217        .20229E-03   -.96897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.615e-09
Minuit parameter uncertainties:
  1  1.41968e-05
  2  49.2411
  3  9.53559
  4  0.000311411
  5  2.24621e-06
  6  14.9154
  7  3.02743e-05
  8  3.05285e-06
  9  7.26883e-06
  10  11.0234
  11  1.65712e-05
  12  3.41518e-05
  13  0.969626
  14  7.66173e-06
  15  8.01738
  16  26.2879
  17  1.47882e-05
  18  3.13586e-05
  19  9.41887
  20  17.9512
  21  16.61
  22  39.8038
  23  2.50856e-06
  24  25.1011
  25  0.000768965
  26  13.5748
  27  0.000207981
  28  0.197973
  29  0.142234
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.674e+01  1.661e+01  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.785e-01  1.422e-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.889e-01  1.980e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.45
Ra Dec: 353.869 -1.476
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.06e-08 +/- 2.05e-08
Energy Flux (Fixed Index): 8.57e-06 +/- 8.50e-06

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) = 6946.39188475
delta logL = 1.42011231393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6946.01623774
delta logL = 1.79575933307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8012       1.0000         .10000E-03   10000.    
     2 'alpha     '    .23405       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87886       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=   6946.016     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      211 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8016        8.9910        .45902E-02   -.46954E-02
   2  alpha         .23288        1.0323        .51893E-01    .22613E-03
   3  Normalizat    1.0007        .15891        .46174E-01    .30014E-04
   4  Prefactor     .87877        .12018        .44735E-01    .48056E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.80158
  alpha      = 0.232876
  Normalizat = 1.00066
  Prefactor  = 0.878767
 **********
 **   18 **HESSE 
 **********

 FCN=   6946.016     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8016        8.2150        .17854E-03   -1.5270    
   2  alpha         .23288        .86860        .10379E-01   -1.1357    
   3  Normalizat    1.0007        .18423        .25378E-03   -.93008    
   4  Prefactor     .87877        .13934        .20237E-03   -.96887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07572e-08
Minuit parameter uncertainties:
  1  8.21693
  2  0.954633
  3  0.184344
  4  0.139401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31324': 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) = 6946.01623514
delta logL = 1.79576192916

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.802e+00  8.217e+00  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.329e-01  9.546e-01  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.788e-01  1.394e-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.001e+00  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 353.869 -1.476
Photon Index (Free Index): 0.23 +/- 0.95
Photon Flux (Free Index): 2.93e-09 +/- 3.01e-09
Energy Flux (Free Index): 2.44e-05 +/- 3.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/31324/cmap_HighResolution_359337601_359596801_4FGL_J2335.4-0128_daily_bin463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.06e-08', energy_flux2='2.44e-05', photon_flux_error='2.05e-08', dlogl='1.80e+00', energy_flux='8.57e-06', photon_flux2='2.93e-09', job_status='DONE', time_completed='2021-09-30 00:29:58.262809', photon_index_error2='0.95', photon_index2='0.23', ts='6.45', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='3.61e-05', EG='0.99', time_epoch_completed='1632986998.26', return_code='0', job_id='31324', GAL2='0.88', EG2='1.00', return_code2='0', energy_flux_error='8.50e-06', photon_flux_error2='3.01e-09', ts2='10.05', photon_index='2.50' WHERE bin_id='463' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:29:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 31324: <4FGL_J2335.4-0128_daily_bin463> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin463 353.869 -1.476 359337601 359596801 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 :                                   738.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            876 sec.

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

