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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1224
RA = 253.474, Dec = 39.7595
tmin = 556588801, tmax = 556848001
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='138202', job_status='RUN', time_executed='2021-09-16 00:34:12.398852', time_epoch_executed='1631777652.4' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138202/ft1_4FGL_J1653.8+3945_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138202/ft2_4FGL_J1653.8+3945_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138202/ft1_4FGL_J1653.8+3945_daily_bin1224.fits outfile=/scratch/kocevski/138202/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1224.fits ra=253.474 dec=39.7595 rad=12.0 tmin=556588801.0 tmax=556848001.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.67
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138202/ft1_filtered_4FGL_J1653.8+3945_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/138202/ft2_4FGL_J1653.8+3945_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/138202/ltcube_556588801_556848001_4FGL_J1653.8+3945_daily_bin1224.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/138202/ft2_4FGL_J1653.8+3945_daily_bin1224.fits
.....................!
real 14.44
user 13.96
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138202/ft1_filtered_4FGL_J1653.8+3945_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/138202/ft2_4FGL_J1653.8+3945_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/138202/ltcube_556588801_556848001_4FGL_J1653.8+3945_daily_bin1224.fits outfile=/scratch/kocevski/138202/expmap_556588801_556848001_4FGL_J1653.8+3945_daily_bin1224.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/138202/ltcube_556588801_556848001_4FGL_J1653.8+3945_daily_bin1224.fits
.....................!
real 192.15
user 186.55
sys 5.00

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/138202/ft1_filtered_4FGL_J1653.8+3945_daily_bin1224.fits scfile=/scratch/kocevski/138202/ft2_4FGL_J1653.8+3945_daily_bin1224.fits outfile=/scratch/kocevski/138202/cmap_556588801_556848001_4FGL_J1653.8+3945_daily_bin1224.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138202/ft1_filtered_4FGL_J1653.8+3945_daily_bin1224.fits scfile=/scratch/kocevski/138202/ft2_4FGL_J1653.8+3945_daily_bin1224.fits outfile=/scratch/kocevski/138202/cmap_HighResolution_556588801_556848001_4FGL_J1653.8+3945_daily_bin1224.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1677       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4223       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0061       1.0000         .10000E-03   10000.    
     6 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60429       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4441       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1531       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4591       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5897       1.0000         .10000E-03   10000.    
    15 'norm      '    .33340       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7351       1.0000         .10000E-03   10000.    
    17 'norm      '    .55043       1.0000         .10000E-03   10000.    
    18 'norm      '    5.2849       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3879       1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.829       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    73.014       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3978       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.180       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0070       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89952       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=   4072.764     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3354 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1659        3.9731        .29738E-06   -.13062E-04
   2  Prefactor     .10000E-03    9.9222       -.14990E-05** at limit **
   3  Prefactor     7.1488        50.982       -.30993E-05   -.11673E-03
   4  Prefactor     3.4219        5.9628        .40755E-06   -.48504E-04
   5  norm          2.0062        .36891       -.10146E-07    .54439E-03
   6  norm          .10000E-03    8.3496       -.66963E-07** at limit **
   7  Prefactor     .10000E-03    21.344       -.14518E-05** at limit **
   8  Prefactor     .61060        4.6947        .71728E-06   -.37625E-03
   9  norm          .10001E-03    32.924        .61439E-05** at limit **
  10  Prefactor     1.4434        1.8654        .13780E-06    .19052E-03
  11  Prefactor     .10000E-03    1.6773       -.15993E-06** at limit **
  12  Prefactor     1.1520        3.9845        .10601E-05   -.13332E-03
  13  Prefactor     3.4600        4.4431        .10220E-06   -.13741E-03
  14  norm          2.5895        1.9241        .24874E-08    .48438E-05
  15  norm          .33321        .81315        .24346E-06    .23944E-03
  16  Prefactor     7.7398        8.8270       -.50957E-07   -.74877E-04
  17  norm          .54997        1.2169        .28835E-06   -.13498E-03
  18  norm          5.2844        5.9306       -.28216E-06   -.34684E-04
  19  norm          1.3874        1.7582        .83662E-07   -.11760E-03
  20  Prefactor     64.823        56.299       -.23518E-05   -.50181E-04
  21  norm          5.2619        6.8650        .40881E-05   -.24437E-03
  22  Prefactor     .10001E-03    44.198       -.62926E-05** at limit **
  23  Prefactor     73.066        157.19        .77713E-05    .71801E-04
  24  Prefactor     3.3956        121.94        .38128E-06   -.98168E-05
  25  Prefactor     33.172        20.204       -.41332E-06   -.13610E-03
  26  Normalizat    1.0064        .28646        .14227E-05   -.14708E-03
  27  Prefactor     .90008        .20308       -.27339E-05   -.13911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16594
  Prefactor  = 0.0001
  Prefactor  = 7.14883
  Prefactor  = 3.42187
  norm       = 2.00623
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.610597
  norm       = 0.000100011
  Prefactor  = 1.44338
  Prefactor  = 0.0001
  Prefactor  = 1.15202
  Prefactor  = 3.46001
  norm       = 2.58952
  norm       = 0.33321
  Prefactor  = 7.73983
  norm       = 0.549967
  norm       = 5.28435
  norm       = 1.38745
  Prefactor  = 64.8229
  norm       = 5.26193
  Prefactor  = 0.000100013
  Prefactor  = 73.0659
  Prefactor  = 3.39564
  Prefactor  = 33.1723
  Normalizat = 1.00642
  Prefactor  = 0.900078
 **********
 **   18 **HESSE 
 **********

 FCN=   4072.764     FROM HESSE     STATUS=OK           502 CALLS     3856 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1659        3.9576        .16554E-03   -1.5414    
   2  Prefactor     .10000E-03    9.9553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1488        52.134        .14983E-03   -1.5173    
   4  Prefactor     3.4219        5.9744        .18785E-03   -1.5338    
   5  norm          2.0062        .36979        .14960E-04   -1.5425    
   6  norm          .10000E-03    8.3506        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .61060        17.065        .24108E-02   -1.5552    
   9  norm          .10001E-03    34.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4434        1.6115        .78664E-04   -1.5468    
  11  Prefactor     .10000E-03    2.3905        .13657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1520        3.8581        .21517E-03   -1.5493    
  13  Prefactor     3.4600        4.4122        .14132E-03   -1.5336    
  14  norm          2.5895        1.9258        .73985E-04   -1.5386    
  15  norm          .33321        .65188        .84155E-03   -1.5593    
  16  Prefactor     7.7398        8.7194        .14418E-03   -1.5151    
  17  norm          .54997        1.1872        .94116E-04   -1.5560    
  18  norm          5.2844        5.9298        .15996E-03   -1.5248    
  19  norm          1.3874        1.7275        .90916E-04   -1.5472    
  20  Prefactor     64.823        56.301        .24921E-03   -1.4096    
  21  norm          5.2619        7.0095        .87613E-03   -1.5249    
  22  Prefactor     .10001E-03    45.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     73.066        158.77        .23492E-03   -1.3996    
  24  Prefactor     3.3956        122.33        .21948E-03   -1.5339    
  25  Prefactor     33.172        20.230        .69565E-04   -1.4555    
  26  Normalizat    1.0064        .34170        .29573E-03   -.92816    
  27  Prefactor     .90008        .23985        .24158E-03   -.96138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78004e-09
