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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1059
RA = 253.474, Dec = 39.7595
tmin = 513820801, tmax = 514080001
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='137095', job_status='RUN', time_executed='2021-09-16 00:30:08.244689', time_epoch_executed='1631777408.24' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137095

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137095/ft1_4FGL_J1653.8+3945_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137095/ft2_4FGL_J1653.8+3945_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137095/ft1_4FGL_J1653.8+3945_daily_bin1059.fits outfile=/scratch/kocevski/137095/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1059.fits ra=253.474 dec=39.7595 rad=12.0 tmin=513820801.0 tmax=514080001.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.77
user 3.53
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137095/ft1_filtered_4FGL_J1653.8+3945_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/137095/ft2_4FGL_J1653.8+3945_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/137095/ltcube_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.fits outfile=/scratch/kocevski/137095/expmap_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.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/137095/ltcube_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.fits
.....................!
real 191.76
user 186.33
sys 5.07

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/137095/ft1_filtered_4FGL_J1653.8+3945_daily_bin1059.fits scfile=/scratch/kocevski/137095/ft2_4FGL_J1653.8+3945_daily_bin1059.fits outfile=/scratch/kocevski/137095/cmap_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/137095/ft1_filtered_4FGL_J1653.8+3945_daily_bin1059.fits scfile=/scratch/kocevski/137095/ft2_4FGL_J1653.8+3945_daily_bin1059.fits outfile=/scratch/kocevski/137095/cmap_HighResolution_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.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.58
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/137095/ft1_filtered_4FGL_J1653.8+3945_daily_bin1059.fits', '/scratch/kocevski/137095/ft2_4FGL_J1653.8+3945_daily_bin1059.fits', expMap='/scratch/kocevski/137095/expmap_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.fits', expCube='/scratch/kocevski/137095/ltcube_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/137095/Model_4FGL_J1653.8+3945_daily_bin1059.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/137095/ft1_filtered_4FGL_J1653.8+3945_daily_bin1059.fits
Spacecraft file(s): /scratch/kocevski/137095/ft2_4FGL_J1653.8+3945_daily_bin1059.fits
Exposure map: /scratch/kocevski/137095/expmap_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.fits
Exposure cube: /scratch/kocevski/137095/ltcube_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/137095/Model_4FGL_J1653.8+3945_daily_bin1059.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7051.12774693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6300       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12903E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.315       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .31884       1.0000         .10000E-03   10000.    
     6 'norm      '    7.2740       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8430       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9119       1.0000         .10000E-03   10000.    
     9 'norm      '    23.098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .77653       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8873       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2547       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4030       1.0000         .10000E-03   10000.    
    15 'norm      '    .62073       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57181       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.789       1.0000         .10000E-03   10000.    
    19 'norm      '    .16973       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16126E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    14.864       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .90656E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11149E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30587       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1048       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7050.990     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1894 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6328        2.3358       -.89974E-07    .70705E-05
   2  Prefactor     .10000E-03    2.7733        .10788E-05** at limit **
   3  Prefactor     10.537        14.525        .10935E-05    .18612E-02
   4  Prefactor     .10000E-03    .80830       -.95282E-06** at limit **
   5  norm          .31887        .13128       -.44291E-07   -.19188E-03
   6  norm          7.1271        8.3742       -.21018E-05   -.23013E-04
   7  Prefactor     3.8389        5.1664        .60605E-06   -.74611E-05
   8  Prefactor     3.9406        3.7842       -.38445E-06   -.15417E-04
   9  norm          23.408        24.167        .35151E-05   -.34773E-02
  10  Prefactor     .77678        .81017        .33077E-06    .44974E-04
  11  Prefactor     .10000E-03    .91840        .46541E-06** at limit **
  12  Prefactor     3.8905        2.9492       -.57864E-06   -.10603E-04
  13  Prefactor     5.2385        3.2279       -.12057E-06    .32280E-04
  14  norm          3.4047        1.8601        .45321E-07    .11382E-04
  15  norm          .62078        .67061       -.32196E-06   -.21781E-04
  16  Prefactor     .56302        15.587        .10276E-04    .85409E-04
  17  norm          .10000E-03    .64467        .14718E-05** at limit **
  18  norm          13.804        9.8699        .68554E-06    .25528E-02
  19  norm          .17325        2.0706       -.39885E-05   -.53365E-04
  20  Prefactor     .10150E-03    8.8673       -.33644E-05** at limit **
  21  norm          14.964        6.3045       -.12694E-06   -.47930E-03
  22  Prefactor     .10105E-03    23.050       -.68620E-05** at limit **
  23  Prefactor     .10940E-03    36.311       -.78402E-05** at limit **
  24  Prefactor     .10026E-03    66.278       -.12554E-04** at limit **
  25  Prefactor     .10000E-03    3.0752        .14502E-05** at limit **
  26  Normalizat    1.1040        .22852       -.17529E-05    .54973E-05
  27  Prefactor     .78078        .16512        .28111E-05    .55340E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6328
  Prefactor  = 0.0001
  Prefactor  = 10.5369
  Prefactor  = 0.0001
  norm       = 0.318866
  norm       = 7.12709
  Prefactor  = 3.83892
  Prefactor  = 3.9406
  norm       = 23.4081
  Prefactor  = 0.776777
  Prefactor  = 0.0001
  Prefactor  = 3.89049
  Prefactor  = 5.23854
  norm       = 3.40472
  norm       = 0.620779
  Prefactor  = 0.563022
  norm       = 0.0001
  norm       = 13.8042
  norm       = 0.173255
  Prefactor  = 0.000101503
  norm       = 14.964
  Prefactor  = 0.000101045
  Prefactor  = 0.000109401
  Prefactor  = 0.000100264
  Prefactor  = 0.0001
  Normalizat = 1.10396
  Prefactor  = 0.78078
 **********
 **   18 **HESSE 
 **********

 FCN=   7050.990     FROM HESSE     STATUS=OK           570 CALLS     2464 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6328        2.3377        .62864E-02   -1.5383    
   2  Prefactor     .10000E-03    2.7615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.537        15.215        .31189E-02   -1.5059    
   4  Prefactor     .10000E-03    .80464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .31887        .13600        .41031E-02   -1.5595    
   6  norm          7.1271        8.3784        .37180E-02   -1.5174    
   7  Prefactor     3.8389        11.717        .51466E-02   -1.5316    
   8  Prefactor     3.9406        3.7924        .50996E-02   -1.5311    
   9  norm          23.408        28.660        .20836E-02   -1.4740    
  10  Prefactor     .77678        .87218        .12352E-01   -1.5532    
  11  Prefactor     .10000E-03    .64042        .23354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8905        2.9669        .51162E-02   -1.5313    
  13  Prefactor     5.2385        3.2624        .43837E-02   -1.5250    
  14  norm          3.4047        1.8760        .54827E-02   -1.5339    
  15  norm          .62078        .71255        .11754E-01   -1.5550    
  16  Prefactor     .56302        3.2825        .81724E-01   -1.5558    
  17  norm          .10000E-03    .37473        .19283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.804        11.135        .26966E-02   -1.4965    
  19  norm          .17325        1.0392        .26197E-01   -1.5625    
  20  Prefactor     .10150E-03    61.117        .91034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.964        6.4312        .25972E-02   -1.4934    
  22  Prefactor     .10105E-03    78.952        .94666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10940E-03    125.87        .90787E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10026E-03    93.069        .10451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.0642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1040        .19027        .57165E-01   -.89625    
  27  Prefactor     .78078        .13676        .43463E-01   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04133e-07
