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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin194
RA = 353.869, Dec = -1.476
tmin = 289612801, tmax = 289872001
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='29926', job_status='RUN', time_executed='2021-09-30 00:13:06.022376', time_epoch_executed='1632985986.02' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29926/ft1_4FGL_J2335.4-0128_daily_bin194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29926/ft2_4FGL_J2335.4-0128_daily_bin194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29926/ft1_4FGL_J2335.4-0128_daily_bin194.fits outfile=/scratch/kocevski/29926/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin194.fits ra=353.869 dec=-1.476 rad=12.0 tmin=289612801.0 tmax=289872001.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.55
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29926/ft2_4FGL_J2335.4-0128_daily_bin194.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/29926/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin194.fits evtable="EVENTS" outfile="/scratch/kocevski/29926/ft1_filtered_4FGL_J2335.4-0128_daily_bin194.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/29926/ft1_filtered_4FGL_J2335.4-0128_daily_bin194.fits" evtable="EVENTS" scfile=/scratch/kocevski/29926/ft2_4FGL_J2335.4-0128_daily_bin194.fits sctable="SC_DATA" outfile=/scratch/kocevski/29926/ltcube_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.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/29926/ft2_4FGL_J2335.4-0128_daily_bin194.fits
.....................!
real 11.96
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29926/ft1_filtered_4FGL_J2335.4-0128_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/29926/ft2_4FGL_J2335.4-0128_daily_bin194.fits sctable="SC_DATA" expcube=/scratch/kocevski/29926/ltcube_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.fits outfile=/scratch/kocevski/29926/expmap_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.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/29926/ltcube_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.fits
.....................!
real 190.50
user 185.99
sys 4.14

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/29926/ft1_filtered_4FGL_J2335.4-0128_daily_bin194.fits scfile=/scratch/kocevski/29926/ft2_4FGL_J2335.4-0128_daily_bin194.fits outfile=/scratch/kocevski/29926/cmap_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29926/ft1_filtered_4FGL_J2335.4-0128_daily_bin194.fits scfile=/scratch/kocevski/29926/ft2_4FGL_J2335.4-0128_daily_bin194.fits outfile=/scratch/kocevski/29926/cmap_HighResolution_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.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/29926/ft1_filtered_4FGL_J2335.4-0128_daily_bin194.fits evtable="EVENTS" scfile=/scratch/kocevski/29926/ft2_4FGL_J2335.4-0128_daily_bin194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29926/Model_4FGL_J2335.4-0128_daily_bin194.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/29926/ft1_filtered_4FGL_J2335.4-0128_daily_bin194.fits.....................!
real 62.24
user 60.78
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22520E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .94464       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .46138       1.0000         .10000E-03   10000.    
     8 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.646       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16248E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11773E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .97638       1.0000         .10000E-03   10000.    
    14 'norm      '    4.6661       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.872       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    21.638       1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.950       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5414       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30762       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10940       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .98690       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87840       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3561       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=   6376.974     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3766 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7704       -.80556E-07** at limit **
   2  Prefactor     .10000E-03    16.833       -.11629E-06** at limit **
   3  Prefactor     .10000E-03    8.4890       -.12663E-06** at limit **
   4  Prefactor     .10000E-03    6.5630        .55915E-06** at limit **
   5  norm          .94558        2.6217        .13032E-05    .14862E-03
   6  Prefactor     .10000E-03    28.398       -.19059E-06** at limit **
   7  norm          .47017        2.9240        .60628E-07   -.29589E-03
   8  norm          .10000E-03    4.8499        .58869E-07** at limit **
   9  Prefactor     35.294        42.746        .53994E-06   -.98336E-05
  10  Prefactor     18.651        23.162        .79227E-06    .68294E-04
  11  Prefactor     .10000E-03    236.97       -.40524E-06** at limit **
  12  Prefactor     .10000E-03    12.354       -.25515E-06** at limit **
  13  norm          .97905        1.4453        .50914E-07   -.22282E-03
  14  norm          4.6644        10.978        .10184E-05   -.74307E-05
  15  Prefactor     12.880        10.441        .86789E-07   -.78279E-04
  16  Prefactor     .10000E-03    15.864       -.67379E-07** at limit **
  17  norm          21.643        11.845        .14508E-06   -.83930E-04
  18  Prefactor     68.837        169.86       -.42413E-05   -.10511E-03
  19  Prefactor     .10000E-03    9.1044       -.71007E-06** at limit **
  20  Prefactor     .10000E-03    11.674        .84043E-07** at limit **
  21  norm          .10000E-03    13.987       -.33134E-06** at limit **
  22  Prefactor     .10000E-03    35.738       -.67696E-07** at limit **
  23  Prefactor     5.5412        6.7190        .62284E-06   -.31052E-03
  24  Prefactor     .38459        44.423        .65354E-05   -.38131E-03
  25  Prefactor     .10000E-03    45.572        .20724E-06** at limit **
  26  Prefactor     .10037E-03    19.970        .51063E-06** at limit **
  27  Prefactor     .99217        11.694        .69200E-05    .13957E-03
  28  Normalizat    .87827        .23904       -.32323E-05   -.42564E-03
  29  Prefactor     1.3559        .16385        .34874E-06   -.67775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.945585
  Prefactor  = 0.0001
  norm       = 0.470174
  norm       = 0.0001
  Prefactor  = 35.2937
  Prefactor  = 18.651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.979052
  norm       = 4.66439
  Prefactor  = 12.8802
  Prefactor  = 0.0001
  norm       = 21.6429
  Prefactor  = 68.8366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.54123
  Prefactor  = 0.384594
  Prefactor  = 0.0001
  Prefactor  = 0.000100373
  Prefactor  = 0.992168
  Normalizat = 0.878265
  Prefactor  = 1.3559
 **********
 **   18 **HESSE 
 **********

 FCN=   6376.974     FROM HESSE     STATUS=OK           567 CALLS     4333 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7733        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.581        .34287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .94558        2.6195        .20386E-03   -1.5513    
   6  Prefactor     .10000E-03    28.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .47017        8.5546        .22709E-02   -1.5571    
   8  norm          .10000E-03    4.8611        .17176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.294        42.770        .67453E-04   -1.4519    
  10  Prefactor     18.651        23.201        .92753E-04   -1.4844    
  11  Prefactor     .10000E-03    238.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97905        1.3554        .98913E-04   -1.5510    
  14  norm          4.6644        10.681        .18630E-03   -1.5276    
  15  Prefactor     12.880        10.439        .11165E-03   -1.4990    
  16  Prefactor     .10000E-03    15.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          21.643        11.842        .86108E-04   -1.4777    
  18  Prefactor     68.837        169.89        .24170E-03   -1.4047    
  19  Prefactor     .10000E-03    9.1256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.5412        6.6935        .17067E-03   -1.5237    
  24  Prefactor     .38459        35.199        .12991       -1.5584    
  25  Prefactor     .10000E-03    46.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10037E-03    26.990        .91569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .99217        11.778        .50989E-03   -1.5509    
  28  Normalizat    .87827        .27670        .34278E-03   -.97228    
  29  Prefactor     1.3559        .19215        .21347E-03   -.81660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86062e-09
