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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1149
RA = 253.474, Dec = 39.7595
tmin = 537148801, tmax = 537408001
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='138094', job_status='RUN', time_executed='2021-09-16 00:31:04.962545', time_epoch_executed='1631777464.96' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138094/ft1_4FGL_J1653.8+3945_daily_bin1149.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138094/ft2_4FGL_J1653.8+3945_daily_bin1149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138094/ft1_4FGL_J1653.8+3945_daily_bin1149.fits outfile=/scratch/kocevski/138094/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1149.fits ra=253.474 dec=39.7595 rad=12.0 tmin=537148801.0 tmax=537408001.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.63
user 3.38
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138094/ft1_filtered_4FGL_J1653.8+3945_daily_bin1149.fits evtable="EVENTS" scfile=/scratch/kocevski/138094/ft2_4FGL_J1653.8+3945_daily_bin1149.fits sctable="SC_DATA" expcube=/scratch/kocevski/138094/ltcube_537148801_537408001_4FGL_J1653.8+3945_daily_bin1149.fits outfile=/scratch/kocevski/138094/expmap_537148801_537408001_4FGL_J1653.8+3945_daily_bin1149.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/138094/ltcube_537148801_537408001_4FGL_J1653.8+3945_daily_bin1149.fits
.....................!
real 192.92
user 187.46
sys 5.03

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/138094/ft1_filtered_4FGL_J1653.8+3945_daily_bin1149.fits scfile=/scratch/kocevski/138094/ft2_4FGL_J1653.8+3945_daily_bin1149.fits outfile=/scratch/kocevski/138094/cmap_537148801_537408001_4FGL_J1653.8+3945_daily_bin1149.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138094/ft1_filtered_4FGL_J1653.8+3945_daily_bin1149.fits scfile=/scratch/kocevski/138094/ft2_4FGL_J1653.8+3945_daily_bin1149.fits outfile=/scratch/kocevski/138094/cmap_HighResolution_537148801_537408001_4FGL_J1653.8+3945_daily_bin1149.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .26253       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.755       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7198       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20702       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25577E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13343E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4042       1.0000         .10000E-03   10000.    
    15 'norm      '    .44199       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2068       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    49.558       1.0000         .10000E-03   10000.    
    21 'norm      '    47.650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.233       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10679E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.068       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.1007       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3509       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .53497       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=   7081.035     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3375 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3941        3.5884        .13466E-07   -.29797E-04
   2  Prefactor     4.8552        4.6824        .23646E-07   -.19497E-04
   3  Prefactor     .10000E-03    10.755       -.38562E-07** at limit **
   4  Prefactor     .10000E-03    .91706       -.18346E-08** at limit **
   5  norm          .26241        .12940        .44228E-07   -.64443E-03
   6  norm          .10000E-03    4.0564        .79510E-09** at limit **
   7  Prefactor     22.750        15.652        .15481E-06   -.25092E-04
   8  Prefactor     6.7202        4.6782        .70386E-07   -.11871E-03
   9  norm          .10000E-03    36.415        .72116E-07** at limit **
  10  Prefactor     .20488        2.3337       -.46595E-06   -.59972E-03
  11  Prefactor     1.7400        1.7887        .44064E-06   -.22868E-03
  12  Prefactor     .10002E-03    1.4742        .38793E-07** at limit **
  13  Prefactor     .10000E-03    1.6587       -.82371E-07** at limit **
  14  norm          3.4035        1.5794        .46649E-07   -.11560E-03
  15  norm          .44241        .70675        .58289E-07   -.10929E-03
  16  Prefactor     1.2071        6.2775        .34039E-06   -.62648E-05
  17  norm          .10000E-03    .22647       -.25245E-08** at limit **
  18  norm          .10000E-03    5.6890       -.84700E-07** at limit **
  19  norm          2.9562        1.9065       -.55581E-07   -.18853E-03
  20  Prefactor     49.525        66.364        .43989E-06   -.14442E-04
  21  norm          47.656        10.890       -.14815E-06   -.22244E-04
  22  Prefactor     43.089        74.839        .21940E-05   -.55482E-04
  23  Prefactor     .10000E-03    160.44       -.10217E-05** at limit **
  24  Prefactor     42.941        57.427        .16545E-05   -.65916E-04
  25  Prefactor     3.1015        10.534        .16305E-05    .72130E-04
  26  Normalizat    1.3510        .19561       -.58362E-07   -.91860E-04
  27  Prefactor     .53492        .14491        .19829E-06   -.11292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.3941
  Prefactor  = 4.85516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.262408
  norm       = 0.0001
  Prefactor  = 22.7497
  Prefactor  = 6.72023
  norm       = 0.0001
  Prefactor  = 0.204879
  Prefactor  = 1.74
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 3.40355
  norm       = 0.44241
  Prefactor  = 1.20706
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.95617
  Prefactor  = 49.5246
  norm       = 47.6562
  Prefactor  = 43.0889
  Prefactor  = 0.0001
  Prefactor  = 42.9411
  Prefactor  = 3.10146
  Normalizat = 1.35096
  Prefactor  = 0.534917
 **********
 **   18 **HESSE 
 **********

 FCN=   7081.035     FROM HESSE     STATUS=OK           500 CALLS     3875 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3941        3.5933        .10647E-03   -1.5164    
   2  Prefactor     4.8552        4.6837        .17273E-03   -1.5267    
   3  Prefactor     .10000E-03    10.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .92317        .78633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26241        .12841        .18896E-04   -1.5606    
   6  norm          .10000E-03    4.0571        .16552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.750        15.700        .83969E-04   -1.4754    
   8  Prefactor     6.7202        4.6294        .14100E-03   -1.5189    
   9  norm          .10000E-03    36.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20488        5.9245        .12672E-02   -1.5617    
  11  Prefactor     1.7400        2.3745        .63198E-04   -1.5444    
  12  Prefactor     .10002E-03    28.288        .18882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6563        .20747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4035        1.5820        .69291E-04   -1.5339    
  15  norm          .44241        .57332        .81605E-03   -1.5575    
  16  Prefactor     1.2071        6.1256        .38809E-03   -1.5488    
  17  norm          .10000E-03    .23456        .77976E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.7682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9562        1.8971        .87001E-04   -1.5364    
  20  Prefactor     49.525        66.309        .56965E-04   -1.4299    
  21  norm          47.656        10.861        .58089E-04   -1.4326    
  22  Prefactor     43.089        73.612        .30486E-03   -1.4394    
  23  Prefactor     .10000E-03    160.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.941        56.629        .30544E-03   -1.4396    
  25  Prefactor     3.1015        10.635        .11515E-02   -1.5356    
  26  Normalizat    1.3510        .23479        .23952E-03   -.82058    
  27  Prefactor     .53492        .17360        .28081E-03   -1.1040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90521e-09
