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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1056
RA = 253.474, Dec = 39.7595
tmin = 513043201, tmax = 513302401
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='137091', job_status='RUN', time_executed='2021-09-16 00:29:44.767928', time_epoch_executed='1631777384.77' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137091

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137091/ft1_4FGL_J1653.8+3945_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137091/ft2_4FGL_J1653.8+3945_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137091/ft1_4FGL_J1653.8+3945_daily_bin1056.fits outfile=/scratch/kocevski/137091/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1056.fits ra=253.474 dec=39.7595 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.42
user 6.15
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/137091/ft2_4FGL_J1653.8+3945_daily_bin1056.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/137091/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/137091/ft1_filtered_4FGL_J1653.8+3945_daily_bin1056.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/137091/ft1_filtered_4FGL_J1653.8+3945_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/137091/ft2_4FGL_J1653.8+3945_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/137091/ltcube_513043201_513302401_4FGL_J1653.8+3945_daily_bin1056.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/137091/ft2_4FGL_J1653.8+3945_daily_bin1056.fits
.....................!
real 14.92
user 14.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137091/ft1_filtered_4FGL_J1653.8+3945_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/137091/ft2_4FGL_J1653.8+3945_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/137091/ltcube_513043201_513302401_4FGL_J1653.8+3945_daily_bin1056.fits outfile=/scratch/kocevski/137091/expmap_513043201_513302401_4FGL_J1653.8+3945_daily_bin1056.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/137091/ltcube_513043201_513302401_4FGL_J1653.8+3945_daily_bin1056.fits
.....................!
real 192.93
user 188.25
sys 4.24

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/137091/ft1_filtered_4FGL_J1653.8+3945_daily_bin1056.fits scfile=/scratch/kocevski/137091/ft2_4FGL_J1653.8+3945_daily_bin1056.fits outfile=/scratch/kocevski/137091/cmap_513043201_513302401_4FGL_J1653.8+3945_daily_bin1056.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5032       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.680       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6171       1.0000         .10000E-03   10000.    
     5 'norm      '    .27010       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5012       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.675       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0152       1.0000         .10000E-03   10000.    
     9 'norm      '    84.092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13272E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4293       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4268       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .90695       1.0000         .10000E-03   10000.    
    17 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .29790E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    232.94       1.0000         .10000E-03   10000.    
    21 'norm      '    18.522       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11919E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41249E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .63184E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .70745E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .61607       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0517       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=   5423.782     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     2491 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.776        4.9859       -.33445E-07   -.55099E-04
   2  Prefactor     5.5668        7.4151       -.73083E-07   -.15519E-03
   3  Prefactor     15.346        33.201       -.40858E-05   -.10491E-02
   4  Prefactor     9.5577        5.0500       -.97167E-07    .11522E-03
   5  norm          .27042        .17919       -.17161E-07    .14124E-03
   6  norm          2.5241        9.8624       -.89825E-06   -.10514E-04
   7  Prefactor     67.662        4.8315       -.13236E-06    .37787E-01
   8  Prefactor     3.0235        4.7861       -.86598E-07    .72170E-04
   9  norm          82.711        58.317        .29114E-06   -.23061E-02
  10  Prefactor     .10000E-03    1.1417        .95951E-06** at limit **
  11  Prefactor     .10000E-03    1.3395        .37568E-06** at limit **
  12  Prefactor     1.8988        6.1128        .91222E-06    .19973E-03
  13  Prefactor     .10000E-03    23.069        .44053E-05** at limit **
  14  norm          4.4321        2.5857        .30951E-07    .14428E-03
  15  norm          1.4274        1.1857        .36522E-07    .42920E-03
  16  Prefactor     .85544        25.052        .21943E-05    .11630E-03
  17  norm          .10000E-03    4.1058        .45341E-06** at limit **
  18  norm          .10000E-03    51.581        .13492E-05** at limit **
  19  norm          .10000E-03    1.2216        .15170E-06** at limit **
  20  Prefactor     229.59        128.75       -.42187E-06    .15988E-02
  21  norm          18.553        12.407        .82159E-06    .56957E-03
  22  Prefactor     .10000E-03    60.652        .44769E-05** at limit **
  23  Prefactor     .10001E-03    109.32       -.20337E-05** at limit **
  24  Prefactor     .10000E-03    31.849        .16124E-06** at limit **
  25  Prefactor     .10000E-03    13.635        .75808E-06** at limit **
  26  Normalizat    .61805        .30981        .88596E-06    .14437E-03
  27  Prefactor     1.0516        .22801        .10101E-05    .26016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7761
  Prefactor  = 5.56676
  Prefactor  = 15.3456
  Prefactor  = 9.55772
  norm       = 0.270417
  norm       = 2.52406
  Prefactor  = 67.6619
  Prefactor  = 3.02349
  norm       = 82.7112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.89878
  Prefactor  = 0.000100002
  norm       = 4.43206
  norm       = 1.42742
  Prefactor  = 0.855441
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 229.59
  norm       = 18.5527
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.618053
  Prefactor  = 1.05159
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.782     FROM HESSE     STATUS=OK           574 CALLS     3065 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.776        4.9983        .30495E-02   -1.5051    
   2  Prefactor     5.5668        7.3715        .42818E-02   -1.5236    
   3  Prefactor     15.346        32.910        .25286E-02   -1.4924    
   4  Prefactor     9.5577        5.0490        .32306E-02   -1.5090    
   5  norm          .27042        .21997        .52954E-02   -1.5604    
   6  norm          2.5241        9.9162        .64601E-02   -1.5390    
   7  Prefactor     67.662        34.290        .12198E-02   -1.4061    
   8  Prefactor     3.0235        4.8627        .58431E-02   -1.5360    
   9  norm          82.711        60.593        .10951E-02   -1.3887    
  10  Prefactor     .10000E-03    .81884        .33721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .98667        .25707E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8988        6.2970        .74707E-02   -1.5432    
  13  Prefactor     .10000E-03    3.0326        .70140E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4321        2.6591        .47836E-02   -1.5287    
  15  norm          1.4274        1.1988        .90464E-03   -1.5469    
  16  Prefactor     .85544        6.3945        .93189E-01   -1.5523    
  17  norm          .10000E-03    .60935        .30384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.2812        .91710E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     229.59        129.56        .66298E-03   -1.2666    
  21  norm          18.553        12.504        .23266E-02   -1.4846    
  22  Prefactor     .10000E-03    60.637        .90825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    109.53        .92273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    31.862        .94306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.585        .10487E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .61805        .27376        .81985E-01   -1.0722    
  27  Prefactor     1.0516        .19446        .39813E-01   -.91029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68176e-06
