/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 0 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2353.2+3135_daily_bin103
RA = 358.322, Dec = 31.5927
tmin = 266025601, tmax = 266284801
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='168981', job_status='RUN', time_executed='2021-09-30 07:40:53.976910', time_epoch_executed='1633012853.98' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168981/ft1_4FGL_J2353.2+3135_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168981/ft1_4FGL_J2353.2+3135_daily_bin103.fits outfile=/scratch/kocevski/168981/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin103.fits ra=358.322 dec=31.5927 rad=12.0 tmin=266025601.0 tmax=266284801.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 1.43
user 1.22
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.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/168981/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin103.fits evtable="EVENTS" outfile="/scratch/kocevski/168981/ft1_filtered_4FGL_J2353.2+3135_daily_bin103.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168981/ft1_filtered_4FGL_J2353.2+3135_daily_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/168981/ltcube_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.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/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits
.....................!
real 12.64
user 12.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168981/ft1_filtered_4FGL_J2353.2+3135_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/168981/ltcube_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.fits outfile=/scratch/kocevski/168981/expmap_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.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/168981/ltcube_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.fits
.....................!
real 190.86
user 185.10
sys 5.35

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/168981/ft1_filtered_4FGL_J2353.2+3135_daily_bin103.fits scfile=/scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits outfile=/scratch/kocevski/168981/cmap_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168981/ft1_filtered_4FGL_J2353.2+3135_daily_bin103.fits scfile=/scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits outfile=/scratch/kocevski/168981/cmap_HighResolution_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168981/ft1_filtered_4FGL_J2353.2+3135_daily_bin103.fits', '/scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits', expMap='/scratch/kocevski/168981/expmap_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.fits', expCube='/scratch/kocevski/168981/ltcube_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168981/Model_4FGL_J2353.2+3135_daily_bin103.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/168981/ft1_filtered_4FGL_J2353.2+3135_daily_bin103.fits
Spacecraft file(s): /scratch/kocevski/168981/ft2_4FGL_J2353.2+3135_daily_bin103.fits
Exposure map: /scratch/kocevski/168981/expmap_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.fits
Exposure cube: /scratch/kocevski/168981/ltcube_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168981/Model_4FGL_J2353.2+3135_daily_bin103.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) = 7357.4131059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5417       1.0000         .10000E-03   10000.    
     2 'norm      '    28.194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.580       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.811       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10504E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.809       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7533       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.718       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92302       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0274       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=   7357.349     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2490 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5408        3.8942       -.84394E-07    .11560E-05
   2  norm          28.194        17.543       -.75150E-07    .30268E-04
   3  Prefactor     .10000E-03    1.7271       -.22417E-07** at limit **
   4  Prefactor     .10000E-03    7.3590       -.16281E-06** at limit **
   5  Prefactor     .10000E-03    3.9231        .20454E-06** at limit **
   6  Prefactor     22.578        25.204        .62959E-07    .81638E-05
   7  Prefactor     15.806        24.432        .17321E-06    .19856E-04
   8  norm          2.4367        2.0479       -.47253E-06   -.69406E-04
   9  Prefactor     .10000E-03    49.363       -.46293E-06** at limit **
  10  norm          .10000E-03    1.0171        .45310E-07** at limit **
  11  Prefactor     .10000E-03    7.4977       -.17715E-06** at limit **
  12  Prefactor     30.125        18.516        .29642E-06    .14363E-03
  13  Prefactor     .10000E-03    7.6963       -.97282E-07** at limit **
  14  norm          .10000E-03    13.141       -.55779E-05** at limit **
  15  Prefactor     13.795        18.631        .76859E-06    .49635E-03
  16  norm          2.7536        3.2013       -.29167E-06   -.42011E-06
  17  Prefactor     .10000E-03    6.7250        .14582E-06** at limit **
  18  Prefactor     43.671        41.509        .16056E-05    .14897E-03
  19  Prefactor     .10000E-03    14.814       -.50579E-06** at limit **
  20  Prefactor     .10000E-03    2.1355       -.32243E-07** at limit **
  21  Normalizat    .92347        .21697        .27348E-06    .45632E-03
  22  Prefactor     1.0271        .11697        .10521E-06    .19840E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.54081
  norm       = 28.1944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5775
  Prefactor  = 15.806
  norm       = 2.43669
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1255
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 13.7947
  norm       = 2.75357
  Prefactor  = 0.0001
  Prefactor  = 43.6708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.923473
  Prefactor  = 1.02714
 **********
 **   18 **HESSE 
 **********

 FCN=   7357.349     FROM HESSE     STATUS=OK           340 CALLS     2830 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5408        3.9041        .11535E-03   -1.5159    
   2  norm          28.194        17.539        .75451E-04   -1.4645    
   3  Prefactor     .10000E-03    1.7299        .11006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.9675        .16575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.578        25.206        .84294E-04   -1.4757    
   7  Prefactor     15.806        24.434        .10073E-03   -1.4913    
   8  norm          2.4367        2.0515        .54783E-03   -1.5396    
   9  Prefactor     .10000E-03    49.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.2049        .16399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.125        18.464        .72995E-04   -1.4610    
  13  Prefactor     .10000E-03    7.7063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.562        .30474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.795        17.583        .10779E-03   -1.4965    
  16  norm          2.7536        3.1818        .15443E-03   -1.5376    
  17  Prefactor     .10000E-03    6.7330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.671        41.658        .60633E-04   -1.4385    
  19  Prefactor     .10000E-03    14.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1420        .12236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .92347        .23791        .33083E-03   -.95640    
  22  Prefactor     1.0271        .12827        .17809E-03   -.91830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42956e-09
