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


Performing analysis on: 4FGL_J2335.4-0128_daily_bin1417
RA = 353.869, Dec = -1.476
tmin = 606614401, tmax = 606873601
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='34766', job_status='RUN', time_executed='2021-09-30 00:26:11.612876', time_epoch_executed='1632986771.61' WHERE source_name='4FGL J2335.4-0128' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34766/ft1_4FGL_J2335.4-0128_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34766/ft1_4FGL_J2335.4-0128_daily_bin1417.fits outfile=/scratch/kocevski/34766/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1417.fits ra=353.869 dec=-1.476 rad=12.0 tmin=606614401.0 tmax=606873601.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 5.15
user 4.91
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.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/34766/ft1_filteredMKT_4FGL_J2335.4-0128_daily_bin1417.fits evtable="EVENTS" outfile="/scratch/kocevski/34766/ft1_filtered_4FGL_J2335.4-0128_daily_bin1417.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34766/ft1_filtered_4FGL_J2335.4-0128_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/34766/ltcube_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.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/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.fits
.....................!
real 15.01
user 14.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34766/ft1_filtered_4FGL_J2335.4-0128_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/34766/ltcube_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.fits outfile=/scratch/kocevski/34766/expmap_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.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/34766/ltcube_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.fits
.....................!
real 192.23
user 185.75
sys 6.09

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/34766/ft1_filtered_4FGL_J2335.4-0128_daily_bin1417.fits scfile=/scratch/kocevski/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.fits outfile=/scratch/kocevski/34766/cmap_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=353.869 yref=-1.476 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34766/ft1_filtered_4FGL_J2335.4-0128_daily_bin1417.fits scfile=/scratch/kocevski/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.fits outfile=/scratch/kocevski/34766/cmap_HighResolution_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.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/34766/ft1_filtered_4FGL_J2335.4-0128_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/34766/ft2_4FGL_J2335.4-0128_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34766/Model_4FGL_J2335.4-0128_daily_bin1417.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/34766/ft1_filtered_4FGL_J2335.4-0128_daily_bin1417.fits.....................!
real 79.61
user 78.06
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.474       1.0000         .10000E-03   10000.    
     3 'Prefactor '    232.80       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.265       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .22152E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    132.98       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.097       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2623       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.577       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13305E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5385       1.0000         .10000E-03   10000.    
    22 'Prefactor '    73.857       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13466       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.777       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .28466E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2594       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1916       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=   7994.239     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     4284 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1124        9.6791       -.24563E-07    .34718E-04
   2  Prefactor     41.471        56.024       -.13414E-06    .69344E-05
   3  Prefactor     232.80        40.746       -.15179E-06    .32534E-04
   4  Prefactor     19.256        9.8154       -.70553E-06   -.92757E-04
   5  norm          .10000E-03    2.4137        .92972E-07** at limit **
   6  Prefactor     .10000E-03    25.913        .18344E-07** at limit **
   7  norm          .10000E-03    5.1972        .34812E-06** at limit **
   8  norm          132.98        26.638       -.67932E-07    .64530E-04
   9  Prefactor     26.079        46.633       -.11074E-06    .26231E-04
  10  Prefactor     7.6961        14.248       -.73336E-06    .72715E-04
  11  Prefactor     8.4859        45.961       -.52826E-06    .47945E-05
  12  Prefactor     .10000E-03    4.0042       -.29447E-07** at limit **
  13  norm          2.2621        1.2622        .20651E-06   -.20660E-03
  14  norm          .10000E-03    3.1765       -.13657E-06** at limit **
  15  Prefactor     .10000E-03    6.2721       -.79144E-07** at limit **
  16  Prefactor     70.559        58.562        .14015E-06    .37541E-04
  17  norm          .10000E-03    3.8249       -.43770E-07** at limit **
  18  Prefactor     .10000E-03    6962.5        .52073E-05** at limit **
  19  Prefactor     .10000E-03    8.9977       -.47953E-06** at limit **
  20  Prefactor     .10000E-03    5.3481       -.24954E-07** at limit **
  21  norm          4.5343        17.544        .22470E-05    .24157E-04
  22  Prefactor     73.839        71.418        .30683E-06    .44016E-04
  23  Prefactor     .14347        19.257       -.79448E-05    .41353E-04
  24  Prefactor     .10000E-03    13.258       -.52008E-07** at limit **
  25  Prefactor     .10000E-03    4.9170       -.22244E-07** at limit **
  26  Prefactor     11.774        19.724        .35871E-07    .50537E-04
  27  Prefactor     .10052E-03    4.7195        .72801E-06** at limit **
  28  Normalizat    1.2597        .24739        .10937E-05    .20639E-03
  29  Prefactor     1.1914        .16979        .61620E-07    .10982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.11237
  Prefactor  = 41.4711
  Prefactor  = 232.796
  Prefactor  = 19.2559
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 132.978
  Prefactor  = 26.0792
  Prefactor  = 7.69607
  Prefactor  = 8.48592
  Prefactor  = 0.0001
  norm       = 2.26214
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.5591
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.53427
  Prefactor  = 73.8392
  Prefactor  = 0.14347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7745
  Prefactor  = 0.000100522
  Normalizat = 1.25975
  Prefactor  = 1.19135
 **********
 **   18 **HESSE 
 **********

 FCN=   7994.239     FROM HESSE     STATUS=OK           563 CALLS     4847 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1124        9.6837        .14079E-03   -1.5138    
   2  Prefactor     41.471        56.004        .62245E-04   -1.4419    
   3  Prefactor     232.80        40.754        .13263E-03   -1.2644    
   4  Prefactor     19.256        10.153        .91251E-04   -1.4830    
   5  norm          .10000E-03    2.4571        .13526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    24.321        .34622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          132.98        26.667        .17460E-03   -1.3397    
   9  Prefactor     26.079        46.730        .78417E-04   -1.4686    
  10  Prefactor     7.6961        14.231        .72272E-03   -1.5153    
  11  Prefactor     8.4859        46.156        .13721E-03   -1.5125    
  12  Prefactor     .10000E-03    4.0077        .17454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2621        1.2517        .70760E-04   -1.5407    
  14  norm          .10000E-03    3.2030        .15568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.559        58.596        .47783E-04   -1.4026    
  17  norm          .10000E-03    3.8347        .17078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6966.8        .18179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5343        17.497        .18897E-03   -1.5282    
  22  Prefactor     73.839        71.739        .46718E-04   -1.3987    
  23  Prefactor     .14347        19.319        .30160E-02   -1.5632    
  24  Prefactor     .10000E-03    13.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.9183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     11.774        19.762        .11673E-03   -1.5022    
  27  Prefactor     .10052E-03    9.1664        .57325E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2597        .29668        .35631E-03   -.84776    
  29  Prefactor     1.1914        .20114        .26632E-03   -.86598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24307e-10
