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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1507
RA = 253.474, Dec = 39.7595
tmin = 629942401, tmax = 630201601
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='140939', job_status='RUN', time_executed='2021-09-16 00:41:02.483186', time_epoch_executed='1631778062.48' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140939/ft1_4FGL_J1653.8+3945_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140939/ft2_4FGL_J1653.8+3945_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140939/ft1_4FGL_J1653.8+3945_daily_bin1507.fits outfile=/scratch/kocevski/140939/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1507.fits ra=253.474 dec=39.7595 rad=12.0 tmin=629942401.0 tmax=630201601.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.75
user 4.50
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140939/ft2_4FGL_J1653.8+3945_daily_bin1507.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/140939/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1507.fits evtable="EVENTS" outfile="/scratch/kocevski/140939/ft1_filtered_4FGL_J1653.8+3945_daily_bin1507.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/140939/ft1_filtered_4FGL_J1653.8+3945_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/140939/ft2_4FGL_J1653.8+3945_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/140939/ltcube_629942401_630201601_4FGL_J1653.8+3945_daily_bin1507.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/140939/ft2_4FGL_J1653.8+3945_daily_bin1507.fits
.....................!
real 13.16
user 12.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140939/ft1_filtered_4FGL_J1653.8+3945_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/140939/ft2_4FGL_J1653.8+3945_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/140939/ltcube_629942401_630201601_4FGL_J1653.8+3945_daily_bin1507.fits outfile=/scratch/kocevski/140939/expmap_629942401_630201601_4FGL_J1653.8+3945_daily_bin1507.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/140939/ltcube_629942401_630201601_4FGL_J1653.8+3945_daily_bin1507.fits
.....................!
real 191.52
user 185.89
sys 4.87

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/140939/ft1_filtered_4FGL_J1653.8+3945_daily_bin1507.fits scfile=/scratch/kocevski/140939/ft2_4FGL_J1653.8+3945_daily_bin1507.fits outfile=/scratch/kocevski/140939/cmap_629942401_630201601_4FGL_J1653.8+3945_daily_bin1507.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5286       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2048       1.0000         .10000E-03   10000.    
     5 'norm      '    .66123       1.0000         .10000E-03   10000.    
     6 'norm      '    .31682E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28269E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4155       1.0000         .10000E-03   10000.    
     9 'norm      '    .13020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .30274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4040       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.9479       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26916       1.0000         .10000E-03   10000.    
    17 'norm      '    .10347       1.0000         .10000E-03   10000.    
    18 'norm      '    .18953E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    28.554       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59534E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2039       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.980       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.899       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.816       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .81557       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0371       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=   8133.609     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     2511 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4393        .90712E-02** at limit **
   2  Prefactor     .10000E-03    5.0872        .10716E-01** at limit **
   3  Prefactor     2.6778        30.838        .64219E-02    .17322E-03
   4  Prefactor     2.2151        2.3365        .69265E-02    .50357E-03
   5  norm          .66125        .16735        .37296E-02    .46285E-03
   6  norm          .10000E-03    5.6940        .10683E-01** at limit **
   7  Prefactor     .10000E-03    9.1028        .10707E-01** at limit **
   8  Prefactor     4.4007        3.3375        .47912E-02    .35291E-03
   9  norm          .10000E-03    11.552        .90712E-02** at limit **
  10  Prefactor     .10000E-03    .74887        .23347E-01** at limit **
  11  Prefactor     .30258        1.1640        .10437E-01    .27850E-02
  12  Prefactor     3.4112        2.2189        .54819E-02    .14742E-04
  13  Prefactor     .10000E-03    1.3376        .37707E-01** at limit **
  14  norm          4.9489        1.9872        .45202E-02   -.17894E-03
  15  norm          .10000E-03    .23056        .90712E-02** at limit **
  16  Prefactor     .24012        4.4087        .55078E-01    .77462E-03
  17  norm          .10362        .63714        .20496E-01    .24724E-02
  18  norm          .10000E-03    6.2697        .90712E-02** at limit **
  19  norm          28.577        3.3839        .18744E-02    .64193E-03
  20  Prefactor     .10000E-03    74.086        .93165E-02** at limit **
  21  norm          2.1669        4.8311        .69282E-02    .98337E-03
  22  Prefactor     24.525        65.027        .20450E-02    .88597E-04
  23  Prefactor     .10000E-03    36.741        .90712E-02** at limit **
  24  Prefactor     15.895        33.003        .23667E-02   -.65579E-04
  25  Prefactor     13.871        11.936        .26940E-02   -.15677E-03
  26  Normalizat    .81478        .19327        .70939E-01    .11233E-03
  27  Prefactor     1.0378        .14421        .40731E-01    .44836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.67782
  Prefactor  = 2.21507
  norm       = 0.661251
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.40069
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.30258
  Prefactor  = 3.41118
  Prefactor  = 0.0001
  norm       = 4.94886
  norm       = 0.0001
  Prefactor  = 0.240116
  norm       = 0.103622
  norm       = 0.0001
  norm       = 28.5767
  Prefactor  = 0.000100001
  norm       = 2.16693
  Prefactor  = 24.5252
  Prefactor  = 0.000100001
  Prefactor  = 15.8946
  Prefactor  = 13.8712
  Normalizat = 0.814783
  Prefactor  = 1.0378
 **********
 **   18 **HESSE 
 **********

 FCN=   8133.609     FROM HESSE     STATUS=OK           498 CALLS     3009 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4680        .10560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0940        .39000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6778        29.998        .25688E-03   -1.5381    
   4  Prefactor     2.2151        2.3276        .13476E-03   -1.5410    
   5  norm          .66125        .16385        .16508E-04   -1.5545    
   6  norm          .10000E-03    5.6990        .21018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1598        .21415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4007        3.3341        .13692E-03   -1.5288    
   9  norm          .10000E-03    11.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .89606        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .30258        .95457        .13723E-03   -1.5598    
  12  Prefactor     3.4112        2.2204        .10457E-03   -1.5339    
  13  Prefactor     .10000E-03    2.4602        .19876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.9489        1.9643        .75665E-04   -1.5263    
  15  norm          .10000E-03    .24120        .84336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .24012        21.365        .34383E-02   -1.5610    
  17  norm          .10362        1.4115        .12853E-02   -1.5644    
  18  norm          .10000E-03    6.3185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          28.577        3.3646        .53257E-04   -1.4638    
  20  Prefactor     .10000E-03    75.072        .18633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1669        4.7238        .24984E-03   -1.5414    
  22  Prefactor     24.525        63.854        .81801E-04   -1.4717    
  23  Prefactor     .10000E-03    36.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.895        33.005        .94668E-04   -1.4910    
  25  Prefactor     13.871        11.935        .10776E-03   -1.4963    
  26  Normalizat    .81478        .22713        .31391E-03   -.99523    
  27  Prefactor     1.0378        .17169        .22603E-03   -.91480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22461e-10
