/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_J1535.9+3743_weekly_bin859
RA = 233.983, Dec = 37.7249
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='62410994', job_status='RUN', time_executed='2025-01-21 00:57:04.769674', time_epoch_executed='1737449824.77' WHERE source_name='4FGL J1535.9+3743' and cadence='weekly' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62410994

Creating custom pfile directory:
/lscratch/kocevski/62410994/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/62410994/ft1_4FGL_J1535.9+3743_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/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62410994/ft1_4FGL_J1535.9+3743_weekly_bin859.fits outfile=/lscratch/kocevski/62410994/ft1_filteredMKT_4FGL_J1535.9+3743_weekly_bin859.fits ra=233.983 dec=37.7249 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.67
user 3.42
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_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/62410994/ft1_filteredMKT_4FGL_J1535.9+3743_weekly_bin859.fits evtable="EVENTS" outfile="/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_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.23
sys 0.12

Number of photons that the gtmktime cut: 1910

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62410994/ltcube_758505601_759110401_4FGL_J1535.9+3743_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/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits
.....................!
real 23.65
user 23.16
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62410994/ltcube_758505601_759110401_4FGL_J1535.9+3743_weekly_bin859.fits outfile=/lscratch/kocevski/62410994/expmap_758505601_759110401_4FGL_J1535.9+3743_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/62410994/ltcube_758505601_759110401_4FGL_J1535.9+3743_weekly_bin859.fits
.....................!
real 79.57
user 74.61
sys 4.46

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1535.9+3743 @ 233.983 37.7249

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits scfile=/lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits outfile=/lscratch/kocevski/62410994/cmap_758505601_759110401_4FGL_J1535.9+3743_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=233.983 yref=37.7249 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.46
user 0.26
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits scfile=/lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits outfile=/lscratch/kocevski/62410994/cmap_HighResolution_758505601_759110401_4FGL_J1535.9+3743_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=233.983 yref=37.7249 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.43
user 0.26
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits evtable="EVENTS" scfile=/lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62410994/Model_4FGL_J1535.9+3743_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 EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits.....................!
real 61.15
user 60.10
sys 0.72

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits', '/lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits', expMap='/lscratch/kocevski/62410994/expmap_758505601_759110401_4FGL_J1535.9+3743_weekly_bin859.fits', expCube='/lscratch/kocevski/62410994/ltcube_758505601_759110401_4FGL_J1535.9+3743_weekly_bin859.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62410994/Model_4FGL_J1535.9+3743_weekly_bin859.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1535.9+3743'

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  5.210e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
304        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
305         beta:  1.985e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/62410994/ft1_filtered_4FGL_J1535.9+3743_weekly_bin859.fits
Spacecraft file(s): /lscratch/kocevski/62410994/ft2_4FGL_J1535.9+3743_weekly_bin859.fits
Exposure map: /lscratch/kocevski/62410994/expmap_758505601_759110401_4FGL_J1535.9+3743_weekly_bin859.fits
Exposure cube: /lscratch/kocevski/62410994/ltcube_758505601_759110401_4FGL_J1535.9+3743_weekly_bin859.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62410994/Model_4FGL_J1535.9+3743_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) = 20997.2901784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13705E-02   1.0000          .0000       .10000E+07
     2 'norm      '    2.5743       1.0000          .0000       .10000E+07
     3 'Prefactor '    38.023       1.0000          .0000       .10000E+07
     4 'Prefactor '    .90034E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.1420       1.0000          .0000       .10000E+07
     6 'norm      '    1.1601       1.0000          .0000       .10000E+07
     7 'norm      '    .99920E-09   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16409E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .37079E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.4977       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5742       1.0000          .0000       .10000E+07
    12 'norm      '    5.5740       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14099E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.5868       1.0000          .0000       .10000E+07
    15 'norm      '    10.234       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.2210       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.6448       1.0000          .0000       .10000E+07
    18 'Prefactor '    .75446       1.0000          .0000       .10000E+07
    19 'Prefactor '    .26545E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19806E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    2.7517       1.0000          .0000       .10000E+07
    22 'norm      '    .49195E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .28472E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    .72590       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1595       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20997.20     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1712 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43854E-08    16.231       -.56240E-07** at limit **
   2  norm          2.5824        3.1198        .85097E-07   -.61871E-04
   3  Prefactor     38.034        9.9086        .60991E-07   -.31116E-01
   4  Prefactor      .0000        6.2162       -.89562E-07** at limit **
   5  Prefactor     2.1439        3.0798       -.18471E-06    .28480E-03
   6  norm          1.1599        .78514       -.40054E-08    .85813E-03
   7  norm           .0000        .45547        .49269E-07** at limit **
   8  Prefactor      .0000        .86477        .72386E-07** at limit **
   9  Prefactor     .18874E-08    31.499       -.35329E-06** at limit **
  10  Prefactor     8.4764        2.1511        .65290E-08   -.21207E-01
  11  Prefactor     3.5602        4.8830        .56681E-07    .46963E-02
  12  norm          5.5739        .82815       -.12170E-07   -.15991E-03
  13  Prefactor      .0000        1.1511        .17682E-08** at limit **
  14  Prefactor     8.6099        2.2953       -.81813E-08   -.68829E-01
  15  norm          10.140        7.0009        .33840E-07    .82283E-04
  16  Prefactor     1.2204        1.1389        .44991E-07   -.78686E-03
  17  Prefactor     1.6209        8.6845       -.10687E-06   -.15006E-02
  18  Prefactor     .75447        .91675        .18298E-07    .36101E-04
  19  Prefactor      .0000        1.5158        .14156E-07** at limit **
  20  Prefactor     .44409E-09    7.0816       -.30869E-06** at limit **
  21  Prefactor     2.7510        1.7585        .30316E-07   -.79181E-03
  22  norm          .49232E-01    .50640E-01   -.79749E-08** at limit **
  23  Prefactor     .19429E-08    21.556       -.10409E-06** at limit **
  24  Normalizat    .72609        .11335        .18474E-05   -.48080E-04
  25  Prefactor     1.1595        .10660       -.65418E-06   -.30216E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.38538e-09
  norm       = 2.58245
  Prefactor  = 38.0338
  Prefactor  = 0
  Prefactor  = 2.14392
  norm       = 1.15992
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.88738e-09
  Prefactor  = 8.47641
  Prefactor  = 3.56024
  norm       = 5.57389
  Prefactor  = 0
  Prefactor  = 8.60987
  norm       = 10.1399
  Prefactor  = 1.22038
  Prefactor  = 1.62093
  Prefactor  = 0.754467
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 2.751
  norm       = 0.0492317
  Prefactor  = 1.94289e-09
  Normalizat = 0.726092
  Prefactor  = 1.15949
 **********
 **   18 **HESSE 
 **********

 FCN=   20997.20     FROM HESSE     STATUS=OK           487 CALLS     2199 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43854E-08    1.6338        .62082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.5824        3.1348        .63588E-03   -1.5676    
   3  Prefactor     38.034        10.177        .16219E-03   -1.5585    
   4  Prefactor      .0000        6.1204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1439        3.1004        .70393E-03   -1.5679    
   6  norm          1.1599        .80472        .10696E-02   -1.5686    
   7  norm           .0000        .45737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .86520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .18874E-08    31.573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4764        9.8257        .34364E-03   -1.5650    
  11  Prefactor     3.5602        6.1222        .53430E-03   -1.5670    
  12  norm          5.5739        .82997        .42529E-03   -1.5661    
  13  Prefactor      .0000        1.1505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6099        10.007        .34184E-03   -1.5649    
  15  norm          10.140        7.0073        .31298E-03   -1.5644    
  16  Prefactor     1.2204        1.1426        .10202E-03   -1.5686    
  17  Prefactor     1.6209        8.6941        .82328E-03   -1.5683    
  18  Prefactor     .75447        .92649        .56393E-03   -1.5691    
  19  Prefactor      .0000        1.5143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .44409E-09    7.0866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7510        1.7735        .61341E-03   -1.5675    
  22  norm          .49232E-01    .58018E-01    .73098E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19429E-08    21.565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .72609        .97450E-01    .61832E-01   -1.0287    
  25  Prefactor     1.1595        .90881E-01    .35666E-01   -.87587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77445e-07
