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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin331
RA = 253.474, Dec = 39.7595
tmin = 325123201, tmax = 325382401
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='132631', job_status='RUN', time_executed='2021-09-16 00:10:39.307272', time_epoch_executed='1631776239.31' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/132631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/132631/ft1_4FGL_J1653.8+3945_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/132631/ft2_4FGL_J1653.8+3945_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/132631/ft1_4FGL_J1653.8+3945_daily_bin331.fits outfile=/scratch/kocevski/132631/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin331.fits ra=253.474 dec=39.7595 rad=12.0 tmin=325123201.0 tmax=325382401.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.63
user 3.38
sys 0.22

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/132631/ft1_filtered_4FGL_J1653.8+3945_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/132631/ft2_4FGL_J1653.8+3945_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/132631/ltcube_325123201_325382401_4FGL_J1653.8+3945_daily_bin331.fits outfile=/scratch/kocevski/132631/expmap_325123201_325382401_4FGL_J1653.8+3945_daily_bin331.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/132631/ltcube_325123201_325382401_4FGL_J1653.8+3945_daily_bin331.fits
.....................!
real 192.19
user 186.60
sys 5.12

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/132631/ft1_filtered_4FGL_J1653.8+3945_daily_bin331.fits scfile=/scratch/kocevski/132631/ft2_4FGL_J1653.8+3945_daily_bin331.fits outfile=/scratch/kocevski/132631/cmap_325123201_325382401_4FGL_J1653.8+3945_daily_bin331.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0542       1.0000         .10000E-03   10000.    
     5 'norm      '    .51879       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17193       1.0000         .10000E-03   10000.    
     9 'norm      '    11.598       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.2786       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2233       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .98890       1.0000         .10000E-03   10000.    
    18 'norm      '    .20237E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    70.745       1.0000         .10000E-03   10000.    
    23 'Prefactor '    138.48       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.256       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .80889       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0445       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=   7601.320     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3331 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8376       -.15845E-07** at limit **
   2  Prefactor     .10000E-03    3.8479        .39972E-07** at limit **
   3  Prefactor     .10000E-03    46.971        .10248E-05** at limit **
   4  Prefactor     4.0538        4.0833       -.56344E-06    .10866E-03
   5  norm          .51879        .16625       -.28385E-07    .12449E-02
   6  norm          .10000E-03    6.7892       -.63070E-07** at limit **
   7  Prefactor     .10000E-03    11.762       -.11050E-05** at limit **
   8  Prefactor     .17915        1.9327        .51617E-07   -.45325E-04
   9  norm          11.598        27.505        .40922E-07    .86146E-05
  10  Prefactor     3.5594        2.1993        .53443E-07    .14513E-03
  11  Prefactor     2.9450        2.1368       -.11664E-06    .27478E-03
  12  Prefactor     2.2601        2.1824       -.10209E-06    .54370E-04
  13  Prefactor     .10000E-03    .77402        .39086E-07** at limit **
  14  norm          9.2787        2.4930        .29076E-07    .83903E-04
  15  norm          2.2231        1.0069       -.13603E-07    .97343E-04
  16  Prefactor     .10000E-03    8.0736        .53965E-06** at limit **
  17  norm          .98904        .89162       -.10021E-06   -.10006E-03
  18  norm          .10000E-03    21.151        .60309E-05** at limit **
  19  norm          1.2666        1.2251       -.66971E-07    .30820E-04
  20  Prefactor     .10000E-03    15.522        .93066E-06** at limit **
  21  norm          .10000E-03    2.0113       -.11241E-05** at limit **
  22  Prefactor     70.773        59.052       -.23471E-06    .19801E-04
  23  Prefactor     138.47        118.14        .23708E-06    .15800E-04
  24  Prefactor     .10000E-03    15.066        .98782E-06** at limit **
  25  Prefactor     10.256        9.2343       -.88132E-07    .31890E-04
  26  Normalizat    .80894        .20111        .11780E-05    .13562E-03
  27  Prefactor     1.0445        .14810        .72510E-06    .14763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.05377
  norm       = 0.518792
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.17915
  norm       = 11.5979
  Prefactor  = 3.55945
  Prefactor  = 2.94499
  Prefactor  = 2.26008
  Prefactor  = 0.0001
  norm       = 9.2787
  norm       = 2.22308
  Prefactor  = 0.0001
  norm       = 0.98904
  norm       = 0.0001
  norm       = 1.26663
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.7732
  Prefactor  = 138.465
  Prefactor  = 0.0001
  Prefactor  = 10.2561
  Normalizat = 0.808935
  Prefactor  = 1.04446
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.320     FROM HESSE     STATUS=OK           492 CALLS     3823 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8817        .11536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8787        .16689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0538        4.0886        .16233E-03   -1.5305    
   5  norm          .51879        .16570        .18557E-04   -1.5564    
   6  norm          .10000E-03    6.8020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .17915        22.281        .22488E-02   -1.5623    
   9  norm          11.598        27.488        .11763E-03   -1.5027    
  10  Prefactor     3.5594        2.2771        .65634E-04   -1.5331    
  11  Prefactor     2.9450        2.2055        .70967E-04   -1.5365    
  12  Prefactor     2.2601        2.1778        .12109E-03   -1.5407    
  13  Prefactor     .10000E-03    .77768        .74866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.2787        2.4920        .68042E-04   -1.5099    
  15  norm          2.2231        1.0026        .55487E-04   -1.5410    
  16  Prefactor     .10000E-03    8.2646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .98904        .85789        .73434E-03   -1.5509    
  18  norm          .10000E-03    20.966        .33830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2666        1.2121        .90892E-04   -1.5483    
  20  Prefactor     .10000E-03    15.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.0157        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     70.773        58.996        .47727E-04   -1.4023    
  23  Prefactor     138.47        118.25        .34230E-04   -1.3349    
  24  Prefactor     .10000E-03    15.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.256        9.2360        .12512E-03   -1.5067    
  26  Normalizat    .80894        .24204        .31845E-03   -.99738    
  27  Prefactor     1.0445        .17739        .22053E-03   -.91262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9966e-08
