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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1011
RA = 253.474, Dec = 39.7595
tmin = 501379201, tmax = 501638401
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='137024', job_status='RUN', time_executed='2021-09-16 00:29:07.621204', time_epoch_executed='1631777347.62' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137024

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137024/ft1_4FGL_J1653.8+3945_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137024/ft2_4FGL_J1653.8+3945_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137024/ft1_4FGL_J1653.8+3945_daily_bin1011.fits outfile=/scratch/kocevski/137024/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1011.fits ra=253.474 dec=39.7595 rad=12.0 tmin=501379201.0 tmax=501638401.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.62
user 3.39
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137024/ft1_filtered_4FGL_J1653.8+3945_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/137024/ft2_4FGL_J1653.8+3945_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/137024/ltcube_501379201_501638401_4FGL_J1653.8+3945_daily_bin1011.fits outfile=/scratch/kocevski/137024/expmap_501379201_501638401_4FGL_J1653.8+3945_daily_bin1011.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/137024/ltcube_501379201_501638401_4FGL_J1653.8+3945_daily_bin1011.fits
.....................!
real 192.69
user 187.50
sys 4.74

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/137024/ft1_filtered_4FGL_J1653.8+3945_daily_bin1011.fits scfile=/scratch/kocevski/137024/ft2_4FGL_J1653.8+3945_daily_bin1011.fits outfile=/scratch/kocevski/137024/cmap_501379201_501638401_4FGL_J1653.8+3945_daily_bin1011.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=253.474 yref=39.7595 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/137024/ft1_filtered_4FGL_J1653.8+3945_daily_bin1011.fits scfile=/scratch/kocevski/137024/ft2_4FGL_J1653.8+3945_daily_bin1011.fits outfile=/scratch/kocevski/137024/cmap_HighResolution_501379201_501638401_4FGL_J1653.8+3945_daily_bin1011.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/137024/ft1_filtered_4FGL_J1653.8+3945_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/137024/ft2_4FGL_J1653.8+3945_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/137024/Model_4FGL_J1653.8+3945_daily_bin1011.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/137024/ft1_filtered_4FGL_J1653.8+3945_daily_bin1011.fits.....................!
real 53.88
user 52.36
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1857       1.0000         .10000E-03   10000.    
     5 'norm      '    .38088       1.0000         .10000E-03   10000.    
     6 'norm      '    .10280E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7854       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .68275       1.0000         .10000E-03   10000.    
     9 'norm      '    .12584E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50311E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8310       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0872       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7705       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1383       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11419E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.3809       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.740       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3569       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80428       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94480       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=   6556.702     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     2905 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1043        .37732E-08** at limit **
   2  Prefactor     .10000E-03    3.5294       -.64455E-07** at limit **
   3  Prefactor     .10000E-03    9.8849       -.79963E-07** at limit **
   4  Prefactor     6.1859        3.3422        .59518E-07   -.17440E-04
   5  norm          .38101        .15036       -.26041E-08   -.34475E-04
   6  norm          .10000E-03    3.9603       -.34633E-08** at limit **
   7  Prefactor     1.7516        30.279        .23562E-05    .83755E-05
   8  Prefactor     .68238        3.0638        .18567E-05    .50442E-05
   9  norm          .10000E-03    14.465        .70086E-07** at limit **
  10  Prefactor     .10000E-03    .77785       -.57546E-07** at limit **
  11  Prefactor     4.1952        1.5178        .41643E-07    .14986E-03
  12  Prefactor     .10002E-03    1.6228       -.15793E-06** at limit **
  13  Prefactor     .10000E-03    1.1225       -.37672E-07** at limit **
  14  norm          4.8310        1.9339        .16423E-07    .30904E-04
  15  norm          2.0877        1.1327       -.87981E-07   -.11925E-03
  16  Prefactor     1.7649        6.0364        .18669E-05    .15387E-04
  17  norm          .10000E-03    .26447       -.12914E-06** at limit **
  18  norm          .10000E-03    5.6573       -.33027E-07** at limit **
  19  norm          1.1381        1.4393        .46205E-07   -.12703E-03
  20  Prefactor     .10000E-03    19.741       -.12884E-06** at limit **
  21  norm          9.3826        5.0677        .56231E-07   -.20493E-04
  22  Prefactor     .10000E-03    25.990        .10443E-06** at limit **
  23  Prefactor     51.817        52.761        .94479E-06    .15167E-03
  24  Prefactor     .10000E-03    15.247       -.26548E-07** at limit **
  25  Prefactor     6.3509        8.8099        .33494E-05   -.77999E-04
  26  Normalizat    .80428        .18685       -.71638E-06   -.27425E-04
  27  Prefactor     .94488        .13924       -.49151E-06   -.11148E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.18594
  norm       = 0.381009
  norm       = 0.0001
  Prefactor  = 1.75161
  Prefactor  = 0.682384
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19525
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 4.83102
  norm       = 2.08771
  Prefactor  = 1.76494
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.13806
  Prefactor  = 0.0001
  norm       = 9.38259
  Prefactor  = 0.0001
  Prefactor  = 51.8175
  Prefactor  = 0.0001
  Prefactor  = 6.35091
  Normalizat = 0.804275
  Prefactor  = 0.944883
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.702     FROM HESSE     STATUS=OK           502 CALLS     3407 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1138        .83068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5959        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.9159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1859        3.3444        .10316E-03   -1.5210    
   5  norm          .38101        .14865        .17359E-04   -1.5585    
   6  norm          .10000E-03    3.9604        .15738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7516        29.888        .31313E-03   -1.5443    
   8  Prefactor     .68238        3.0150        .26792E-03   -1.5543    
   9  norm          .10000E-03    14.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .97933        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1952        1.3867        .49677E-04   -1.5298    
  12  Prefactor     .10002E-03    3.8933        .33652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1419        .83685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8310        1.9341        .68389E-04   -1.5268    
  15  norm          2.0877        1.1343        .28578E-04   -1.5419    
  16  Prefactor     1.7649        5.9308        .31472E-03   -1.5442    
  17  norm          .10000E-03    .35119        .79967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.7237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1381        1.3987        .10209E-03   -1.5495    
  20  Prefactor     .10000E-03    19.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3826        5.0654        .12878E-03   -1.5095    
  22  Prefactor     .10000E-03    26.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     51.817        53.030        .27878E-03   -1.4267    
  24  Prefactor     .10000E-03    15.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.3509        8.7713        .79598E-03   -1.5204    
  26  Normalizat    .80428        .22467        .28158E-03   -.99910    
  27  Prefactor     .94488        .16848        .20685E-03   -.94590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83622e-10