Minuit parameter uncertainties:
  1  2.33777
  2  4.90735e-07
  3  15.2206
  4  1.87205e-07
  5  0.135996
  6  8.37981
  7  11.7241
  8  3.79258
  9  28.677
  10  0.872197
  11  1.80738e-07
  12  2.96701
  13  3.26252
  14  1.87598
  15  0.712558
  16  2.7189
  17  3.16247e-07
  18  11.1368
  19  0.848407
  20  0.0191869
  21  6.43145
  22  0.0181929
  23  0.0689412
  24  0.00992757
  25  1.94238e-07
  26  0.19039
  27  0.136824
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.405e+00  1.876e+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:  7.808e-01  1.368e-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.104e+00  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.04
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 6.58e-05 +/- 3.62e-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) = 7049.57357315
delta logL = 1.41632269173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7049.56513123
delta logL = 1.42476461955

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4534       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4798       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82152       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=   7049.565     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4523        12.157        .65285E-02    .30266E-03
   2  alpha         2.4805        2.0870        .17430        .10761E-03
   3  Normalizat    1.0108        .84897E-01    .45409E-01    .16425E-04
   4  Prefactor     .82164        .51159E-01    .43997E-01    .14210E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.45226
  alpha      = 2.48054
  Normalizat = 1.01079
  Prefactor  = 0.821635
 **********
 **   18 **HESSE 
 **********

 FCN=   7049.565     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4523        1.9165        .48744E-04   -1.5395    
   2  alpha         2.4805        .50043        .68580E-02   -.77827E-02
   3  Normalizat    1.0108        .21774        .26163E-03   -.92670    
   4  Prefactor     .82164        .16557        .22398E-03   -.98936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19084e-11
Minuit parameter uncertainties:
  1  1.91653
  2  0.503835
  3  0.217936
  4  0.165675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137095': 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) = 7049.5651291
delta logL = 1.42476674801

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.452e+00  1.917e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.481e+00  5.038e-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.216e-01  1.657e-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.011e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.93
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.48 +/- 0.50
Photon Flux (Free Index): 1.22e-07 +/- 6.26e-08
Energy Flux (Free Index): 3.73e-05 +/- 1.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/137095/cmap_HighResolution_513820801_514080001_4FGL_J1653.8+3945_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='3.73e-05', photon_flux_error='2.51e-08', dlogl='1.42e+00', energy_flux='6.58e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-16 00:41:23.399229', photon_index_error2='0.50', photon_index2='2.48', ts='11.04', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='1.10', time_epoch_completed='1631778083.4', return_code='0', job_id='137095', GAL2='0.82', EG2='1.01', return_code2='0', energy_flux_error='3.62e-05', photon_flux_error2='6.26e-08', ts2='13.93', photon_index='1.72' WHERE bin_id='1059' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 137095: <4FGL_J1653.8+3945_daily_bin1059> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1059> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 00:25:31 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:26:40 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:26:40 2021
Terminated at Thu Sep 16 00:41:23 2021
Results reported at Thu Sep 16 00:41:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1059 253.474 39.7595 513820801 514080001 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 :                                   672.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             302.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            952 sec.

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

