/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 127 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1653.8+3945_daily_bin49
RA = 253.474, Dec = 39.7595
tmin = 252028801, tmax = 252288001
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='128421', job_status='RUN', time_executed='2021-09-15 23:59:47.540230', time_epoch_executed='1631775587.54' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128421/ft1_4FGL_J1653.8+3945_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128421/ft2_4FGL_J1653.8+3945_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128421/ft1_4FGL_J1653.8+3945_daily_bin49.fits outfile=/scratch/kocevski/128421/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin49.fits ra=253.474 dec=39.7595 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.47
user 1.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/128421/ft2_4FGL_J1653.8+3945_daily_bin49.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/128421/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/128421/ft1_filtered_4FGL_J1653.8+3945_daily_bin49.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128421/ft1_filtered_4FGL_J1653.8+3945_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/128421/ft2_4FGL_J1653.8+3945_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/128421/ltcube_252028801_252288001_4FGL_J1653.8+3945_daily_bin49.fits outfile=/scratch/kocevski/128421/expmap_252028801_252288001_4FGL_J1653.8+3945_daily_bin49.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/128421/ltcube_252028801_252288001_4FGL_J1653.8+3945_daily_bin49.fits
.....................!
real 191.54
user 185.58
sys 5.56

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/128421/ft1_filtered_4FGL_J1653.8+3945_daily_bin49.fits scfile=/scratch/kocevski/128421/ft2_4FGL_J1653.8+3945_daily_bin49.fits outfile=/scratch/kocevski/128421/cmap_252028801_252288001_4FGL_J1653.8+3945_daily_bin49.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128421/ft1_filtered_4FGL_J1653.8+3945_daily_bin49.fits scfile=/scratch/kocevski/128421/ft2_4FGL_J1653.8+3945_daily_bin49.fits outfile=/scratch/kocevski/128421/cmap_HighResolution_252028801_252288001_4FGL_J1653.8+3945_daily_bin49.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12573       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7421       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .44323       1.0000         .10000E-03   10000.    
     6 'norm      '    17.343       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10652E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .59285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16692E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8264       1.0000         .10000E-03   10000.    
    14 'norm      '    4.7412       1.0000         .10000E-03   10000.    
    15 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .73627       1.0000         .10000E-03   10000.    
    18 'norm      '    47.547       1.0000         .10000E-03   10000.    
    19 'norm      '    1.9487       1.0000         .10000E-03   10000.    
    20 'Prefactor '    65.764       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9985       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.0036       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .85480       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0410       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=   7305.919     FROM MIGRAD    STATUS=CONVERGED    105 CALLS     2410 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6283        3.5874       -.14707E-06    .11200E-02
   2  Prefactor     .12032        .44768       -.50670E-05   -.30452E-03
   3  Prefactor     4.7489        1.1969        .15017E-06   -.11551E-03
   4  Prefactor     .10000E-03    2.0640       -.72717E-08** at limit **
   5  norm          .44322        .14135       -.40254E-08    .12198E-02
   6  norm          17.347        1.0498       -.41939E-06   -.60908E-04
   7  Prefactor     .10000E-03    26.939       -.27315E-04** at limit **
   8  Prefactor     .10000E-03    1.1073        .78051E-07** at limit **
   9  norm          .10000E-03    15.273       -.88189E-05** at limit **
  10  Prefactor     .10000E-03    .46796       -.80864E-07** at limit **
  11  Prefactor     .59316        .77111       -.31700E-07   -.56863E-03
  12  Prefactor     .10015E-03    9.1605       -.24303E-04** at limit **
  13  Prefactor     1.8255        2.3163        .39033E-07   -.72729E-04
  14  norm          4.7409        1.8179        .24591E-07    .22875E-03
  15  norm          .10000E-03    1.4183       -.10408E-06** at limit **
  16  Prefactor     .10000E-03    1.7718        .13983E-06** at limit **
  17  norm          .73650        .71711        .47672E-07    .27004E-04
  18  norm          47.546        1.0271        .90073E-07    .84724E-03
  19  norm          1.9487        1.7909        .60422E-07    .88888E-04
  20  Prefactor     65.791        8.3676        .80477E-05   -.14427E-01
  21  norm          1.9991        4.0167        .32894E-05    .38512E-03
  22  Prefactor     .10070E-03    65.315       -.74855E-04** at limit **
  23  Prefactor     .10052E-03    48.485        .84458E-04** at limit **
  24  Prefactor     .10001E-03    16.963        .18380E-04** at limit **
  25  Prefactor     9.0050        1.0041       -.96071E-07   -.69800E-04
  26  Normalizat    .85508        .21871       -.13622E-05    .12331E-03
  27  Prefactor     1.0407        .17180       -.14530E-05    .21008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.62829
  Prefactor  = 0.120316
  Prefactor  = 4.74889
  Prefactor  = 0.0001
  norm       = 0.443218
  norm       = 17.3473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.593164
  Prefactor  = 0.000100146
  Prefactor  = 1.8255
  norm       = 4.74095
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.736498
  norm       = 47.5455
  norm       = 1.94866
  Prefactor  = 65.7906
  norm       = 1.99907
  Prefactor  = 0.000100702
  Prefactor  = 0.000100521
  Prefactor  = 0.000100008
  Prefactor  = 9.005
  Normalizat = 0.855078
  Prefactor  = 1.04074
 **********
 **   18 **HESSE 
 **********

 FCN=   7305.919     FROM HESSE     STATUS=OK           568 CALLS     2978 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6283        3.6015        .46779E-02   -1.5278    
   2  Prefactor     .12032        4.0609        .53359E-01   -1.5639    
   3  Prefactor     4.7489        18.470        .46193E-02   -1.5272    
   4  Prefactor     .10000E-03    1.9695        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .44322        .14436        .38587E-02   -1.5575    
   6  norm          17.347        15.704        .24044E-02   -1.4875    
   7  Prefactor     .10000E-03    26.486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.262        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .39698        .25098E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .59316        .94202        .19081E-01   -1.5554    
  12  Prefactor     .10015E-03    1.3543        .66521E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8255        2.3557        .77222E-02   -1.5438    
  14  norm          4.7409        1.8268        .46198E-02   -1.5272    
  15  norm          .10000E-03    .57235        .19480E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .73650        .75605        .12200E-01   -1.5536    
  18  norm          47.546        13.522        .14538E-02   -1.4328    
  19  norm          1.9487        1.8137        .74326E-02   -1.5429    
  20  Prefactor     65.791        43.514        .12372E-02   -1.4084    
  21  norm          1.9991        4.1309        .73245E-02   -1.5425    
  22  Prefactor     .10070E-03    74.130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10052E-03    49.271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    16.978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.0050        8.9936        .33394E-02   -1.5108    
  26  Normalizat    .85508        .19337        .66396E-01   -.98057    
  27  Prefactor     1.0407        .14601        .40466E-01   -.91384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32608e-07
