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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin896
RA = 253.474, Dec = 39.7595
tmin = 471571201, tmax = 471830401
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='135669', job_status='RUN', time_executed='2021-09-16 00:21:56.270417', time_epoch_executed='1631776916.27' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='896'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135669/ft1_4FGL_J1653.8+3945_daily_bin896.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135669/ft1_4FGL_J1653.8+3945_daily_bin896.fits outfile=/scratch/kocevski/135669/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin896.fits ra=253.474 dec=39.7595 rad=12.0 tmin=471571201.0 tmax=471830401.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.99
user 4.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.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/135669/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin896.fits evtable="EVENTS" outfile="/scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits" evtable="EVENTS" scfile=/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits sctable="SC_DATA" outfile=/scratch/kocevski/135669/ltcube_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.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/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits
.....................!
real 13.04
user 12.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits sctable="SC_DATA" expcube=/scratch/kocevski/135669/ltcube_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.fits outfile=/scratch/kocevski/135669/expmap_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.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/135669/ltcube_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.fits
.....................!
real 191.77
user 186.06
sys 5.25

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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1653.8+3945 @ 253.474 39.7595

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits scfile=/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits outfile=/scratch/kocevski/135669/cmap_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.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=253.474 yref=39.7595 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits scfile=/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits outfile=/scratch/kocevski/135669/cmap_HighResolution_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.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=253.474 yref=39.7595 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135669/Model_4FGL_J1653.8+3945_daily_bin896.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/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits.....................!
real 50.01
user 48.64
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits', '/scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits', expMap='/scratch/kocevski/135669/expmap_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.fits', expCube='/scratch/kocevski/135669/ltcube_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135669/Model_4FGL_J1653.8+3945_daily_bin896.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1653.8+3945'

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.183e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/135669/ft1_filtered_4FGL_J1653.8+3945_daily_bin896.fits
Spacecraft file(s): /scratch/kocevski/135669/ft2_4FGL_J1653.8+3945_daily_bin896.fits
Exposure map: /scratch/kocevski/135669/expmap_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.fits
Exposure cube: /scratch/kocevski/135669/ltcube_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135669/Model_4FGL_J1653.8+3945_daily_bin896.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) = 6041.09672713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7502       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2953       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6503       1.0000         .10000E-03   10000.    
     5 'norm      '    .87437E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.620       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2117       1.0000         .10000E-03   10000.    
     9 'norm      '    11.095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12184E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1970       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2880       1.0000         .10000E-03   10000.    
    15 'norm      '    .69686       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2150       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.1665       1.0000         .10000E-03   10000.    
    19 'norm      '    7.4864       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.2677       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    182.21       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9024       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3914       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .53791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6041.013     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3343 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7517        4.4617        .21622E-06    .31304E-04
   2  Prefactor     1.2953        8.7751        .16822E-06    .26496E-05
   3  Prefactor     .10000E-03    22.777       -.11186E-06** at limit **
   4  Prefactor     2.6505        3.2464        .14209E-06    .12171E-03
   5  norm          .87310E-01    .21788       -.30808E-06    .23165E-02
   6  norm          .10000E-03    6.9945       -.25961E-07** at limit **
   7  Prefactor     43.630        30.913        .14102E-05    .34332E-04
   8  Prefactor     1.2118        3.0749        .17780E-05   -.24932E-03
   9  norm          11.104        25.554       -.69269E-06    .31613E-04
  10  Prefactor     3.5939        1.7670        .49009E-06    .21856E-02
  11  Prefactor     .10000E-03    1.2114       -.56808E-06** at limit **
  12  Prefactor     3.1973        3.1017       -.11030E-06    .13976E-04
  13  Prefactor     .10000E-03    .85334       -.25141E-07** at limit **
  14  norm          5.2879        2.0665        .31448E-07    .49064E-03
  15  norm          .69688        .76483       -.83865E-07    .82592E-03
  16  Prefactor     1.2154        7.3407        .16860E-06   -.87280E-04
  17  norm          .10000E-03    .29292       -.10675E-07** at limit **
  18  norm          8.1650        7.5806       -.57878E-08    .14944E-04
  19  norm          7.4867        2.3799       -.28484E-08    .37340E-03
  20  Prefactor     .10000E-03    19.669        .24586E-06** at limit **
  21  norm          9.2678        5.6755        .40602E-07    .36229E-04
  22  Prefactor     .10000E-03    38.660        .94906E-07** at limit **
  23  Prefactor     182.25        146.25       -.13865E-05   -.13786E-04
  24  Prefactor     9.8884        37.734        .17077E-05    .23051E-04
  25  Prefactor     .10000E-03    22.176       -.22596E-06** at limit **
  26  Normalizat    1.3911        .22449       -.22547E-06    .18723E-03
  27  Prefactor     .53808        .15419        .46945E-06    .17372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75172
  Prefactor  = 1.29532
  Prefactor  = 0.0001
  Prefactor  = 2.65052
  norm       = 0.0873099
  norm       = 0.0001
  Prefactor  = 43.6304
  Prefactor  = 1.2118
  norm       = 11.1042
  Prefactor  = 3.59394
  Prefactor  = 0.0001
  Prefactor  = 3.19729
  Prefactor  = 0.0001
  norm       = 5.28791
  norm       = 0.696885
  Prefactor  = 1.21543
  norm       = 0.0001
  norm       = 8.165
  norm       = 7.48668
  Prefactor  = 0.0001
  norm       = 9.26785
  Prefactor  = 0.0001
  Prefactor  = 182.245
  Prefactor  = 9.88845
  Prefactor  = 0.0001
  Normalizat = 1.39114
  Prefactor  = 0.53808
 **********
 **   18 **HESSE 
 **********

 FCN=   6041.013     FROM HESSE     STATUS=OK           502 CALLS     3845 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7517        4.4552        .19757E-03   -1.5376    
   2  Prefactor     1.2953        8.8150        .38870E-03   -1.5480    
   3  Prefactor     .10000E-03    22.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6505        3.2396        .14695E-03   -1.5382    
   5  norm          .87310E-01    .21573        .39838E-03   -1.5649    
   6  norm          .10000E-03    7.0067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     43.630        30.513        .60701E-04   -1.4386    
   8  Prefactor     1.2118        3.0777        .10512E-02   -1.5488    
   9  norm          11.104        25.480        .12028E-03   -1.5041    
  10  Prefactor     3.5939        1.7784        .59582E-04   -1.5329    
  11  Prefactor     .10000E-03    2.1398        .14884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.1973        3.0853        .12782E-03   -1.5350    
  13  Prefactor     .10000E-03    .86062        .70101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2879        2.0652        .67334E-04   -1.5248    
  15  norm          .69688        .72096        .67163E-03   -1.5541    
  16  Prefactor     1.2154        7.1597        .38880E-03   -1.5487    
  17  norm          .10000E-03    .37736        .81017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.1650        7.5739        .14029E-03   -1.5136    
  19  norm          7.4867        2.3748        .63770E-04   -1.5161    
  20  Prefactor     .10000E-03    19.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.2678        5.6732        .13165E-03   -1.5099    
  22  Prefactor     .10000E-03    38.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     182.25        145.87        .14953E-03   -1.3000    
  24  Prefactor     9.8884        37.582        .12734E-03   -1.5079    
  25  Prefactor     .10000E-03    22.902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3911        .27003        .25031E-03   -.80885    
  27  Prefactor     .53808        .18446        .28290E-03   -1.1026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33318e-10
