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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1323
RA = 358.322, Dec = 31.5927
tmin = 582249601, tmax = 582508801
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='174775', job_status='RUN', time_executed='2021-09-30 08:00:30.475721', time_epoch_executed='1633014030.48' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174775/ft1_4FGL_J2353.2+3135_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174775/ft2_4FGL_J2353.2+3135_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174775/ft1_4FGL_J2353.2+3135_daily_bin1323.fits outfile=/scratch/kocevski/174775/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1323.fits ra=358.322 dec=31.5927 rad=12.0 tmin=582249601.0 tmax=582508801.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.45
user 5.15
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174775/ft1_filtered_4FGL_J2353.2+3135_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/174775/ft2_4FGL_J2353.2+3135_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/174775/ltcube_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.fits outfile=/scratch/kocevski/174775/expmap_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.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/174775/ltcube_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.fits
.....................!
real 193.55
user 188.30
sys 4.76

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/174775/ft1_filtered_4FGL_J2353.2+3135_daily_bin1323.fits scfile=/scratch/kocevski/174775/ft2_4FGL_J2353.2+3135_daily_bin1323.fits outfile=/scratch/kocevski/174775/cmap_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174775/ft1_filtered_4FGL_J2353.2+3135_daily_bin1323.fits scfile=/scratch/kocevski/174775/ft2_4FGL_J2353.2+3135_daily_bin1323.fits outfile=/scratch/kocevski/174775/cmap_HighResolution_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/174775/ft1_filtered_4FGL_J2353.2+3135_daily_bin1323.fits', '/scratch/kocevski/174775/ft2_4FGL_J2353.2+3135_daily_bin1323.fits', expMap='/scratch/kocevski/174775/expmap_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.fits', expCube='/scratch/kocevski/174775/ltcube_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/174775/Model_4FGL_J2353.2+3135_daily_bin1323.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/174775/ft1_filtered_4FGL_J2353.2+3135_daily_bin1323.fits
Spacecraft file(s): /scratch/kocevski/174775/ft2_4FGL_J2353.2+3135_daily_bin1323.fits
Exposure map: /scratch/kocevski/174775/expmap_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.fits
Exposure cube: /scratch/kocevski/174775/ltcube_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/174775/Model_4FGL_J2353.2+3135_daily_bin1323.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7547.34993013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6951       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1336       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .60338       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .55575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.948       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7032       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.578       1.0000         .10000E-03   10000.    
    16 'norm      '    .13035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.406       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73768       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0283       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=   7547.209     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2076 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6952        1.9391        .79410E-07   -.16560E-03
   2  norm          .10000E-03    12.649       -.15730E-05** at limit **
   3  Prefactor     14.336        7.5731       -.15755E-07    .13778E-04
   4  Prefactor     .10000E-03    2.5328        .17672E-07** at limit **
   5  Prefactor     5.1324        5.6371        .29660E-05   -.19740E-02
   6  Prefactor     .10000E-03    27.584       -.42655E-05** at limit **
   7  Prefactor     .10001E-03    22.454        .58769E-05** at limit **
   8  norm          .60379        2.0142        .60978E-06   -.52484E-03
   9  Prefactor     .10000E-03    10.217        .20493E-05** at limit **
  10  norm          .55677        1.0625        .32468E-06   -.28487E-05
  11  Prefactor     23.945        22.401       -.33694E-06   -.11914E-03
  12  Prefactor     .10000E-03    5.1979        .17926E-06** at limit **
  13  Prefactor     3.6926        33.859       -.69450E-05   -.19873E-03
  14  norm          .10000E-03    1.7768       -.15672E-07** at limit **
  15  Prefactor     44.572        18.209       -.41591E-06   -.35309E-03
  16  norm          .10000E-03    1.4871        .12170E-06** at limit **
  17  Prefactor     .10000E-03    6.4069       -.37509E-06** at limit **
  18  Prefactor     34.395        27.880       -.44044E-05   -.56545E-03
  19  Prefactor     .10000E-03    12.952       -.16182E-05** at limit **
  20  Prefactor     .10000E-03    2.1492        .14424E-07** at limit **
  21  Normalizat    .73770        .18683       -.32054E-06   -.47661E-04
  22  Prefactor     1.0283        .10407        .87750E-09   -.74630E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.69521
  norm       = 0.000100001
  Prefactor  = 14.3362
  Prefactor  = 0.0001
  Prefactor  = 5.13242
  Prefactor  = 0.000100005
  Prefactor  = 0.000100008
  norm       = 0.60379
  Prefactor  = 0.000100001
  norm       = 0.556769
  Prefactor  = 23.9451
  Prefactor  = 0.0001
  Prefactor  = 3.69261
  norm       = 0.0001
  Prefactor  = 44.5715
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3945
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.737704
  Prefactor  = 1.02829
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.209     FROM HESSE     STATUS=OK           340 CALLS     2416 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6952        1.9226        .12542E-03   -1.5448    
   2  norm          .10000E-03    12.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.336        7.5684        .10579E-03   -1.4951    
   4  Prefactor     .10000E-03    2.5357        .13502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1324        6.5156        .88721E-03   -1.5255    
   6  Prefactor     .10000E-03    28.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    23.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .60379        2.0218        .21867E-03   -1.5553    
   9  Prefactor     .10000E-03    10.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55677        .96605        .11821E-02   -1.5559    
  11  Prefactor     23.945        22.407        .81855E-04   -1.4729    
  12  Prefactor     .10000E-03    5.2219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.6926        35.162        .20986E-03   -1.5324    
  14  norm          .10000E-03    1.7805        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.572        18.152        .60048E-04   -1.4372    
  16  norm          .10000E-03    3.1872        .20530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.4234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     34.395        28.575        .68318E-04   -1.4534    
  19  Prefactor     .10000E-03    13.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1545        .12433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73770        .21650        .33813E-03   -1.0242    
  22  Prefactor     1.0283        .12036        .16609E-03   -.91792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14663e-08