Minuit parameter uncertainties:
  1  3.59341
  2  4.68403
  3  5.65641e-07
  4  1.03951e-06
  5  0.128414
  6  1.26121e-07
  7  15.7025
  8  4.62966
  9  4.2149e-05
  10  2.20316
  11  2.37464
  12  0.00166358
  13  7.39797e-05
  14  1.582
  15  0.573329
  16  5.43901
  17  7.22579e-07
  18  3.72656e-06
  19  1.89716
  20  66.4083
  21  10.8616
  22  73.7679
  23  0.000360009
  24  56.7004
  25  10.6411
  26  0.234973
  27  0.173776
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.404e+00  1.582e+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:  5.349e-01  1.738e-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:  1.351e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.43
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 6.57e-05 +/- 3.06e-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) = 7079.62787847
delta logL = 1.40744323669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7079.60979881
delta logL = 1.42552289302

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3723       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4506       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57238       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=   7079.610     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      248 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3721        11.228        .66503E-02    .10492E-03
   2  alpha         2.4506        3.5664        .18053        .99150E-04
   3  Normalizat    1.2682        .93640E-01    .55458E-01    .53833E-05
   4  Prefactor     .57238        .55823E-01    .61400E-01    .30650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.37215
  alpha      = 2.45055
  Normalizat = 1.26823
  Prefactor  = 0.572377
 **********
 **   18 **HESSE 
 **********

 FCN=   7079.610     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3721        1.5417        .45708E-04   -1.5400    
   2  alpha         2.4506        .45103        .70524E-02   -.19780E-01
   3  Normalizat    1.2682        .22719        .24523E-03   -.84520    
   4  Prefactor     .57238        .17174        .27165E-03   -1.0876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62646e-12
Minuit parameter uncertainties:
  1  1.5417
  2  0.453518
  3  0.227366
  4  0.171892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138094': 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) = 7079.60979876
delta logL = 1.42552293943

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.372e+00  1.542e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.451e+00  4.535e-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:  5.724e-01  1.719e-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:  1.268e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.26
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.45 +/- 0.45
Photon Flux (Free Index): 1.12e-07 +/- 5.78e-08
Energy Flux (Free Index): 3.52e-05 +/- 1.43e-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/138094/cmap_HighResolution_537148801_537408001_4FGL_J1653.8+3945_daily_bin1149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='3.52e-05', photon_flux_error='2.12e-08', dlogl='1.43e+00', energy_flux='6.57e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-16 00:45:04.837320', photon_index_error2='0.45', photon_index2='2.45', ts='21.43', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.35', time_epoch_completed='1631778304.84', return_code='0', job_id='138094', GAL2='0.57', EG2='1.27', return_code2='0', energy_flux_error='3.06e-05', photon_flux_error2='5.78e-08', ts2='24.26', photon_index='1.72' WHERE bin_id='1149' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:45:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 138094: <4FGL_J1653.8+3945_daily_bin1149> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1149> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep 16 00:30:26 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:30:56 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:30:56 2021
Terminated at Thu Sep 16 00:45:05 2021
Results reported at Thu Sep 16 00:45:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1149 253.474 39.7595 537148801 537408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1653.8+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   832.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            879 sec.

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

