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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin88
RA = 358.322, Dec = 31.5927
tmin = 262137601, tmax = 262396801
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='168959', job_status='RUN', time_executed='2021-09-30 07:42:49.416177', time_epoch_executed='1633012969.42' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168959/ft1_4FGL_J2353.2+3135_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168959/ft2_4FGL_J2353.2+3135_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168959/ft1_4FGL_J2353.2+3135_daily_bin88.fits outfile=/scratch/kocevski/168959/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin88.fits ra=358.322 dec=31.5927 rad=12.0 tmin=262137601.0 tmax=262396801.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.42
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168959/ft1_filtered_4FGL_J2353.2+3135_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/168959/ft2_4FGL_J2353.2+3135_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/168959/ltcube_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.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/168959/ft2_4FGL_J2353.2+3135_daily_bin88.fits
.....................!
real 14.22
user 13.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168959/ft1_filtered_4FGL_J2353.2+3135_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/168959/ft2_4FGL_J2353.2+3135_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/168959/ltcube_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.fits outfile=/scratch/kocevski/168959/expmap_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.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/168959/ltcube_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.fits
.....................!
real 190.80
user 186.08
sys 4.36

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/168959/ft1_filtered_4FGL_J2353.2+3135_daily_bin88.fits scfile=/scratch/kocevski/168959/ft2_4FGL_J2353.2+3135_daily_bin88.fits outfile=/scratch/kocevski/168959/cmap_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168959/ft1_filtered_4FGL_J2353.2+3135_daily_bin88.fits scfile=/scratch/kocevski/168959/ft2_4FGL_J2353.2+3135_daily_bin88.fits outfile=/scratch/kocevski/168959/cmap_HighResolution_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0224       1.0000         .10000E-03   10000.    
     2 'norm      '    45.713       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15210E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29924E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.6658       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1724       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11150E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.500       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24063E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .70749       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1063       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=   9364.175     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2525 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0211        2.6354       -.22629E-06   -.19286E-03
   2  norm          45.746        18.243       -.36498E-06    .11255E-04
   3  Prefactor     .10000E-03    4.2048        .73123E-07** at limit **
   4  Prefactor     .10000E-03    4.6555        .38323E-08** at limit **
   5  Prefactor     .10034E-03    21.928       -.42345E-05** at limit **
   6  Prefactor     .10001E-03    250.48        .10509E-04** at limit **
   7  Prefactor     .10000E-03    76.773        .10134E-06** at limit **
   8  norm          3.6657        2.2476       -.72052E-07   -.25396E-04
   9  Prefactor     .10000E-03    9.7466        .65149E-07** at limit **
  10  norm          1.5121        1.1821       -.90829E-08    .58300E-03
  11  Prefactor     .10000E-03    12.299       -.28961E-07** at limit **
  12  Prefactor     .10000E-03    5.5241       -.15651E-07** at limit **
  13  Prefactor     .10000E-03    4.1451       -.14493E-07** at limit **
  14  norm          .10005E-03    9.5579       -.20691E-06** at limit **
  15  Prefactor     7.1754        12.350        .27577E-05    .68529E-03
  16  norm          2.8251        2.7743       -.19692E-06   -.18250E-03
  17  Prefactor     .10000E-03    32.973       -.14807E-07** at limit **
  18  Prefactor     30.515        28.597       -.43954E-06    .67486E-04
  19  Prefactor     .10000E-03    82.452        .44153E-06** at limit **
  20  Prefactor     .10000E-03    8.6017        .94580E-07** at limit **
  21  Normalizat    .70769        .17994        .14663E-05    .51525E-03
  22  Prefactor     1.1062        .98499E-01   -.69503E-07    .12165E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.02115
  norm       = 45.7461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100342
  Prefactor  = 0.000100015
  Prefactor  = 0.000100001
  norm       = 3.66571
  Prefactor  = 0.0001
  norm       = 1.51211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100048
  Prefactor  = 7.17544
  norm       = 2.82514
  Prefactor  = 0.0001
  Prefactor  = 30.5149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.707686
  Prefactor  = 1.10619
 **********
 **   18 **HESSE 
 **********

 FCN=   9364.175     FROM HESSE     STATUS=OK           350 CALLS     2875 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0211        2.6455        .16982E-03   -1.5424    
   2  norm          45.746        18.194        .59301E-04   -1.4354    
   3  Prefactor     .10000E-03    4.2519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10034E-03    3.5131        .53961E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    247.77        .39662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    79.053        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.6657        2.2481        .11017E-03   -1.5325    
   9  Prefactor     .10000E-03    9.7591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5121        1.1801        .89054E-04   -1.5462    
  11  Prefactor     .10000E-03    12.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10005E-03    12.992        .32405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.1754        12.708        .14978E-03   -1.5172    
  16  norm          2.8251        2.7904        .15428E-03   -1.5372    
  17  Prefactor     .10000E-03    33.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.515        28.591        .72550E-04   -1.4603    
  19  Prefactor     .10000E-03    83.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9567        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .70769        .20039        .35933E-03   -1.0359    
  22  Prefactor     1.1062        .11203        .16785E-03   -.89269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18797e-09