Minuit parameter uncertainties:
  1  4.99848
  2  7.37267
  3  32.9487
  4  5.0492
  5  0.219974
  6  9.92261
  7  34.3002
  8  4.86337
  9  60.6384
  10  1.51221e-05
  11  6.78062e-06
  12  6.29922
  13  0.000142209
  14  2.65917
  15  1.19884
  16  4.67808
  17  5.93493e-06
  18  0.000169807
  19  2.82811e-06
  20  129.719
  21  12.5059
  22  0.000141283
  23  0.00224139
  24  0.000128864
  25  4.7676e-05
  26  0.274363
  27  0.194589
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.432e+00  2.659e+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.052e+00  1.946e-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:  6.181e-01  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.66
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 5.94e-08 +/- 3.56e-08
Energy Flux (Fixed Index): 8.56e-05 +/- 5.14e-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) = 5423.2479693
delta logL = 0.534529573183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5423.23314826
delta logL = 0.549350613449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3976       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1377       1.0000          .0000       5.0000    
     3 'Normalizat'    .58150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0585       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=   5423.233     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      205 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3976        40.033        .48013E-02    .65718E-04
   2  alpha         2.1377        3.5657        .21656        .62063E-04
   3  Normalizat    .58150        .14632        .84170E-01    .58264E-04
   4  Prefactor     1.0585        .81610E-01    .39435E-01   -.14578E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3976
  alpha      = 2.13767
  Normalizat = 0.5815
  Prefactor  = 1.05852
 **********
 **   18 **HESSE 
 **********

 FCN=   5423.233     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3976        2.3990        .71176E-04   -1.5289    
   2  alpha         2.1377        .38661        .83206E-02   -.14544    
   3  Normalizat    .58150        .27819        .37283E-03   -1.0878    
   4  Prefactor     1.0585        .22056        .22432E-03   -.90803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8228e-11
Minuit parameter uncertainties:
  1  2.39906
  2  0.388198
  3  0.27886
  4  0.220751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137091': 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) = 5423.23314826
delta logL = 0.549350614292

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.398e+00  2.399e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.138e+00  3.882e-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.059e+00  2.208e-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:  5.815e-01  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.72
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.14 +/- 0.39
Photon Flux (Free Index): 1.14e-07 +/- 7.47e-08
Energy Flux (Free Index): 5.83e-05 +/- 3.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/137091/cmap_HighResolution_513043201_513302401_4FGL_J1653.8+3945_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.94e-08', energy_flux2='5.83e-05', photon_flux_error='3.56e-08', dlogl='5.49e-01', energy_flux='8.56e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-16 00:40:13.821794', photon_index_error2='0.39', photon_index2='2.14', ts='9.66', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='3.34e-05', EG='0.62', time_epoch_completed='1631778013.82', return_code='0', job_id='137091', GAL2='1.06', EG2='0.58', return_code2='0', energy_flux_error='5.14e-05', photon_flux_error2='7.47e-08', ts2='10.72', photon_index='1.72' WHERE bin_id='1056' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 137091: <4FGL_J1653.8+3945_daily_bin1056> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1056> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 00:25:31 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 00:26:41 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:26:41 2021
Terminated at Thu Sep 16 00:40:14 2021
Results reported at Thu Sep 16 00:40:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1056 253.474 39.7595 513043201 513302401 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 :                                   625.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            883 sec.

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

