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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin211
RA = 253.474, Dec = 39.7595
tmin = 294019201, tmax = 294278401
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='131174', job_status='RUN', time_executed='2021-09-16 00:05:44.193156', time_epoch_executed='1631775944.19' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/131174

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/131174/ft1_4FGL_J1653.8+3945_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/131174/ft2_4FGL_J1653.8+3945_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/131174/ft1_4FGL_J1653.8+3945_daily_bin211.fits outfile=/scratch/kocevski/131174/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin211.fits ra=253.474 dec=39.7595 rad=12.0 tmin=294019201.0 tmax=294278401.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.20
user 2.93
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/131174/ft1_filtered_4FGL_J1653.8+3945_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/131174/ft2_4FGL_J1653.8+3945_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/131174/ltcube_294019201_294278401_4FGL_J1653.8+3945_daily_bin211.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/131174/ft2_4FGL_J1653.8+3945_daily_bin211.fits
.....................!
real 14.17
user 13.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/131174/ft1_filtered_4FGL_J1653.8+3945_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/131174/ft2_4FGL_J1653.8+3945_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/131174/ltcube_294019201_294278401_4FGL_J1653.8+3945_daily_bin211.fits outfile=/scratch/kocevski/131174/expmap_294019201_294278401_4FGL_J1653.8+3945_daily_bin211.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/131174/ltcube_294019201_294278401_4FGL_J1653.8+3945_daily_bin211.fits
.....................!
real 193.49
user 187.92
sys 4.86

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/131174/ft1_filtered_4FGL_J1653.8+3945_daily_bin211.fits scfile=/scratch/kocevski/131174/ft2_4FGL_J1653.8+3945_daily_bin211.fits outfile=/scratch/kocevski/131174/cmap_294019201_294278401_4FGL_J1653.8+3945_daily_bin211.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6822       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11235E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0552       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5056       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9219       1.0000         .10000E-03   10000.    
     9 'norm      '    25.076       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4788       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4812       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3976       1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.8356       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9553       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.390       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.197       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2050       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86573       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=   7802.565     FROM MIGRAD    STATUS=CONVERGED    648 CALLS     3297 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6822        2.4481       -.92552E-07   -.30574E-03
   2  Prefactor     .10000E-03    1.8593        .99427E-08** at limit **
   3  Prefactor     .10000E-03    29.730       -.85568E-05** at limit **
   4  Prefactor     .10000E-03    1.9402        .63214E-06** at limit **
   5  norm          1.0552        .21031       -.15023E-07   -.69992E-03
   6  norm          5.5051        10.193        .12565E-05   -.56765E-04
   7  Prefactor     .10000E-03    10.987        .13390E-06** at limit **
   8  Prefactor     4.9221        3.6798       -.30834E-06   -.28127E-04
   9  norm          25.058        49.219       -.28956E-04    .13852E-03
  10  Prefactor     2.7562        2.3270        .40759E-06   -.45858E-03
  11  Prefactor     4.4276        2.4088        .35621E-06   -.50732E-03
  12  Prefactor     2.8210        3.8959       -.71515E-06   -.67008E-03
  13  Prefactor     .10000E-03    1.1793        .90107E-07** at limit **
  14  norm          7.4788        2.3028       -.29226E-08    .20499E-04
  15  norm          2.4812        1.1627        .51824E-07   -.12305E-03
  16  Prefactor     5.3991        8.2585        .77769E-06   -.19178E-03
  17  norm          .10000E-03    .31064       -.10489E-06** at limit **
  18  norm          .10000E-03    7.2853       -.24756E-06** at limit **
  19  norm          .10000E-03    .69656        .56516E-08** at limit **
  20  Prefactor     .10000E-03    46.586       -.12406E-04** at limit **
  21  norm          4.8341        7.4346       -.95607E-05   -.65094E-03
  22  Prefactor     9.9885        129.95        .94625E-04   -.41476E-04
  23  Prefactor     .10000E-03    37.650        .21081E-04** at limit **
  24  Prefactor     19.377        29.742       -.14938E-04    .18313E-03
  25  Prefactor     12.194        12.105       -.20931E-05   -.10426E-02
  26  Normalizat    1.2049        .20430        .58479E-07    .11267E-04
  27  Prefactor     .86583        .15114        .37617E-06   -.20708E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68221
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 1.05521
  norm       = 5.50509
  Prefactor  = 0.0001
  Prefactor  = 4.92208
  norm       = 25.0575
  Prefactor  = 2.75616
  Prefactor  = 4.42764
  Prefactor  = 2.82104
  Prefactor  = 0.0001
  norm       = 7.47878
  norm       = 2.48125
  Prefactor  = 5.39908
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 4.83414
  Prefactor  = 9.98852
  Prefactor  = 0.000100004
  Prefactor  = 19.3768
  Prefactor  = 12.1941
  Normalizat = 1.20487
  Prefactor  = 0.865832
 **********
 **   18 **HESSE 
 **********

 FCN=   7802.565     FROM HESSE     STATUS=OK           494 CALLS     3791 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6822        2.4423        .12793E-03   -1.5380    
   2  Prefactor     .10000E-03    1.8637        .11761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6632        .23487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0552        .21056        .16488E-04   -1.5503    
   6  norm          5.5051        10.179        .17124E-03   -1.5239    
   7  Prefactor     .10000E-03    11.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.9221        3.6778        .14014E-03   -1.5264    
   9  norm          25.058        48.851        .79995E-04   -1.4706    
  10  Prefactor     2.7562        2.3595        .77262E-04   -1.5376    
  11  Prefactor     4.4276        2.4605        .64112E-04   -1.5287    
  12  Prefactor     2.8210        3.8769        .18639E-03   -1.5372    
  13  Prefactor     .10000E-03    1.1884        .93590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4788        2.3024        .71459E-04   -1.5161    
  15  norm          2.4812        1.1529        .58877E-04   -1.5393    
  16  Prefactor     5.3991        8.0359        .17297E-03   -1.5243    
  17  norm          .10000E-03    .52046        .92224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.3656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .71067        .71857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.8341        7.4287        .18294E-03   -1.5268    
  22  Prefactor     9.9885        129.60        .12700E-03   -1.5076    
  23  Prefactor     .10000E-03    37.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.377        29.642        .90958E-04   -1.4827    
  25  Prefactor     12.194        12.219        .57351E-03   -1.5009    
  26  Normalizat    1.2049        .24779        .28067E-03   -.86452    
  27  Prefactor     .86583        .18398        .25165E-03   -.97345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99609e-09