Minuit parameter uncertainties:
  1  4.45574
  2  6.75935
  3  0.000168795
  4  3.23981
  5  0.215736
  6  4.84123e-06
  7  30.5237
  8  3.07814
  9  25.5046
  10  1.77846
  11  4.90991e-05
  12  3.08541
  13  4.96486e-07
  14  2.06525
  15  0.720969
  16  5.90068
  17  9.08128e-06
  18  7.57476
  19  2.37479
  20  1.50941e-05
  21  5.67354
  22  2.33257e-05
  23  146.162
  24  37.6717
  25  9.52811e-05
  26  0.270307
  27  0.184666
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.288e+00  2.065e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  5.381e-01  1.847e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.391e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.35
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 7.09e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 3.99e-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) = 6039.5088645
delta logL = 1.50458977923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6039.44113955
delta logL = 1.57231472801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5792       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2569       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6039.441     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5784        1.8868        .47027E-02   -.11594E-03
   2  alpha         1.2567        .22025        .17417       -.33645E-04
   3  Normalizat    1.4081        .20520        .56361E-01    .29158E-05
   4  Prefactor     .53638        .15180        .64087E-01    .29262E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5784
  alpha      = 1.25669
  Normalizat = 1.40814
  Prefactor  = 0.536383
 **********
 **   18 **HESSE 
 **********

 FCN=   6039.441     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5784        2.1414        .65150E-04   -1.5280    
   2  alpha         1.2567        .25600        .75198E-02   -.52051    
   3  Normalizat    1.4081        .24352        .24922E-03   -.80393    
   4  Prefactor     .53638        .17993        .28360E-03   -1.1034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56514e-10
Minuit parameter uncertainties:
  1  2.14145
  2  0.2566
  3  0.243722
  4  0.180125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135669': 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) = 6039.44113909
delta logL = 1.57231518462

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.578e+00  2.141e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.257e+00  2.566e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  5.364e-01  1.801e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.408e+00  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.49
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.26 +/- 0.26
Photon Flux (Free Index): 4.12e-08 +/- 2.08e-08
Energy Flux (Free Index): 2.55e-04 +/- 1.59e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/135669/cmap_HighResolution_471571201_471830401_4FGL_J1653.8+3945_daily_bin896.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.09e-08', energy_flux2='2.55e-04', photon_flux_error='2.77e-08', dlogl='1.57e+00', energy_flux='1.02e-04', photon_flux2='4.12e-08', job_status='DONE', time_completed='2021-09-16 00:34:07.757787', photon_index_error2='0.26', photon_index2='1.26', ts='31.35', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.59e-04', EG='1.39', time_epoch_completed='1631777647.76', return_code='0', job_id='135669', GAL2='0.54', EG2='1.41', return_code2='0', energy_flux_error='3.99e-05', photon_flux_error2='2.08e-08', ts2='34.49', photon_index='1.72' WHERE bin_id='896' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:34:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 135669: <4FGL_J1653.8+3945_daily_bin896> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin896> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 00:20:29 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:21:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 00:21:43 2021
Terminated at Thu Sep 16 00:34:08 2021
Results reported at Thu Sep 16 00:34:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin896 253.474 39.7595 471571201 471830401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1653.8+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   726.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            819 sec.

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

