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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin919
RA = 358.322, Dec = 31.5927
tmin = 477532801, tmax = 477792001
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='172250', job_status='RUN', time_executed='2021-09-30 07:51:33.225185', time_epoch_executed='1633013493.23' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='919'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172250

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172250/ft1_4FGL_J2353.2+3135_daily_bin919.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172250/ft2_4FGL_J2353.2+3135_daily_bin919.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172250/ft1_4FGL_J2353.2+3135_daily_bin919.fits outfile=/scratch/kocevski/172250/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin919.fits ra=358.322 dec=31.5927 rad=12.0 tmin=477532801.0 tmax=477792001.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 3.58
user 3.36
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172250/ft1_filtered_4FGL_J2353.2+3135_daily_bin919.fits evtable="EVENTS" scfile=/scratch/kocevski/172250/ft2_4FGL_J2353.2+3135_daily_bin919.fits sctable="SC_DATA" expcube=/scratch/kocevski/172250/ltcube_477532801_477792001_4FGL_J2353.2+3135_daily_bin919.fits outfile=/scratch/kocevski/172250/expmap_477532801_477792001_4FGL_J2353.2+3135_daily_bin919.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/172250/ltcube_477532801_477792001_4FGL_J2353.2+3135_daily_bin919.fits
.....................!
real 190.13
user 185.60
sys 4.12

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/172250/ft1_filtered_4FGL_J2353.2+3135_daily_bin919.fits scfile=/scratch/kocevski/172250/ft2_4FGL_J2353.2+3135_daily_bin919.fits outfile=/scratch/kocevski/172250/cmap_477532801_477792001_4FGL_J2353.2+3135_daily_bin919.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/172250/ft1_filtered_4FGL_J2353.2+3135_daily_bin919.fits scfile=/scratch/kocevski/172250/ft2_4FGL_J2353.2+3135_daily_bin919.fits outfile=/scratch/kocevski/172250/cmap_HighResolution_477532801_477792001_4FGL_J2353.2+3135_daily_bin919.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.52
user 0.36
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.700       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3722       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .60987E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12158E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6605       1.0000         .10000E-03   10000.    
     8 'norm      '    1.2635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.027       1.0000         .10000E-03   10000.    
    16 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.135       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6901       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2501       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83217       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=   8363.211     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2406 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.701        5.1148        .18696E-02   -.45401E-03
   2  norm          5.3744        14.435        .43346E-02    .25396E-03
   3  Prefactor     .10000E-03    2.0479        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.7217        .90712E-02** at limit **
   5  Prefactor     .61495E-02    4.1965        .63056E-01    .45423E-04
   6  Prefactor     .10003E-03    86.171        .90712E-02** at limit **
   7  Prefactor     9.6617        16.822        .32233E-02    .13757E-03
   8  norm          1.2635        1.3402        .99126E-02    .55243E-03
   9  Prefactor     .10000E-03    10.006        .90712E-02** at limit **
  10  norm          .10000E-03    .44851        .32488E-01** at limit **
  11  Prefactor     7.5258        10.340        .36548E-02    .33661E-03
  12  Prefactor     1.4470        20.592        .89008E-02   -.12445E-02
  13  Prefactor     .10000E-03    15.205        .90712E-02** at limit **
  14  norm          .10000E-03    2.9806        .90712E-02** at limit **
  15  Prefactor     20.038        15.981        .22375E-02    .27314E-03
  16  norm          .10000E-03    1.1021        .90712E-02** at limit **
  17  Prefactor     .10005E-03    47.270        .90712E-02** at limit **
  18  Prefactor     58.133        33.628        .13154E-02    .89157E-03
  19  Prefactor     .10002E-03    34.327        .90712E-02** at limit **
  20  Prefactor     8.6916        6.9572        .33994E-02    .60670E-03
  21  Normalizat    1.2497        .19015        .66170E-01   -.11041E-03
  22  Prefactor     .83242        .99343E-01    .44134E-01   -.10482E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.7009
  norm       = 5.37443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00614955
  Prefactor  = 0.000100025
  Prefactor  = 9.66168
  norm       = 1.26353
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.52582
  Prefactor  = 1.44696
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.0379
  norm       = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 58.1327
  Prefactor  = 0.000100019
  Prefactor  = 8.69157
  Normalizat = 1.2497
  Prefactor  = 0.832418
 **********
 **   18 **HESSE 
 **********

 FCN=   8363.211     FROM HESSE     STATUS=OK           350 CALLS     2756 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.701        5.1261        .74784E-04   -1.4636    
   2  norm          5.3744        14.370        .17338E-03   -1.5244    
   3  Prefactor     .10000E-03    2.0536        .12774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61495E-02    5.0905        .55014E-01   -1.5692    
   6  Prefactor     .10003E-03    88.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.6617        16.821        .12893E-03   -1.5086    
   8  norm          1.2635        1.3155        .10625E-03   -1.5483    
   9  Prefactor     .10000E-03    10.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .68043        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5258        10.337        .14619E-03   -1.5159    
  12  Prefactor     1.4470        20.793        .35603E-03   -1.5467    
  13  Prefactor     .10000E-03    15.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0054        .15377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.038        15.977        .89501E-04   -1.4812    
  16  norm          .10000E-03    1.1323        .18726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10005E-03    49.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     58.133        33.727        .52617E-04   -1.4182    
  19  Prefactor     .10002E-03    34.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6916        6.9278        .13598E-03   -1.5118    
  21  Normalizat    1.2497        .22405        .29273E-03   -.85081    
  22  Prefactor     .83242        .11663        .19067E-03   -.98544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34123e-08
