/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 134 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1083
RA = 358.322, Dec = 31.5927
tmin = 520041601, tmax = 520300801
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='173387', job_status='RUN', time_executed='2021-09-30 07:57:44.939041', time_epoch_executed='1633013864.94' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/173387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/173387/ft1_4FGL_J2353.2+3135_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/173387/ft2_4FGL_J2353.2+3135_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/173387/ft1_4FGL_J2353.2+3135_daily_bin1083.fits outfile=/scratch/kocevski/173387/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1083.fits ra=358.322 dec=31.5927 rad=12.0 tmin=520041601.0 tmax=520300801.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 4.29
user 4.06
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/173387/ft1_filtered_4FGL_J2353.2+3135_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/173387/ft2_4FGL_J2353.2+3135_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/173387/ltcube_520041601_520300801_4FGL_J2353.2+3135_daily_bin1083.fits outfile=/scratch/kocevski/173387/expmap_520041601_520300801_4FGL_J2353.2+3135_daily_bin1083.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/173387/ltcube_520041601_520300801_4FGL_J2353.2+3135_daily_bin1083.fits
.....................!
real 192.56
user 187.17
sys 5.03

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/173387/ft1_filtered_4FGL_J2353.2+3135_daily_bin1083.fits scfile=/scratch/kocevski/173387/ft2_4FGL_J2353.2+3135_daily_bin1083.fits outfile=/scratch/kocevski/173387/cmap_520041601_520300801_4FGL_J2353.2+3135_daily_bin1083.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/173387/ft1_filtered_4FGL_J2353.2+3135_daily_bin1083.fits scfile=/scratch/kocevski/173387/ft2_4FGL_J2353.2+3135_daily_bin1083.fits outfile=/scratch/kocevski/173387/cmap_HighResolution_520041601_520300801_4FGL_J2353.2+3135_daily_bin1083.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3501       1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1351       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9570       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.341       1.0000         .10000E-03   10000.    
     8 'norm      '    3.1136       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12416E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    37.141       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87794       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1115       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=   7465.331     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2383 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3516        3.8214        .18777E-06   -.21982E-03
   2  norm          .10000E-03    8.7853       -.72772E-06** at limit **
   3  Prefactor     3.1356        7.9178       -.38266E-05   -.39705E-03
   4  Prefactor     .10000E-03    22.718        .27776E-06** at limit **
   5  Prefactor     3.9572        7.0310       -.17994E-06   -.26763E-03
   6  Prefactor     .10000E-03    108.80        .46734E-06** at limit **
   7  Prefactor     29.344        27.626        .12507E-05   -.16478E-05
   8  norm          3.1138        2.1719        .55143E-07    .12184E-04
   9  Prefactor     .10000E-03    7.3504        .27385E-06** at limit **
  10  norm          .18283E-01    .62435        .14036E-06   -.39340E-03
  11  Prefactor     22.929        30.013        .63547E-06   -.16862E-04
  12  Prefactor     19.600        14.976        .10056E-05   -.45379E-04
  13  Prefactor     .10000E-03    11.297        .11355E-06** at limit **
  14  norm          10.078        5.9266        .33986E-07   -.16104E-03
  15  Prefactor     .10000E-03    5.6637        .47263E-06** at limit **
  16  norm          .10000E-03    .76969       -.39692E-07** at limit **
  17  Prefactor     .10000E-03    5.7879       -.13737E-06** at limit **
  18  Prefactor     37.141        36.453        .59110E-06   -.93200E-05
  19  Prefactor     40.603        53.542        .33312E-04    .27730E-04
  20  Prefactor     .10000E-03    5.2349       -.10514E-05** at limit **
  21  Normalizat    .87806        .22391       -.12077E-05   -.59318E-04
  22  Prefactor     1.1113        .11912       -.85699E-06    .49277E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.35157
  norm       = 0.0001
  Prefactor  = 3.13563
  Prefactor  = 0.0001
  Prefactor  = 3.95721
  Prefactor  = 0.0001
  Prefactor  = 29.3439
  norm       = 3.11376
  Prefactor  = 0.0001
  norm       = 0.0182825
  Prefactor  = 22.9288
  Prefactor  = 19.6003
  Prefactor  = 0.0001
  norm       = 10.0782
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1409
  Prefactor  = 40.6025
  Prefactor  = 0.000100002
  Normalizat = 0.878061
  Prefactor  = 1.11132
 **********
 **   18 **HESSE 
 **********

 FCN=   7465.331     FROM HESSE     STATUS=OK           350 CALLS     2733 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3516        3.8223        .11626E-03   -1.5166    
   2  norm          .10000E-03    8.8130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1356        7.9677        .22896E-03   -1.5354    
   4  Prefactor     .10000E-03    23.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.9572        7.0287        .20278E-03   -1.5310    
   6  Prefactor     .10000E-03    109.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.344        27.642        .73965E-04   -1.4624    
   8  norm          3.1138        2.1729        .10348E-03   -1.5355    
   9  Prefactor     .10000E-03    7.3510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .18283E-01    2.2467        .22992E-01   -1.5681    
  11  Prefactor     22.929        30.045        .83649E-04   -1.4750    
  12  Prefactor     19.600        14.966        .90465E-04   -1.4822    
  13  Prefactor     .10000E-03    11.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.078        5.9352        .12620E-03   -1.5073    
  15  Prefactor     .10000E-03    5.6707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .77608        .73999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.7902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     37.141        36.539        .65763E-04   -1.4488    
  19  Prefactor     40.603        53.586        .62931E-04   -1.4433    
  20  Prefactor     .10000E-03    5.2876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87806        .25610        .36218E-03   -.97235    
  22  Prefactor     1.1113        .13810        .17919E-03   -.89106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0167e-09
