/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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1653.8+3945_daily_bin233
RA = 253.474, Dec = 39.7595
tmin = 299721601, tmax = 299980801
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='131204', job_status='RUN', time_executed='2021-09-16 00:06:17.660251', time_epoch_executed='1631775977.66' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131204/ft1_4FGL_J1653.8+3945_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131204/ft2_4FGL_J1653.8+3945_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131204/ft1_4FGL_J1653.8+3945_daily_bin233.fits outfile=/scratch/kocevski/131204/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin233.fits ra=253.474 dec=39.7595 rad=12.0 tmin=299721601.0 tmax=299980801.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.40
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131204/ft1_filtered_4FGL_J1653.8+3945_daily_bin233.fits" evtable="EVENTS" scfile=/scratch/kocevski/131204/ft2_4FGL_J1653.8+3945_daily_bin233.fits sctable="SC_DATA" outfile=/scratch/kocevski/131204/ltcube_299721601_299980801_4FGL_J1653.8+3945_daily_bin233.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/131204/ft2_4FGL_J1653.8+3945_daily_bin233.fits
.....................!
real 13.77
user 13.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131204/ft1_filtered_4FGL_J1653.8+3945_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/131204/ft2_4FGL_J1653.8+3945_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/131204/ltcube_299721601_299980801_4FGL_J1653.8+3945_daily_bin233.fits outfile=/scratch/kocevski/131204/expmap_299721601_299980801_4FGL_J1653.8+3945_daily_bin233.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/131204/ltcube_299721601_299980801_4FGL_J1653.8+3945_daily_bin233.fits
.....................!
real 190.61
user 186.10
sys 4.09

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/131204/ft1_filtered_4FGL_J1653.8+3945_daily_bin233.fits scfile=/scratch/kocevski/131204/ft2_4FGL_J1653.8+3945_daily_bin233.fits outfile=/scratch/kocevski/131204/cmap_299721601_299980801_4FGL_J1653.8+3945_daily_bin233.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.56
user 0.38
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6396       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .57085       1.0000         .10000E-03   10000.    
     6 'norm      '    .11822E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.795       1.0000         .10000E-03   10000.    
     9 'norm      '    .19562E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9580       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2448       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6414       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4062       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7150       1.0000         .10000E-03   10000.    
    17 'norm      '    .97088E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    13.476       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1927       1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.770       1.0000         .10000E-03   10000.    
    21 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    90.125       1.0000         .10000E-03   10000.    
    23 'Prefactor '    216.16       1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.485       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.7482       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .23839       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2600       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=   7712.158     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     2374 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6504        3.1527        .29465E-05    .43113E-05
   2  Prefactor     .10000E-03    2.7296       -.13569E-05** at limit **
   3  Prefactor     20.887        19.897       -.83788E-05    .86818E-06
   4  Prefactor     .10000E-03    .95372       -.50706E-06** at limit **
   5  norm          .57440        .20679        .16604E-06   -.12786E-03
   6  norm          .10000E-03    17.029        .13036E-04** at limit **
   7  Prefactor     26.416        25.546       -.22909E-04   -.50781E-05
   8  Prefactor     43.838        7.2857        .28387E-05   -.27849E-05
   9  norm          .10000E-03    12.530       -.42834E-05** at limit **
  10  Prefactor     2.9636        2.3688        .73456E-06   -.33450E-04
  11  Prefactor     3.1005        2.3380       -.10980E-05   -.29749E-04
  12  Prefactor     1.2451        1.3305       -.94499E-06    .12432E-04
  13  Prefactor     .10000E-03    1.0498        .15828E-05** at limit **
  14  norm          2.6424        1.4627        .15821E-05   -.43038E-04
  15  norm          1.4066        .83861        .21500E-06   -.13765E-04
  16  Prefactor     2.7142        6.3023       -.52132E-05   -.31136E-04
  17  norm          .97125E-01    .31004       -.96326E-06   -.20558E-04
  18  norm          13.409        7.5185       -.74411E-06   -.45307E-07
  19  norm          4.1955        1.7903        .10193E-05   -.18541E-04
  20  Prefactor     35.688        42.400        .15320E-04    .50863E-05
  21  norm          .10000E-03    1.7873       -.19493E-05** at limit **
  22  Prefactor     92.778        58.399        .10285E-04   -.16703E-04
  23  Prefactor     220.88        124.54        .21897E-04    .17906E-05
  24  Prefactor     47.777        40.023        .53410E-05   -.60116E-05
  25  Prefactor     6.7263        6.0642        .21689E-05   -.54557E-05
  26  Normalizat    .23939        .22824       -.29663E-04   -.35803E-06
  27  Prefactor     1.2584        .17101        .80617E-05   -.49715E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.65045
  Prefactor  = 0.0001
  Prefactor  = 20.8869
  Prefactor  = 0.0001
  norm       = 0.574396
  norm       = 0.0001
  Prefactor  = 26.4162
  Prefactor  = 43.8375
  norm       = 0.0001
  Prefactor  = 2.96358
  Prefactor  = 3.10049
  Prefactor  = 1.24509
  Prefactor  = 0.0001
  norm       = 2.64237
  norm       = 1.40661
  Prefactor  = 2.71415
  norm       = 0.0971247
  norm       = 13.4093
  norm       = 4.19552
  Prefactor  = 35.6879
  norm       = 0.0001
  Prefactor  = 92.7781
  Prefactor  = 220.879
  Prefactor  = 47.7774
  Prefactor  = 6.72633
  Normalizat = 0.239389
  Prefactor  = 1.25837
 **********
 **   18 **HESSE 
 **********

 FCN=   7712.158     FROM HESSE     STATUS=OK           558 CALLS     2932 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6504        3.3087        .62740E-02   -1.5382    
   2  Prefactor     .10000E-03    2.7188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.887        20.795        .21702E-02   -1.4794    
   4  Prefactor     .10000E-03    .94776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .57440        .20450        .42691E-02   -1.5556    
   6  norm          .10000E-03    16.558        .10324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.416        26.316        .19182E-02   -1.4680    
   8  Prefactor     43.838        7.5465        .15145E-02   -1.4383    
   9  norm          .10000E-03    12.535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9636        2.2180        .59028E-02   -1.5364    
  11  Prefactor     3.1005        2.1962        .57544E-02   -1.5356    
  12  Prefactor     1.2451        1.3230        .10036E-01   -1.5485    
  13  Prefactor     .10000E-03    1.0341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6424        1.4637        .62717E-02   -1.5383    
  15  norm          1.4066        .86010        .91398E-02   -1.5471    
  16  Prefactor     2.7142        6.7420        .61795E-02   -1.5378    
  17  norm          .97125E-01    .30614        .20800E-01   -1.5646    
  18  norm          13.409        7.5654        .27278E-02   -1.4975    
  19  norm          4.1955        1.8300        .49204E-02   -1.5298    
  20  Prefactor     35.688        42.443        .16990E-02   -1.4512    
  21  norm          .10000E-03    1.7782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     92.778        59.366        .10582E-02   -1.3779    
  23  Prefactor     220.88        125.50        .68763E-03   -1.2725    
  24  Prefactor     47.777        40.040        .14397E-02   -1.4324    
  25  Prefactor     6.7263        6.0658        .38615E-02   -1.5189    
  26  Normalizat    .23939        .36469        .12227       -1.2666    
  27  Prefactor     1.2584        .25223        .33347E-01   -.84553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89012e-07