Minuit parameter uncertainties:
  1  9.03282e-06
  2  1.44042e-05
  3  0.000141039
  4  4.08885
  5  0.165702
  6  4.2782e-06
  7  4.21033e-05
  8  3.99621
  9  27.5179
  10  2.2772
  11  2.2056
  12  2.17788
  13  2.71871e-07
  14  2.49205
  15  1.00256
  16  2.96803e-05
  17  0.857905
  18  3.8815e-05
  19  1.21217
  20  3.84413e-05
  21  1.10398e-05
  22  59.0451
  23  118.449
  24  3.34815e-05
  25  9.23728
  26  0.242362
  27  0.177491
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  9.279e+00  2.492e+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.044e+00  1.775e-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.089e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 59.21
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 3.34e-08
Energy Flux (Fixed Index): 1.79e-04 +/- 4.81e-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) = 7601.11268302
delta logL = 0.207175659155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7601.08620199
delta logL = 0.233656693758

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8254       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8568       1.0000          .0000       5.0000    
     3 'Normalizat'    .79341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0503       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=   7601.086     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8254        6.0876        .33731E-02    .26704E-02
   2  alpha         1.8569        .47499        .14555        .51596E-04
   3  Normalizat    .79340        .19298        .72527E-01    .27491E-04
   4  Prefactor     1.0503        .14735        .39892E-01    .54048E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.82543
  alpha      = 1.85689
  Normalizat = 0.793395
  Prefactor  = 1.05032
 **********
 **   18 **HESSE 
 **********

 FCN=   7601.086     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8254        2.4769        .64671E-04   -1.5114    
   2  alpha         1.8569        .20258        .61497E-02   -.26017    
   3  Normalizat    .79340        .22053        .32098E-03   -1.0031    
   4  Prefactor     1.0503        .17183        .21985E-03   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98445e-10
Minuit parameter uncertainties:
  1  2.47695
  2  0.202821
  3  0.22078
  4  0.171916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/132631': 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) = 7601.08620195
delta logL = 0.233656731859

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  8.825e+00  2.477e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.857e+00  2.028e-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.050e+00  1.719e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  7.934e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 59.81
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.86 +/- 0.20
Photon Flux (Free Index): 1.44e-07 +/- 4.65e-08
Energy Flux (Free Index): 1.41e-04 +/- 6.11e-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/132631/cmap_HighResolution_325123201_325382401_4FGL_J1653.8+3945_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='1.41e-04', photon_flux_error='3.34e-08', dlogl='2.34e-01', energy_flux='1.79e-04', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-16 00:24:18.748588', photon_index_error2='0.20', photon_index2='1.86', ts='59.21', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='6.11e-05', EG='0.81', time_epoch_completed='1631777058.75', return_code='0', job_id='132631', GAL2='1.05', EG2='0.79', return_code2='0', energy_flux_error='4.81e-05', photon_flux_error2='4.65e-08', ts2='59.81', photon_index='1.72' WHERE bin_id='331' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:24:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 132631: <4FGL_J1653.8+3945_daily_bin331> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin331> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 00:10:19 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:10:30 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:10:30 2021
Terminated at Thu Sep 16 00:24:19 2021
Results reported at Thu Sep 16 00:24:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin331 253.474 39.7595 325123201 325382401 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 :                                   816.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             368.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            840 sec.

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