Minuit parameter uncertainties:
  1  1.05916e-06
  2  2.93568e-07
  3  6.9592e-06
  4  3.34446
  5  0.148648
  6  3.12358e-07
  7  14.479
  8  2.86874
  9  2.90891e-05
  10  4.66684e-06
  11  1.38673
  12  0.000536679
  13  8.94651e-07
  14  1.93411
  15  1.13431
  16  5.93277
  17  1.12163e-06
  18  3.98788e-06
  19  1.39878
  20  8.15837e-05
  21  5.06558
  22  6.9181e-05
  23  53.0788
  24  2.79164e-06
  25  8.77311
  26  0.224926
  27  0.168577
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.831e+00  1.934e+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:  9.449e-01  1.686e-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:  8.043e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.61
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 2.59e-08
Energy Flux (Fixed Index): 9.33e-05 +/- 3.74e-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) = 6556.6520145
delta logL = 0.0502273127177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6556.65086025
delta logL = 0.0513815607655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7860       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6239       1.0000          .0000       5.0000    
     3 'Normalizat'    .81061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94320       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=   6556.651     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      197 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7860        2.3750        .45976E-02   -.13050E-02
   2  alpha         1.6239        .33595        .22588       -.28479E-04
   3  Normalizat    .81062        .17440        .63455E-01    .70441E-04
   4  Prefactor     .94320        .13760        .45553E-01   -.25650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.78598
  alpha      = 1.62391
  Normalizat = 0.810616
  Prefactor  = 0.943201
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.651     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7860        1.9613        .69787E-04   -1.5270    
   2  alpha         1.6239        .30155        .91324E-02   -.35804    
   3  Normalizat    .81062        .20732        .28069E-03   -.99676    
   4  Prefactor     .94320        .16441        .20709E-03   -.94647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80903e-10
Minuit parameter uncertainties:
  1  1.96133
  2  0.302389
  3  0.207521
  4  0.164499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137024': 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) = 6556.65086025
delta logL = 0.0513815611785

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.786e+00  1.961e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.624e+00  3.024e-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:  9.432e-01  1.645e-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:  8.106e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.76
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.62 +/- 0.30
Photon Flux (Free Index): 5.68e-08 +/- 3.29e-08
Energy Flux (Free Index): 1.10e-04 +/- 7.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/137024/cmap_HighResolution_501379201_501638401_4FGL_J1653.8+3945_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='1.10e-04', photon_flux_error='2.59e-08', dlogl='5.14e-02', energy_flux='9.33e-05', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-16 00:41:22.529339', photon_index_error2='0.30', photon_index2='1.62', ts='30.61', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='7.34e-05', EG='0.80', time_epoch_completed='1631778082.53', return_code='0', job_id='137024', GAL2='0.94', EG2='0.81', return_code2='0', energy_flux_error='3.74e-05', photon_flux_error2='3.29e-08', ts2='30.76', photon_index='1.72' WHERE bin_id='1011' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 137024: <4FGL_J1653.8+3945_daily_bin1011> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1011> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 00:25:27 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:26:16 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:16 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_bin1011 253.474 39.7595 501379201 501638401 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 :                                   733.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            956 sec.

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