Minuit parameter uncertainties:
  1  3.82245
  2  0.000114329
  3  7.97037
  4  2.82707e-05
  5  7.03021
  6  0.000210418
  7  27.6538
  8  2.17298
  9  2.07745e-07
  10  0.40425
  11  30.0645
  12  14.9684
  13  8.01161e-06
  14  5.93556
  15  3.51162e-06
  16  7.56207e-07
  17  2.92663e-06
  18  36.5609
  19  53.6493
  20  0.000197471
  21  0.256459
  22  0.138146
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.714e+01  3.656e+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.111e+00  1.381e-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.781e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 4.50e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.13e-05

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

Saving results to:
/scratch/kocevski/173387/likelihoodResults_520041601_520300801_4FGL_J2353.2+3135_daily_bin1083.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) = 7465.32037426
delta logL = 0.0108049083483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7465.31584743
delta logL = 0.0153317370577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.465       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7708       1.0000          .0000       10.000    
     3 'Normalizat'    .87202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1135       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=   7465.316     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      253 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.438        42.563        .69269E-04   -.32660E-04
   2  Index         2.7718        .86387        .82872E-02    .29783E-03
   3  Normalizat    .87204        .24944        .36333E-03   -.10270E-03
   4  Prefactor     1.1135        .13591        .17904E-03    .17962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.4384
  Index      = 2.77179
  Normalizat = 0.872039
  Prefactor  = 1.11345
 **********
 **   18 **HESSE 
 **********

 FCN=   7465.316     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.438        40.546        .27708E-05   -1.4551    
   2  Index         2.7718        .82255        .16574E-02   -.46189    
   3  Normalizat    .87204        .24955        .14533E-04   -.97450    
   4  Prefactor     1.1135        .13596        .35809E-04   -.89038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60351e-10
Minuit parameter uncertainties:
  1  40.5795
  2  0.827247
  3  0.249878
  4  0.136002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/173387': 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) = 7465.31584663
delta logL = 0.0153325352103

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  3.344e+01  4.058e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.772e+00  8.272e-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.113e+00  1.360e-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.720e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 358.322 31.593
Photon Index (Free Index): 2.77 +/- 0.83
Photon Flux (Free Index): 4.95e-08 +/- 5.25e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.09e-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/173387/cmap_HighResolution_520041601_520300801_4FGL_J2353.2+3135_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.50e-08', energy_flux2='1.13e-05', photon_flux_error='4.43e-08', dlogl='1.53e-02', energy_flux='1.15e-05', photon_flux2='4.95e-08', job_status='DONE', time_completed='2021-09-30 08:09:30.836774', photon_index_error2='0.83', photon_index2='2.77', ts='1.55', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.09e-05', EG='0.88', time_epoch_completed='1633014570.84', return_code='0', job_id='173387', GAL2='1.11', EG2='0.87', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='5.25e-08', ts2='1.59', photon_index='2.63' WHERE bin_id='1083' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:09:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 173387: <4FGL_J2353.2+3135_daily_bin1083> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1083> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:55:21 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:55:23 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:23 2021
Terminated at Thu Sep 30 08:09:31 2021
Results reported at Thu Sep 30 08:09:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1083 358.322 31.5927 520041601 520300801 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 :                                   686.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             334.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

