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


Performing analysis on: 4FGL_J2136.2+0032_weekly_bin927
RA = 324.062, Dec = 0.5488
tmin = 799632001, tmax = 800236801
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='26511001', job_status='RUN', time_executed='2026-05-12 02:58:35.470125', time_epoch_executed='1778579915.47' WHERE source_name='4FGL J2136.2+0032' and cadence='weekly' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/26511001

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/26511001/ft1_4FGL_J2136.2+0032_weekly_bin927.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/26511001/ft1_4FGL_J2136.2+0032_weekly_bin927.fits outfile=/lscratch/kocevski/26511001/ft1_filteredMKT_4FGL_J2136.2+0032_weekly_bin927.fits ra=324.062 dec=0.5488 rad=12.0 tmin=799632001.0 tmax=800236801.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 4.03
user 3.49
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.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/26511001/ft1_filteredMKT_4FGL_J2136.2+0032_weekly_bin927.fits evtable="EVENTS" outfile="/lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.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.89
user 0.22
sys 0.12

Number of photons that the gtmktime cut: 1939

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits" evtable="EVENTS" scfile=/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits sctable="SC_DATA" outfile=/lscratch/kocevski/26511001/ltcube_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.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/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits
.....................!
real 19.60
user 18.77
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits evtable="EVENTS" scfile=/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits sctable="SC_DATA" expcube=/lscratch/kocevski/26511001/ltcube_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.fits outfile=/lscratch/kocevski/26511001/expmap_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.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/26511001/ltcube_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.fits
.....................!
real 68.94
user 64.40
sys 3.95

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

Setting source of interest to:
4FGL J2136.2+0032 @ 324.062 0.5488

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits scfile=/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits outfile=/lscratch/kocevski/26511001/cmap_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.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=324.062 yref=0.5488 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.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits scfile=/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits outfile=/lscratch/kocevski/26511001/cmap_HighResolution_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.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=324.062 yref=0.5488 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.67
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits evtable="EVENTS" scfile=/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/26511001/Model_4FGL_J2136.2+0032_weekly_bin927.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/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits.....................!
real 71.46
user 69.61
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits', '/lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits', expMap='/lscratch/kocevski/26511001/expmap_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.fits', expCube='/lscratch/kocevski/26511001/ltcube_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/26511001/Model_4FGL_J2136.2+0032_weekly_bin927.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2136.2+0032'

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  8.984e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/26511001/ft1_filtered_4FGL_J2136.2+0032_weekly_bin927.fits
Spacecraft file(s): /lscratch/kocevski/26511001/ft2_4FGL_J2136.2+0032_weekly_bin927.fits
Exposure map: /lscratch/kocevski/26511001/expmap_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.fits
Exposure cube: /lscratch/kocevski/26511001/ltcube_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/26511001/Model_4FGL_J2136.2+0032_weekly_bin927.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) = 21367.8416247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79416E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .27797E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .43200E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .44727E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12609E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20131E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3362       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.9417       1.0000          .0000       .10000E+07
     9 'Prefactor '    .55840       1.0000          .0000       .10000E+07
    10 'Prefactor '    36.607       1.0000          .0000       .10000E+07
    11 'Prefactor '    .88825E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .22753       1.0000          .0000       .10000E+07
    13 'norm      '    .13959E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .76147E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    18.487       1.0000          .0000       .10000E+07
    16 'Prefactor '    28.626       1.0000          .0000       .10000E+07
    17 'Prefactor '    .70080       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.4902       1.0000          .0000       .10000E+07
    19 'Normalizat'    .48112       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0877       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21367.79     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1210 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.2981        .22385E-06** at limit **
   2  Prefactor     .32196E-08    1.4388       -.20748E-07** at limit **
   3  Prefactor     .88818E-09    2.4019        .22824E-06** at limit **
   4  Prefactor     .33640E-07    19.278        .12509E-05** at limit **
   5  Prefactor     .12768E-08    2.7753        .18214E-06** at limit **
   6  Prefactor     .24242E-06    4.8661        .42976E-06** at limit **
   7  Prefactor     4.3344        3.0005        .11744E-06    .83322E-03
   8  Prefactor     2.9563        3.2002        .73329E-07   -.12296E-02
   9  Prefactor     .55610        .75944        .37774E-06   -.95499E-02
  10  Prefactor     37.033        1.9636       -.55891E-07    .22465    
  11  Prefactor     .33584E-06    4.5938        .36929E-06** at limit **
  12  norm          .22832        .65762       -.63374E-07** at limit **
  13  norm          .11657E-08    5.7483       -.15266E-06** at limit **
  14  Prefactor     .27756E-09    1.5753       -.17898E-07** at limit **
  15  Prefactor     18.495        6.4518        .28304E-07    .13926E-01
  16  Prefactor     28.667        1.6212        .79600E-08   -.27836E-01
  17  Prefactor     .68849        .59820        .94663E-08   -.69844E-02
  18  Prefactor     8.4920        5.6223        .14528E-07    .24071E-02
  19  Normalizat    .48035        .13289       -.44955E-06   -.33337E-04
  20  Prefactor     1.0879        .70343E-01    .29361E-06   -.27102E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.21965e-09
  Prefactor  = 8.88178e-10
  Prefactor  = 3.36398e-08
  Prefactor  = 1.27676e-09
  Prefactor  = 2.42417e-07
  Prefactor  = 4.33437
  Prefactor  = 2.95626
  Prefactor  = 0.556101
  Prefactor  = 37.0333
  Prefactor  = 3.35842e-07
  norm       = 0.228318
  norm       = 1.16573e-09
  Prefactor  = 2.77556e-10
  Prefactor  = 18.4947
  Prefactor  = 28.6668
  Prefactor  = 0.688485
  Prefactor  = 8.49196
  Normalizat = 0.480346
  Prefactor  = 1.08788
 **********
 **   18 **HESSE 
 **********

 FCN=   21367.79     FROM HESSE     STATUS=OK           331 CALLS     1541 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.2947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .32196E-08    2.6714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .88818E-09    2.4507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33640E-07    19.325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12768E-08    2.9360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .24242E-06    9.4934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3344        2.9957        .48350E-03   -1.5666    
   8  Prefactor     2.9563        3.2438        .59192E-03   -1.5674    
   9  Prefactor     .55610        .78514        .73040E-03   -1.5693    
  10  Prefactor     37.033        17.350        .16530E-03   -1.5586    
  11  Prefactor     .33584E-06    9.3273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .22832        .67498        .11305E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11657E-08    5.7473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .27756E-09    2.8370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.495        6.7587        .23266E-03   -1.5622    
  16  Prefactor     28.667        11.084        .18693E-03   -1.5601    
  17  Prefactor     .68849        12.021        .60644E-03   -1.5691    
  18  Prefactor     8.4920        5.6545        .34380E-03   -1.5650    
  19  Normalizat    .48035        .12573        .94905E-01   -1.1334    
  20  Prefactor     1.0879        .63921E-01    .38073E-01   -.89855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.112e-06
