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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1025
RA = 253.474, Dec = 39.7595
tmin = 505008001, tmax = 505267201
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='137044', job_status='RUN', time_executed='2021-09-16 00:28:46.232306', time_epoch_executed='1631777326.23' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137044/ft1_4FGL_J1653.8+3945_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137044/ft2_4FGL_J1653.8+3945_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137044/ft1_4FGL_J1653.8+3945_daily_bin1025.fits outfile=/scratch/kocevski/137044/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1025.fits ra=253.474 dec=39.7595 rad=12.0 tmin=505008001.0 tmax=505267201.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.55
user 4.28
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/137044/ft2_4FGL_J1653.8+3945_daily_bin1025.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/137044/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/137044/ft1_filtered_4FGL_J1653.8+3945_daily_bin1025.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.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137044/ft1_filtered_4FGL_J1653.8+3945_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/137044/ft2_4FGL_J1653.8+3945_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/137044/ltcube_505008001_505267201_4FGL_J1653.8+3945_daily_bin1025.fits outfile=/scratch/kocevski/137044/expmap_505008001_505267201_4FGL_J1653.8+3945_daily_bin1025.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/137044/ltcube_505008001_505267201_4FGL_J1653.8+3945_daily_bin1025.fits
.....................!
real 192.50
user 186.47
sys 5.34

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/137044/ft1_filtered_4FGL_J1653.8+3945_daily_bin1025.fits scfile=/scratch/kocevski/137044/ft2_4FGL_J1653.8+3945_daily_bin1025.fits outfile=/scratch/kocevski/137044/cmap_505008001_505267201_4FGL_J1653.8+3945_daily_bin1025.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/137044/ft1_filtered_4FGL_J1653.8+3945_daily_bin1025.fits scfile=/scratch/kocevski/137044/ft2_4FGL_J1653.8+3945_daily_bin1025.fits outfile=/scratch/kocevski/137044/cmap_HighResolution_505008001_505267201_4FGL_J1653.8+3945_daily_bin1025.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0304       1.0000         .10000E-03   10000.    
     5 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0815       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72722E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4164       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9917       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8097       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .24012       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.3622       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    97.675       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.929       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0178       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87190       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81016       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=   6604.120     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3297 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9812        3.6973       -.34480E-06   -.11808E-03
   2  Prefactor     .10000E-03    1.2317       -.13676E-08** at limit **
   3  Prefactor     .10000E-03    4.6096        .32738E-06** at limit **
   4  Prefactor     1.0296        3.6380        .83972E-07   -.49153E-04
   5  norm          .10000E-03    .10893       -.20952E-09** at limit **
   6  norm          .10000E-03    6.7344        .57781E-06** at limit **
   7  Prefactor     12.971        18.017        .54588E-06    .15685E-03
   8  Prefactor     7.0816        4.2382        .54517E-07    .12751E-04
   9  norm          .10000E-03    21.769        .19060E-06** at limit **
  10  Prefactor     .10003E-03    .81333       -.40248E-06** at limit **
  11  Prefactor     4.4170        1.7821        .55461E-07    .24695E-02
  12  Prefactor     8.9917        4.0851        .73496E-07    .21831E-04
  13  Prefactor     .10000E-03    1.8386        .46337E-06** at limit **
  14  norm          2.8097        1.8789       -.11652E-07    .23819E-03
  15  norm          1.1300        .73791       -.18192E-07   -.61883E-04
  16  Prefactor     .10000E-03    2.6849       -.15677E-07** at limit **
  17  norm          .24004        .65925        .12027E-07   -.44223E-03
  18  norm          .10000E-03    3.4247       -.83676E-06** at limit **
  19  norm          3.3136        1.7639        .25132E-07   -.29350E-04
  20  Prefactor     .10000E-03    9.4743       -.25945E-06** at limit **
  21  norm          9.3608        5.1528       -.53243E-07    .29389E-05
  22  Prefactor     .10000E-03    51.336       -.13884E-06** at limit **
  23  Prefactor     97.672        80.052       -.25525E-05   -.34767E-04
  24  Prefactor     34.924        32.774       -.37358E-05   -.11492E-03
  25  Prefactor     4.0175        3.2655        .25503E-06   -.10858E-02
  26  Normalizat    .87194        .19361        .32673E-07    .16514E-03
  27  Prefactor     .81016        .13836        .14344E-06    .12909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.02964
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9709
  Prefactor  = 7.08155
  norm       = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 4.41696
  Prefactor  = 8.99166
  Prefactor  = 0.0001
  norm       = 2.80968
  norm       = 1.13001
  Prefactor  = 0.0001
  norm       = 0.240043
  norm       = 0.0001
  norm       = 3.3136
  Prefactor  = 0.0001
  norm       = 9.36076
  Prefactor  = 0.0001
  Prefactor  = 97.6716
  Prefactor  = 34.9243
  Prefactor  = 4.01747
  Normalizat = 0.871937
  Prefactor  = 0.810157
 **********
 **   18 **HESSE 
 **********

 FCN=   6604.120     FROM HESSE     STATUS=OK           494 CALLS     3791 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9812        3.7078        .10869E-03   -1.5179    
   2  Prefactor     .10000E-03    1.2327        .88074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6105        .17038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0296        3.6889        .25918E-03   -1.5505    
   5  norm          .10000E-03    .47915        .43773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.971        16.426        .11123E-03   -1.4988    
   8  Prefactor     7.0816        4.2398        .12152E-03   -1.5176    
   9  norm          .10000E-03    21.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    7.4042        .10413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4170        1.4676        .50190E-04   -1.5288    
  12  Prefactor     8.9917        4.0766        .10202E-03   -1.5108    
  13  Prefactor     .10000E-03    3.4053        .20369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8097        1.8745        .86308E-04   -1.5373    
  15  norm          1.1300        .73139        .53269E-04   -1.5495    
  16  Prefactor     .10000E-03    2.6985        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .24004        .64021        .10331E-03   -1.5610    
  18  norm          .10000E-03    3.4467        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3136        1.7535        .74156E-04   -1.5344    
  20  Prefactor     .10000E-03    9.4748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3608        5.1500        .13098E-03   -1.5096    
  22  Prefactor     .10000E-03    51.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     97.672        80.106        .40673E-04   -1.3728    
  24  Prefactor     34.924        32.726        .67807E-04   -1.4525    
  25  Prefactor     4.0175        6.0888        .10059E-02   -1.5307    
  26  Normalizat    .87194        .22396        .26838E-03   -.97453    
  27  Prefactor     .81016        .16200        .21927E-03   -.99355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4612e-09
