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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1230
RA = 253.474, Dec = 39.7595
tmin = 558144001, tmax = 558403201
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='138211', job_status='RUN', time_executed='2021-09-16 00:34:24.898716', time_epoch_executed='1631777664.9' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138211

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138211/ft1_4FGL_J1653.8+3945_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138211/ft2_4FGL_J1653.8+3945_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138211/ft1_4FGL_J1653.8+3945_daily_bin1230.fits outfile=/scratch/kocevski/138211/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1230.fits ra=253.474 dec=39.7595 rad=12.0 tmin=558144001.0 tmax=558403201.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.31
user 4.01
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138211/ft1_filtered_4FGL_J1653.8+3945_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/138211/ft2_4FGL_J1653.8+3945_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/138211/ltcube_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.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/138211/ft2_4FGL_J1653.8+3945_daily_bin1230.fits
.....................!
real 14.48
user 14.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138211/ft1_filtered_4FGL_J1653.8+3945_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/138211/ft2_4FGL_J1653.8+3945_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/138211/ltcube_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.fits outfile=/scratch/kocevski/138211/expmap_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.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/138211/ltcube_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.fits
.....................!
real 192.20
user 187.63
sys 4.06

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/138211/ft1_filtered_4FGL_J1653.8+3945_daily_bin1230.fits scfile=/scratch/kocevski/138211/ft2_4FGL_J1653.8+3945_daily_bin1230.fits outfile=/scratch/kocevski/138211/cmap_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138211/ft1_filtered_4FGL_J1653.8+3945_daily_bin1230.fits scfile=/scratch/kocevski/138211/ft2_4FGL_J1653.8+3945_daily_bin1230.fits outfile=/scratch/kocevski/138211/cmap_HighResolution_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4664       1.0000         .10000E-03   10000.    
     6 'norm      '    3.0397       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.144       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21562E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0574       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1770       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7721       1.0000         .10000E-03   10000.    
    18 'norm      '    37.220       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.807       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0696       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.637       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22980E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .75514       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93035       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=   3289.688     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3310 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2061       -.85890E-07** at limit **
   2  Prefactor     .10000E-03    37.753        .61505E-06** at limit **
   3  Prefactor     .10000E-03    228.81        .67585E-06** at limit **
   4  Prefactor     .10000E-03    11.724       -.69097E-06** at limit **
   5  norm          5.4663        .84815       -.67881E-07   -.35454E-02
   6  norm          3.0417        181.96        .20053E-06   -.20780E-05
   7  Prefactor     67.150        64.135        .79583E-06   -.77936E-04
   8  Prefactor     .10000E-03    11.118        .74936E-07** at limit **
   9  norm          .10000E-03    210.47        .50822E-05** at limit **
  10  Prefactor     .10001E-03    4.3406        .32097E-05** at limit **
  11  Prefactor     4.0513        5.3744       -.17403E-05   -.10608E-02
  12  Prefactor     .10000E-03    18.758        .99936E-08** at limit **
  13  Prefactor     .10000E-03    36.308        .19014E-05** at limit **
  14  norm          .10000E-03    5.7267        .61863E-06** at limit **
  15  norm          3.1757        6.9209        .10115E-05   -.28881E-04
  16  Prefactor     .10000E-03    48.422       -.36947E-06** at limit **
  17  norm          1.7718        3.1558        .87032E-07   -.32009E-03
  18  norm          37.231        38.606       -.55710E-06   -.30127E-04
  19  norm          .10000E-03    3.8893        .34476E-07** at limit **
  20  Prefactor     57.830        118.97        .23327E-05    .32198E-05
  21  norm          5.0598        14.101       -.90472E-06   -.10838E-03
  22  Prefactor     22.682        605.89        .62798E-05    .50652E-05
  23  Prefactor     .10000E-03    116.27        .12041E-05** at limit **
  24  Prefactor     .10000E-03    266.07       -.82552E-05** at limit **
  25  Prefactor     .10000E-03    11.924        .90964E-06** at limit **
  26  Normalizat    .75512        .39046       -.62306E-06   -.76242E-04
  27  Prefactor     .93037        .24951       -.24690E-07   -.11002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.46629
  norm       = 3.04173
  Prefactor  = 67.1499
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 4.05131
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 3.17571
  Prefactor  = 0.000100001
  norm       = 1.77179
  norm       = 37.2313
  norm       = 0.0001
  Prefactor  = 57.8303
  norm       = 5.05976
  Prefactor  = 22.6819
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.755117
  Prefactor  = 0.930365
 **********
 **   18 **HESSE 
 **********

 FCN=   3289.688     FROM HESSE     STATUS=OK           476 CALLS     3786 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2472        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    228.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4663        .86318        .16554E-04   -1.5240    
   6  norm          3.0417        181.92        .23273E-03   -1.5359    
   7  Prefactor     67.150        64.787        .48981E-04   -1.4067    
   8  Prefactor     .10000E-03    11.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    210.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    7.5098        .20764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0513        5.7572        .13805E-03   -1.5305    
  12  Prefactor     .10000E-03    18.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9458        .26816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1757        6.8722        .21296E-03   -1.5352    
  16  Prefactor     .10000E-03    48.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7718        3.1164        .12625E-03   -1.5442    
  18  norm          37.231        38.402        .65693E-04   -1.4487    
  19  norm          .10000E-03    3.8964        .11043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     57.830        119.15        .52765E-04   -1.4186    
  21  norm          5.0598        14.018        .17858E-03   -1.5258    
  22  Prefactor     22.682        597.36        .84188E-04   -1.4755    
  23  Prefactor     .10000E-03    116.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    266.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .75512        .46379        .42508E-03   -1.0176    
  27  Prefactor     .93037        .30041        .25127E-03   -.95088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12381e-09
