aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 79 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 = 17238
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2015.5+3710_weekly_bin722
RA = 303.892, Dec = 37.176
tmin = 675648001, tmax = 676252801
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='992962', job_status='RUN', time_executed='2022-06-07 01:23:29.718359', time_epoch_executed='1654590209.72' WHERE source_name='4FGL J2015.5+3710' and cadence='weekly' and bin_id='722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992962

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992962/ft1_4FGL_J2015.5+3710_weekly_bin722.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992962/ft1_4FGL_J2015.5+3710_weekly_bin722.fits outfile=/scratch/kocevski/992962/ft1_filteredMKT_4FGL_J2015.5+3710_weekly_bin722.fits ra=303.892 dec=37.176 rad=12.0 tmin=675648001.0 tmax=676252801.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 8.71
user 8.35
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.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/992962/ft1_filteredMKT_4FGL_J2015.5+3710_weekly_bin722.fits evtable="EVENTS" outfile="/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.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.59
user 0.40
sys 0.16

Number of photons that the gtmktime cut: 13735

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits" evtable="EVENTS" scfile=/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits sctable="SC_DATA" outfile=/scratch/kocevski/992962/ltcube_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.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/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits
.....................!
real 32.19
user 31.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits sctable="SC_DATA" expcube=/scratch/kocevski/992962/ltcube_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.fits outfile=/scratch/kocevski/992962/expmap_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.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/992962/ltcube_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.fits
.....................!
real 192.05
user 186.68
sys 4.93

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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 212 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2015.5+3710 @ 303.892 37.176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits scfile=/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits outfile=/scratch/kocevski/992962/cmap_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.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=303.892 yref=37.176 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.60
user 0.45
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits scfile=/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits outfile=/scratch/kocevski/992962/cmap_HighResolution_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.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=303.892 yref=37.176 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.62
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992962/Model_4FGL_J2015.5+3710_weekly_bin722.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits.....................!
real 2889.30
user 2874.77
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits', '/scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits', expMap='/scratch/kocevski/992962/expmap_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.fits', expCube='/scratch/kocevski/992962/ltcube_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992962/Model_4FGL_J2015.5+3710_weekly_bin722.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2015.5+3710'

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  7.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/992962/ft1_filtered_4FGL_J2015.5+3710_weekly_bin722.fits
Spacecraft file(s): /scratch/kocevski/992962/ft2_4FGL_J2015.5+3710_weekly_bin722.fits
Exposure map: /scratch/kocevski/992962/expmap_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.fits
Exposure cube: /scratch/kocevski/992962/ltcube_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992962/Model_4FGL_J2015.5+3710_weekly_bin722.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) = 124221.425068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44101E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8952       1.0000         .10000E-03   10000.    
     5 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4948       1.0000         .10000E-03   10000.    
     7 'norm      '    11.219       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12592E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3752       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4659       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7845       1.0000         .10000E-03   10000.    
    15 'norm      '    8.5784       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .83433       1.0000         .10000E-03   10000.    
    17 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.350       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2131       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99952       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7820E+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=   124221.4     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     2377 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.573        .18142E-02** at limit **
   2  Prefactor     .10000E-03    23.100        .50000    ** at limit **
   3  Prefactor     .10000E-03    5.0794        .36285E-03** at limit **
   4  norm          7.8918        9.0119        .14270E-03   -.22944E-04
   5  norm          .10000E-03    .74837        .18142E-02** at limit **
   6  Prefactor     1.4933        13.434        .17524E-02   -.25743E-04
   7  norm          11.219        6.5297        .11961E-03    .48664E-04
   8  Prefactor     .10000E-03    29.323        .18142E-02** at limit **
   9  norm          4.3751        1.1222        .18411E-03   -.84968E-04
  10  norm          6.9501        3.0300        .15219E-03    .59281E-03
  11  Prefactor     1.8677        .14059        .34111E-04   -.16371E-02
  12  Prefactor     .10000E-03    4.6390        .18142E-02** at limit **
  13  norm          3.4650        1.8400        .21722E-03    .21186E-03
  14  norm          1.7844        1.9972        .31322E-03   -.40651E-05
  15  norm          8.5774        3.3533        .13686E-03    .58478E-04
  16  Prefactor     .83337        2.0801        .25134E-02   -.78196E-03
  17  norm          .10000E-03    7.7628        .18142E-02** at limit **
  18  Prefactor     13.344        21.399        .10963E-03    .89601E-04
  19  Normalizat    1.2134        .19112        .14220E-02    .22705E-03
  20  Prefactor     .99952        .16254E-01    .12696E-03    .23425E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 7.89175
  norm       = 0.0001
  Prefactor  = 1.49334
  norm       = 11.219
  Prefactor  = 0.000100002
  norm       = 4.37508
  norm       = 6.95015
  Prefactor  = 1.86775
  Prefactor  = 0.0001
  norm       = 3.46502
  norm       = 1.78437
  norm       = 8.5774
  Prefactor  = 0.833366
  norm       = 0.0001
  Prefactor  = 13.344
  Normalizat = 1.21342
  Prefactor  = 0.999518
 **********
 **   18 **HESSE 
 **********

 FCN=   124221.4     FROM HESSE     STATUS=OK           283 CALLS     2660 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.099        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0797        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8918        9.0134        .57081E-05   -1.5146    
   5  norm          .10000E-03    .74853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4933        13.393        .70095E-04   -1.5464    
   7  norm          11.219        6.5284        .47844E-05   -1.5038    
   8  Prefactor     .10000E-03    29.349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3751        1.1222        .73643E-05   -1.5290    
  10  norm          6.9501        3.0299        .60878E-05   -1.5181    
  11  Prefactor     1.8677        .14058        .13644E-05   -1.5435    
  12  Prefactor     .10000E-03    4.6396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4650        1.8398        .86888E-05   -1.5336    
  14  norm          1.7844        1.9972        .12529E-04   -1.5441    
  15  norm          8.5774        3.3531        .54745E-05   -1.5122    
  16  Prefactor     .83337        2.0788        .10054E-03   -1.5525    
  17  norm          .10000E-03    7.7631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.344        21.434        .43850E-05   -1.4977    
  19  Normalizat    1.2134        .19087        .56881E-04   -.86189    
  20  Prefactor     .99952        .16251E-01    .50784E-05   -.92746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0367e-09
