/sdf/group/fermi/u/kocevski/software/conda/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)

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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/sdf/group/fermi/u/kocevski/software/conda/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 = 17251
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2015.5+3710_weekly_bin859
RA = 303.892, Dec = 37.176
tmin = 758505601, tmax = 759110401
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='62411986', job_status='RUN', time_executed='2025-01-21 01:26:21.838749', time_epoch_executed='1737451581.84' WHERE source_name='4FGL J2015.5+3710' and cadence='weekly' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62411986

Creating custom pfile directory:
/lscratch/kocevski/62411986/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=758505601.0 && nMetStart<759110401.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=758505601.0 && nMetStart<759110401.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62411986/ft1_4FGL_J2015.5+3710_weekly_bin859.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=758505601.0 && nMetStart<759110401.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62411986/ft1_4FGL_J2015.5+3710_weekly_bin859.fits outfile=/lscratch/kocevski/62411986/ft1_filteredMKT_4FGL_J2015.5+3710_weekly_bin859.fits ra=303.892 dec=37.176 rad=12.0 tmin=758505601.0 tmax=759110401.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.70
user 3.43
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/62411986/ft1_filteredMKT_4FGL_J2015.5+3710_weekly_bin859.fits evtable="EVENTS" outfile="/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.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('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.42
user 0.24
sys 0.14

Number of photons that the gtmktime cut: 21141

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62411986/ltcube_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.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 /lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits
.....................!
real 22.09
user 21.55
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62411986/ltcube_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.fits outfile=/lscratch/kocevski/62411986/expmap_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.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 /lscratch/kocevski/62411986/ltcube_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.fits
.....................!
real 78.27
user 73.51
sys 4.41

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 /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/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=/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits scfile=/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits outfile=/lscratch/kocevski/62411986/cmap_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.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.44
user 0.28
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits scfile=/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits outfile=/lscratch/kocevski/62411986/cmap_HighResolution_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.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.45
user 0.28
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62411986/Model_4FGL_J2015.5+3710_weekly_bin859.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...
/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits.....................!
real 1729.16
user 1720.50
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits', '/lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits', expMap='/lscratch/kocevski/62411986/expmap_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.fits', expCube='/lscratch/kocevski/62411986/ltcube_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62411986/Model_4FGL_J2015.5+3710_weekly_bin859.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  0.000e+00  1.000e+06 ( 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 -5.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): /lscratch/kocevski/62411986/ft1_filtered_4FGL_J2015.5+3710_weekly_bin859.fits
Spacecraft file(s): /lscratch/kocevski/62411986/ft2_4FGL_J2015.5+3710_weekly_bin859.fits
Exposure map: /lscratch/kocevski/62411986/expmap_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.fits
Exposure cube: /lscratch/kocevski/62411986/ltcube_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62411986/Model_4FGL_J2015.5+3710_weekly_bin859.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) = 187043.318594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19929E-06   1.0000          .0000       .10000E+07
     2 'norm      '    6.5095       1.0000          .0000       .10000E+07
     3 'norm      '    1.4993       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.9269       1.0000          .0000       .10000E+07
     5 'norm      '    .17747E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    9.9686       1.0000          .0000       .10000E+07
     7 'norm      '    2.8158       1.0000          .0000       .10000E+07
     8 'norm      '    2.5078       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.8716       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8391       1.0000          .0000       .10000E+07
    11 'norm      '    5.0028       1.0000          .0000       .10000E+07
    12 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .34223E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42704       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.5049       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .99022       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   187043.2     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      921 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3402       -.13063E-06** at limit **
   2  norm          6.5222        1.0293       -.68335E-08    .18403E-01
   3  norm          1.4977        2.0810       -.12408E-08    .68640E-03
   4  Prefactor     8.7363        7.0144        .15013E-06    .59736E-03
   5  norm           .0000        2.2303        .22842E-06** at limit **
   6  Prefactor     10.099        12.205        .61879E-06   -.40575E-03
   7  norm          2.8157        .92102       -.76440E-07    .39351E-02
   8  norm          2.5056        2.3491       -.81646E-07   -.70365E-03
   9  Prefactor     1.8718        .11041        .37549E-07   -.48114E-03
  10  norm          2.8385        1.5075       -.90368E-07    .17022E-02
  11  norm          4.9997        2.5120        .80739E-08   -.42970E-03
  12  Prefactor     .10000E-03    1.4431        .31932E-05** at limit **
  13  norm           .0000        15.377        .14046E-05** at limit **
  14  Prefactor     .16653E-09    106.64        .38921E-05** at limit **
  15  Normalizat    1.5064        .15159       -.21557E-05   -.87946E-04
  16  Prefactor     .99018        .13198E-01   -.16857E-06   -.67250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 6.52216
  norm       = 1.49767
  Prefactor  = 8.73633
  norm       = 0
  Prefactor  = 10.099
  norm       = 2.81566
  norm       = 2.50558
  Prefactor  = 1.87178
  norm       = 2.83845
  norm       = 4.9997
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 1.66533e-10
  Normalizat = 1.50644
  Prefactor  = 0.990182
 **********
 **   18 **HESSE 
 **********

 FCN=   187043.2     FROM HESSE     STATUS=OK           251 CALLS     1172 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5222        7.9000        .39312E-03   -1.5657    
   3  norm          1.4977        2.0889        .87429E-03   -1.5683    
   4  Prefactor     8.7363        7.0460        .33523E-03   -1.5649    
   5  norm           .0000        2.2607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.099        12.216        .31713E-03   -1.5644    
   7  norm          2.8157        .92401        .60589E-03   -1.5674    
   8  norm          2.5056        2.3463        .64499E-03   -1.5676    
   9  Prefactor     1.8718        .11100        .74260E-02   -1.5434    
  10  norm          2.8385        1.5198        .60322E-03   -1.5674    
  11  norm          4.9997        2.5180        .44936E-03   -1.5663    
  12  Prefactor     .10000E-03    .34112        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        15.218        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .16653E-09    2.7693        .19905E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.5064        .15759        .28792       -.77597    
  16  Prefactor     .99018        .13145E-01    .28648E-01   -.93057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72219e-06
