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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin536
RA = 253.474, Dec = 39.7595
tmin = 378259201, tmax = 378518401
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='134050', job_status='RUN', time_executed='2021-09-16 00:16:11.409077', time_epoch_executed='1631776571.41' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/134050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/134050/ft1_4FGL_J1653.8+3945_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/134050/ft2_4FGL_J1653.8+3945_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/134050/ft1_4FGL_J1653.8+3945_daily_bin536.fits outfile=/scratch/kocevski/134050/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin536.fits ra=253.474 dec=39.7595 rad=12.0 tmin=378259201.0 tmax=378518401.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.49
user 4.21
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/134050/ft2_4FGL_J1653.8+3945_daily_bin536.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/134050/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin536.fits evtable="EVENTS" outfile="/scratch/kocevski/134050/ft1_filtered_4FGL_J1653.8+3945_daily_bin536.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.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/134050/ft1_filtered_4FGL_J1653.8+3945_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/134050/ft2_4FGL_J1653.8+3945_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/134050/ltcube_378259201_378518401_4FGL_J1653.8+3945_daily_bin536.fits outfile=/scratch/kocevski/134050/expmap_378259201_378518401_4FGL_J1653.8+3945_daily_bin536.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/134050/ltcube_378259201_378518401_4FGL_J1653.8+3945_daily_bin536.fits
.....................!
real 193.50
user 187.27
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/134050/ft1_filtered_4FGL_J1653.8+3945_daily_bin536.fits scfile=/scratch/kocevski/134050/ft2_4FGL_J1653.8+3945_daily_bin536.fits outfile=/scratch/kocevski/134050/cmap_378259201_378518401_4FGL_J1653.8+3945_daily_bin536.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/134050/ft1_filtered_4FGL_J1653.8+3945_daily_bin536.fits scfile=/scratch/kocevski/134050/ft2_4FGL_J1653.8+3945_daily_bin536.fits outfile=/scratch/kocevski/134050/cmap_HighResolution_378259201_378518401_4FGL_J1653.8+3945_daily_bin536.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7116       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4558       1.0000         .10000E-03   10000.    
     6 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .83604E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3771       1.0000         .10000E-03   10000.    
     9 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91854       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70284       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3413       1.0000         .10000E-03   10000.    
    14 'norm      '    6.0807       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0370       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .91163       1.0000         .10000E-03   10000.    
    18 'norm      '    .10321E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4692       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.468       1.0000         .10000E-03   10000.    
    21 'norm      '    .13195E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .44543E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    135.17       1.0000         .10000E-03   10000.    
    24 'Prefactor '    55.483       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88178       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0403       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=   8960.197     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2830 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7110        3.0816        .20354E-05   -.41782E-03
   2  Prefactor     .10000E-03    1.3519        .15812E-05** at limit **
   3  Prefactor     .10000E-03    4.8459        .23894E-05** at limit **
   4  Prefactor     .10000E-03    1.8805       -.57663E-06** at limit **
   5  norm          1.4557        .23166        .39260E-07   -.13373E-01
   6  norm          .10000E-03    19.186        .16136E-04** at limit **
   7  Prefactor     .10000E-03    160.17        .18576E-03** at limit **
   8  Prefactor     3.3775        3.5860        .26895E-05   -.22905E-04
   9  norm          .10001E-03    19.590       -.19583E-04** at limit **
  10  Prefactor     1.7004        2.0867       -.38872E-06   -.32324E-02
  11  Prefactor     .91806        1.8134       -.38139E-06   -.24880E-02
  12  Prefactor     .70058        2.5159       -.73180E-07   -.15480E-03
  13  Prefactor     2.3409        2.6728        .11738E-06   -.17135E-05
  14  norm          6.0807        2.1395        .11588E-06   -.54327E-03
  15  norm          6.0372        1.2812       -.21783E-06   -.14972E-02
  16  Prefactor     .10000E-03    1.8428        .90596E-07** at limit **
  17  norm          .91156        .68785        .91261E-07    .68813E-03
  18  norm          .10000E-03    4.4496       -.30815E-05** at limit **
  19  norm          2.4690        1.3036        .11058E-06    .74536E-03
  20  Prefactor     14.489        7.8283       -.11700E-04    .76099E-03
  21  norm          .10000E-03    5.7073       -.22757E-05** at limit **
  22  Prefactor     .10004E-03    365.83       -.28372E-03** at limit **
  23  Prefactor     135.16        1.6668       -.10971E-05    .13445E-02
  24  Prefactor     55.478        1.8198       -.14836E-05    .55156E-04
  25  Prefactor     .10000E-03    4.0318        .39429E-06** at limit **
  26  Normalizat    .88188        .22089       -.22190E-05   -.27819E-03
  27  Prefactor     1.0404        .16564        .23965E-05   -.14763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.71102
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45569
  norm       = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 3.37747
  norm       = 0.000100006
  Prefactor  = 1.70044
  Prefactor  = 0.918056
  Prefactor  = 0.70058
  Prefactor  = 2.34094
  norm       = 6.0807
  norm       = 6.03722
  Prefactor  = 0.0001
  norm       = 0.911558
  norm       = 0.0001
  norm       = 2.46902
  Prefactor  = 14.4894
  norm       = 0.000100001
  Prefactor  = 0.000100041
  Prefactor  = 135.164
  Prefactor  = 55.4782
  Prefactor  = 0.0001
  Normalizat = 0.88188
  Prefactor  = 1.04039
 **********
 **   18 **HESSE 
 **********

 FCN=   8960.197     FROM HESSE     STATUS=OK           558 CALLS     3388 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7110        3.0823        .38721E-02   -1.5190    
   2  Prefactor     .10000E-03    1.3501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4557        .24324        .35751E-02   -1.5467    
   6  norm          .10000E-03    18.836        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1887        .15134       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3775        3.6056        .55046E-02   -1.5340    
   9  norm          .10001E-03    19.590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7004        2.7432        .80665E-02   -1.5447    
  11  Prefactor     .91806        2.4838        .12875E-01   -1.5516    
  12  Prefactor     .70058        2.5357        .12073E-01   -1.5541    
  13  Prefactor     2.3409        2.7114        .66987E-02   -1.5402    
  14  norm          6.0807        2.1646        .40704E-02   -1.5215    
  15  norm          6.0372        1.2946        .40854E-02   -1.5217    
  16  Prefactor     .10000E-03    1.8317        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .91156        .72141        .12850E-01   -1.5517    
  18  norm          .10000E-03    4.4205        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4690        1.3115        .65056E-02   -1.5394    
  20  Prefactor     14.489        26.782        .26325E-02   -1.4946    
  21  norm          .10000E-03    2.5438        .52568E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10004E-03    357.13        .96787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     135.16        131.32        .86601E-03   -1.3377    
  24  Prefactor     55.478        40.913        .13463E-02   -1.4217    
  25  Prefactor     .10000E-03    3.9989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .88188        .19108        .72159E-01   -.97100    
  27  Prefactor     1.0404        .14118        .40513E-01   -.91395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39405e-08