Minuit parameter uncertainties:
  1  5.12622
  2  14.379
  3  2.11598e-07
  4  9.03837e-06
  5  0.351002
  6  0.00299136
  7  16.8292
  8  1.31548
  9  1.56762e-05
  10  8.57516e-07
  11  10.339
  12  10.9745
  13  8.45892e-05
  14  6.47389e-06
  15  15.9804
  16  8.46061e-06
  17  0.00308811
  18  33.7385
  19  0.00159771
  20  6.92847
  21  0.224226
  22  0.11666
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  5.813e+01  3.374e+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:  8.324e-01  1.167e-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:  1.250e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.15
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 7.05e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.04e-05

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) = 8362.64618987
delta logL = 0.565119092456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8362.60934721
delta logL = 0.601961747774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0427       1.0000          .0000       10.000    
     3 'Normalizat'    1.2886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82036       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=   8362.609     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.355        46.269        .23931E-03   -.11620E-03
   2  Index         2.0426        .52171        .95249E-02   -.80951E-04
   3  Normalizat    1.2886        .21364        .28891E-03   -.85748E-03
   4  Prefactor     .82036        .11528        .19193E-03   -.11508E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.3552
  Index      = 2.04257
  Normalizat = 1.28859
  Prefactor  = 0.820361
 **********
 **   18 **HESSE 
 **********

 FCN=   8362.609     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.355        46.564        .95724E-05   -1.4028    
   2  Index         2.0426        .52486        .38100E-03   -.63290    
   3  Normalizat    1.2886        .21379        .57783E-04   -.83908    
   4  Prefactor     .82036        .11536        .38386E-04   -.98982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20215e-10
Minuit parameter uncertainties:
  1  46.5883
  2  0.526349
  3  0.213933
  4  0.115392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172250': 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) = 8362.60934712
delta logL = 0.601961835839

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  7.036e+01  4.659e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.043e+00  5.263e-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:  8.204e-01  1.154e-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:  1.289e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.30
Ra Dec: 358.322 31.593
Photon Index (Free Index): 2.04 +/- 0.53
Photon Flux (Free Index): 4.09e-08 +/- 3.87e-08
Energy Flux (Free Index): 2.55e-05 +/- 2.14e-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/172250/cmap_HighResolution_477532801_477792001_4FGL_J2353.2+3135_daily_bin919.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.05e-08', energy_flux2='2.55e-05', photon_flux_error='4.09e-08', dlogl='6.02e-01', energy_flux='1.80e-05', photon_flux2='4.09e-08', job_status='DONE', time_completed='2021-09-30 08:02:54.254593', photon_index_error2='0.53', photon_index2='2.04', ts='7.15', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.25', time_epoch_completed='1633014174.25', return_code='0', job_id='172250', GAL2='0.82', EG2='1.29', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.87e-08', ts2='8.30', photon_index='2.63' WHERE bin_id='919' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:02:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 172250: <4FGL_J2353.2+3135_daily_bin919> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin919> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 07:51:15 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:51:16 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:51:16 2021
Terminated at Thu Sep 30 08:02:55 2021
Results reported at Thu Sep 30 08:02:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin919 358.322 31.5927 477532801 477792001 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