Minuit parameter uncertainties:
  1  3.60168
  2  1.3975
  3  18.4925
  4  2.5394e-05
  5  0.144364
  6  15.7082
  7  0.000164799
  8  1.42481e-07
  9  0.00019792
  10  6.34443e-07
  11  0.942044
  12  0.000888488
  13  2.35579
  14  1.82685
  15  2.03189e-05
  16  1.779e-05
  17  0.756064
  18  13.5224
  19  1.81379
  20  43.5351
  21  4.13148
  22  0.0144449
  23  0.0101425
  24  0.00073073
  25  8.99499
  26  0.193531
  27  0.146069
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.741e+00  1.827e+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.041e+00  1.461e-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.551e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.00
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 6.35e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 9.16e-05 +/- 3.53e-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) = 7305.32297767
delta logL = 0.595732828638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7305.31217532
delta logL = 0.60653518472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1407       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0294       1.0000          .0000       5.0000    
     3 'Normalizat'    .83315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0478       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=   7305.312     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1404        25.119        .49522E-02   -.19299E-05
   2  alpha         2.0295        3.5048        .18296        .59333E-04
   3  Normalizat    .83322        .14108        .67100E-01    .15988E-04
   4  Prefactor     1.0479        .82071E-01    .40039E-01    .12665E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.14038
  alpha      = 2.02948
  Normalizat = 0.833217
  Prefactor  = 1.04785
 **********
 **   18 **HESSE 
 **********

 FCN=   7305.312     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1404        1.7707        .60322E-04   -1.5301    
   2  alpha         2.0295        .28940        .74774E-02   -.18934    
   3  Normalizat    .83322        .21153        .29686E-03   -.98848    
   4  Prefactor     1.0479        .17047        .21562E-03   -.91151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77429e-10
Minuit parameter uncertainties:
  1  1.77075
  2  0.290071
  3  0.21174
  4  0.170558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128421': 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) = 7305.31217478
delta logL = 0.606535722268

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.140e+00  1.771e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.029e+00  2.901e-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.048e+00  1.706e-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.332e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.17
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.03 +/- 0.29
Photon Flux (Free Index): 8.91e-08 +/- 3.94e-08
Energy Flux (Free Index): 5.70e-05 +/- 3.01e-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/128421/cmap_HighResolution_252028801_252288001_4FGL_J1653.8+3945_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.35e-08', energy_flux2='5.70e-05', photon_flux_error='2.45e-08', dlogl='6.07e-01', energy_flux='9.16e-05', photon_flux2='8.91e-08', job_status='DONE', time_completed='2021-09-16 00:11:53.151561', photon_index_error2='0.29', photon_index2='2.03', ts='26.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.01e-05', EG='0.86', time_epoch_completed='1631776313.15', return_code='0', job_id='128421', GAL2='1.05', EG2='0.83', return_code2='0', energy_flux_error='3.53e-05', photon_flux_error2='3.94e-08', ts2='27.17', photon_index='1.72' WHERE bin_id='49' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:11:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 128421: <4FGL_J1653.8+3945_daily_bin49> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin49> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep 15 23:55:18 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 23:57:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 23:57:34 2021
Terminated at Thu Sep 16 00:11:53 2021
Results reported at Thu Sep 16 00:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin49 253.474 39.7595 252028801 252288001 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 :                                   720.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            995 sec.

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