Minuit parameter uncertainties:
  1  3.08236
  2  5.28803e-05
  3  6.1821e-05
  4  6.56922e-06
  5  0.243245
  6  0.000394533
  7  0.0002645
  8  3.60582
  9  0.000692944
  10  2.74338
  11  2.48406
  12  2.5361
  13  2.71154
  14  2.16465
  15  1.29463
  16  6.67703e-06
  17  0.721416
  18  1.61211e-05
  19  1.31156
  20  26.8037
  21  7.8129e-05
  22  0.00765573
  23  131.6
  24  40.934
  25  8.35029e-06
  26  0.191229
  27  0.141227
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  6.081e+00  2.165e+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.040e+00  1.412e-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:  8.819e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.01
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 8.15e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.17e-04 +/- 4.18e-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) = 8958.00239167
delta logL = 2.19411287264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8958.00111087
delta logL = 2.19539367431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3941       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2913       1.0000          .0000       5.0000    
     3 'Normalizat'    .81189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0693       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=   8958.001     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      283 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3943        2.0231        .55682E-04    .13504E-02
   2  alpha         2.2913        .29497        .62480E-02    .14585E-03
   3  Normalizat    .81190        .20937        .33024E-03   -.31740E-04
   4  Prefactor     1.0693        .16406        .23023E-03   -.28245E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.39427
  alpha      = 2.29128
  Normalizat = 0.811896
  Prefactor  = 1.06932
 **********
 **   18 **HESSE 
 **********

 FCN=   8958.001     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3943        1.9303        .22273E-05   -1.5289    
   2  alpha         2.2913        .28130        .24992E-03   -.83583E-01
   3  Normalizat    .81190        .20933        .13210E-04   -.99629    
   4  Prefactor     1.0693        .16412        .92092E-05   -.90453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02724e-10
Minuit parameter uncertainties:
  1  1.93028
  2  0.281901
  3  0.20954
  4  0.164201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/134050': 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) = 8958.0011108
delta logL = 2.19539373595

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.394e+00  1.930e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.291e+00  2.819e-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.069e+00  1.642e-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:  8.119e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.42
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.29 +/- 0.28
Photon Flux (Free Index): 1.52e-07 +/- 5.44e-08
Energy Flux (Free Index): 5.94e-05 +/- 2.19e-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/134050/cmap_HighResolution_378259201_378518401_4FGL_J1653.8+3945_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.15e-08', energy_flux2='5.94e-05', photon_flux_error='2.90e-08', dlogl='2.20e+00', energy_flux='1.17e-04', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-16 00:31:23.204083', photon_index_error2='0.28', photon_index2='2.29', ts='30.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='0.88', time_epoch_completed='1631777483.2', return_code='0', job_id='134050', GAL2='1.07', EG2='0.81', return_code2='0', energy_flux_error='4.18e-05', photon_flux_error2='5.44e-08', ts2='34.42', photon_index='1.72' WHERE bin_id='536' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:31:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 134050: <4FGL_J1653.8+3945_daily_bin536> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin536> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 16 00:15:21 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:15:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 00:15:56 2021
Terminated at Thu Sep 16 00:31:23 2021
Results reported at Thu Sep 16 00:31:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin536 253.474 39.7595 378259201 378518401 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 :                                   908.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            962 sec.

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

