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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin482
RA = 358.322, Dec = 31.5927
tmin = 364262401, tmax = 364521601
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='170507', job_status='RUN', time_executed='2021-09-30 07:45:56.416264', time_epoch_executed='1633013156.42' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170507/ft1_4FGL_J2353.2+3135_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170507/ft2_4FGL_J2353.2+3135_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170507/ft1_4FGL_J2353.2+3135_daily_bin482.fits outfile=/scratch/kocevski/170507/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin482.fits ra=358.322 dec=31.5927 rad=12.0 tmin=364262401.0 tmax=364521601.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.20
user 2.99
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170507/ft1_filtered_4FGL_J2353.2+3135_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/170507/ft2_4FGL_J2353.2+3135_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/170507/ltcube_364262401_364521601_4FGL_J2353.2+3135_daily_bin482.fits outfile=/scratch/kocevski/170507/expmap_364262401_364521601_4FGL_J2353.2+3135_daily_bin482.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/170507/ltcube_364262401_364521601_4FGL_J2353.2+3135_daily_bin482.fits
.....................!
real 188.34
user 184.45
sys 3.54

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/170507/ft1_filtered_4FGL_J2353.2+3135_daily_bin482.fits scfile=/scratch/kocevski/170507/ft2_4FGL_J2353.2+3135_daily_bin482.fits outfile=/scratch/kocevski/170507/cmap_364262401_364521601_4FGL_J2353.2+3135_daily_bin482.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/170507/ft1_filtered_4FGL_J2353.2+3135_daily_bin482.fits scfile=/scratch/kocevski/170507/ft2_4FGL_J2353.2+3135_daily_bin482.fits outfile=/scratch/kocevski/170507/cmap_HighResolution_364262401_364521601_4FGL_J2353.2+3135_daily_bin482.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0056       1.0000         .10000E-03   10000.    
     2 'norm      '    60.585       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2968       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9691       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.570       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7664       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.6501       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.327       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.434       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .71653       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4179       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73489       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1748       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9492.155     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2354 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0065        3.5931         .0000        .40443E-03
   2  norm          60.581        23.561         .0000        .60309E-02
   3  Prefactor     3.2974        7.7838         .0000        .88842E-02
   4  Prefactor     .10000E-03    4.4284         .0000    ** at limit **
   5  Prefactor     12.433        8.3610         .0000        .23075E-02
   6  Prefactor     5.9689        36.415         .0000        .16032E-03
   7  Prefactor     14.570        18.861         .0000       -.76256E-04
   8  norm          2.7664        2.1111         .0000        .58116E-04
   9  Prefactor     .10000E-03    10.595         .0000    ** at limit **
  10  norm          1.6500        1.3912         .0000        .86759E-03
  11  Prefactor     21.327        17.548         .0000        .65728E-04
  12  Prefactor     1.5745        35.072         .0000        .46196E-02
  13  Prefactor     16.434        20.289         .0000       -.20468E-03
  14  norm          .10000E-03    1.5860         .0000    ** at limit **
  15  Prefactor     .10000E-03    6.0908         .0000    ** at limit **
  16  norm          .71439        1.9542         .0000        .14474E-02
  17  Prefactor     .10000E-03    7.3579         .0000    ** at limit **
  18  Prefactor     .10000E-03    7.5889         .0000    ** at limit **
  19  Prefactor     .10000E-03    29.045         .0000    ** at limit **
  20  Prefactor     2.4189        7.6030         .0000        .10498E-01
  21  Normalizat    .73483        .20449         .0000        .33853E-04
  22  Prefactor     1.1748        .10897         .0000       -.29021E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.0065
  norm       = 60.5809
  Prefactor  = 3.29739
  Prefactor  = 0.0001
  Prefactor  = 12.4328
  Prefactor  = 5.96891
  Prefactor  = 14.5697
  norm       = 2.76644
  Prefactor  = 0.0001
  norm       = 1.65004
  Prefactor  = 21.3267
  Prefactor  = 1.57454
  Prefactor  = 16.4343
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.71439
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 2.41895
  Normalizat = 0.734829
  Prefactor  = 1.17479
 **********
 **   18 **HESSE 
 **********

 FCN=   9492.155     FROM HESSE     STATUS=OK           350 CALLS     2704 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0065        3.6004        .13358E-03   -1.5218    
   2  norm          60.581        23.352        .51548E-04   -1.4150    
   3  Prefactor     3.2974        7.7184        .11149E-02   -1.5345    
   4  Prefactor     .10000E-03    4.4375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.433        8.3831        .56804E-03   -1.5003    
   6  Prefactor     5.9689        36.386        .16435E-03   -1.5219    
   7  Prefactor     14.570        18.856        .10493E-03   -1.4944    
   8  norm          2.7664        2.1130        .12003E-03   -1.5375    
   9  Prefactor     .10000E-03    10.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.6500        1.3789        .10035E-03   -1.5451    
  11  Prefactor     21.327        17.547        .86732E-04   -1.4784    
  12  Prefactor     1.5745        32.148        .16944E-02   -1.5457    
  13  Prefactor     16.434        20.296        .98798E-04   -1.4897    
  14  norm          .10000E-03    1.5954        .11980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .71439        1.9694        .20158E-02   -1.5539    
  17  Prefactor     .10000E-03    7.3641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4189        7.5022        .13162E-02   -1.5397    
  21  Normalizat    .73483        .22786        .39297E-03   -1.0253    
  22  Prefactor     1.1748        .12291        .17632E-03   -.87111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36266e-08
