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


Performing analysis on: 4FGL_J1136.2+3407_weekly_bin914
RA = 174.075, Dec = 34.129
tmin = 791769601, tmax = 792374401
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='20611827', job_status='RUN', time_executed='2026-02-10 00:50:14.683957', time_epoch_executed='1770713414.68' WHERE source_name='4FGL J1136.2+3407' and cadence='weekly' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/20611827

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/20611827/ft1_4FGL_J1136.2+3407_weekly_bin914.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/20611827/ft1_4FGL_J1136.2+3407_weekly_bin914.fits outfile=/lscratch/kocevski/20611827/ft1_filteredMKT_4FGL_J1136.2+3407_weekly_bin914.fits ra=174.075 dec=34.129 rad=12.0 tmin=791769601.0 tmax=792374401.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 5.95
user 5.01
sys 0.26

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.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/20611827/ft1_filteredMKT_4FGL_J1136.2+3407_weekly_bin914.fits evtable="EVENTS" outfile="/lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.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 1.16
user 0.27
sys 0.15

Number of photons that the gtmktime cut: 1640

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits" evtable="EVENTS" scfile=/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits sctable="SC_DATA" outfile=/lscratch/kocevski/20611827/ltcube_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.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/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits
.....................!
real 28.49
user 26.79
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits evtable="EVENTS" scfile=/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits sctable="SC_DATA" expcube=/lscratch/kocevski/20611827/ltcube_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.fits outfile=/lscratch/kocevski/20611827/expmap_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.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/20611827/ltcube_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.fits
.....................!
real 78.97
user 73.36
sys 4.47

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

