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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1202
RA = 253.474, Dec = 39.7595
tmin = 550886401, tmax = 551145601
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='138171', job_status='RUN', time_executed='2021-09-16 00:34:41.885634', time_epoch_executed='1631777681.89' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138171/ft1_4FGL_J1653.8+3945_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138171/ft1_4FGL_J1653.8+3945_daily_bin1202.fits outfile=/scratch/kocevski/138171/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1202.fits ra=253.474 dec=39.7595 rad=12.0 tmin=550886401.0 tmax=551145601.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.78
user 3.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.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/138171/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/138171/ft1_filtered_4FGL_J1653.8+3945_daily_bin1202.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.54
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138171/ft1_filtered_4FGL_J1653.8+3945_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/138171/ltcube_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.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/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits
.....................!
real 14.01
user 13.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138171/ft1_filtered_4FGL_J1653.8+3945_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/138171/ltcube_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.fits outfile=/scratch/kocevski/138171/expmap_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.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/138171/ltcube_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.fits
.....................!
real 193.63
user 188.14
sys 5.06

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/138171/ft1_filtered_4FGL_J1653.8+3945_daily_bin1202.fits scfile=/scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits outfile=/scratch/kocevski/138171/cmap_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138171/ft1_filtered_4FGL_J1653.8+3945_daily_bin1202.fits scfile=/scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits outfile=/scratch/kocevski/138171/cmap_HighResolution_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/138171/ft1_filtered_4FGL_J1653.8+3945_daily_bin1202.fits', '/scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits', expMap='/scratch/kocevski/138171/expmap_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.fits', expCube='/scratch/kocevski/138171/ltcube_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/138171/Model_4FGL_J1653.8+3945_daily_bin1202.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/138171/ft1_filtered_4FGL_J1653.8+3945_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/138171/ft2_4FGL_J1653.8+3945_daily_bin1202.fits
Exposure map: /scratch/kocevski/138171/expmap_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.fits
Exposure cube: /scratch/kocevski/138171/ltcube_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/138171/Model_4FGL_J1653.8+3945_daily_bin1202.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) = 2208.94365558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7866       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6847       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    52.586       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0900       1.0000         .10000E-03   10000.    
     9 'norm      '    .10387E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7890       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0374       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9770       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11361E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    246.31       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.315       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0322       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81469       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=   2208.911     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3393 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5088        .88148E-08** at limit **
   2  Prefactor     .10000E-03    12.432       -.50738E-07** at limit **
   3  Prefactor     9.7812        30.045        .40347E-06   -.74247E-05
   4  Prefactor     .10000E-03    1.7719        .67655E-09** at limit **
   5  norm          1.6846        .49083        .14161E-06   -.72629E-03
   6  norm          .10000E-03    16.944       -.16984E-07** at limit **
   7  Prefactor     52.563        53.273       -.64891E-05    .24708E-04
   8  Prefactor     2.0895        4.9226        .22449E-06   -.18313E-03
   9  norm          .10000E-03    91.975        .14111E-05** at limit **
  10  Prefactor     .10000E-03    1.4139       -.14351E-07** at limit **
  11  Prefactor     .10000E-03    1.5517       -.78699E-08** at limit **
  12  Prefactor     .10000E-03    3.6172       -.29256E-07** at limit **
  13  Prefactor     .10000E-03    3.1914       -.48040E-07** at limit **
  14  norm          3.7889        2.9599        .17538E-08    .45958E-04
  15  norm          .10000E-03    .79324       -.11949E-07** at limit **
  16  Prefactor     .10000E-03    4.9588       -.46707E-08** at limit **
  17  norm          2.0373        1.5682       -.21369E-07   -.38798E-04
  18  norm          .10000E-03    11.881        .18911E-07** at limit **
  19  norm          3.9762        4.7078       -.23997E-06   -.47746E-03
  20  Prefactor     .10001E-03    445.09       -.12591E-03** at limit **
  21  norm          .10000E-03    6.4624        .61799E-07** at limit **
  22  Prefactor     246.31        175.43       -.11158E-05    .47872E-04
  23  Prefactor     .10000E-03    139.89       -.82705E-05** at limit **
  24  Prefactor     .10000E-03    332.00        .99702E-04** at limit **
  25  Prefactor     23.313        28.883        .69690E-07   -.19965E-04
  26  Normalizat    1.0327        .36020        .10039E-05    .43253E-04
  27  Prefactor     .81438        .26135        .35596E-06    .11711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.7812
  Prefactor  = 0.0001
  norm       = 1.68461
  norm       = 0.0001
  Prefactor  = 52.5634
  Prefactor  = 2.08951
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78886
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03733
  norm       = 0.0001
  norm       = 3.97622
  Prefactor  = 0.000100012
  norm       = 0.0001
  Prefactor  = 246.307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3134
  Normalizat = 1.03268
  Prefactor  = 0.814381
 **********
 **   18 **HESSE 
 **********

 FCN=   2208.911     FROM HESSE     STATUS=OK           480 CALLS     3873 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5173        .72698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.450        .16083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7812        30.044        .12809E-03   -1.5082    
   4  Prefactor     .10000E-03    1.7735        .61096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6846        .48813        .14813E-04   -1.5448    
   6  norm          .10000E-03    16.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     52.563        54.266        .55308E-04   -1.4257    
   8  Prefactor     2.0895        4.8976        .15417E-03   -1.5419    
   9  norm          .10000E-03    92.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9960        .10491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5965        .11350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6446        .87262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2210        .16312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7889        2.9568        .69364E-04   -1.5319    
  15  norm          .10000E-03    .81081        .40831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9696        .10220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0373        1.5621        .49576E-04   -1.5422    
  18  norm          .10000E-03    11.915        .15817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9762        4.7098        .10176E-03   -1.5309    
  20  Prefactor     .10001E-03    447.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.4801        .11658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     246.31        175.44        .25807E-04   -1.2556    
  23  Prefactor     .10000E-03    139.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    333.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     23.313        28.863        .82956E-04   -1.4742    
  26  Normalizat    1.0327        .43101        .28548E-03   -.91944    
  27  Prefactor     .81438        .31174        .24514E-03   -.99200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27964e-10
