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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1361
RA = 253.474, Dec = 39.7595
tmin = 592099201, tmax = 592358401
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='139590', job_status='RUN', time_executed='2021-09-16 00:36:25.458885', time_epoch_executed='1631777785.46' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139590

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139590/ft1_4FGL_J1653.8+3945_daily_bin1361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139590/ft2_4FGL_J1653.8+3945_daily_bin1361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139590/ft1_4FGL_J1653.8+3945_daily_bin1361.fits outfile=/scratch/kocevski/139590/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1361.fits ra=253.474 dec=39.7595 rad=12.0 tmin=592099201.0 tmax=592358401.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.56
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139590/ft2_4FGL_J1653.8+3945_daily_bin1361.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/139590/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1361.fits evtable="EVENTS" outfile="/scratch/kocevski/139590/ft1_filtered_4FGL_J1653.8+3945_daily_bin1361.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.55
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139590/ft1_filtered_4FGL_J1653.8+3945_daily_bin1361.fits evtable="EVENTS" scfile=/scratch/kocevski/139590/ft2_4FGL_J1653.8+3945_daily_bin1361.fits sctable="SC_DATA" expcube=/scratch/kocevski/139590/ltcube_592099201_592358401_4FGL_J1653.8+3945_daily_bin1361.fits outfile=/scratch/kocevski/139590/expmap_592099201_592358401_4FGL_J1653.8+3945_daily_bin1361.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/139590/ltcube_592099201_592358401_4FGL_J1653.8+3945_daily_bin1361.fits
.....................!
real 191.08
user 185.89
sys 4.77

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/139590/ft1_filtered_4FGL_J1653.8+3945_daily_bin1361.fits scfile=/scratch/kocevski/139590/ft2_4FGL_J1653.8+3945_daily_bin1361.fits outfile=/scratch/kocevski/139590/cmap_592099201_592358401_4FGL_J1653.8+3945_daily_bin1361.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.56
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139590/ft1_filtered_4FGL_J1653.8+3945_daily_bin1361.fits scfile=/scratch/kocevski/139590/ft2_4FGL_J1653.8+3945_daily_bin1361.fits outfile=/scratch/kocevski/139590/cmap_HighResolution_592099201_592358401_4FGL_J1653.8+3945_daily_bin1361.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4219       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3822       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6609       1.0000         .10000E-03   10000.    
     5 'norm      '    .78649E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4456       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9488       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56065       1.0000         .10000E-03   10000.    
     9 'norm      '    19.115       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5024       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11510E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3645       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4801       1.0000         .10000E-03   10000.    
    15 'norm      '    .77667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14360E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .20702       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6373       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1445       1.0000         .10000E-03   10000.    
    21 'norm      '    8.3843       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.689       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .57447E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.395       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1100       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .93665       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=   7524.789     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3439 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4219        2.1785        .29406E-06   -.50644E-04
   2  Prefactor     3.3737        10.726       -.61621E-05   -.18199E-03
   3  Prefactor     3.6761        100.05        .20462E-04   -.29253E-04
   4  Prefactor     5.6600        3.8476       -.18398E-07   -.13241E-03
   5  norm          .78884E-01    .11006        .97330E-08    .15717E-03
   6  norm          6.4456        11.114        .63265E-06    .30063E-04
   7  Prefactor     8.9381        17.361        .30058E-06   -.27552E-04
   8  Prefactor     .56069        4.2430        .17675E-05   -.30601E-03
   9  norm          19.122        43.670       -.25570E-06   -.98740E-05
  10  Prefactor     1.5018        1.4344        .11437E-06   -.47732E-04
  11  Prefactor     .10000E-03    .56599       -.32048E-07** at limit **
  12  Prefactor     1.3644        3.3012        .58892E-06   -.25988E-03
  13  Prefactor     .10000E-03    1.9771        .13395E-07** at limit **
  14  norm          3.4802        1.6170        .17901E-07   -.36872E-04
  15  norm          .77711        .75822       -.41934E-07   -.54269E-03
  16  Prefactor     .10000E-03    3.7545        .12824E-07** at limit **
  17  norm          .20735        .53462        .22453E-06   -.59913E-03
  18  norm          .10000E-03    3.0200        .74783E-07** at limit **
  19  norm          1.6376        1.3719        .80571E-07   -.97295E-04
  20  Prefactor     7.1428        38.326        .10604E-05    .11926E-04
  21  norm          8.3847        5.9168        .91744E-07    .37645E-06
  22  Prefactor     24.689        65.369        .93544E-06    .12719E-05
  23  Prefactor     .10001E-03    1055.6       -.47793E-04** at limit **
  24  Prefactor     17.421        37.057       -.22950E-05   -.56901E-04
  25  Prefactor     16.255        9.9456        .19980E-06    .85266E-05
  26  Normalizat    1.1100        .19383       -.81769E-06   -.55173E-04
  27  Prefactor     .93662        .14151       -.12010E-05    .93477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.42186
  Prefactor  = 3.37371
  Prefactor  = 3.67606
  Prefactor  = 5.65996
  norm       = 0.0788845
  norm       = 6.44555
  Prefactor  = 8.9381
  Prefactor  = 0.560688
  norm       = 19.1217
  Prefactor  = 1.50177
  Prefactor  = 0.0001
  Prefactor  = 1.36437
  Prefactor  = 0.0001
  norm       = 3.48016
  norm       = 0.777115
  Prefactor  = 0.0001
  norm       = 0.207345
  norm       = 0.0001
  norm       = 1.63762
  Prefactor  = 7.14278
  norm       = 8.38467
  Prefactor  = 24.6889
  Prefactor  = 0.00010001
  Prefactor  = 17.4209
  Prefactor  = 16.2554
  Normalizat = 1.11
  Prefactor  = 0.936624
 **********
 **   18 **HESSE 
 **********

 FCN=   7524.789     FROM HESSE     STATUS=OK           516 CALLS     3955 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4219        2.1488        .15273E-03   -1.5469    
   2  Prefactor     3.3737        10.541        .22001E-03   -1.5341    
   3  Prefactor     3.6761        96.675        .21161E-03   -1.5324    
   4  Prefactor     5.6600        3.8475        .12831E-03   -1.5232    
   5  norm          .78884E-01    .92118E-01    .27953E-03   -1.5652    
   6  norm          6.4456        11.103        .15809E-03   -1.5200    
   7  Prefactor     8.9381        16.702        .13399E-03   -1.5110    
   8  Prefactor     .56069        4.0965        .32658E-03   -1.5558    
   9  norm          19.122        43.036        .91610E-04   -1.4833    
  10  Prefactor     1.5018        1.1884        .71692E-04   -1.5463    
  11  Prefactor     .10000E-03    9.4531        .99411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3644        3.2072        .21848E-03   -1.5474    
  13  Prefactor     .10000E-03    3.8180        .22715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4802        1.6114        .72219E-04   -1.5335    
  15  norm          .77711        .71093        .68488E-03   -1.5532    
  16  Prefactor     .10000E-03    11.969        .31253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .20735        .63981        .92915E-03   -1.5617    
  18  norm          .10000E-03    3.0303        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6376        1.3524        .88398E-04   -1.5452    
  20  Prefactor     7.1428        38.258        .15007E-03   -1.5173    
  21  norm          8.3847        5.8984        .13845E-03   -1.5129    
  22  Prefactor     24.689        65.230        .80619E-04   -1.4714    
  23  Prefactor     .10001E-03    1065.3        .38009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.421        37.196        .96029E-04   -1.4873    
  25  Prefactor     16.255        9.9421        .99340E-04   -1.4901    
  26  Normalizat    1.1100        .23107        .26450E-03   -.89431    
  27  Prefactor     .93662        .16976        .22763E-03   -.94873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23695e-08