Minuit parameter uncertainties:
  1  3.57377e-06
  2  7.90005
  3  2.08889
  4  7.04601
  5  4.11288e-06
  6  12.2159
  7  0.924012
  8  2.34634
  9  0.111001
  10  1.51979
  11  2.51802
  12  4.10546e-06
  13  3.15251e-05
  14  4.36921e-05
  15  0.157643
  16  0.013145
Done.

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

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  2.506e+00  2.346e+00  0.000e+00  1.000e+06 ( 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 -5.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.902e-01  1.315e-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.506e+00  1.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.34
Ra Dec: 303.892 37.176
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 3.79e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.53e-05

TS (Fixed Index): 1.34
Ra Dec: 303.892 37.176
Photon Flux Upper Limit: 1.11364058518e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.49822491642e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/62411986/likelihoodResults_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.txt

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): 102
logL (Free Index) = 187041.432262
delta logL = 1.80776920982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 187041.413848
delta logL = 1.8261828018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62561E-01   1.0000          .0000       .10000E+07
     2 'alpha     '    4.5197       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98935       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=   187041.4     FROM MIGRAD    STATUS=FAILED       102 CALLS      329 TOTAL
                     EDM=   .81E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62154E-01    .56695        .39000E-04** at limit **
   2  alpha         4.5222        3.9929        .44220E-01    .11217E-01
   3  Normalizat    1.4621        .10171        .13077E-02   -.35470E-03
   4  Prefactor     .98936        .84547E-02    .12657E-03   -.33714E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   187041.4     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      414 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62154E-01    .56695        .22523E-05** at limit **
   2  alpha         4.5222        3.9929        .15735E-02    .11217E-01
   3  Normalizat    1.4621        .10171        .61763E-04   -.35470E-03
   4  Prefactor     .98936        .84547E-02    .11699E-04   -.33714E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   187041.4     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      452 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62152E-01    .64151        .78000E-05** at limit **
   2  alpha         4.5222        4.0898        .88440E-02   -.31551E-04
   3  Normalizat    1.4621        .13824        .52308E-04    .20865E-04
   4  Prefactor     .98936        .11618E-01    .50630E-05    .43113E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0621518
  alpha      = 4.52221
  Normalizat = 1.46209
  Prefactor  = 0.989363
 **********
 **   18 **HESSE 
 **********

 FCN=   187041.4     FROM HESSE     STATUS=OK            27 CALLS      479 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62152E-01    .21941        .31200E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.5222        1.0357        .35376E-03    .94225    
   3  Normalizat    1.4621        .15102        .10462E-04   -.78849    
   4  Prefactor     .98936        .12612E-01    .10126E-05   -.93085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91519e-11
Minuit parameter uncertainties:
  1  0.219411
  2  1.1493
  3  0.151067
  4  0.0126121
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) = 187041.413842
delta logL = 1.82618925822

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  6.215e-02  2.194e-01  0.000e+00  1.000e+06 ( 1.000e-13)
376        alpha:  4.522e+00  1.149e+00  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.777e-01  0.000e+00 -5.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.894e-01  1.261e-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.462e+00  1.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 303.892 37.176
Photon Index (Free Index): 4.52 +/- 1.15
Photon Flux (Free Index): 1.73e-07 +/- 8.01e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /lscratch/kocevski/62411986/cmap_HighResolution_758505601_759110401_4FGL_J2015.5+3710_weekly_bin859.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-05', comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='2.79e-05', photon_flux_error='3.79e-08', dlogl='1.83e+00', energy_flux='1.64e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2025-01-21 03:00:08.907426', photon_index_error2='1.15', photon_index2='4.52', ts='1.34', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.45e-05', EG='1.51', time_epoch_completed='1737457208.91', return_code='0', job_id='62411986', GAL2='0.99', EG2='1.46', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='8.01e-08', ts2='5.04', photon_index='2.71' WHERE bin_id='859' AND source_name='4FGL J2015.5+3710' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 21 03:00:08 PST 2025