Minuit parameter uncertainties:
  1  3.30892
  2  1.92808e-06
  3  20.8022
  4  3.1087e-07
  5  0.204497
  6  2.09963e-05
  7  26.3275
  8  7.54669
  9  8.07739e-06
  10  2.2181
  11  2.19629
  12  1.32302
  13  2.0347e-07
  14  1.46371
  15  0.860104
  16  6.74388
  17  0.306147
  18  7.56595
  19  1.83002
  20  42.4784
  21  1.20417e-06
  22  59.4038
  23  125.653
  24  40.0625
  25  6.0664
  26  0.368404
  27  0.252477
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.642e+00  1.464e+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.258e+00  2.525e-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:  2.394e-01  3.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.33
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.54e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 5.10e-05 +/- 2.83e-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) = 7712.15209731
delta logL = 0.0055820696507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7712.15185376
delta logL = 0.00582561892861

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6636       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7724       1.0000          .0000       5.0000    
     3 'Normalizat'    .23708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2590       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7712.152     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6636        1.4439        .75315E-04   -.96185E-03
   2  alpha         1.7724        .47080        .13953E-01   -.48789E-04
   3  Normalizat    .23705        .20271        .54226E-03    .28010E-04
   4  Prefactor     1.2590        .16549        .19979E-03    .54799E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66363
  alpha      = 1.77243
  Normalizat = 0.237055
  Prefactor  = 1.25897
 **********
 **   18 **HESSE 
 **********

 FCN=   7712.152     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6636        1.4471        .30126E-05   -1.5382    
   2  alpha         1.7724        .47165        .55811E-03   -.29530    
   3  Normalizat    .23705        .20245        .21690E-04   -1.2681    
   4  Prefactor     1.2590        .16532        .79914E-05   -.84535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9648e-10
Minuit parameter uncertainties:
  1  1.44715
  2  0.474765
  3  0.203078
  4  0.165385
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131204': 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) = 7712.15185375
delta logL = 0.00582562715044

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.664e+00  1.447e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.772e+00  4.748e-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.259e+00  1.654e-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:  2.371e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.34
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.77 +/- 0.47
Photon Flux (Free Index): 3.83e-08 +/- 3.43e-08
Energy Flux (Free Index): 4.75e-05 +/- 4.03e-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/131204/cmap_HighResolution_299721601_299980801_4FGL_J1653.8+3945_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.54e-08', energy_flux2='4.75e-05', photon_flux_error='1.96e-08', dlogl='5.83e-03', energy_flux='5.10e-05', photon_flux2='3.83e-08', job_status='DONE', time_completed='2021-09-16 00:18:59.537493', photon_index_error2='0.47', photon_index2='1.77', ts='14.33', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='4.03e-05', EG='0.24', time_epoch_completed='1631776739.54', return_code='0', job_id='131204', GAL2='1.26', EG2='0.24', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='3.43e-08', ts2='14.34', photon_index='1.72' WHERE bin_id='233' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:18:59 PDT 2021


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

Job <4FGL_J1653.8+3945_daily_bin233> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep 16 00:05:19 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:05:52 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:05:52 2021
Terminated at Thu Sep 16 00:18:59 2021
Results reported at Thu Sep 16 00:18:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin233 253.474 39.7595 299721601 299980801 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 :                                   755.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            820 sec.

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