Setting source of interest to:
4FGL J1136.2+3407 @ 174.075 34.129

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits scfile=/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits outfile=/lscratch/kocevski/20611827/cmap_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.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=174.075 yref=34.129 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 1.19
user 0.27
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits scfile=/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits outfile=/lscratch/kocevski/20611827/cmap_HighResolution_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.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=174.075 yref=34.129 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 1.33
user 0.27
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits evtable="EVENTS" scfile=/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/20611827/Model_4FGL_J1136.2+3407_weekly_bin914.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/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits....................!
real 61.75
user 58.90
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits', '/lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits', expMap='/lscratch/kocevski/20611827/expmap_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.fits', expCube='/lscratch/kocevski/20611827/ltcube_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/20611827/Model_4FGL_J1136.2+3407_weekly_bin914.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.2+3407'

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.848e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/20611827/ft1_filtered_4FGL_J1136.2+3407_weekly_bin914.fits
Spacecraft file(s): /lscratch/kocevski/20611827/ft2_4FGL_J1136.2+3407_weekly_bin914.fits
Exposure map: /lscratch/kocevski/20611827/expmap_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.fits
Exposure cube: /lscratch/kocevski/20611827/ltcube_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/20611827/Model_4FGL_J1136.2+3407_weekly_bin914.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) = 17784.2594092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35710E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11360E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .51100E-05   1.0000          .0000       .10000E+07
     4 'norm      '    1.2714       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.4937       1.0000          .0000       .10000E+07
     6 'Prefactor '    .66193E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.5787       1.0000          .0000       .10000E+07
     8 'norm      '    5.5941       1.0000          .0000       .10000E+07
     9 'Prefactor '    .47135E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .93076E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    15.984       1.0000          .0000       .10000E+07
    12 'norm      '    24.596       1.0000          .0000       .10000E+07
    13 'Prefactor '    .23330E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5211       1.0000          .0000       .10000E+07
    15 'Prefactor '    .47848E-03   1.0000          .0000       .10000E+07
    16 'norm      '    6.5128       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12681E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10073       1.0000          .0000       .10000E+07
    19 'norm      '    9.6505       1.0000          .0000       .10000E+07
    20 'Prefactor '    .45840E-02   1.0000          .0000       .10000E+07
    21 'norm      '    18.113       1.0000          .0000       .10000E+07
    22 'norm      '    1.3544       1.0000          .0000       .10000E+07
    23 'Prefactor '    2.8763       1.0000          .0000       .10000E+07
    24 'Prefactor '    .60090       1.0000          .0000       .10000E+07
    25 'Prefactor '    7.0161       1.0000          .0000       .10000E+07
    26 'Normalizat'    .84900       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0558       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17784.20     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1959 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-08    5.8641       -.15159E-06** at limit **
   2  Prefactor     .93198E-06    9.0519       -.11660E-06** at limit **
   3  Prefactor     .55511E-10    3.4157       -.17951E-06** at limit **
   4  norm          1.2718        .22359        .36203E-09    .38687E-02
   5  Prefactor     1.4919        1.7516        .60056E-08   -.78098E-05
   6  Prefactor     .12446E-06    45.135        .30627E-06** at limit **
   7  Prefactor     4.5462        9.9382        .12130E-06    .10834E-01
   8  norm          5.5851        9.6062        .59626E-07   -.82236E-02
   9  Prefactor      .0000        .93370       -.50207E-07** at limit **
  10  Prefactor     .11993E-05    10.983        .15367E-07** at limit **
  11  Prefactor     15.994        11.747       -.36117E-07   -.37863E-01
  12  norm          24.601        3.0102       -.29957E-08    .10542E-02
  13  Prefactor     .64743E-06    4.2022       -.73819E-07** at limit **
  14  Prefactor     4.5205        4.1544        .31452E-07    .12535E-02
  15  Prefactor     .54845E-07    10.865        .23974E-06** at limit **
  16  norm          6.5116        1.0368        .39606E-08    .16720E-02
  17  Prefactor     .84671E-06    23.960       -.12897E-07** at limit **
  18  Prefactor     .10081        1.3091        .62638E-08** at limit **
  19  norm          9.7024        5.7125       -.80034E-08   -.24598E-03
  20  Prefactor     .37137E-07    9.2115        .13818E-06** at limit **
  21  norm          18.114        1.6040        .40897E-08    .18653E-02
  22  norm          1.3542        1.1277       -.23354E-07   -.13972E-02
  23  Prefactor     2.8734        3.0229        .31239E-07    .43712E-03
  24  Prefactor     .60064        .81037       -.18039E-07   -.10606E-02
  25  Prefactor     7.0154        1.9072        .27344E-07    .29328E-02
  26  Normalizat    .84926        .13861       -.57268E-06    .10516E-04
  27  Prefactor     1.0556        .15386        .35485E-06    .21817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-09
  Prefactor  = 9.31977e-07
  Prefactor  = 5.55112e-11
  norm       = 1.27183
  Prefactor  = 1.49194
  Prefactor  = 1.24456e-07
  Prefactor  = 4.54616
  norm       = 5.58511
  Prefactor  = 0
  Prefactor  = 1.19932e-06
  Prefactor  = 15.9939
  norm       = 24.6008
  Prefactor  = 6.47427e-07
  Prefactor  = 4.52047
  Prefactor  = 5.4845e-08
  norm       = 6.51163
  Prefactor  = 8.46712e-07
  Prefactor  = 0.100809
  norm       = 9.70238
  Prefactor  = 3.7137e-08
  norm       = 18.1144
  norm       = 1.35416
  Prefactor  = 2.87337
  Prefactor  = 0.600643
  Prefactor  = 7.01537
  Normalizat = 0.849262
  Prefactor  = 1.05565
 **********
 **   18 **HESSE 
 **********

 FCN=   17784.20     FROM HESSE     STATUS=OK           550 CALLS     2509 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-08    5.8976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .93198E-06    19.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    3.4164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2718        .22262        .55421E-03   -1.5685    
   5  Prefactor     1.4919        1.7741        .87650E-03   -1.5684    
   6  Prefactor     .12446E-06    45.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.5462        9.9796        .47018E-03   -1.5665    
   8  norm          5.5851        9.6778        .42451E-03   -1.5661    
   9  Prefactor      .0000        .93193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11993E-05    16.786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.994        12.163        .25025E-03   -1.5628    
  12  norm          24.601        3.0151        .20168E-03   -1.5609    
  13  Prefactor     .64743E-06    22.474        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5205        4.1669        .47325E-03   -1.5665    
  15  Prefactor     .54845E-07    11.192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.5116        1.0382        .39301E-04   -1.5657    
  17  Prefactor     .84671E-06    27.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10081        .45791        .29999E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.7024        5.7180        .32234E-03   -1.5646    
  20  Prefactor     .37137E-07    9.3910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          18.114        1.6040        .23506E-03   -1.5623    
  22  norm          1.3542        1.1305        .93911E-04   -1.5685    
  23  Prefactor     2.8734        3.0334        .59905E-03   -1.5674    
  24  Prefactor     .60064        .82602        .69148E-03   -1.5692    
  25  Prefactor     7.0154        1.9113        .37850E-03   -1.5655    
  26  Normalizat    .84926        .11714        .68288E-01   -.98267    
  27  Prefactor     1.0556        .12968        .71361E-01   -.90897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13213e-07