Minuit parameter uncertainties:
  1  9.68557
  2  56.0756
  3  40.7589
  4  10.154
  5  8.6973e-06
  6  1.33007e-05
  7  7.449e-05
  8  26.6689
  9  46.7953
  10  14.2368
  11  39.6287
  12  1.68495e-05
  13  1.25175
  14  2.72322e-05
  15  1.37127e-05
  16  58.6435
  17  5.76369e-06
  18  0.000734018
  19  0.000140147
  20  4.22e-06
  21  17.5167
  22  71.8234
  23  3.32964
  24  1.44607e-05
  25  3.63809e-06
  26  19.7729
  27  0.00437752
  28  0.297076
  29  0.201267
Done.

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

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  4.534e+00  1.752e+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:  1.191e+00  2.013e-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.260e+00  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 353.869 -1.476
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/34766/likelihoodResults_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.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) = 7994.17408926
delta logL = 0.0652544469467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7994.15111536
delta logL = 0.0882283427682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4834       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6411       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1881       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=   7994.151     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      250 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4733        19.692        .13763E-03    .15281E-04
   2  alpha         1.6398        1.6275        .61429E-01    .45015E-05
   3  Normalizat    1.2645        .26537        .35573E-03    .62330E-03
   4  Prefactor     1.1880        .19496        .26662E-03    .72845E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.47328
  alpha      = 1.63982
  Normalizat = 1.26449
  Prefactor  = 1.18797
 **********
 **   18 **HESSE 
 **********

 FCN=   7994.151     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4733        19.843        .55053E-05   -1.5126    
   2  alpha         1.6398        1.6393        .24572E-02   -.35125    
   3  Normalizat    1.2645        .26555        .71145E-04   -.84633    
   4  Prefactor     1.1880        .19512        .53324E-04   -.86702    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54846e-10
Minuit parameter uncertainties:
  1  19.8585
  2  1.81481
  3  0.265839
  4  0.195234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34766': 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) = 7994.1511149
delta logL = 0.0882288051771

Extracting fit parameters...

4FGL J2335.4-0128
   Spectrum: LogParabola
451         norm:  8.473e+00  1.986e+01  1.000e-04  1.000e+04 ( 1.000e-13)
452        alpha:  1.640e+00  1.815e+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:  1.188e+00  1.952e-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.264e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 353.869 -1.476

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/34766/cmap_HighResolution_606614401_606873601_4FGL_J2335.4-0128_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-30 00:42:18.913781', job_id='34766', GAL2='1.19', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632987738.91', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='8.82e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1417' AND source_name='4FGL J2335.4-0128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 00:42:18 PDT 2021


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

Job <4FGL_J2335.4-0128_daily_bin1417> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 00:25:53 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 00:25:55 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:25:55 2021
Terminated at Thu Sep 30 00:42:19 2021
Results reported at Thu Sep 30 00:42:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2335.4-0128_daily_bin1417 353.869 -1.476 606614401 606873601 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 :                                   962.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            986 sec.

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

