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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1347
RA = 253.474, Dec = 39.7595
tmin = 588470401, tmax = 588729601
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='139571', job_status='RUN', time_executed='2021-09-16 00:36:17.201100', time_epoch_executed='1631777777.2' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139571/ft1_4FGL_J1653.8+3945_daily_bin1347.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139571/ft2_4FGL_J1653.8+3945_daily_bin1347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139571/ft1_4FGL_J1653.8+3945_daily_bin1347.fits outfile=/scratch/kocevski/139571/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1347.fits ra=253.474 dec=39.7595 rad=12.0 tmin=588470401.0 tmax=588729601.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.89
user 4.60
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139571/ft1_filtered_4FGL_J1653.8+3945_daily_bin1347.fits" evtable="EVENTS" scfile=/scratch/kocevski/139571/ft2_4FGL_J1653.8+3945_daily_bin1347.fits sctable="SC_DATA" outfile=/scratch/kocevski/139571/ltcube_588470401_588729601_4FGL_J1653.8+3945_daily_bin1347.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/139571/ft2_4FGL_J1653.8+3945_daily_bin1347.fits
.....................!
real 12.97
user 12.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139571/ft1_filtered_4FGL_J1653.8+3945_daily_bin1347.fits evtable="EVENTS" scfile=/scratch/kocevski/139571/ft2_4FGL_J1653.8+3945_daily_bin1347.fits sctable="SC_DATA" expcube=/scratch/kocevski/139571/ltcube_588470401_588729601_4FGL_J1653.8+3945_daily_bin1347.fits outfile=/scratch/kocevski/139571/expmap_588470401_588729601_4FGL_J1653.8+3945_daily_bin1347.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/139571/ltcube_588470401_588729601_4FGL_J1653.8+3945_daily_bin1347.fits
.....................!
real 193.70
user 187.36
sys 5.51

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/139571/ft1_filtered_4FGL_J1653.8+3945_daily_bin1347.fits scfile=/scratch/kocevski/139571/ft2_4FGL_J1653.8+3945_daily_bin1347.fits outfile=/scratch/kocevski/139571/cmap_588470401_588729601_4FGL_J1653.8+3945_daily_bin1347.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139571/ft1_filtered_4FGL_J1653.8+3945_daily_bin1347.fits scfile=/scratch/kocevski/139571/ft2_4FGL_J1653.8+3945_daily_bin1347.fits outfile=/scratch/kocevski/139571/cmap_HighResolution_588470401_588729601_4FGL_J1653.8+3945_daily_bin1347.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12564E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12388E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7006       1.0000         .10000E-03   10000.    
     5 'norm      '    .89210E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.353       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2446       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5677       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5819       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84917       1.0000         .10000E-03   10000.    
    18 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.8112       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    17.818       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.964       1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.770       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .54278       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8211.226     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     2377 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2854        3.1724       -.13400E-05    .20460E-03
   2  Prefactor     .10000E-03    12.259       -.19489E-06** at limit **
   3  Prefactor     .10639E-03    39.549       -.47427E-05** at limit **
   4  Prefactor     3.7007        3.1013       -.12189E-05   -.17349E-03
   5  norm          .89213E-01    .79871E-01   -.45476E-07   -.53651E-02
   6  norm          .10000E-03    5.5483       -.49528E-05** at limit **
   7  Prefactor     36.353        1.0027        .43495E-08   -.75263E-04
   8  Prefactor     .10000E-03    3.3955       -.76442E-06** at limit **
   9  norm          .10000E-03    25.930        .27675E-04** at limit **
  10  Prefactor     .10000E-03    3.5344       -.75708E-06** at limit **
  11  Prefactor     1.6036        .90471       -.68966E-07   -.19208E-03
  12  Prefactor     8.2460        3.1408       -.10204E-05   -.10674E-02
  13  Prefactor     2.5677        1.9427       -.26403E-06   -.55893E-03
  14  norm          1.5818        1.0796        .16058E-06    .82057E-03
  15  norm          .10000E-03    .28856       -.42825E-06** at limit **
  16  Prefactor     .10000E-03    9.3304       -.40851E-08** at limit **
  17  norm          .84938        .61644       -.27572E-06   -.25192E-02
  18  norm          .10000E-03    5.5296        .64022E-05** at limit **
  19  norm          1.8110        1.2926        .61411E-07   -.14334E-02
  20  Prefactor     .10000E-03    35.420       -.54256E-04** at limit **
  21  norm          17.819        1.0720       -.98452E-06   -.41848E-02
  22  Prefactor     .10156E-03    62.196        .14226E-03** at limit **
  23  Prefactor     .10079E-03    102.64       -.17305E-03** at limit **
  24  Prefactor     12.901        9.6401       -.27451E-04    .32042E-02
  25  Prefactor     31.770        1.0016        .62300E-07   -.32405E-03
  26  Normalizat    .54270        .21094        .94079E-05   -.62380E-03
  27  Prefactor     1.2714        .16775       -.27790E-05   -.13855E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.28542
  Prefactor  = 0.0001
  Prefactor  = 0.00010639
  Prefactor  = 3.70066
  norm       = 0.0892126
  norm       = 0.0001
  Prefactor  = 36.3528
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100003
  Prefactor  = 1.60363
  Prefactor  = 8.24597
  Prefactor  = 2.56773
  norm       = 1.58184
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.849376
  norm       = 0.0001
  norm       = 1.81101
  Prefactor  = 0.000100003
  norm       = 17.8193
  Prefactor  = 0.000101563
  Prefactor  = 0.000100786
  Prefactor  = 12.9005
  Prefactor  = 31.7704
  Normalizat = 0.542704
  Prefactor  = 1.27142
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.226     FROM HESSE     STATUS=OK           578 CALLS     2955 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2854        3.1826        .40028E-02   -1.5206    
   2  Prefactor     .10000E-03    3.9573        .55493E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10639E-03    12.665        .10811       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7007        3.1243        .52484E-02   -1.5323    
   5  norm          .89213E-01    .87659E-01    .52208E-02   -1.5648    
   6  norm          .10000E-03    5.5449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.353        15.807        .16617E-02   -1.4501    
   8  Prefactor     .10000E-03    1.8172        .42072E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .51683        .34919E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6036        1.0932        .83670E-02   -1.5455    
  12  Prefactor     8.2460        3.1982        .34906E-02   -1.5134    
  13  Prefactor     2.5677        1.9565        .63684E-02   -1.5387    
  14  norm          1.5818        1.0805        .84412E-03   -1.5456    
  15  norm          .10000E-03    .23334        .20877E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5156        .53412E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .84938        .66422        .12622E-01   -1.5524    
  18  norm          .10000E-03    5.4516        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8110        1.3139        .77609E-02   -1.5439    
  20  Prefactor     .10000E-03    35.415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          17.819        6.4752        .23721E-02   -1.4863    
  22  Prefactor     .10156E-03    73.288        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10079E-03    148.58        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.901        32.648        .27812E-02   -1.4989    
  25  Prefactor     31.770        11.833        .17772E-02   -1.4580    
  26  Normalizat    .54270        .19801        .80243E-01   -1.1048    
  27  Prefactor     1.2714        .15147        .33129E-01   -.84161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27066e-07