Minuit parameter uncertainties:
  1  2.43422e-06
  2  2.41036e-05
  3  30.0901
  4  2.98784e-07
  5  0.488127
  6  2.65504e-06
  7  54.3174
  8  4.89851
  9  4.22134e-05
  10  2.33602e-06
  11  7.09966e-07
  12  4.65113e-06
  13  1.17868e-05
  14  2.95691
  15  1.45444e-06
  16  1.67587e-06
  17  1.5621
  18  9.30521e-06
  19  4.71028
  20  0.00459039
  21  1.37967e-05
  22  175.812
  23  1.40114e-06
  24  0.000245285
  25  28.8807
  26  0.432476
  27  0.312415
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.789e+00  2.957e+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:  8.144e-01  3.124e-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.033e+00  4.325e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 7.32e-05 +/- 5.71e-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) = 2208.86362038
delta logL = 0.0473598105218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2208.86024435
delta logL = 0.0507358436212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5883       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9208       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81858       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=   2208.860     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      200 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5880        88.979        .53331E-02    .11427E-04
   2  alpha         1.9212        2.5831        .24231        .17320E-04
   3  Normalizat    1.0200        .23639        .64836E-01   -.84454E-05
   4  Prefactor     .81883        .13439        .43959E-01   -.11025E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.588
  alpha      = 1.9212
  Normalizat = 1.02
  Prefactor  = 0.818826
 **********
 **   18 **HESSE 
 **********

 FCN=   2208.860     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5880        2.9264        .63910E-04   -1.5329    
   2  alpha         1.9212        .63089        .92124E-02   -.23364    
   3  Normalizat    1.0200        .39774        .28678E-03   -.92363    
   4  Prefactor     .81883        .30726        .24440E-03   -.99038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77739e-12
Minuit parameter uncertainties:
  1  2.92654
  2  0.638194
  3  0.398905
  4  0.307909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138171': 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) = 2208.8602428
delta logL = 0.0507373929895

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.588e+00  2.927e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.921e+00  6.382e-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:  8.188e-01  3.079e-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.020e+00  3.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.92 +/- 0.64
Photon Flux (Free Index): 6.46e-08 +/- 6.44e-08
Energy Flux (Free Index): 5.35e-05 +/- 6.40e-05

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/138171/cmap_HighResolution_550886401_551145601_4FGL_J1653.8+3945_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='5.35e-05', photon_flux_error='3.96e-08', dlogl='5.07e-02', energy_flux='7.32e-05', photon_flux2='6.46e-08', job_status='DONE', time_completed='2021-09-16 00:43:40.994371', photon_index_error2='0.64', photon_index2='1.92', ts='6.19', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='6.40e-05', EG='1.03', time_epoch_completed='1631778220.99', return_code='0', job_id='138171', GAL2='0.82', EG2='1.02', return_code2='0', energy_flux_error='5.71e-05', photon_flux_error2='6.44e-08', ts2='6.28', photon_index='1.72' WHERE bin_id='1202' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:43:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 138171: <4FGL_J1653.8+3945_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1202> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep 16 00:30:31 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:31:37 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:31:37 2021
Terminated at Thu Sep 16 00:43:41 2021
Results reported at Thu Sep 16 00:43:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1202 253.474 39.7595 550886401 551145601 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 :                                   490.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            790 sec.

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

