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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1288
RA = 358.322, Dec = 31.5927
tmin = 573177601, tmax = 573436801
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='173693', job_status='RUN', time_executed='2021-09-30 07:58:21.410403', time_epoch_executed='1633013901.41' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173693

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173693/ft1_4FGL_J2353.2+3135_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173693/ft1_4FGL_J2353.2+3135_daily_bin1288.fits outfile=/scratch/kocevski/173693/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1288.fits ra=358.322 dec=31.5927 rad=12.0 tmin=573177601.0 tmax=573436801.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.49
user 5.21
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.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/173693/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1288.fits evtable="EVENTS" outfile="/scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/173693/ltcube_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.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/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits
.....................!
real 11.52
user 11.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/173693/ltcube_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.fits outfile=/scratch/kocevski/173693/expmap_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.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/173693/ltcube_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.fits
.....................!
real 190.59
user 185.34
sys 4.94

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2353.2+3135 @ 358.322 31.5927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits scfile=/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits outfile=/scratch/kocevski/173693/cmap_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.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=358.322 yref=31.5927 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits scfile=/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits outfile=/scratch/kocevski/173693/cmap_HighResolution_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.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=358.322 yref=31.5927 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/173693/Model_4FGL_J2353.2+3135_daily_bin1288.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/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits.....................!
real 79.20
user 77.86
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits', '/scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits', expMap='/scratch/kocevski/173693/expmap_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.fits', expCube='/scratch/kocevski/173693/ltcube_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/173693/Model_4FGL_J2353.2+3135_daily_bin1288.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2353.2+3135'

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  7.403e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/173693/ft1_filtered_4FGL_J2353.2+3135_daily_bin1288.fits
Spacecraft file(s): /scratch/kocevski/173693/ft2_4FGL_J2353.2+3135_daily_bin1288.fits
Exposure map: /scratch/kocevski/173693/expmap_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.fits
Exposure cube: /scratch/kocevski/173693/ltcube_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/173693/Model_4FGL_J2353.2+3135_daily_bin1288.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) = 7644.78420504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52571E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.735       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0650       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.954       1.0000         .10000E-03   10000.    
     8 'norm      '    .63839E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .38297       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89186       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0335       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14645E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.661       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95496       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7644.755     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2114 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1984       -.49017E-07** at limit **
   2  norm          .10000E-03    7.2731       -.17820E-06** at limit **
   3  Prefactor     .10008E-03    4.0354       -.10650E-06** at limit **
   4  Prefactor     21.737        12.687        .68007E-06   -.10856E-04
   5  Prefactor     7.0645        5.2699        .23535E-05   -.65825E-04
   6  Prefactor     .10000E-03    18.295       -.33961E-06** at limit **
   7  Prefactor     24.942        22.645        .34866E-05    .22649E-05
   8  norm          .64974E-01    .95307       -.28680E-06   -.13046E-03
   9  Prefactor     .10000E-03    11.984       -.10611E-05** at limit **
  10  norm          .38304        1.0343       -.54921E-06   -.21029E-02
  11  Prefactor     9.0262        19.701        .12015E-05   -.25336E-04
  12  Prefactor     .87922        8.2236       -.74883E-06   -.17385E-03
  13  Prefactor     .10000E-03    8.4750        .31655E-06** at limit **
  14  norm          .10000E-03    1.5266       -.56715E-08** at limit **
  15  Prefactor     .10000E-03    4.9969        .33108E-07** at limit **
  16  norm          1.0355        1.7346       -.78277E-07   -.52716E-03
  17  Prefactor     .10000E-03    7.7943        .23998E-06** at limit **
  18  Prefactor     29.645        27.515       -.17656E-06   -.82854E-05
  19  Prefactor     .10000E-03    13.646        .13218E-05** at limit **
  20  Prefactor     .10000E-03    4.7248        .39097E-07** at limit **
  21  Normalizat    .95507        .18147       -.12294E-05    .11535E-03
  22  Prefactor     .99398        .10140        .52788E-07    .11457E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010008
  Prefactor  = 21.7374
  Prefactor  = 7.06451
  Prefactor  = 0.0001
  Prefactor  = 24.9421
  norm       = 0.0649745
  Prefactor  = 0.0001
  norm       = 0.38304
  Prefactor  = 9.02623
  Prefactor  = 0.87922
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03555
  Prefactor  = 0.000100001
  Prefactor  = 29.6451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.955066
  Prefactor  = 0.993985
 **********
 **   18 **HESSE 
 **********

 FCN=   7644.755     FROM HESSE     STATUS=OK           358 CALLS     2472 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2241        .93348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.3281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10008E-03    4.4377        .52686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.737        12.644        .85915E-04   -1.4775    
   5  Prefactor     7.0645        5.0620        .15092E-03   -1.5176    
   6  Prefactor     .10000E-03    18.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.942        22.270        .80189E-04   -1.4709    
   8  norm          .64974E-01    8.7041        .16585E-02   -1.5657    
   9  Prefactor     .10000E-03    11.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .38304        1.0886        .14860E-03   -1.5584    
  11  Prefactor     9.0262        19.643        .13338E-03   -1.5107    
  12  Prefactor     .87922        31.137        .46999E-02   -1.5520    
  13  Prefactor     .10000E-03    8.4839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.5395        .10548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0355        1.3994        .14204E-02   -1.5504    
  17  Prefactor     .10000E-03    42.864        .47526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.645        27.539        .73565E-04   -1.4618    
  19  Prefactor     .10000E-03    13.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .95507        .21233        .30545E-03   -.94551    
  22  Prefactor     .99398        .12017        .17018E-03   -.92930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91409e-08
