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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin951
RA = 353.869, Dec = -1.476
tmin = 485827201, tmax = 486086401
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='33098', job_status='RUN', time_executed='2021-09-30 00:23:40.544280', time_epoch_executed='1632986620.54' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/33098

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/33098/ft1_4FGL_J2335.4-0128_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/33098/ft2_4FGL_J2335.4-0128_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/33098/ft1_4FGL_J2335.4-0128_daily_bin951.fits outfile=/scratch/kocevski/33098/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin951.fits ra=353.869 dec=-1.476 rad=12.0 tmin=485827201.0 tmax=486086401.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.70
user 3.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/33098/ft2_4FGL_J2335.4-0128_daily_bin951.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/33098/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin951.fits evtable="EVENTS" outfile="/scratch/kocevski/33098/ft1_filtered_4FGL_J2335.4-0128_daily_bin951.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/33098/ft1_filtered_4FGL_J2335.4-0128_daily_bin951.fits" evtable="EVENTS" scfile=/scratch/kocevski/33098/ft2_4FGL_J2335.4-0128_daily_bin951.fits sctable="SC_DATA" outfile=/scratch/kocevski/33098/ltcube_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.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/33098/ft2_4FGL_J2335.4-0128_daily_bin951.fits
.....................!
real 14.50
user 14.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/33098/ft1_filtered_4FGL_J2335.4-0128_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/33098/ft2_4FGL_J2335.4-0128_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/33098/ltcube_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.fits outfile=/scratch/kocevski/33098/expmap_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.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/33098/ltcube_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.fits
.....................!
real 192.81
user 187.46
sys 5.05

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/33098/ft1_filtered_4FGL_J2335.4-0128_daily_bin951.fits scfile=/scratch/kocevski/33098/ft2_4FGL_J2335.4-0128_daily_bin951.fits outfile=/scratch/kocevski/33098/cmap_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.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/33098/ft1_filtered_4FGL_J2335.4-0128_daily_bin951.fits scfile=/scratch/kocevski/33098/ft2_4FGL_J2335.4-0128_daily_bin951.fits outfile=/scratch/kocevski/33098/cmap_HighResolution_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/33098/ft1_filtered_4FGL_J2335.4-0128_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/33098/ft2_4FGL_J2335.4-0128_daily_bin951.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/33098/Model_4FGL_J2335.4-0128_daily_bin951.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/33098/ft1_filtered_4FGL_J2335.4-0128_daily_bin951.fits.....................!
real 56.70
user 55.44
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    39.463       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.831       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9969       1.0000         .10000E-03   10000.    
     7 'norm      '    .10402E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.7631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.803       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15101E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11689E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10215E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7792       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.567       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .52975E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.112       1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.077       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8114       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2101       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79102       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=   5717.140     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3668 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8432       -.10436E-07** at limit **
   2  Prefactor     39.460        37.495       -.27844E-06   -.86380E-05
   3  Prefactor     .10000E-03    5.0364        .10013E-06** at limit **
   4  Prefactor     10.833        7.2714       -.30987E-06   -.16682E-05
   5  norm          2.3674        1.9736       -.87261E-07   -.64484E-06
   6  Prefactor     4.9968        10.944        .14569E-06    .17607E-05
   7  norm          .10000E-03    3.4183        .11010E-06** at limit **
   8  norm          8.7619        10.192       -.10214E-06    .23114E-04
   9  Prefactor     .10000E-03    107.23        .23677E-05** at limit **
  10  Prefactor     17.064        12.339       -.12443E-06    .64318E-05
  11  Prefactor     20.713        52.179       -.13999E-05    .98608E-05
  12  Prefactor     .10000E-03    9.7669       -.80679E-05** at limit **
  13  norm          .10000E-03    .62548       -.12804E-06** at limit **
  14  norm          .10000E-03    3.0717       -.14222E-05** at limit **
  15  Prefactor     .10000E-03    3.7275        .40614E-07** at limit **
  16  Prefactor     .10000E-03    41.057        .36782E-08** at limit **
  17  norm          2.7760        8.1966        .66584E-06    .33100E-04
  18  Prefactor     .10000E-03    106.20        .37946E-06** at limit **
  19  Prefactor     19.565        13.781       -.43629E-06    .10718E-03
  20  Prefactor     .10000E-03    7.7488        .18156E-07** at limit **
  21  norm          .10000E-03    54.513        .54445E-06** at limit **
  22  Prefactor     .10000E-03    106.48       -.81233E-06** at limit **
  23  Prefactor     .10000E-03    2.0677        .53937E-07** at limit **
  24  Prefactor     19.055        30.940       -.11628E-05   -.10099E-03
  25  Prefactor     31.074        18.388       -.22068E-06    .21814E-04
  26  Prefactor     .10000E-03    5.1974        .19330E-06** at limit **
  27  Prefactor     2.8055        8.0903       -.23015E-06    .40224E-04
  28  Normalizat    1.2106        .22985        .66765E-05    .81407E-05
  29  Prefactor     .79077        .15556       -.51979E-05    .37829E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.4599
  Prefactor  = 0.0001
  Prefactor  = 10.8327
  norm       = 2.3674
  Prefactor  = 4.99677
  norm       = 0.0001
  norm       = 8.76189
  Prefactor  = 0.0001
  Prefactor  = 17.0636
  Prefactor  = 20.7133
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77602
  Prefactor  = 0.0001
  Prefactor  = 19.5647
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0555
  Prefactor  = 31.0739
  Prefactor  = 0.0001
  Prefactor  = 2.80548
  Normalizat = 1.21065
  Prefactor  = 0.790765
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.140     FROM HESSE     STATUS=OK           547 CALLS     4215 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8457        .12450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.460        37.486        .63805E-04   -1.4451    
   3  Prefactor     .10000E-03    5.0426        .16570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.833        7.2272        .12174E-03   -1.5050    
   5  norm          2.3674        1.9701        .93820E-04   -1.5400    
   6  Prefactor     4.9968        10.919        .17990E-03   -1.5261    
   7  norm          .10000E-03    3.4686        .27110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.7619        10.192        .13540E-03   -1.5116    
   9  Prefactor     .10000E-03    109.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.064        12.341        .96957E-04   -1.4882    
  11  Prefactor     20.713        52.282        .87817E-04   -1.4797    
  12  Prefactor     .10000E-03    10.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .95502        .11316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1009        .12963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7373        .14251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7760        8.1904        .24410E-03   -1.5375    
  18  Prefactor     .10000E-03    106.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.565        13.514        .90545E-04   -1.4823    
  20  Prefactor     .10000E-03    7.7586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    54.799        .21129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    107.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0801        .10597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.055        30.979        .91616E-04   -1.4835    
  25  Prefactor     31.074        18.391        .71874E-04   -1.4593    
  26  Prefactor     .10000E-03    5.2092        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8055        8.1412        .24260E-03   -1.5373    
  28  Normalizat    1.2106        .24805        .25525E-03   -.86274    
  29  Prefactor     .79077        .16694        .22421E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3544e-10
