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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1484
RA = 253.474, Dec = 39.7595
tmin = 623980801, tmax = 624240001
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='140906', job_status='RUN', time_executed='2021-09-16 00:42:33.711243', time_epoch_executed='1631778153.71' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140906/ft1_4FGL_J1653.8+3945_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140906/ft2_4FGL_J1653.8+3945_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140906/ft1_4FGL_J1653.8+3945_daily_bin1484.fits outfile=/scratch/kocevski/140906/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1484.fits ra=253.474 dec=39.7595 rad=12.0 tmin=623980801.0 tmax=624240001.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.01
user 3.75
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140906/ft2_4FGL_J1653.8+3945_daily_bin1484.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/140906/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1484.fits evtable="EVENTS" outfile="/scratch/kocevski/140906/ft1_filtered_4FGL_J1653.8+3945_daily_bin1484.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/140906/ft1_filtered_4FGL_J1653.8+3945_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/140906/ft2_4FGL_J1653.8+3945_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/140906/ltcube_623980801_624240001_4FGL_J1653.8+3945_daily_bin1484.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/140906/ft2_4FGL_J1653.8+3945_daily_bin1484.fits
.....................!
real 12.92
user 12.55
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140906/ft1_filtered_4FGL_J1653.8+3945_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/140906/ft2_4FGL_J1653.8+3945_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/140906/ltcube_623980801_624240001_4FGL_J1653.8+3945_daily_bin1484.fits outfile=/scratch/kocevski/140906/expmap_623980801_624240001_4FGL_J1653.8+3945_daily_bin1484.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/140906/ltcube_623980801_624240001_4FGL_J1653.8+3945_daily_bin1484.fits
.....................!
real 191.58
user 185.76
sys 5.43

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/140906/ft1_filtered_4FGL_J1653.8+3945_daily_bin1484.fits scfile=/scratch/kocevski/140906/ft2_4FGL_J1653.8+3945_daily_bin1484.fits outfile=/scratch/kocevski/140906/cmap_623980801_624240001_4FGL_J1653.8+3945_daily_bin1484.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140906/ft1_filtered_4FGL_J1653.8+3945_daily_bin1484.fits scfile=/scratch/kocevski/140906/ft2_4FGL_J1653.8+3945_daily_bin1484.fits outfile=/scratch/kocevski/140906/cmap_HighResolution_623980801_624240001_4FGL_J1653.8+3945_daily_bin1484.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7542       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .78657E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13781       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.099       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9741       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0364       1.0000         .10000E-03   10000.    
    15 'norm      '    1.3754       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82991       1.0000         .10000E-03   10000.    
    17 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.851       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9622       1.0000         .10000E-03   10000.    
    21 'norm      '    8.0568       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    58.508       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .64657       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0560       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=   7446.175     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3444 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7521        3.8881        .16290E-05   -.12935E-02
   2  Prefactor     .10007E-03    4.6048       -.14388E-05** at limit **
   3  Prefactor     .10000E-03    45.704        .23448E-05** at limit **
   4  Prefactor     .10000E-03    1.4101        .64269E-08** at limit **
   5  norm          .13773        .13430        .24018E-07   -.78150E-03
   6  norm          .10000E-03    4.5330       -.92757E-07** at limit **
   7  Prefactor     27.097        20.403       -.25390E-06   -.41482E-04
   8  Prefactor     .10000E-03    1.4781        .47636E-07** at limit **
   9  norm          .10000E-03    23.448        .97174E-06** at limit **
  10  Prefactor     .10000E-03    .79716       -.99945E-08** at limit **
  11  Prefactor     1.9735        1.2218        .19051E-07   -.78297E-03
  12  Prefactor     5.4979        3.7137        .10856E-06   -.72041E-04
  13  Prefactor     .10013E-03    1.1462        .49374E-06** at limit **
  14  norm          4.0364        1.6414       -.34304E-09   -.26805E-03
  15  norm          1.3752        .90228       -.58342E-08   -.30271E-03
  16  Prefactor     .81713        3.5855        .16642E-06   -.16884E-03
  17  norm          .10000E-03    .33603        .88296E-07** at limit **
  18  norm          .10000E-03    3.6536        .10424E-07** at limit **
  19  norm          10.850        2.3156       -.50988E-08   -.32213E-03
  20  Prefactor     2.9609        31.607        .70686E-06   -.80817E-05
  21  norm          8.0548        4.9390       -.12204E-06   -.37643E-03
  22  Prefactor     .10000E-03    88.136       -.13079E-05** at limit **
  23  Prefactor     58.478        62.251       -.67197E-05   -.41536E-03
  24  Prefactor     .10001E-03    25.984       -.33707E-05** at limit **
  25  Prefactor     .10000E-03    12.485        .40910E-06** at limit **
  26  Normalizat    .64703        .19073       -.20865E-05   -.27436E-04
  27  Prefactor     1.0557        .13985        .49995E-06   -.12044E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.75205
  Prefactor  = 0.000100071
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.137728
  norm       = 0.0001
  Prefactor  = 27.0965
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97352
  Prefactor  = 5.49791
  Prefactor  = 0.000100127
  norm       = 4.03637
  norm       = 1.37523
  Prefactor  = 0.817127
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 10.8503
  Prefactor  = 2.96087
  norm       = 8.05484
  Prefactor  = 0.000100001
  Prefactor  = 58.4778
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 0.647027
  Prefactor  = 1.05572
 **********
 **   18 **HESSE 
 **********

 FCN=   7446.175     FROM HESSE     STATUS=OK           500 CALLS     3944 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7521        4.1584        .64495E-03   -1.5188    
   2  Prefactor     .10007E-03    18.992        .34069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    46.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9370        .19695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13773        .12364        .24930E-03   -1.5634    
   6  norm          .10000E-03    4.5367        .17944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.097        20.031        .76957E-04   -1.4666    
   8  Prefactor     .10000E-03    1.4889        .10235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1867        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.9735        1.0539        .58699E-04   -1.5427    
  12  Prefactor     5.4979        3.7019        .12407E-03   -1.5239    
  13  Prefactor     .10013E-03    22.559        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0364        1.6404        .67484E-04   -1.5306    
  15  norm          1.3752        .88947        .60031E-04   -1.5473    
  16  Prefactor     .81713        9.6703        .27900E-02   -1.5527    
  17  norm          .10000E-03    4.5906        .90523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.6822        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.850        2.3003        .56841E-04   -1.5049    
  20  Prefactor     2.9609        31.624        .23594E-03   -1.5364    
  21  norm          8.0548        4.9458        .14125E-03   -1.5140    
  22  Prefactor     .10000E-03    88.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     58.478        67.033        .52450E-04   -1.4177    
  24  Prefactor     .10001E-03    26.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .64703        .21523        .31373E-03   -1.0602    
  27  Prefactor     1.0557        .16275        .20328E-03   -.90894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92469e-08