Minuit parameter uncertainties:
  1  3.60056
  2  23.3557
  3  7.72073
  4  3.23696e-06
  5  8.3839
  6  29.5008
  7  18.8641
  8  2.11302
  9  1.55824e-05
  10  1.37896
  11  17.5514
  12  14.2376
  13  20.3041
  14  1.13696e-06
  15  3.09219e-05
  16  1.96962
  17  0.000267276
  18  0.000222308
  19  0.000179175
  20  7.50507
  21  0.228152
  22  0.122938
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  2.223e-04  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.175e+00  1.229e-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.348e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 4.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/170507/likelihoodResults_364262401_364521601_4FGL_J2353.2+3135_daily_bin482.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): 102
logL (Free Index) = 9492.15562561
delta logL = -0.000626483428277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9492.15499904
delta logL = 8.73806129675e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6114       1.0000          .0000       10.000    
     3 'Normalizat'    .73484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1748       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=   9492.155     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      262 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.353        .18142E-01** at limit **
   2  Index         1.9511        8.0457        .50000       -.20827E-07
   3  Normalizat    .73483        .10357E-01    .39297E-03   -.73251E-04
   4  Prefactor     1.1748        .57897E-02    .17632E-03   -.14962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95114
  Normalizat = 0.734828
  Prefactor  = 1.17479
 **********
 **   18 **HESSE 
 **********

 FCN=   9492.155     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    285.06        .30633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9511        5.7635        .50000       -.65577    
   3  Normalizat    .73483        .25881E-01    .15719E-04   -1.0253    
   4  Prefactor     1.1748        .14468E-01    .35263E-04   -.87111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06722e-11
Minuit parameter uncertainties:
  1  3.94547e-06
  2  1001.25
  3  0.0258811
  4  0.0144683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170507': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9492.15499737
delta logL = 1.76403409569e-06

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  3.945e-06  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  1.951e+00  1.001e+03  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.175e+00  1.447e-02  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.348e-01  2.588e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.322 31.593

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/170507/cmap_HighResolution_364262401_364521601_4FGL_J2353.2+3135_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-03', job_status='DONE', photon_flux_upper_limit='4.98e-08', time_completed='2021-09-30 07:58:48.047703', job_id='170507', GAL2='1.17', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1633013928.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='482' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:58:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 170507: <4FGL_J2353.2+3135_daily_bin482> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin482> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 07:45:37 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:45:39 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:45:39 2021
Terminated at Thu Sep 30 07:58:48 2021
Results reported at Thu Sep 30 07:58:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin482 358.322 31.5927 364262401 364521601 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 :                                   762.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             382.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