Minuit parameter uncertainties:
  1  2.14887
  2  10.5473
  3  37.7707
  4  3.84766
  5  0.0921186
  6  11.1061
  7  16.7105
  8  3.0311
  9  43.1062
  10  1.18845
  11  4.90742e-05
  12  3.20755
  13  5.34299e-06
  14  1.61143
  15  0.710942
  16  9.11543e-06
  17  0.639836
  18  1.7462e-06
  19  1.35246
  20  33.0945
  21  5.89879
  22  65.4192
  23  0.00663147
  24  37.2453
  25  9.94307
  26  0.231281
  27  0.169855
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.480e+00  1.611e+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:  9.366e-01  1.699e-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.110e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.90
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 6.72e-05 +/- 3.11e-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) = 7524.47170771
delta logL = 0.317170603566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7524.45707547
delta logL = 0.331802841651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1563       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4024       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93629       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=   7524.457     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      209 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1559        1.5261        .57037E-02   -.10310E-03
   2  alpha         1.4023        .30269        .27552       -.58932E-04
   3  Normalizat    1.1205        .17246        .59567E-01    .14520E-04
   4  Prefactor     .93628        .13814        .45466E-01    .12641E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.15585
  alpha      = 1.40225
  Normalizat = 1.12048
  Prefactor  = 0.936284
 **********
 **   18 **HESSE 
 **********

 FCN=   7524.457     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1559        1.7338        .71698E-04   -1.5353    
   2  alpha         1.4023        .37102        .11240E-01   -.45459    
   3  Normalizat    1.1205        .20424        .26344E-03   -.89097    
   4  Prefactor     .93628        .16377        .22783E-03   -.94885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04327e-12
Minuit parameter uncertainties:
  1  1.73378
  2  0.372731
  3  0.204386
  4  0.163857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139590': 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) = 7524.45707542
delta logL = 0.331802896054

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.156e+00  1.734e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.402e+00  3.727e-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:  9.363e-01  1.639e-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.120e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.56
Ra Dec: 253.474 39.760
Photon Index (Free Index): 1.40 +/- 0.37
Photon Flux (Free Index): 3.04e-08 +/- 2.16e-08
Energy Flux (Free Index): 1.19e-04 +/- 9.77e-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/139590/cmap_HighResolution_592099201_592358401_4FGL_J1653.8+3945_daily_bin1361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='1.19e-04', photon_flux_error='2.16e-08', dlogl='3.32e-01', energy_flux='6.72e-05', photon_flux2='3.04e-08', job_status='DONE', time_completed='2021-09-16 00:50:47.512588', photon_index_error2='0.37', photon_index2='1.40', ts='21.90', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='9.77e-05', EG='1.11', time_epoch_completed='1631778647.51', return_code='0', job_id='139590', GAL2='0.94', EG2='1.12', return_code2='0', energy_flux_error='3.11e-05', photon_flux_error2='2.16e-08', ts2='22.56', photon_index='1.72' WHERE bin_id='1361' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 00:50:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 139590: <4FGL_J1653.8+3945_daily_bin1361> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1361 253.474 39.7595 592099201 592358401 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 :                                   849.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            924 sec.

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