Minuit parameter uncertainties:
  1  4.15858
  2  0.00232851
  3  0.000922554
  4  1.84808e-05
  5  0.123643
  6  9.73407e-06
  7  20.0364
  8  3.47091e-06
  9  0.000205152
  10  2.95352e-06
  11  1.05395
  12  3.70206
  13  0.00338727
  14  1.64038
  15  0.889474
  16  5.62284
  17  0.000134958
  18  4.48599e-06
  19  2.30032
  20  19.3659
  21  4.94606
  22  0.000439412
  23  67.1198
  24  0.000796755
  25  5.29737e-05
  26  0.215514
  27  0.162826
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.036e+00  1.640e+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:  1.056e+00  1.628e-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:  6.470e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.84
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 7.80e-05 +/- 3.17e-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) = 7445.43771392
delta logL = 0.737067556938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7445.36833793
delta logL = 0.806443548191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2594       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3155       1.0000          .0000       5.0000    
     3 'Normalizat'    .66471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0539       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=   7445.368     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2565        1.4983        .56080E-02    .94096E-04
   2  alpha         1.3153        .25265        .22369       -.63524E-04
   3  Normalizat    .66467        .16777        .70077E-01    .25624E-04
   4  Prefactor     1.0539        .13673        .39690E-01   -.28225E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.25649
  alpha      = 1.31531
  Normalizat = 0.664667
  Prefactor  = 1.05388
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2565        1.9110        .68133E-04   -1.5347    
   2  alpha         1.3153        .33729        .94207E-02   -.49369    
   3  Normalizat    .66467        .19406        .31014E-03   -1.0530    
   4  Prefactor     1.0539        .15859        .20372E-03   -.90954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21314e-11
Minuit parameter uncertainties:
  1  1.91103
  2  0.338622
  3  0.194261
  4  0.158662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140906': 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) = 7445.36833654
delta logL = 0.80644494336

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.256e+00  1.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.315e+00  3.386e-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:  1.054e+00  1.587e-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:  6.647e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.42
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.32 +/- 0.34
Photon Flux (Free Index): 2.99e-08 +/- 2.07e-08
Energy Flux (Free Index): 1.54e-04 +/- 1.07e-04

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/140906/cmap_HighResolution_623980801_624240001_4FGL_J1653.8+3945_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='1.54e-04', photon_flux_error='2.20e-08', dlogl='8.06e-01', energy_flux='7.80e-05', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-09-16 00:56:36.875062', photon_index_error2='0.34', photon_index2='1.32', ts='45.84', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.07e-04', EG='0.65', time_epoch_completed='1631778996.88', return_code='0', job_id='140906', GAL2='1.05', EG2='0.66', return_code2='0', energy_flux_error='3.17e-05', photon_flux_error2='2.07e-08', ts2='47.42', photon_index='1.72' WHERE bin_id='1484' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:56:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 140906: <4FGL_J1653.8+3945_daily_bin1484> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1484> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 00:40:16 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:40:24 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:40:24 2021
Terminated at Thu Sep 16 00:56:37 2021
Results reported at Thu Sep 16 00:56:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1484 253.474 39.7595 623980801 624240001 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 :                                   832.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            981 sec.

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