Minuit parameter uncertainties:
  1  3.18268
  2  5.0023e-05
  3  0.0179966
  4  3.12447
  5  0.087659
  6  5.73287e-05
  7  15.8091
  8  5.45785e-05
  9  0.000620939
  10  7.27327e-05
  11  1.09317
  12  3.19827
  13  1.95651
  14  1.08047
  15  1.0028e-05
  16  8.08467e-05
  17  0.664225
  18  2.37297e-05
  19  1.31392
  20  0.000618181
  21  6.47547
  22  0.0214322
  23  0.021666
  24  32.6929
  25  11.8336
  26  0.198267
  27  0.151518
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.582e+00  1.080e+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.271e+00  1.515e-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:  5.427e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.44
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.12e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 3.06e-05 +/- 2.09e-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) = 8211.19431291
delta logL = 0.0313381913384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8211.19267104
delta logL = 0.0329800662494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5221       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5912       1.0000          .0000       5.0000    
     3 'Normalizat'    .54538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2712       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=   8211.193     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      193 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5210        41.488        .86566E-03   -.70065E-03
   2  alpha         1.5909        2.5420        .41389       -.12554E-04
   3  Normalizat    .54535        .25922        .80071E-01    .52467E-04
   4  Prefactor     1.2712        .14511        .33132E-01   -.19971E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52102
  alpha      = 1.5909
  Normalizat = 0.545348
  Prefactor  = 1.27123
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.193     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5210        1.1206        .17313E-03   -1.5461    
   2  alpha         1.5909        .50393        .14269E-01   -.37217    
   3  Normalizat    .54535        .19683        .35458E-03   -1.1036    
   4  Prefactor     1.2712        .16434        .19947E-03   -.84167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2891e-10
Minuit parameter uncertainties:
  1  1.12065
  2  0.507947
  3  0.197085
  4  0.164406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139571': 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) = 8211.19267054
delta logL = 0.0329805672081

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.521e+00  1.121e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.591e+00  5.079e-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.271e+00  1.644e-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:  5.453e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.50
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.59 +/- 0.51
Photon Flux (Free Index): 1.74e-08 +/- 1.83e-08
Energy Flux (Free Index): 3.74e-05 +/- 4.02e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/139571/cmap_HighResolution_588470401_588729601_4FGL_J1653.8+3945_daily_bin1347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.12e-08', energy_flux2='3.74e-05', photon_flux_error='1.45e-08', dlogl='3.30e-02', energy_flux='3.06e-05', photon_flux2='1.74e-08', job_status='DONE', time_completed='2021-09-16 00:49:37.808713', photon_index_error2='0.51', photon_index2='1.59', ts='10.44', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='4.02e-05', EG='0.54', time_epoch_completed='1631778577.81', return_code='0', job_id='139571', GAL2='1.27', EG2='0.55', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='1.83e-08', ts2='10.50', photon_index='1.72' WHERE bin_id='1347' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:49:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 139571: <4FGL_J1653.8+3945_daily_bin1347> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1347> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 16 00:35:23 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:36:02 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:36:02 2021
Terminated at Thu Sep 16 00:49:38 2021
Results reported at Thu Sep 16 00:49:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1347 253.474 39.7595 588470401 588729601 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 :                                   785.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            855 sec.

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

