/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 = 7469
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1653.8+3945_daily_bin221
RA = 253.474, Dec = 39.7595
tmin = 296611201, tmax = 296870401
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='131187', job_status='RUN', time_executed='2021-09-16 00:06:02.257991', time_epoch_executed='1631775962.26' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131187/ft1_4FGL_J1653.8+3945_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131187/ft2_4FGL_J1653.8+3945_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131187/ft1_4FGL_J1653.8+3945_daily_bin221.fits outfile=/scratch/kocevski/131187/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin221.fits ra=253.474 dec=39.7595 rad=12.0 tmin=296611201.0 tmax=296870401.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.37
user 4.07
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131187/ft1_filtered_4FGL_J1653.8+3945_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/131187/ft2_4FGL_J1653.8+3945_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/131187/ltcube_296611201_296870401_4FGL_J1653.8+3945_daily_bin221.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/131187/ft2_4FGL_J1653.8+3945_daily_bin221.fits
.....................!
real 13.91
user 13.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131187/ft1_filtered_4FGL_J1653.8+3945_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/131187/ft2_4FGL_J1653.8+3945_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/131187/ltcube_296611201_296870401_4FGL_J1653.8+3945_daily_bin221.fits outfile=/scratch/kocevski/131187/expmap_296611201_296870401_4FGL_J1653.8+3945_daily_bin221.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/131187/ltcube_296611201_296870401_4FGL_J1653.8+3945_daily_bin221.fits
.....................!
real 191.25
user 185.94
sys 4.63

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/131187/ft1_filtered_4FGL_J1653.8+3945_daily_bin221.fits scfile=/scratch/kocevski/131187/ft2_4FGL_J1653.8+3945_daily_bin221.fits outfile=/scratch/kocevski/131187/cmap_296611201_296870401_4FGL_J1653.8+3945_daily_bin221.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/131187/ft1_filtered_4FGL_J1653.8+3945_daily_bin221.fits scfile=/scratch/kocevski/131187/ft2_4FGL_J1653.8+3945_daily_bin221.fits outfile=/scratch/kocevski/131187/cmap_HighResolution_296611201_296870401_4FGL_J1653.8+3945_daily_bin221.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5758       1.0000         .10000E-03   10000.    
     5 'norm      '    .48681       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.393       1.0000         .10000E-03   10000.    
     9 'norm      '    17.722       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4549       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4621       1.0000         .10000E-03   10000.    
    14 'norm      '    5.3560       1.0000         .10000E-03   10000.    
    15 'norm      '    .52616       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3463       1.0000         .10000E-03   10000.    
    17 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.087       1.0000         .10000E-03   10000.    
    19 'norm      '    .94901       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.9695       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1890       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.7920       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5571       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .54421       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=   8044.846     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2841 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3015        .16405E-07** at limit **
   2  Prefactor     .10000E-03    1.9864       -.29118E-09** at limit **
   3  Prefactor     .10000E-03    16.529        .41169E-05** at limit **
   4  Prefactor     1.5764        2.2527       -.78739E-10   -.12356E-03
   5  norm          .48685        .16323       -.56499E-08    .16874E-02
   6  norm          .10000E-03    4.6243       -.74042E-08** at limit **
   7  Prefactor     .10000E-03    18.026       -.51918E-05** at limit **
   8  Prefactor     11.395        4.6831       -.30492E-06   -.26169E-03
   9  norm          17.724        26.607        .36437E-06    .40606E-04
  10  Prefactor     5.2553        1.6703       -.18353E-07    .54396E-03
  11  Prefactor     .10000E-03    .58573       -.38961E-07** at limit **
  12  Prefactor     2.4547        2.6274        .12625E-06   -.36982E-04
  13  Prefactor     1.4544        4.0120        .98623E-07   -.37924E-03
  14  norm          5.3568        2.1179       -.12430E-07    .21305E-03
  15  norm          .52690        .79474       -.34009E-06   -.15163E-02
  16  Prefactor     5.3431        6.3223        .28832E-05   -.18792E-02
  17  norm          .10000E-03    .57293       -.44654E-06** at limit **
  18  norm          21.085        10.272       -.13146E-06   -.15467E-03
  19  norm          .94931        1.7304       -.10373E-07   -.27138E-03
  20  Prefactor     .10000E-03    13.880       -.32975E-06** at limit **
  21  norm          8.9690        5.3543       -.15383E-05   -.12472E-02
  22  Prefactor     .10000E-03    34.355        .45935E-05** at limit **
  23  Prefactor     .10000E-03    53.662       -.43648E-05** at limit **
  24  Prefactor     8.1806        49.952       -.77253E-05   -.93300E-04
  25  Prefactor     2.7910        8.0221        .22814E-06   -.91847E-04
  26  Normalizat    1.5568        .19531        .21944E-06    .20768E-03
  27  Prefactor     .54437        .13407        .33705E-06    .16755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.57639
  norm       = 0.486849
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 11.3947
  norm       = 17.7236
  Prefactor  = 5.2553
  Prefactor  = 0.0001
  Prefactor  = 2.45465
  Prefactor  = 1.45436
  norm       = 5.35684
  norm       = 0.526895
  Prefactor  = 5.34308
  norm       = 0.0001
  norm       = 21.0853
  norm       = 0.949307
  Prefactor  = 0.0001
  norm       = 8.96896
  Prefactor  = 0.000100004
  Prefactor  = 0.000100003
  Prefactor  = 8.18062
  Prefactor  = 2.79104
  Normalizat = 1.55684
  Prefactor  = 0.54437
 **********
 **   18 **HESSE 
 **********

 FCN=   8044.846     FROM HESSE     STATUS=OK           496 CALLS     3337 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3100        .99900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9921        .12344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5764        2.2305        .15473E-03   -1.5457    
   5  norm          .48685        .16234        .19422E-04   -1.5568    
   6  norm          .10000E-03    4.6266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.395        4.6773        .11785E-03   -1.5033    
   9  norm          17.724        26.544        .95139E-04   -1.4866    
  10  Prefactor     5.2553        1.5503        .54393E-04   -1.5249    
  11  Prefactor     .10000E-03    .80518        .11881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4547        2.5859        .14102E-03   -1.5395    
  13  Prefactor     1.4544        3.9365        .26342E-03   -1.5467    
  14  norm          5.3568        2.1062        .77886E-04   -1.5245    
  15  norm          .52690        .69650        .90670E-03   -1.5563    
  16  Prefactor     5.3431        7.7054        .86906E-03   -1.5246    
  17  norm          .10000E-03    1.4823        .12811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.085        10.257        .87224E-04   -1.4789    
  19  norm          .94931        1.6760        .14566E-03   -1.5513    
  20  Prefactor     .10000E-03    13.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.9690        5.5034        .13383E-03   -1.5109    
  22  Prefactor     .10000E-03    34.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    53.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1806        50.522        .14010E-03   -1.5136    
  25  Prefactor     2.7910        8.0130        .24350E-03   -1.5374    
  26  Normalizat    1.5568        .23622        .25167E-03   -.76194    
  27  Prefactor     .54437        .15928        .29063E-03   -1.0998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51394e-09