Minuit parameter uncertainties:
  1  3.90428
  2  17.5426
  3  5.04763e-07
  4  4.31185e-07
  5  5.50479e-07
  6  25.2174
  7  24.4495
  8  2.05153
  9  9.70869e-05
  10  5.81775e-05
  11  7.61843e-06
  12  18.4677
  13  6.35172e-06
  14  0.000317719
  15  17.5894
  16  3.182
  17  1.24973e-06
  18  41.6855
  19  5.6476e-05
  20  1.10399e-06
  21  0.238183
  22  0.12831
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  4.367e+01  4.169e+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:  1.027e+00  1.283e-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.235e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 5.29e-08 +/- 5.05e-08
Energy Flux (Fixed Index): 1.35e-05 +/- 1.29e-05

TS (Fixed Index): 1.42
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168981/likelihoodResults_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.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) = 7356.42170615
delta logL = 0.927094048576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7356.38118491
delta logL = 0.967615289807

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9427       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4064       1.0000          .0000       10.000    
     3 'Normalizat'    .84530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0585       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.

 FCN=   7356.381     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      266 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9155        51.228        .45226E-02   -.39011E-03
   2  Index         4.4102        2.9115        .13021        .13153E-04
   3  Normalizat    .84475        .67222E-01    .77780E-01   -.77348E-05
   4  Prefactor     1.0588        .37563E-01    .39439E-01   -.54995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91553
  Index      = 4.41024
  Normalizat = 0.844751
  Prefactor  = 1.0588
 **********
 **   18 **HESSE 
 **********

 FCN=   7356.381     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9155        89.618        .11086E-03   -1.5265    
   2  Index         4.4102        4.1510        .48422E-02   -.11823    
   3  Normalizat    .84475        .20607        .34429E-03   -.98430    
   4  Prefactor     1.0588        .11576        .17570E-03   -.90794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.06832e-10
Minuit parameter uncertainties:
  1  42.05
  2  4.9156
  3  0.206265
  4  0.11579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168981': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7356.38117917
delta logL = 0.967621025241

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  4.916e+00  4.205e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  4.410e+00  4.916e+00  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:  1.059e+00  1.158e-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:  8.448e-01  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 358.322 31.593
Photon Index (Free Index): 4.41 +/- 4.92
Photon Flux (Free Index): 1.02e-07 +/- 6.34e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.34e-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/168981/cmap_HighResolution_266025601_266284801_4FGL_J2353.2+3135_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.29e-08', energy_flux2='1.44e-05', photon_flux_error='5.05e-08', dlogl='9.68e-01', energy_flux='1.35e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-30 07:52:15.840380', photon_index_error2='4.92', photon_index2='4.41', ts='1.42', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.34e-05', EG='0.92', time_epoch_completed='1633013535.84', return_code='0', job_id='168981', GAL2='1.06', EG2='0.84', return_code2='102', energy_flux_error='1.29e-05', photon_flux_error2='6.34e-08', ts2='3.61', photon_index='2.63' WHERE bin_id='103' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 168981: <4FGL_J2353.2+3135_daily_bin103> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin103> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:40:41 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:40:43 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:40:43 2021
Terminated at Thu Sep 30 07:52:16 2021
Results reported at Thu Sep 30 07:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin103 358.322 31.5927 266025601 266284801 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 :                                   680.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