Minuit parameter uncertainties:
  1  0.000157392
  2  0.008523
  3  2.31727e-05
  4  0.22262
  5  1.77412
  6  0.0047419
  7  9.97964
  8  9.67786
  9  2.19912e-06
  10  0.00897354
  11  12.1632
  12  3.01511
  13  0.007629
  14  4.16685
  15  0.00156683
  16  1.03815
  17  0.0097158
  18  0.429705
  19  5.71801
  20  0.001181
  21  1.60397
  22  1.13055
  23  3.03338
  24  0.826022
  25  1.91131
  26  0.117172
  27  0.129718
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.520e+00  4.167e+00  0.000e+00  1.000e+06 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.056e+00  1.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.493e-01  1.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 174.075 34.129
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 8.58e-06 +/- 7.91e-06

TS (Fixed Index): 1.46
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 8.67035934246e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00676612092021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/20611827/likelihoodResults_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.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) = 17783.8564106
delta logL = 0.347352957855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17783.8394108
delta logL = 0.364352741053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2838       1.0000          .0000       .10000E+07
     2 'Index     '    3.4164       1.0000          .0000       10.000    
     3 'Normalizat'    .82577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0768       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17783.84     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      256 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2818        23.864        .67907E-03    .20500E-01
   2  Index         3.4172        2.8225        .21301        .24853E-03
   3  Normalizat    .82580        .29112E-01    .69113E-01    .57716E-04
   4  Prefactor     1.0767        .33726E-01    .70737E-01    .43726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28184
  Index      = 3.41719
  Normalizat = 0.825804
  Prefactor  = 1.07665
 **********
 **   18 **HESSE 
 **********

 FCN=   17783.84     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2818        6.5285        .14055E-04   -1.5678    
   2  Index         3.4172        1.8847        .91688E-02   -.32210    
   3  Normalizat    .82580        .13605        .30580E-03   -.99119    
   4  Prefactor     1.0767        .15599        .31295E-03   -.90216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80973e-11
Minuit parameter uncertainties:
  1  6.52853
  2  1.9382
  3  0.136108
  4  0.156058
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) = 17783.8394101
delta logL = 0.364353451729

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  2.282e+00  6.529e+00  0.000e+00  1.000e+06 ( 1.000e-12)
307        Index:  3.417e+00  1.938e+00  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.077e+00  1.561e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  8.258e-01  1.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 174.075 34.129
Photon Index (Free Index): 3.42 +/- 1.94
Photon Flux (Free Index): 4.95e-08 +/- 3.68e-08
Energy Flux (Free Index): 8.42e-06 +/- 7.94e-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/20611827/cmap_HighResolution_791769601_792374401_4FGL_J1136.2+3407_weekly_bin914.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='8.42e-06', photon_flux_error='2.88e-08', dlogl='3.64e-01', energy_flux='8.58e-06', photon_flux2='4.95e-08', job_status='DONE', time_completed='2026-02-10 01:06:02.822159', photon_index_error2='1.94', photon_index2='3.42', ts='1.46', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='7.94e-06', EG='0.85', time_epoch_completed='1770714362.82', return_code='0', job_id='20611827', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='7.91e-06', photon_flux_error2='3.68e-08', ts2='2.25', photon_index='2.55' WHERE bin_id='914' AND source_name='4FGL J1136.2+3407' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 10 01:06:03 PST 2026