Minuit parameter uncertainties:
  1  1.77436e-06
  2  1.96449e-06
  3  0.00040832
  4  2.23065
  5  0.162341
  6  1.09835e-06
  7  0.000548941
  8  4.67743
  9  26.5618
  10  1.55028
  11  2.40034e-07
  12  2.58604
  13  3.93718
  14  2.10622
  15  0.696511
  16  7.7068
  17  5.09175e-06
  18  10.2583
  19  1.67605
  20  1.0592e-05
  21  5.50367
  22  0.000779842
  23  0.000826298
  24  40.7106
  25  8.01607
  26  0.236385
  27  0.159416
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  5.357e+00  2.106e+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.444e-01  1.594e-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.557e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.42
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 7.18e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 1.03e-04 +/- 4.07e-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) = 8043.9173874
delta logL = 0.929090320811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8043.91208316
delta logL = 0.934394563588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9189       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1452       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56054       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8043.912     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      274 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9188        1.9890        .63992E-04    .20694E-02
   2  alpha         2.1452        .31102        .76608E-02    .12946E-03
   3  Normalizat    1.5073        .21768        .25433E-03   -.74122E-04
   4  Prefactor     .56051        .15490        .28613E-03   -.54236E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.91883
  alpha      = 2.14521
  Normalizat = 1.50728
  Prefactor  = 0.560507
 **********
 **   18 **HESSE 
 **********

 FCN=   8043.912     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9188        1.9447        .12798E-04   -1.5264    
   2  alpha         2.1452        .30383        .30643E-03   -.14240    
   3  Normalizat    1.5073        .21766        .50867E-04   -.77574    
   4  Prefactor     .56051        .15497        .11445E-04   -1.0928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78262e-10
Minuit parameter uncertainties:
  1  1.94474
  2  0.304597
  3  0.217794
  4  0.155083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131187': 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) = 8043.91208309
delta logL = 0.934394634528

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.919e+00  1.945e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.145e+00  3.046e-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.605e-01  1.551e-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.507e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.31
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.15 +/- 0.30
Photon Flux (Free Index): 1.30e-07 +/- 6.16e-08
Energy Flux (Free Index): 6.52e-05 +/- 2.71e-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/131187/cmap_HighResolution_296611201_296870401_4FGL_J1653.8+3945_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.18e-08', energy_flux2='6.52e-05', photon_flux_error='2.82e-08', dlogl='9.34e-01', energy_flux='1.03e-04', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-16 00:19:23.729878', photon_index_error2='0.30', photon_index2='2.15', ts='25.42', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='2.71e-05', EG='1.56', time_epoch_completed='1631776763.73', return_code='0', job_id='131187', GAL2='0.56', EG2='1.51', return_code2='0', energy_flux_error='4.07e-05', photon_flux_error2='6.16e-08', ts2='27.31', photon_index='1.72' WHERE bin_id='221' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:19:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 131187: <4FGL_J1653.8+3945_daily_bin221> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin221> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep 16 00:05:18 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:05:45 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:05:45 2021
Terminated at Thu Sep 16 00:19:24 2021
Results reported at Thu Sep 16 00:19:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin221 253.474 39.7595 296611201 296870401 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 :                                   797.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            846 sec.

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