Minuit parameter uncertainties:
  1  4.10473e-06
  2  3.15922e-05
  3  17.9363
  4  2.32769
  5  0.163852
  6  6.20091e-05
  7  1.63901e-05
  8  3.33429
  9  0.000143954
  10  4.55273e-07
  11  0.954615
  12  2.22043
  13  4.53362e-06
  14  1.96433
  15  1.09883e-06
  16  4.53071
  17  0.764546
  18  3.92598e-06
  19  3.3646
  20  0.000432551
  21  4.72466
  22  64.0331
  23  0.000383797
  24  33.0425
  25  11.937
  26  0.227397
  27  0.171778
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.949e+00  1.964e+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.038e+00  1.718e-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.148e-01  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.25
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 6.63e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 9.56e-05 +/- 3.79e-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) = 8133.58205803
delta logL = 0.0272339853909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8133.5815838
delta logL = 0.0277082059229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9109       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6503       1.0000          .0000       5.0000    
     3 'Normalizat'    .82044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0364       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=   8133.582     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      205 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9107        2.7639        .45375E-02   -.68284E-04
   2  alpha         1.6505        .37917        .24730       -.51848E-05
   3  Normalizat    .82019        .17888        .70743E-01    .28564E-04
   4  Prefactor     1.0366        .14228        .40780E-01    .79531E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.91066
  alpha      = 1.65049
  Normalizat = 0.820192
  Prefactor  = 1.03658
 **********
 **   18 **HESSE 
 **********

 FCN=   8133.582     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9107        1.9601        .76660E-04   -1.5265    
   2  alpha         1.6505        .29832        .97311E-02   -.34671    
   3  Normalizat    .82019        .20725        .31304E-03   -.99324    
   4  Prefactor     1.0366        .16679        .22620E-03   -.91520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25222e-12
Minuit parameter uncertainties:
  1  1.96008
  2  0.299126
  3  0.207452
  4  0.166872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140939': 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) = 8133.58158295
delta logL = 0.0277090581658

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.911e+00  1.960e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.650e+00  2.991e-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.037e+00  1.669e-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.202e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.24
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.65 +/- 0.30
Photon Flux (Free Index): 6.01e-08 +/- 3.45e-08
Energy Flux (Free Index): 1.07e-04 +/- 6.92e-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/140939/cmap_HighResolution_629942401_630201601_4FGL_J1653.8+3945_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.63e-08', energy_flux2='1.07e-04', photon_flux_error='2.63e-08', dlogl='2.77e-02', energy_flux='9.56e-05', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-16 00:54:58.524025', photon_index_error2='0.30', photon_index2='1.65', ts='35.25', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='6.92e-05', EG='0.81', time_epoch_completed='1631778898.52', return_code='0', job_id='140939', GAL2='1.04', EG2='0.82', return_code2='0', energy_flux_error='3.79e-05', photon_flux_error2='3.45e-08', ts2='35.24', photon_index='1.72' WHERE bin_id='1507' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:54:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 140939: <4FGL_J1653.8+3945_daily_bin1507> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1507> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 00:40:18 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:40:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 00:40:52 2021
Terminated at Thu Sep 16 00:54:59 2021
Results reported at Thu Sep 16 00:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1507 253.474 39.7595 629942401 630201601 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 :                                   795.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            881 sec.

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