Minuit parameter uncertainties:
  1  1.92267
  2  0.00018455
  3  7.56893
  4  1.37916e-08
  5  6.51649
  6  0.000733735
  7  0.000844406
  8  2.02203
  9  0.000205814
  10  0.96608
  11  22.415
  12  7.00073e-06
  13  22.8066
  14  5.57362e-06
  15  18.1538
  16  2.81384e-05
  17  2.69201e-05
  18  28.5868
  19  0.000188236
  20  9.691e-08
  21  0.216755
  22  0.120393
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.439e+01  2.859e+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.028e+00  1.204e-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.377e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 8.84e-06

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

Saving results to:
/scratch/kocevski/174775/likelihoodResults_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.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) = 7546.1175501
delta logL = 1.09191448998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7545.87581466
delta logL = 1.33364992784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.041       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6903       1.0000          .0000       10.000    
     3 'Normalizat'    .77077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0128       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=   7545.876     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      250 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.022        43.700        .25678E-03   -.80685E-04
   2  Index         1.6903        .43023        .78945E-02    .46147E-04
   3  Normalizat    .77077        .20706        .33116E-03    .44883E-03
   4  Prefactor     1.0128        .11904        .16705E-03    .74089E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.0224
  Index      = 1.6903
  Normalizat = 0.770768
  Prefactor  = 1.01278
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.022        44.152        .51356E-04   -1.4144    
   2  Index         1.6903        .43473        .31578E-03   -.72341    
   3  Normalizat    .77077        .20720        .13246E-04   -1.0116    
   4  Prefactor     1.0128        .11911        .33411E-04   -.92305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52446e-10
Minuit parameter uncertainties:
  1  44.1757
  2  0.435707
  3  0.207409
  4  0.119142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174775': 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) = 7545.87581452
delta logL = 1.3336500639

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  6.102e+01  4.418e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  1.690e+00  4.357e-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.013e+00  1.191e-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.708e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.06
Ra Dec: 358.322 31.593
Photon Index (Free Index): 1.69 +/- 0.44
Photon Flux (Free Index): 2.62e-08 +/- 2.24e-08
Energy Flux (Free Index): 4.41e-05 +/- 4.90e-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/174775/cmap_HighResolution_582249601_582508801_4FGL_J2353.2+3135_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-03', comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='4.41e-05', photon_flux_error='3.46e-08', dlogl='1.33e+00', energy_flux='1.06e-05', photon_flux2='2.62e-08', job_status='DONE', time_completed='2021-09-30 08:11:57.689931', photon_index_error2='0.44', photon_index2='1.69', ts='2.40', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='4.90e-05', EG='0.74', time_epoch_completed='1633014717.69', return_code='0', job_id='174775', GAL2='1.01', EG2='0.77', return_code2='0', energy_flux_error='8.84e-06', photon_flux_error2='2.24e-08', ts2='5.06', photon_index='2.63' WHERE bin_id='1323' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:11:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 174775: <4FGL_J2353.2+3135_daily_bin1323> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1323> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 08:00:18 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:00:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:00:21 2021
Terminated at Thu Sep 30 08:11:58 2021
Results reported at Thu Sep 30 08:11:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1323 358.322 31.5927 582249601 582508801 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 :                                   677.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             347.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            700 sec.

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