Minuit parameter uncertainties:
  1  3.02842e-06
  2  37.5086
  3  8.1096e-06
  4  7.22776
  5  1.97018
  6  10.9231
  7  2.31906e-07
  8  10.1938
  9  5.14858e-05
  10  12.3428
  11  52.3978
  12  0.000281221
  13  4.96521e-06
  14  2.51506e-05
  15  1.54096e-06
  16  1.9111e-05
  17  8.19367
  18  0.000350639
  19  13.5164
  20  5.46999e-06
  21  0.000174789
  22  8.67547e-05
  23  1.0456e-06
  24  31.0056
  25  18.3945
  26  7.11916e-06
  27  8.1444
  28  0.248291
  29  0.16705
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  1.748e-04  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:  7.908e-01  1.671e-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.211e+00  2.483e-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: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/33098/likelihoodResults_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.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): 0
logL (Free Index) = 5717.14011763
delta logL = -8.68964625624e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5717.14011762
delta logL = -8.68905699463e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5048       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79076       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=   5717.140     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      185 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    76.256        .90713E-02** at limit **
   2  alpha         2.5833        3.6025        .41152       -.74737E-05
   3  Normalizat    1.2107        .19128        .57716E-01    .11346E-04
   4  Prefactor     .79076        .13962        .43597E-01   -.50075E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100028
  alpha      = 2.58328
  Normalizat = 1.21065
  Prefactor  = 0.790761
 **********
 **   18 **HESSE 
 **********

 FCN=   5717.140     FROM HESSE     STATUS=OK            29 CALLS      214 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    71.396        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5833        3.5716        .50000        .33319E-01
   3  Normalizat    1.2107        .22294        .25524E-03   -.86274    
   4  Prefactor     .79076        .16278        .22422E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51673e-10
Minuit parameter uncertainties:
  1  0.00285196
  2  2.503
  3  0.223115
  4  0.162879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/33098': 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) = 5717.1400305
delta logL = 2.30183104577e-07

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  1.000e-04  2.852e-03  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  2.583e+00  2.503e+00  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:  7.908e-01  1.629e-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.211e+00  2.231e-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/33098/cmap_HighResolution_485827201_486086401_4FGL_J2335.4-0128_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-30 00:35:47.093268', job_id='33098', GAL2='0.79', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1632987347.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='951' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:35:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 33098: <4FGL_J2335.4-0128_daily_bin951> in cluster <slac> Done

Job <4FGL_J2335.4-0128_daily_bin951> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:20:44 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:20:45 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:45 2021
Terminated at Thu Sep 30 00:35:47 2021
Results reported at Thu Sep 30 00:35:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin951 353.869 -1.476 485827201 486086401 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