Minuit parameter uncertainties:
  1  9.52094e-07
  2  4.30112e-07
  3  0.00119338
  4  12.6456
  5  5.06228
  6  4.08266e-06
  7  22.277
  8  1.50312
  9  1.4119e-05
  10  1.08861
  11  19.6568
  12  10.4697
  13  1.87022e-06
  14  2.91252e-06
  15  7.25689e-06
  16  1.39947
  17  0.000414777
  18  27.5503
  19  1.67764e-06
  20  3.86801e-06
  21  0.212515
  22  0.120199
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  2.965e+01  2.755e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  9.940e-01  1.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  9.551e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 3.59e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 9.16e-06 +/- 8.52e-06

TS (Fixed Index): 1.91
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/173693/likelihoodResults_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.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) = 7644.18503027
delta logL = 0.570297065964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7644.07392599
delta logL = 0.681401341395

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.366       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9612       1.0000          .0000       10.000    
     3 'Normalizat'    .96909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+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=   7644.074     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      315 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.297        46.079        .26036E-03   -.45849E-05
   2  Index         1.9604        .47922        .81708E-02    .25518E-05
   3  Normalizat    .96942        .20800        .30332E-03   -.19865E-04
   4  Prefactor     .98550        .11856        .17073E-03    .32815E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.2975
  Index      = 1.96039
  Normalizat = 0.96942
  Prefactor  = 0.985496
 **********
 **   18 **HESSE 
 **********

 FCN=   7644.074     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.297        45.882        .10414E-04   -1.4166    
   2  Index         1.9604        .47723        .32683E-03   -.65344    
   3  Normalizat    .96942        .20814        .12133E-04   -.94062    
   4  Prefactor     .98550        .11864        .34146E-04   -.93215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12675e-12
Minuit parameter uncertainties:
  1  45.9097
  2  0.478385
  3  0.208318
  4  0.118667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173693': 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) = 7644.07391912
delta logL = 0.681408220527

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  5.930e+01  4.591e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  1.960e+00  4.784e-01  0.000e+00  1.000e+01 (-1.000e+00)
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  9.855e-01  1.187e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  9.694e-01  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.27
Ra Dec: 358.322 31.593
Photon Index (Free Index): 1.96 +/- 0.48
Photon Flux (Free Index): 3.17e-08 +/- 2.71e-08
Energy Flux (Free Index): 2.42e-05 +/- 2.78e-05

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/173693/cmap_HighResolution_573177601_573436801_4FGL_J2353.2+3135_daily_bin1288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', comment='SUCCESS', photon_flux='3.59e-08', energy_flux2='2.42e-05', photon_flux_error='3.34e-08', dlogl='6.81e-01', energy_flux='9.16e-06', photon_flux2='3.17e-08', job_status='DONE', time_completed='2021-09-30 08:09:44.451347', photon_index_error2='0.48', photon_index2='1.96', ts='1.91', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.78e-05', EG='0.96', time_epoch_completed='1633014584.45', return_code='0', job_id='173693', GAL2='0.99', EG2='0.97', return_code2='0', energy_flux_error='8.52e-06', photon_flux_error2='2.71e-08', ts2='3.27', photon_index='2.63' WHERE bin_id='1288' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:09:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 173693: <4FGL_J2353.2+3135_daily_bin1288> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1288> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:55:50 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:55:53 2021
Terminated at Thu Sep 30 08:09:45 2021
Results reported at Thu Sep 30 08:09:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1288 358.322 31.5927 573177601 573436801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2353.2+3135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