Minuit parameter uncertainties:
  1  2.64562
  2  18.1959
  3  1.77166e-06
  4  1.84749e-06
  5  0.00219196
  6  0.00385719
  7  0.000598496
  8  2.24818
  9  1.05359e-05
  10  1.18012
  11  4.36422e-06
  12  2.43542e-06
  13  2.01786e-06
  14  0.00158452
  15  12.7133
  16  2.79054
  17  0.00012034
  18  28.6037
  19  0.000131657
  20  5.38785e-06
  21  0.200597
  22  0.11205
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.051e+01  2.860e+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.106e+00  1.121e-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:  7.077e-01  2.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 9.43e-06 +/- 8.84e-06

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

Saving results to:
/scratch/kocevski/168959/likelihoodResults_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.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) = 9364.17134261
delta logL = 0.00330559027861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9364.16932719
delta logL = 0.0053210097376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.637       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5502       1.0000          .0000       10.000    
     3 'Normalizat'    .71025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1051       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=   9364.169     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      271 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.638        37.751        .70140E-04    .97251E-05
   2  Index         2.5503        .80163        .97607E-02   -.25354E-04
   3  Normalizat    .71012        .19383        .35875E-03    .92408E-04
   4  Prefactor     1.1052        .11053        .16792E-03    .20414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.6378
  Index      = 2.55026
  Normalizat = 0.710116
  Prefactor  = 1.10522
 **********
 **   18 **HESSE 
 **********

 FCN=   9364.169     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.638        36.091        .28056E-05   -1.4565    
   2  Index         2.5503        .76594        .39043E-03   -.51203    
   3  Normalizat    .71012        .19384        .14350E-04   -1.0349    
   4  Prefactor     1.1052        .11054        .33583E-04   -.89300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61304e-11
Minuit parameter uncertainties:
  1  36.1152
  2  0.769937
  3  0.194025
  4  0.110561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168959': 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) = 9364.16932693
delta logL = 0.00532126717371

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.264e+01  3.612e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.550e+00  7.699e-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:  1.105e+00  1.106e-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:  7.101e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 358.322 31.593
Photon Index (Free Index): 2.55 +/- 0.77
Photon Flux (Free Index): 3.54e-08 +/- 3.70e-08
Energy Flux (Free Index): 9.74e-06 +/- 9.65e-06

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/168959/cmap_HighResolution_262137601_262396801_4FGL_J2353.2+3135_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.78e-03', comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='9.74e-06', photon_flux_error='3.46e-08', dlogl='5.32e-03', energy_flux='9.43e-06', photon_flux2='3.54e-08', job_status='DONE', time_completed='2021-09-30 07:55:59.411821', photon_index_error2='0.77', photon_index2='2.55', ts='1.67', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='9.65e-06', EG='0.71', time_epoch_completed='1633013759.41', return_code='0', job_id='168959', GAL2='1.11', EG2='0.71', return_code2='0', energy_flux_error='8.84e-06', photon_flux_error2='3.70e-08', ts2='1.67', photon_index='2.63' WHERE bin_id='88' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:55:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 168959: <4FGL_J2353.2+3135_daily_bin88> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin88 358.322 31.5927 262137601 262396801 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 :                                   789.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            920 sec.

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