Minuit parameter uncertainties:
  1  0.000169629
  2  3.13476
  3  10.1767
  4  1.78191e-05
  5  3.1004
  6  0.804722
  7  6.20922e-07
  8  3.77408e-07
  9  0.000485737
  10  9.82569
  11  6.12223
  12  0.829968
  13  7.26553e-07
  14  10.0074
  15  7.00726
  16  1.14264
  17  7.50803
  18  0.926486
  19  6.30532e-07
  20  0.000109935
  21  1.77352
  22  0.0580179
  23  0.00040824
  24  0.0974728
  25  0.090893
Done.

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

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  1.014e+01  7.007e+00  0.000e+00  1.000e+06 ( 1.000e-13)
304        alpha:  2.450e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
305         beta:  1.985e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.159e+00  9.089e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.261e-01  9.747e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 233.983 37.725
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 1.21e-08
Energy Flux (Fixed Index): 6.83e-06 +/- 4.72e-06

TS (Fixed Index): 3.12
Ra Dec: 233.983 37.725
Photon Flux Upper Limit: 4.2574353516e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.65805059398e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/62410994/likelihoodResults_758505601_759110401_4FGL_J1535.9+3743_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): 0
logL (Free Index) = 20996.6662375
delta logL = 0.534852292025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20996.655713
delta logL = 0.545376825008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1036       1.0000          .0000       .10000E+07
     2 'alpha     '    3.1650       1.0000          .0000       5.0000    
     3 'Normalizat'    .70591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6250E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20996.66     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      255 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1036        44.130        .44481E-03    .13099E-01
   2  alpha         3.1650        3.8054        .29993        .21646E-03
   3  Normalizat    .70593        .31475E-01    .62634E-01    .81056E-04
   4  Prefactor     1.1715        .27549E-01    .35342E-01    .71387E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.10356
  alpha      = 3.16498
  Normalizat = 0.705934
  Prefactor  = 1.1715
 **********
 **   18 **HESSE 
 **********

 FCN=   20996.66     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1036        11.585        .17793E-04   -1.5663    
   2  alpha         3.1650        1.2895        .15570E-01    .26923    
   3  Normalizat    .70593        .11235        .27708E-03   -1.0366    
   4  Prefactor     1.1715        .10842        .21608E-03   -.87213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3191e-07