Minuit parameter uncertainties:
  1  3.56718e-06
  2  0.000185721
  3  9.35693e-05
  4  0.00161298
  5  0.000121444
  6  0.00303415
  7  2.9957
  8  3.24377
  9  0.785144
  10  17.3502
  11  0.0035398
  12  0.674979
  13  0.000162718
  14  5.65415e-05
  15  6.75875
  16  11.0838
  17  5.75367
  18  5.65454
  19  0.125809
  20  0.0639251
Done.

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

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.703e+01  1.735e+01  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.877e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.088e+00  6.393e-02  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  4.803e-01  1.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 324.062 0.549
Photon Index (Fixed Index): 2.88 +/- 0.00
Photon Flux (Fixed Index): 6.14e-08 +/- 2.87e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 6.13e-06

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) = 21367.7240096
delta logL = 0.0647699865331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21367.7177728
delta logL = 0.0710067587752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.434       1.0000          .0000       .10000E+07
     2 'Index     '    2.6828       1.0000          .0000       10.000    
     3 'Normalizat'    .48978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0841       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   21367.72     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      254 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.433        18.024        .64528E-05    .38760E-03
   2  Index         2.6825        .49385        .12504E-01   -.11613E-04
   3  Normalizat    .48983        .13519        .41657E-03    .76416E-04
   4  Prefactor     1.0841        .71017E-01    .15315E-03    .28683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4335
  Index      = 2.68253
  Normalizat = 0.489828
  Prefactor  = 1.08405
 **********
 **   18 **HESSE 
 **********

 FCN=   21367.72     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.433        17.957        .25811E-06   -1.5584    
   2  Index         2.6825        .49177        .50014E-03   -.48193    
   3  Normalizat    .48983        .13532        .16663E-04   -1.1289    
   4  Prefactor     1.0841        .71043E-01    .61260E-05   -.89978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11941e-11
Minuit parameter uncertainties:
  1  17.9574
  2  0.492787
  3  0.135413
  4  0.0710489
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) = 21367.7177725
delta logL = 0.0710070930545

Extracting fit parameters...

4FGL J2136.2+0032
   Spectrum: PowerLaw
295    Prefactor:  3.843e+01  1.796e+01  0.000e+00  1.000e+06 ( 1.000e-12)
296        Index:  2.683e+00  4.928e-01  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  3.302e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.084e+00  7.105e-02  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  4.898e-01  1.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.14
Ra Dec: 324.062 0.549
Photon Index (Free Index): 2.68 +/- 0.49
Photon Flux (Free Index): 5.63e-08 +/- 3.03e-08
Energy Flux (Free Index): 1.37e-05 +/- 6.66e-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/26511001/cmap_HighResolution_799632001_800236801_4FGL_J2136.2+0032_weekly_bin927.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.14e-08', energy_flux2='1.37e-05', photon_flux_error='2.87e-08', dlogl='7.10e-02', energy_flux='1.31e-05', photon_flux2='5.63e-08', job_status='DONE', time_completed='2026-05-12 03:08:35.881799', photon_index_error2='0.49', photon_index2='2.68', ts='7.05', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='6.66e-06', EG='0.48', time_epoch_completed='1778580515.88', return_code='0', job_id='26511001', GAL2='1.08', EG2='0.49', return_code2='0', energy_flux_error='6.13e-06', photon_flux_error2='3.03e-08', ts2='7.14', photon_index='2.88' WHERE bin_id='927' AND source_name='4FGL J2136.2+0032' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 12 03:08:36 PDT 2026