Minuit parameter uncertainties:
  1  6.98514e-06
  2  0.000561699
  3  6.75175e-07
  4  9.01498
  5  2.76269e-06
  6  8.94662
  7  6.52878
  8  0.00047747
  9  1.12223
  10  3.02996
  11  0.14058
  12  9.11905e-06
  13  1.83985
  14  1.99725
  15  3.35317
  16  2.07898
  17  3.28521e-05
  18  21.4463
  19  0.190984
  20  0.0162514
Done.

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

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  6.950e+00  3.030e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
771    Prefactor:  9.995e-01  1.625e-02  0.000e+00  1.000e+01 ( 1.000e+00)
772        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
773        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
770   Normalization:  1.213e+00  1.910e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.62
Ra Dec: 303.892 37.176
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 4.90e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 1.98e-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) = 124221.419427
delta logL = 0.00336323243391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 124221.412955
delta logL = 0.00983497108973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5297       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6409       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   124221.4     FROM MIGRAD    STATUS=FAILED       104 CALLS      268 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5281        7.2296        .73075E-03    .68821E-03
   2  alpha         2.6415        .62090        .15890E-01    .18909E-02
   3  Normalizat    1.2147        .18255        .14215E-02   -.24825E-04
   4  Prefactor     .99970        .15499E-01    .12696E-03   -.21062E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   124221.4     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      345 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5281        7.2296        .88047E-04   -1.5159    
   2  alpha         2.6415        .62090        .86463E-03    .56650E-01
   3  Normalizat    1.2147        .18255        .22320E-03   -.86150    
   4  Prefactor     .99970        .15499E-01    .16435E-04   -.92739    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   124221.4     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      377 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5281        5.4875        .14615E-03   -.37338E-05
   2  alpha         2.6415        .47332        .31781E-02    .73559E-04
   3  Normalizat    1.2147        .18224        .56860E-04   -.25592E-04
   4  Prefactor     .99970        .15474E-01    .50782E-05   -.20775E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.52806
  alpha      = 2.64155
  Normalizat = 1.21469
  Prefactor  = 0.999704
 **********
 **   18 **HESSE 
 **********

 FCN=   124221.4     FROM HESSE     STATUS=OK            25 CALLS      402 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5281        5.2832        .58460E-05   -1.5159    
   2  alpha         2.6415        .45579        .63561E-03    .56650E-01
   3  Normalizat    1.2147        .18214        .11372E-04   -.86150    
   4  Prefactor     .99970        .15467E-01    .10156E-05   -.92739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08981e-12
Minuit parameter uncertainties:
  1  5.28348
  2  0.458364
  3  0.182234
  4  0.0154672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992962': 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) = 124221.412953
delta logL = 0.00983687465487

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  7.528e+00  5.283e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.642e+00  4.584e-01  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
771    Prefactor:  9.997e-01  1.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
772        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
773        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
770   Normalization:  1.215e+00  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 303.892 37.176
Photon Index (Free Index): 2.64 +/- 0.46
Photon Flux (Free Index): 1.04e-07 +/- 7.52e-08
Energy Flux (Free Index): 4.51e-05 +/- 2.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/992962/cmap_HighResolution_675648001_676252801_4FGL_J2015.5+3710_weekly_bin722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='4.51e-05', photon_flux_error='4.90e-08', dlogl='9.84e-03', energy_flux='4.54e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2022-06-07 04:16:07.160155', photon_index_error2='0.46', photon_index2='2.64', ts='7.62', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.21', time_epoch_completed='1654600567.16', return_code='0', job_id='992962', GAL2='1.00', EG2='1.21', return_code2='0', energy_flux_error='1.98e-05', photon_flux_error2='7.52e-08', ts2='7.65', photon_index='2.71' WHERE bin_id='722' AND source_name='4FGL J2015.5+3710' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun  7 04:16:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 992962: <4FGL_J2015.5+3710_weekly_bin722> in cluster <slac> Done

Job <4FGL_J2015.5+3710_weekly_bin722> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jun  7 01:20:27 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun  7 01:22:02 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun  7 01:22:02 2022
Terminated at Tue Jun  7 04:16:08 2022
Results reported at Tue Jun  7 04:16:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2015.5+3710_weekly_bin722 303.892 37.176 675648001 676252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2015.5+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10326.00 sec.
    Max Memory :                                 644 MB
    Average Memory :                             562.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10446 sec.
    Turnaround time :                            10541 sec.

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

