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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin223
RA = 353.869, Dec = -1.476
tmin = 297129601, tmax = 297388801
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='29970', job_status='RUN', time_executed='2021-09-30 00:12:17.866019', time_epoch_executed='1632985937.87' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29970

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29970/ft1_4FGL_J2335.4-0128_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29970/ft2_4FGL_J2335.4-0128_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29970/ft1_4FGL_J2335.4-0128_daily_bin223.fits outfile=/scratch/kocevski/29970/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin223.fits ra=353.869 dec=-1.476 rad=12.0 tmin=297129601.0 tmax=297388801.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.58
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29970/ft2_4FGL_J2335.4-0128_daily_bin223.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/29970/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin223.fits evtable="EVENTS" outfile="/scratch/kocevski/29970/ft1_filtered_4FGL_J2335.4-0128_daily_bin223.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/29970/ft1_filtered_4FGL_J2335.4-0128_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/29970/ft2_4FGL_J2335.4-0128_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/29970/ltcube_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.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/29970/ft2_4FGL_J2335.4-0128_daily_bin223.fits
.....................!
real 11.96
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29970/ft1_filtered_4FGL_J2335.4-0128_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/29970/ft2_4FGL_J2335.4-0128_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/29970/ltcube_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.fits outfile=/scratch/kocevski/29970/expmap_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.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/29970/ltcube_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.fits
.....................!
real 191.48
user 185.77
sys 5.26

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/29970/ft1_filtered_4FGL_J2335.4-0128_daily_bin223.fits scfile=/scratch/kocevski/29970/ft2_4FGL_J2335.4-0128_daily_bin223.fits outfile=/scratch/kocevski/29970/cmap_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29970/ft1_filtered_4FGL_J2335.4-0128_daily_bin223.fits scfile=/scratch/kocevski/29970/ft2_4FGL_J2335.4-0128_daily_bin223.fits outfile=/scratch/kocevski/29970/cmap_HighResolution_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.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/29970/ft1_filtered_4FGL_J2335.4-0128_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/29970/ft2_4FGL_J2335.4-0128_daily_bin223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29970/Model_4FGL_J2335.4-0128_daily_bin223.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/29970/ft1_filtered_4FGL_J2335.4-0128_daily_bin223.fits.....................!
real 53.88
user 52.51
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.329       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-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 '    13.889       1.0000         .10000E-03   10000.    
     7 'norm      '    10.506       1.0000         .10000E-03   10000.    
     8 'norm      '    22.202       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.383       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8992       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9143       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4697       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14378E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.609       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .63886E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.281       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.874       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .44101       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2658       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=   5124.572     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3730 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.529        .40403E-05** at limit **
   2  Prefactor     41.318        47.988        .20606E-05    .87208E-05
   3  Prefactor     .10000E-03    20.331        .40352E-06** at limit **
   4  Prefactor     .10000E-03    5.0818        .19445E-06** at limit **
   5  norm          .10000E-03    1.4233        .31610E-06** at limit **
   6  Prefactor     13.892        23.042        .71415E-06    .76067E-05
   7  norm          10.506        6.0227        .29542E-07   -.25491E-04
   8  norm          22.199        13.699        .16039E-06    .99786E-04
   9  Prefactor     41.347        42.437        .10907E-05    .11693E-03
  10  Prefactor     .10000E-03    29.847       -.10521E-05** at limit **
  11  Prefactor     .10000E-03    30.534        .98622E-07** at limit **
  12  Prefactor     .10000E-03    8.1344        .62838E-06** at limit **
  13  norm          2.8991        1.3313       -.20986E-07    .39939E-03
  14  norm          .10000E-03    2.3003        .21062E-06** at limit **
  15  Prefactor     3.9201        13.564       -.63371E-06    .44337E-04
  16  Prefactor     3.5389        235.13       -.69126E-05   -.53980E-06
  17  norm          6.0834        9.4387        .11236E-06    .59283E-04
  18  Prefactor     .10000E-03    162.69       -.29484E-05** at limit **
  19  Prefactor     .10000E-03    13.934       -.17955E-06** at limit **
  20  Prefactor     .10000E-03    216.28       -.59427E-04** at limit **
  21  norm          .10000E-03    57.467        .28242E-05** at limit **
  22  Prefactor     .10001E-03    204.57        .72499E-05** at limit **
  23  Prefactor     15.607        7.2439        .67098E-06    .42377E-03
  24  Prefactor     .10000E-03    120.11       -.16796E-04** at limit **
  25  Prefactor     25.288        24.871       -.23676E-06    .14730E-03
  26  Prefactor     .10000E-03    8.1879        .48657E-06** at limit **
  27  Prefactor     12.877        10.275       -.68472E-06   -.27964E-03
  28  Normalizat    .44103        .24873       -.55944E-05   -.18898E-04
  29  Prefactor     1.2658        .18163        .12995E-05   -.36347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 41.3176
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8923
  norm       = 10.5056
  norm       = 22.1994
  Prefactor  = 41.3473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.89911
  norm       = 0.0001
  Prefactor  = 3.92007
  Prefactor  = 3.53889
  norm       = 6.08345
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 15.6072
  Prefactor  = 0.000100001
  Prefactor  = 25.2881
  Prefactor  = 0.0001
  Prefactor  = 12.8768
  Normalizat = 0.441026
  Prefactor  = 1.26577
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.572     FROM HESSE     STATUS=OK           545 CALLS     4275 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.318        47.931        .62354E-04   -1.4422    
   3  Prefactor     .10000E-03    20.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0917        .15712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4666        .16686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.892        23.071        .10747E-03   -1.4962    
   7  norm          10.506        6.0139        .11583E-03   -1.5060    
   8  norm          22.199        13.690        .85008E-04   -1.4765    
   9  Prefactor     41.347        42.505        .62313E-04   -1.4421    
  10  Prefactor     .10000E-03    30.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8991        1.3258        .52722E-04   -1.5367    
  14  norm          .10000E-03    2.3087        .10604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9201        13.107        .20392E-03   -1.5312    
  16  Prefactor     3.5389        231.73        .21710E-03   -1.5332    
  17  norm          6.0834        9.2750        .16283E-03   -1.5215    
  18  Prefactor     .10000E-03    163.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    207.92        .60146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    57.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    206.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.607        7.2128        .10138E-03   -1.4918    
  24  Prefactor     .10000E-03    120.67        .37688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.288        24.821        .79670E-04   -1.4702    
  26  Prefactor     .10000E-03    8.2107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.877        10.275        .55818E-03   -1.4990    
  28  Normalizat    .44103        .25422        .40940E-03   -1.1523    
  29  Prefactor     1.2658        .19004        .19112E-03   -.84331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00803e-09
