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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin951
RA = 253.474, Dec = 39.7595
tmin = 485827201, tmax = 486086401
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='136936', job_status='RUN', time_executed='2021-09-16 00:25:51.935344', time_epoch_executed='1631777151.94' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='951'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136936

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136936/ft1_4FGL_J1653.8+3945_daily_bin951.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136936/ft2_4FGL_J1653.8+3945_daily_bin951.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136936/ft1_4FGL_J1653.8+3945_daily_bin951.fits outfile=/scratch/kocevski/136936/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin951.fits ra=253.474 dec=39.7595 rad=12.0 tmin=485827201.0 tmax=486086401.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.73
user 3.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136936/ft2_4FGL_J1653.8+3945_daily_bin951.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/136936/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin951.fits evtable="EVENTS" outfile="/scratch/kocevski/136936/ft1_filtered_4FGL_J1653.8+3945_daily_bin951.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/136936/ft1_filtered_4FGL_J1653.8+3945_daily_bin951.fits" evtable="EVENTS" scfile=/scratch/kocevski/136936/ft2_4FGL_J1653.8+3945_daily_bin951.fits sctable="SC_DATA" outfile=/scratch/kocevski/136936/ltcube_485827201_486086401_4FGL_J1653.8+3945_daily_bin951.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/136936/ft2_4FGL_J1653.8+3945_daily_bin951.fits
.....................!
real 13.60
user 13.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136936/ft1_filtered_4FGL_J1653.8+3945_daily_bin951.fits evtable="EVENTS" scfile=/scratch/kocevski/136936/ft2_4FGL_J1653.8+3945_daily_bin951.fits sctable="SC_DATA" expcube=/scratch/kocevski/136936/ltcube_485827201_486086401_4FGL_J1653.8+3945_daily_bin951.fits outfile=/scratch/kocevski/136936/expmap_485827201_486086401_4FGL_J1653.8+3945_daily_bin951.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/136936/ltcube_485827201_486086401_4FGL_J1653.8+3945_daily_bin951.fits
.....................!
real 190.51
user 185.75
sys 4.22

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/136936/ft1_filtered_4FGL_J1653.8+3945_daily_bin951.fits scfile=/scratch/kocevski/136936/ft2_4FGL_J1653.8+3945_daily_bin951.fits outfile=/scratch/kocevski/136936/cmap_485827201_486086401_4FGL_J1653.8+3945_daily_bin951.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136936/ft1_filtered_4FGL_J1653.8+3945_daily_bin951.fits scfile=/scratch/kocevski/136936/ft2_4FGL_J1653.8+3945_daily_bin951.fits outfile=/scratch/kocevski/136936/cmap_HighResolution_485827201_486086401_4FGL_J1653.8+3945_daily_bin951.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=253.474 yref=39.7595 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11451E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .53465       1.0000         .10000E-03   10000.    
     5 'norm      '    .16987       1.0000         .10000E-03   10000.    
     6 'norm      '    8.4621       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .84943       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7170       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11599E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4332       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1869       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .92261E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0551       1.0000         .10000E-03   10000.    
    19 'norm      '    3.3294       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33047E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.9258       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    85.286       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12220       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96510       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .85372       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=   6245.800     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3466 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6064        .24572E-06** at limit **
   2  Prefactor     .10000E-03    3.5046        .14568E-06** at limit **
   3  Prefactor     .10000E-03    11.394        .11013E-06** at limit **
   4  Prefactor     .53577        3.4813        .27449E-05   -.28252E-07
   5  norm          .16985        .14862        .70033E-08   -.14399E-02
   6  norm          8.4611        10.170       -.77539E-07   -.17415E-04
   7  Prefactor     .10000E-03    38.007        .22461E-06** at limit **
   8  Prefactor     .10000E-03    2.8538        .16900E-06** at limit **
   9  norm          .10000E-03    12.681       -.10389E-07** at limit **
  10  Prefactor     .84860        1.1829       -.64867E-07   -.62239E-03
  11  Prefactor     .10000E-03    .47422        .12695E-07** at limit **
  12  Prefactor     6.7170        3.8580        .13607E-06   -.79644E-04
  13  Prefactor     .10000E-03    1.0959       -.40195E-07** at limit **
  14  norm          3.4330        1.6785        .33323E-08   -.89075E-04
  15  norm          1.1869        .89466        .40861E-07   -.12960E-03
  16  Prefactor     .10000E-03    4.2852       -.45265E-07** at limit **
  17  norm          .92044E-01    .44610        .15447E-06   -.55376E-03
  18  norm          3.0522        11.347        .84262E-06   -.26758E-04
  19  norm          3.3300        1.8699        .72041E-06   -.11113E-03
  20  Prefactor     .10000E-03    99.697        .22367E-05** at limit **
  21  norm          5.9142        5.8007        .32193E-06   -.45682E-04
  22  Prefactor     .10000E-03    28.916        .18287E-08** at limit **
  23  Prefactor     85.201        107.20       -.81101E-06   -.11244E-03
  24  Prefactor     .10000E-03    16.738       -.27277E-07** at limit **
  25  Prefactor     .72884E-01    7.0210       -.46414E-06    .17697E-03
  26  Normalizat    .96480        .20084       -.32595E-05   -.12403E-03
  27  Prefactor     .85385        .14566        .96843E-06   -.30639E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.535771
  norm       = 0.16985
  norm       = 8.46111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.848605
  Prefactor  = 0.0001
  Prefactor  = 6.71696
  Prefactor  = 0.000100002
  norm       = 3.43302
  norm       = 1.18692
  Prefactor  = 0.0001
  norm       = 0.0920441
  norm       = 3.05217
  norm       = 3.32996
  Prefactor  = 0.000100003
  norm       = 5.91422
  Prefactor  = 0.0001
  Prefactor  = 85.2013
  Prefactor  = 0.0001
  Prefactor  = 0.0728837
  Normalizat = 0.964798
  Prefactor  = 0.853847
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.800     FROM HESSE     STATUS=OK           504 CALLS     3970 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.2368        .19305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.5465        .14449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .53577        3.5044        .27116E-03   -1.5562    
   5  norm          .16985        .13638        .23893E-03   -1.5626    
   6  norm          8.4611        10.166        .13781E-03   -1.5126    
   7  Prefactor     .10000E-03    38.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9697        .26053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .84860        1.0273        .82584E-03   -1.5524    
  11  Prefactor     .10000E-03    .48102        .10469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.7170        3.8435        .10818E-03   -1.5190    
  13  Prefactor     .10000E-03    16.442        .15832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4330        1.6703        .68873E-04   -1.5337    
  15  norm          1.1869        .87088        .59959E-04   -1.5490    
  16  Prefactor     .10000E-03    4.3462        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .92044E-01    .77689        .98768E-03   -1.5647    
  18  norm          3.0522        11.169        .23210E-03   -1.5359    
  19  norm          3.3300        1.8584        .38171E-03   -1.5343    
  20  Prefactor     .10000E-03    101.69        .21349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.9142        5.7439        .16496E-03   -1.5222    
  22  Prefactor     .10000E-03    28.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     85.201        107.10        .21750E-03   -1.3859    
  24  Prefactor     .10000E-03    16.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .72884E-01    12.257        .64511E-01   -1.5654    
  26  Normalizat    .96480        .22661        .26064E-03   -.94219    
  27  Prefactor     .85385        .17039        .21472E-03   -.97773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48639e-08