Minuit parameter uncertainties:
  1  8.92957e-06
  2  2.35903e-05
  3  1.68514e-05
  4  3.68249e-05
  5  0.863177
  6  47.1967
  7  64.8549
  8  6.95018e-06
  9  0.000303735
  10  0.000565766
  11  5.758
  12  2.81033e-05
  13  0.000293102
  14  2.54903e-05
  15  6.87387
  16  0.000326354
  17  3.11667
  18  38.4277
  19  9.99469e-06
  20  119.645
  21  14.0276
  22  235.464
  23  0.000140608
  24  0.00139968
  25  2.46159e-05
  26  0.466239
  27  0.300952
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.000e-04  2.549e-05  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:  9.304e-01  3.010e-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:  7.551e-01  4.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 253.474 39.760
Photon Flux Upper Limit: 1.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.23e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/138211/likelihoodResults_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.txt

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): 102
logL (Free Index) = 3289.68879696
delta logL = -0.000801069357294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3289.68799101
delta logL = 4.87456873088e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11594E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8480       1.0000          .0000       5.0000    
     3 'Normalizat'    .75515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93035       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=   3289.445     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      266 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0747        49.056        .90712E-02    .39622E-03
   2  alpha         2.8387        3.7917        .24922        .23119E-04
   3  Normalizat    .69876        .90798E-01    .98886E-01    .32036E-04
   4  Prefactor     .94239        .58727E-01    .45391E-01    .28822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07467
  alpha      = 2.83874
  Normalizat = 0.698761
  Prefactor  = 0.942391
 **********
 **   18 **HESSE 
 **********

 FCN=   3289.445     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0747        3.2696        .86877E-04   -1.5501    
   2  alpha         2.8387        1.3995        .13394E-01    .13591    
   3  Normalizat    .69876        .45301        .43838E-03   -1.0394    
   4  Prefactor     .94239        .29444        .24888E-03   -.94675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91576e-12
Minuit parameter uncertainties:
  1  3.27017
  2  1.48731
  3  0.455461
  4  0.294942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138211': 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) = 3289.4451311
delta logL = 0.242864791791

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.075e+00  3.270e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.839e+00  1.487e+00  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  9.424e-01  2.949e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  6.988e-01  4.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 253.474 39.760

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/138211/cmap_HighResolution_558144001_558403201_4FGL_J1653.8+3945_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-04', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-16 00:45:16.788934', job_id='138211', GAL2='0.94', fit_tolerance='1e-08', EG2='0.70', EG='0.76', time_epoch_completed='1631778316.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.43e-01', ts2='0.50', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='1230' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:45:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 138211: <4FGL_J1653.8+3945_daily_bin1230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1230 253.474 39.7595 558144001 558403201 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 :                                   592.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            883 sec.

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