Minuit parameter uncertainties:
  1  6.89465e-06
  2  4.32397e-05
  3  2.07144e-05
  4  0.00037334
  5  2.61978
  6  4.76967e-05
  7  4.01129
  8  4.47918e-06
  9  42.8067
  10  23.2119
  11  0.000129662
  12  5.51431e-05
  13  1.35547
  14  10.685
  15  10.4401
  16  3.60829e-05
  17  11.8429
  18  171.111
  19  4.96912e-05
  20  2.28074e-05
  21  1.27382e-05
  22  4.43624e-06
  23  6.69438
  24  7.36217
  25  1.76531e-05
  26  0.0063524
  27  6.83832
  28  0.277147
  29  0.19225
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.274e-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.356e+00  1.923e-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:  8.783e-01  2.771e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29926/likelihoodResults_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.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) = 6376.97404257
delta logL = -0.000339782331139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6376.97370279
delta logL = -1.08775566332e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5046       1.0000          .0000       5.0000    
     3 'Normalizat'    .87827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3559       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=   6376.974     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1108.0        .18142E-02** at limit **
   2  alpha         2.4809        3.2281        .50000        .27057E-07
   3  Normalizat    .87827        .55533E-01    .34278E-03    .11608E-05
   4  Prefactor     1.3559        .42139E-01    .21347E-03    .14912E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.48092
  Normalizat = 0.878266
  Prefactor  = 1.3559
 **********
 **   18 **HESSE 
 **********

 FCN=   6376.974     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6542.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4809        3.5627        .50000       -.76310E-02
   3  Normalizat    .87827        .23126        .13711E-04   -.97228    
   4  Prefactor     1.3559        .17508        .85387E-05   -.81660    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25691e-08
Minuit parameter uncertainties:
  1  0.00573081
  2  32692.6
  3  0.231519
  4  0.175158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29926': 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): 102
logL (Free Index) = 6376.97370279
delta logL = 5.92990545556e-10

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  5.731e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.481e+00  3.269e+04  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.356e+00  1.752e-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:  8.783e-01  2.315e-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/29926/cmap_HighResolution_289612801_289872001_4FGL_J2335.4-0128_daily_bin194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-05', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-09-30 00:26:03.301839', job_id='29926', GAL2='1.36', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632986763.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='5.93e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='194' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 29926: <4FGL_J2335.4-0128_daily_bin194> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin194> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 00:10:17 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:10:18 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:18 2021
Terminated at Thu Sep 30 00:26:03 2021
Results reported at Thu Sep 30 00:26:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin194 353.869 -1.476 289612801 289872001 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 :                                   772.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