Minuit parameter uncertainties:
  1  7.61698e-06
  2  7.58085e-06
  3  7.49462e-06
  4  2.74045
  5  0.136378
  6  10.1676
  7  4.52367e-05
  8  7.70149e-06
  9  2.24968e-06
  10  1.0273
  11  1.00801e-06
  12  3.84366
  13  0.000327201
  14  1.67036
  15  0.870886
  16  6.14108e-06
  17  0.534539
  18  11.1769
  19  1.85839
  20  0.00112262
  21  5.74441
  22  2.13038e-05
  23  107.341
  24  1.21467e-05
  25  1.88939
  26  0.226835
  27  0.170496
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.433e+00  1.670e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  8.538e-01  1.705e-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:  9.648e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.19
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 6.63e-05 +/- 3.23e-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) = 6245.79527935
delta logL = 0.00481622631287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6245.79503971
delta logL = 0.00505586233794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4026       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7539       1.0000          .0000       5.0000    
     3 'Normalizat'    .96324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85439       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=   6245.795     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      191 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4026        42.759        .54831E-02    .98356E-03
   2  alpha         1.7539        3.1940        .23185        .25189E-04
   3  Normalizat    .96323        .23766        .45705E-01   -.69046E-04
   4  Prefactor     .85440        .14646        .44421E-01   -.92327E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40256
  alpha      = 1.75388
  Normalizat = 0.963226
  Prefactor  = 0.854397
 **********
 **   18 **HESSE 
 **********

 FCN=   6245.795     FROM HESSE     STATUS=OK            33 CALLS      224 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4026        1.6868        .68293E-04   -1.5339    
   2  alpha         1.7539        .32799        .93945E-02   -.30306    
   3  Normalizat    .96323        .21014        .26082E-03   -.94273    
   4  Prefactor     .85440        .16447        .21465E-03   -.97753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.51247e-11
Minuit parameter uncertainties:
  1  1.68687
  2  0.329029
  3  0.210316
  4  0.164567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136936': 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) = 6245.79503971
delta logL = 0.00505586714553

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.403e+00  1.687e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.754e+00  3.290e-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.544e-01  1.646e-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:  9.632e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.18
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.75 +/- 0.33
Photon Flux (Free Index): 4.77e-08 +/- 2.81e-08
Energy Flux (Free Index): 6.24e-05 +/- 4.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/136936/cmap_HighResolution_485827201_486086401_4FGL_J1653.8+3945_daily_bin951.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='6.24e-05', photon_flux_error='2.24e-08', dlogl='5.06e-03', energy_flux='6.63e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-16 00:38:21.239151', photon_index_error2='0.33', photon_index2='1.75', ts='10.19', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='4.90e-05', EG='0.96', time_epoch_completed='1631777901.24', return_code='0', job_id='136936', GAL2='0.85', EG2='0.96', return_code2='0', energy_flux_error='3.23e-05', photon_flux_error2='2.81e-08', ts2='10.18', photon_index='1.72' WHERE bin_id='951' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:38:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 136936: <4FGL_J1653.8+3945_daily_bin951> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin951 253.474 39.7595 485827201 486086401 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 :                                   746.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            781 sec.

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