Minuit parameter uncertainties:
  1  0.000430396
  2  47.9756
  3  0.000203634
  4  6.05151e-06
  5  2.36384e-05
  6  23.0856
  7  6.01422
  8  13.6916
  9  42.5362
  10  6.36894e-05
  11  7.72259e-05
  12  8.39804e-05
  13  1.32576
  14  1.26566e-05
  15  13.1168
  16  57.5068
  17  9.27719
  18  0.00144847
  19  2.36555e-06
  20  0.00186019
  21  6.89224e-05
  22  0.00298335
  23  7.21324
  24  0.000598183
  25  24.8312
  26  5.31847e-05
  27  10.2767
  28  0.254887
  29  0.190143
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  6.892e-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.266e+00  1.901e-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:  4.410e-01  2.549e-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: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29970/likelihoodResults_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.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) = 5124.57165156
delta logL = -8.22713864181e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5124.57157117
delta logL = -1.87648947758e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1739       1.0000          .0000       5.0000    
     3 'Normalizat'    .44103       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2658       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=   5124.572     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      285 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.273        .18142    ** at limit **
   2  alpha         2.0170        3.9897        .17289        .28934E-08
   3  Normalizat    .44102        .51435E-02    .40940E-03    .46364E-03
   4  Prefactor     1.2658        .39453E-02    .19112E-03    .11436E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.01703
  Normalizat = 0.441022
  Prefactor  = 1.26578
 **********
 **   18 **HESSE 
 **********

 FCN=   5124.572     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    117.36        .64893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0170        3.2412        .69155E-02   -.19441    
   3  Normalizat    .44102        .24273        .16376E-04   -1.1523    
   4  Prefactor     1.2658        .18654        .38225E-04   -.84330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79008e-10
Minuit parameter uncertainties:
  1  1.0377e-05
  2  707.469
  3  0.243308
  4  0.186639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29970': 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) = 5124.57156898
delta logL = 3.16455043503e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.038e-05  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.017e+00  7.075e+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.266e+00  1.866e-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:  4.410e-01  2.433e-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/29970/cmap_HighResolution_297129601_297388801_4FGL_J2335.4-0128_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-30 00:23:39.263906', job_id='29970', GAL2='1.27', fit_tolerance='1e-08', EG2='0.44', EG='0.44', time_epoch_completed='1632986619.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='223' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:23:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 29970: <4FGL_J2335.4-0128_daily_bin223> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin223 353.869 -1.476 297129601 297388801 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 :                                   679.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