Minuit parameter uncertainties:
  1  3.70787
  2  2.26285e-07
  3  6.15501e-06
  4  3.68974
  5  8.98857e-07
  6  1.32402e-05
  7  16.4319
  8  4.23997
  9  8.53487e-06
  10  0.0009469
  11  1.46763
  12  4.07672
  13  5.93695e-05
  14  1.87456
  15  0.731394
  16  9.32406e-07
  17  0.640231
  18  1.35567e-05
  19  1.75349
  20  7.01446e-06
  21  5.15029
  22  5.23687e-07
  23  80.1951
  24  32.7429
  25  6.08978
  26  0.224202
  27  0.162095
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.810e+00  1.875e+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.102e-01  1.621e-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.719e-01  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.76
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 5.43e-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) = 6602.34281177
delta logL = 1.77687067779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6602.30375323
delta logL = 1.81592922266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1746       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0283       1.0000          .0000       5.0000    
     3 'Normalizat'    .69664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88927       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=   6602.304     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1745        4.5040        .64235E-02    .53825E-03
   2  alpha         3.0284        1.7011        .12567        .11914E-03
   3  Normalizat    .69652        .71313E-01    .66762E-01    .27701E-04
   4  Prefactor     .88935        .49893E-01    .44868E-01    .63720E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17454
  alpha      = 3.02843
  Normalizat = 0.696518
  Prefactor  = 0.889348
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.304     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1745        2.3288        .28560E-04   -1.5491    
   2  alpha         3.0284        1.0314        .52655E-02    .21298    
   3  Normalizat    .69652        .22801        .29541E-03   -1.0403    
   4  Prefactor     .88935        .17001        .20953E-03   -.96514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85506e-11
Minuit parameter uncertainties:
  1  2.329
  2  1.06475
  3  0.22832
  4  0.170109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137044': 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) = 6602.30375302
delta logL = 1.81592943031

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.175e+00  2.329e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.028e+00  1.065e+00  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.893e-01  1.701e-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.965e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.01
Ra Dec: 253.474 39.760
Photon Index (Free Index): 3.03 +/- 1.06
Photon Flux (Free Index): 1.86e-07 +/- 9.56e-08
Energy Flux (Free Index): 3.75e-05 +/- 1.41e-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/137044/cmap_HighResolution_505008001_505267201_4FGL_J1653.8+3945_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='3.75e-05', photon_flux_error='2.51e-08', dlogl='1.82e+00', energy_flux='5.43e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-16 00:41:50.082731', photon_index_error2='1.06', photon_index2='3.03', ts='10.76', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='0.87', time_epoch_completed='1631778110.08', return_code='0', job_id='137044', GAL2='0.89', EG2='0.70', return_code2='0', energy_flux_error='3.62e-05', photon_flux_error2='9.56e-08', ts2='15.01', photon_index='1.72' WHERE bin_id='1025' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 137044: <4FGL_J1653.8+3945_daily_bin1025> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1025 253.474 39.7595 505008001 505267201 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 :                                   777.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            982 sec.

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