Minuit parameter uncertainties:
  1  2.44238
  2  2.56925e-06
  3  0.000358954
  4  0.000119667
  5  0.210559
  6  10.182
  7  1.41388e-05
  8  3.67801
  9  48.929
  10  2.35962
  11  2.46052
  12  3.87729
  13  1.00858e-05
  14  2.30242
  15  1.15288
  16  8.03745
  17  7.60817e-06
  18  6.5265e-05
  19  3.79306e-07
  20  0.000807763
  21  7.4301
  22  72.1521
  23  0.000739376
  24  29.6643
  25  12.2216
  26  0.248036
  27  0.184112
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  7.479e+00  2.302e+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:  8.658e-01  1.841e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.205e+00  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.90
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.00e-07 +/- 3.09e-08
Energy Flux (Fixed Index): 1.44e-04 +/- 4.45e-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) = 7802.23132116
delta logL = 0.333413061585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7802.22600475
delta logL = 0.338729463511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0120       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9211       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87526       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=   7802.226     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      269 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0120        2.2698        .65881E-04   -.40915E-03
   2  alpha         1.9211        .24882        .71433E-02   -.79250E-04
   3  Normalizat    1.1811        .23164        .28272E-03    .53884E-05
   4  Prefactor     .87526        .17883        .25022E-03    .28306E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.01202
  alpha      = 1.92113
  Normalizat = 1.18114
  Prefactor  = 0.875261
 **********
 **   18 **HESSE 
 **********

 FCN=   7802.226     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0120        2.2444        .26352E-05   -1.5178    
   2  alpha         1.9211        .24593        .28573E-03   -.23367    
   3  Normalizat    1.1811        .23184        .11309E-04   -.87188    
   4  Prefactor     .87526        .17903        .10009E-04   -.97011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79257e-11
Minuit parameter uncertainties:
  1  2.24439
  2  0.246349
  3  0.232041
  4  0.179145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/131174': 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) = 7802.22600475
delta logL = 0.338729463728

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  7.012e+00  2.244e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.921e+00  2.463e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  1.993e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  8.753e-01  1.791e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.181e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 49.62
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.92 +/- 0.25
Photon Flux (Free Index): 1.26e-07 +/- 4.90e-08
Energy Flux (Free Index): 1.04e-04 +/- 4.87e-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/131174/cmap_HighResolution_294019201_294278401_4FGL_J1653.8+3945_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.00e-07', energy_flux2='1.04e-04', photon_flux_error='3.09e-08', dlogl='3.39e-01', energy_flux='1.44e-04', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-16 00:20:51.460359', photon_index_error2='0.25', photon_index2='1.92', ts='48.90', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='4.87e-05', EG='1.20', time_epoch_completed='1631776851.46', return_code='0', job_id='131174', GAL2='0.88', EG2='1.18', return_code2='0', energy_flux_error='4.45e-05', photon_flux_error2='4.90e-08', ts2='49.62', photon_index='1.72' WHERE bin_id='211' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:20:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 131174: <4FGL_J1653.8+3945_daily_bin211> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin211> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep 16 00:05:17 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:05:33 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:05:33 2021
Terminated at Thu Sep 16 00:20:52 2021
Results reported at Thu Sep 16 00:20:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin211 253.474 39.7595 294019201 294278401 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 :                                   870.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            935 sec.

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

