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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin332
RA = 253.474, Dec = 39.7595
tmin = 325382401, tmax = 325641601
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='132633', job_status='RUN', time_executed='2021-09-16 00:10:44.759177', time_epoch_executed='1631776244.76' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132633

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132633/ft1_4FGL_J1653.8+3945_daily_bin332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132633/ft2_4FGL_J1653.8+3945_daily_bin332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132633/ft1_4FGL_J1653.8+3945_daily_bin332.fits outfile=/scratch/kocevski/132633/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin332.fits ra=253.474 dec=39.7595 rad=12.0 tmin=325382401.0 tmax=325641601.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.87
user 3.45
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/132633/ft2_4FGL_J1653.8+3945_daily_bin332.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/132633/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin332.fits evtable="EVENTS" outfile="/scratch/kocevski/132633/ft1_filtered_4FGL_J1653.8+3945_daily_bin332.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/132633/ft1_filtered_4FGL_J1653.8+3945_daily_bin332.fits" evtable="EVENTS" scfile=/scratch/kocevski/132633/ft2_4FGL_J1653.8+3945_daily_bin332.fits sctable="SC_DATA" outfile=/scratch/kocevski/132633/ltcube_325382401_325641601_4FGL_J1653.8+3945_daily_bin332.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/132633/ft2_4FGL_J1653.8+3945_daily_bin332.fits
.....................!
real 16.31
user 14.64
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132633/ft1_filtered_4FGL_J1653.8+3945_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/132633/ft2_4FGL_J1653.8+3945_daily_bin332.fits sctable="SC_DATA" expcube=/scratch/kocevski/132633/ltcube_325382401_325641601_4FGL_J1653.8+3945_daily_bin332.fits outfile=/scratch/kocevski/132633/expmap_325382401_325641601_4FGL_J1653.8+3945_daily_bin332.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/132633/ltcube_325382401_325641601_4FGL_J1653.8+3945_daily_bin332.fits
.....................!
real 193.17
user 187.23
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/132633/ft1_filtered_4FGL_J1653.8+3945_daily_bin332.fits scfile=/scratch/kocevski/132633/ft2_4FGL_J1653.8+3945_daily_bin332.fits outfile=/scratch/kocevski/132633/cmap_325382401_325641601_4FGL_J1653.8+3945_daily_bin332.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/132633/ft1_filtered_4FGL_J1653.8+3945_daily_bin332.fits scfile=/scratch/kocevski/132633/ft2_4FGL_J1653.8+3945_daily_bin332.fits outfile=/scratch/kocevski/132633/cmap_HighResolution_325382401_325641601_4FGL_J1653.8+3945_daily_bin332.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8987       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.2734       1.0000         .10000E-03   10000.    
     5 'norm      '    .88756       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.293       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0886       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4522       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7355       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3540       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1257       1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7170       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .49774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    18.928       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1465       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .66128       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=   7006.626     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     2886 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7251        2.9163       -.41075E-06   -.15495E-03
   2  Prefactor     2.9015        4.8006       -.41992E-06   -.77409E-04
   3  Prefactor     .10000E-03    18.846        .19533E-07** at limit **
   4  Prefactor     4.2736        2.9800       -.38968E-07   -.27310E-04
   5  norm          .88754        .20527        .52548E-08   -.69789E-03
   6  norm          .10000E-03    4.7110        .92689E-08** at limit **
   7  Prefactor     .10000E-03    10.681       -.29689E-07** at limit **
   8  Prefactor     14.291        6.2560        .18357E-07   -.14842E-04
   9  norm          .98206        167.41        .15351E-05   -.11679E-04
  10  Prefactor     5.4528        1.6564        .37488E-06   -.90014E-03
  11  Prefactor     .10000E-03    .80766        .42864E-07** at limit **
  12  Prefactor     2.7335        3.3244       -.27586E-06   -.18113E-03
  13  Prefactor     1.3540        2.5886       -.39711E-06   -.27732E-03
  14  norm          2.1257        1.4004        .76449E-07   -.12017E-03
  15  norm          .10000E-03    .60589        .57198E-07** at limit **
  16  Prefactor     .10000E-03    2.8857       -.52799E-09** at limit **
  17  norm          1.7169        .78263       -.16108E-07    .28853E-03
  18  norm          .10000E-03    5.7823        .93325E-07** at limit **
  19  norm          .49796        1.0455       -.22525E-06   -.73499E-03
  20  Prefactor     .10000E-03    12.838       -.12976E-06** at limit **
  21  norm          18.930        6.6784        .23104E-07    .13703E-03
  22  Prefactor     .10000E-03    59.268       -.24786E-07** at limit **
  23  Prefactor     .10001E-03    239.67       -.86369E-06** at limit **
  24  Prefactor     .10000E-03    13.358        .13516E-06** at limit **
  25  Prefactor     .10000E-03    4.9335        .99245E-08** at limit **
  26  Normalizat    1.1465        .19581        .83008E-06    .56736E-04
  27  Prefactor     .66129        .13827       -.42721E-08    .12163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72515
  Prefactor  = 2.90149
  Prefactor  = 0.0001
  Prefactor  = 4.27361
  norm       = 0.88754
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2912
  norm       = 0.982058
  Prefactor  = 5.45277
  Prefactor  = 0.000100002
  Prefactor  = 2.7335
  Prefactor  = 1.35403
  norm       = 2.12568
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71685
  norm       = 0.0001
  norm       = 0.497962
  Prefactor  = 0.0001
  norm       = 18.9299
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14647
  Prefactor  = 0.661288
 **********
 **   18 **HESSE 
 **********

 FCN=   7006.626     FROM HESSE     STATUS=OK           498 CALLS     3384 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7251        2.9114        .17895E-03   -1.5445    
   2  Prefactor     2.9015        4.7903        .22709E-03   -1.5367    
   3  Prefactor     .10000E-03    18.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2736        2.9755        .11539E-03   -1.5294    
   5  norm          .88754        .20687        .16510E-04   -1.5520    
   6  norm          .10000E-03    4.7120        .17744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.291        6.2330        .10594E-03   -1.4952    
   9  norm          .98206        164.29        .78146E-02   -1.5510    
  10  Prefactor     5.4528        1.6811        .52304E-04   -1.5241    
  11  Prefactor     .10000E-03    1.2953        .13878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7335        3.2405        .15347E-03   -1.5377    
  13  Prefactor     1.3540        2.5691        .17531E-03   -1.5475    
  14  norm          2.1257        1.4032        .77657E-04   -1.5416    
  15  norm          .10000E-03    1.2100        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9147        .13875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7169        .77958        .47935E-04   -1.5446    
  18  norm          .10000E-03    5.8280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .49796        1.0226        .12420E-02   -1.5567    
  20  Prefactor     .10000E-03    12.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.930        6.6770        .92060E-04   -1.4838    
  22  Prefactor     .10000E-03    59.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    237.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.9616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1465        .23285        .26149E-03   -.88274    
  27  Prefactor     .66129        .16508        .25309E-03   -1.0506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73096e-08