Minuit parameter uncertainties:
  1  3.95812
  2  7.50951e-05
  3  38.658
  4  5.97546
  5  0.369786
  6  7.41731e-06
  7  0.00024039
  8  6.45745
  9  0.00125136
  10  1.61153
  11  1.91506e-05
  12  3.85897
  13  4.41261
  14  1.92584
  15  0.651896
  16  8.72086
  17  1.18722
  18  5.93047
  19  1.72755
  20  56.3477
  21  7.01063
  22  0.00152407
  23  159.703
  24  40.8527
  25  20.234
  26  0.342447
  27  0.240133
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.590e+00  1.926e+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:  9.001e-01  2.401e-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.006e+00  3.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.50
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 3.72e-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) = 4072.55664666
delta logL = 0.207234734439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4072.54987701
delta logL = 0.214004384677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3920       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3814       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0152       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89803       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=   4072.550     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      204 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3920        1.8025        .66200E-02   -.17781E-02
   2  alpha         1.3814        .42954        .29042       -.18472E-04
   3  Normalizat    1.0152        .24967        .66626E-01    .80823E-05
   4  Prefactor     .89802        .19479        .44980E-01    .77732E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.39201
  alpha      = 1.38143
  Normalizat = 1.01523
  Prefactor  = 0.898022
 **********
 **   18 **HESSE 
 **********

 FCN=   4072.550     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3920        1.9294        .71931E-04   -1.5399    
   2  alpha         1.3814        .49303        .11910E-01   -.46389    
   3  Normalizat    1.0152        .29051        .29471E-03   -.92522    
   4  Prefactor     .89802        .22708        .24188E-03   -.96210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77084e-10
Minuit parameter uncertainties:
  1  1.92941
  2  0.497115
  3  0.290969
  4  0.227318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138202': 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) = 4072.54987701
delta logL = 0.214004386701

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  2.392e+00  1.929e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.381e+00  4.971e-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:  8.980e-01  2.273e-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.015e+00  2.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.93
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.38 +/- 0.50
Photon Flux (Free Index): 2.27e-08 +/- 2.20e-08
Energy Flux (Free Index): 9.54e-05 +/- 1.17e-04

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/138202/cmap_HighResolution_556588801_556848001_4FGL_J1653.8+3945_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='9.54e-05', photon_flux_error='2.58e-08', dlogl='2.14e-01', energy_flux='5.00e-05', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-16 00:45:31.086070', photon_index_error2='0.50', photon_index2='1.38', ts='8.50', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.17e-04', EG='1.01', time_epoch_completed='1631778331.09', return_code='0', job_id='138202', GAL2='0.90', EG2='1.02', return_code2='0', energy_flux_error='3.72e-05', photon_flux_error2='2.20e-08', ts2='8.93', photon_index='1.72' WHERE bin_id='1224' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:45:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 138202: <4FGL_J1653.8+3945_daily_bin1224> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1224 253.474 39.7595 556588801 556848001 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 :                                   620.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            898 sec.

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