Minuit parameter uncertainties:
  1  11.5848
  2  1.36069
  3  0.112386
  4  0.108439
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) = 20996.6557129
delta logL = 0.545376863905

Extracting fit parameters...

4FGL J1535.9+3743
   Spectrum: LogParabola
303         norm:  5.104e+00  1.158e+01  0.000e+00  1.000e+06 ( 1.000e-13)
304        alpha:  3.165e+00  1.361e+00  0.000e+00  5.000e+00 ( 1.000e+00)
305         beta:  1.985e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
306           Eb:  1.271e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  1.171e+00  1.084e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  7.059e-01  1.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 233.983 37.725
Photon Index (Free Index): 3.16 +/- 1.36
Photon Flux (Free Index): 3.15e-08 +/- 2.22e-08
Energy Flux (Free Index): 7.29e-06 +/- 4.65e-06

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 /lscratch/kocevski/62410994/cmap_HighResolution_758505601_759110401_4FGL_J1535.9+3743_weekly_bin859.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='7.29e-06', photon_flux_error='1.21e-08', dlogl='5.45e-01', energy_flux='6.83e-06', photon_flux2='3.15e-08', job_status='DONE', time_completed='2025-01-21 01:08:49.836151', photon_index_error2='1.36', photon_index2='3.16', ts='3.12', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='4.26e-08', energy_flux_error2='4.65e-06', EG='0.73', time_epoch_completed='1737450529.84', return_code='0', job_id='62410994', GAL2='1.17', EG2='0.71', return_code2='0', energy_flux_error='4.72e-06', photon_flux_error2='2.22e-08', ts2='4.23', photon_index='2.45' WHERE bin_id='859' AND source_name='4FGL J1535.9+3743' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 21 01:08:49 PST 2025