Minuit parameter uncertainties:
  1  2.91164
  2  4.7909
  3  1.99026e-05
  4  2.97556
  5  0.206867
  6  1.12996e-06
  7  2.86923e-05
  8  6.23331
  9  25.4739
  10  1.68109
  11  9.40529e-05
  12  3.24069
  13  2.56927
  14  1.40324
  15  4.69198e-06
  16  5.53218e-07
  17  0.779583
  18  7.61813e-06
  19  1.02262
  20  5.33571e-05
  21  6.67725
  22  0.000169999
  23  0.00274526
  24  5.12208e-05
  25  3.37464e-06
  26  0.23306
  27  0.165202
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.126e+00  1.403e+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:  6.613e-01  1.652e-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.146e+00  2.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.02
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 4.11e-05 +/- 2.71e-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) = 7004.06677479
delta logL = 2.55904801267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7004.05610299
delta logL = 2.5697198089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68967       1.0000         .10000E-03   10000.    
     2 'alpha     '    .69118       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66510       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=   7004.056     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68977        .56784        .99858E-02   -.21846E-03
   2  alpha         .69108        .31470        .25841       -.33732E-04
   3  Normalizat    1.1518        .18142        .59034E-01    .79252E-05
   4  Prefactor     .66508        .13765        .41935E-01    .22688E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.689775
  alpha      = 0.691085
  Normalizat = 1.15182
  Prefactor  = 0.665079
 **********
 **   18 **HESSE 
 **********

 FCN=   7004.056     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68977        .93175        .43079E-03   -1.5542    
   2  alpha         .69108        .49363        .11555E-02   -.80895    
   3  Normalizat    1.1518        .21376        .26108E-03   -.88105    
   4  Prefactor     .66508        .16225        .25267E-03   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10001e-12
Minuit parameter uncertainties:
  1  0.931766
  2  0.500618
  3  0.213926
  4  0.162362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132633': 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) = 7004.05610278
delta logL = 2.56972001496

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  6.898e-01  9.318e-01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  6.911e-01  5.006e-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:  6.651e-01  1.624e-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.152e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.16
Ra Dec: 253.474 39.760
Photon Index (Free Index): 0.69 +/- 0.50
Photon Flux (Free Index): 9.43e-09 +/- 6.80e-09
Energy Flux (Free Index): 2.25e-04 +/- 1.86e-04

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/132633/cmap_HighResolution_325382401_325641601_4FGL_J1653.8+3945_daily_bin332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='2.25e-04', photon_flux_error='1.88e-08', dlogl='2.57e+00', energy_flux='4.11e-05', photon_flux2='9.43e-09', job_status='DONE', time_completed='2021-09-16 00:23:21.808613', photon_index_error2='0.50', photon_index2='0.69', ts='17.02', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.86e-04', EG='1.15', time_epoch_completed='1631777001.81', return_code='0', job_id='132633', GAL2='0.67', EG2='1.15', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='6.80e-09', ts2='22.16', photon_index='1.72' WHERE bin_id='332' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:23:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 132633: <4FGL_J1653.8+3945_daily_bin332> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin332> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 00:10:19 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:10:30 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:10:30 2021
Terminated at Thu Sep 16 00:23:22 2021
Results reported at Thu Sep 16 00:23:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin332 253.474 39.7595 325382401 325641601 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            783 sec.

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

