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


Performing analysis on: 4FGL_J1032.6+3737_weekly_bin906
RA = 158.173, Dec = 37.6234
tmin = 786931201, tmax = 787536001
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='17378019', job_status='RUN', time_executed='2025-12-16 02:05:42.830325', time_epoch_executed='1765879542.83' WHERE source_name='4FGL J1032.6+3737' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378019

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17378019/ft1_4FGL_J1032.6+3737_weekly_bin906.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378019/ft1_4FGL_J1032.6+3737_weekly_bin906.fits outfile=/lscratch/kocevski/17378019/ft1_filteredMKT_4FGL_J1032.6+3737_weekly_bin906.fits ra=158.173 dec=37.6234 rad=12.0 tmin=786931201.0 tmax=787536001.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.60
user 4.52
sys 0.36

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.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/17378019/ft1_filteredMKT_4FGL_J1032.6+3737_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.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.85
user 0.19
sys 0.15

Number of photons that the gtmktime cut: 1325

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378019/ltcube_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.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/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits
.....................!
real 16.48
user 15.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378019/ltcube_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.fits outfile=/lscratch/kocevski/17378019/expmap_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.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/17378019/ltcube_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.fits
.....................!
real 61.61
user 57.23
sys 3.70

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

Setting source of interest to:
4FGL J1032.6+3737 @ 158.173 37.6234

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits scfile=/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits outfile=/lscratch/kocevski/17378019/cmap_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.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=158.173 yref=37.6234 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.95
user 0.21
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits scfile=/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits outfile=/lscratch/kocevski/17378019/cmap_HighResolution_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.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=158.173 yref=37.6234 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.01
user 0.22
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378019/Model_4FGL_J1032.6+3737_weekly_bin906.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/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits.....................!
real 40.82
user 38.76
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits', '/lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits', expMap='/lscratch/kocevski/17378019/expmap_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.fits', expCube='/lscratch/kocevski/17378019/ltcube_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378019/Model_4FGL_J1032.6+3737_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1032.6+3737'

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  7.905e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378019/ft1_filtered_4FGL_J1032.6+3737_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378019/ft2_4FGL_J1032.6+3737_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378019/expmap_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378019/ltcube_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378019/Model_4FGL_J1032.6+3737_weekly_bin906.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) = 14776.3053525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9150       1.0000          .0000       .10000E+07
     2 'Prefactor '    4.3169       1.0000          .0000       .10000E+07
     3 'Prefactor '    43.771       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.9281       1.0000          .0000       .10000E+07
     5 'norm      '    8.2334       1.0000          .0000       .10000E+07
     6 'Prefactor '    .94924E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19382E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.9388       1.0000          .0000       .10000E+07
     9 'norm      '    1.4764       1.0000          .0000       .10000E+07
    10 'Prefactor '    .82032E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.791       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.3543       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.434       1.0000          .0000       .10000E+07
    14 'Prefactor '    .47480E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.5329       1.0000          .0000       .10000E+07
    16 'norm      '    1.1408       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.2365       1.0000          .0000       .10000E+07
    18 'Prefactor '    25.470       1.0000          .0000       .10000E+07
    19 'Prefactor '    .92861E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .58638E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    1.5571       1.0000          .0000       .10000E+07
    22 'Prefactor '    21.514       1.0000          .0000       .10000E+07
    23 'norm      '    6.4256       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86631       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14776.26     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     2109 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9237        1.8962        .91941E-08   -.99952E-01
   2  Prefactor     4.1539        15.756       -.78546E-06   -.17332E-01
   3  Prefactor     44.105        25.455        .38649E-06   -.21901E-01
   4  Prefactor     2.9251        2.9737        .51588E-06    .14711E-02
   5  norm          8.2223        8.7191       -.26326E-06    .10693E-01
   6  Prefactor      .0000        .28128        .21123E-07** at limit **
   7  Prefactor      .0000        1.2923       -.39418E-06** at limit **
   8  Prefactor     1.9393        1.9476        .13738E-06   -.50566E-04
   9  norm          1.4339        4.2237       -.13643E-06   -.95412E-03
  10  Prefactor     .11102E-09    10.197        .93785E-06** at limit **
  11  Prefactor     13.799        1.2727        .26036E-07    .21009E-01
  12  Prefactor     1.3499        2.2494        .20453E-06   -.24791E-03
  13  Prefactor     10.367        4.9557        .14964E-06    .24719E-01
  14  Prefactor     .33307E-09    17.857       -.13182E-05** at limit **
  15  Prefactor     2.5346        5.3634        .59416E-08   -.32392E-03
  16  norm          1.1412        .19386        .37430E-07    .29330E-02
  17  Prefactor     3.2437        2.1203        .10743E-06    .22604E-02
  18  Prefactor     25.375        8.1250        .16784E-06   -.44322E-01
  19  Prefactor     .31086E-08    19.240        .25885E-05** at limit **
  20  norm          .55511E-10    2.4619        .84032E-06** at limit **
  21  Prefactor     1.5583        1.6061       -.61005E-07   -.83634E-03
  22  Prefactor     21.414        1.4576        .54872E-07    .16497E-01
  23  norm          6.4317        2.1220       -.89429E-07   -.13865E-02
  24  Normalizat    1.0227        .11918       -.38346E-06    .17470E-04
  25  Prefactor     .86642        .14071       -.45117E-05   -.27512E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92371
  Prefactor  = 4.15394
  Prefactor  = 44.1046
  Prefactor  = 2.92512
  norm       = 8.22229
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.93927
  norm       = 1.43385
  Prefactor  = 1.11022e-10
  Prefactor  = 13.7993
  Prefactor  = 1.3499
  Prefactor  = 10.3674
  Prefactor  = 3.33067e-10
  Prefactor  = 2.53464
  norm       = 1.14118
  Prefactor  = 3.24366
  Prefactor  = 25.3752
  Prefactor  = 3.10862e-09
  norm       = 5.55112e-11
  Prefactor  = 1.55828
  Prefactor  = 21.4141
  norm       = 6.43168
  Normalizat = 1.0227
  Prefactor  = 0.866425
 **********
 **   18 **HESSE 
 **********

 FCN=   14776.26     FROM HESSE     STATUS=OK           487 CALLS     2596 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9237        7.3656        .50965E-03   -1.5668    
   2  Prefactor     4.1539        30.971        .48460E-03   -1.5667    
   3  Prefactor     44.105        27.843        .15116E-03   -1.5575    
   4  Prefactor     2.9251        2.9757        .59339E-03   -1.5674    
   5  norm          8.2223        8.8459        .34915E-03   -1.5651    
   6  Prefactor      .0000        .28066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.2601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9393        1.9632        .74537E-03   -1.5680    
   9  norm          1.4339        4.2799        .88343E-03   -1.5684    
  10  Prefactor     .11102E-09    10.223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.799        16.116        .26946E-03   -1.5634    
  12  Prefactor     1.3499        2.2954        .93912E-03   -1.5685    
  13  Prefactor     10.367        9.4607        .30995E-03   -1.5644    
  14  Prefactor     .33307E-09    17.842        .15642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5346        5.4158        .64150E-03   -1.5676    
  16  norm          1.1412        .19452        .47734E-03   -1.5687    
  17  Prefactor     3.2437        2.1377        .56279E-03   -1.5672    
  18  Prefactor     25.375        9.5801        .19819E-03   -1.5607    
  19  Prefactor     .31086E-08    18.859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    2.4692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5583        1.6800        .85271E-03   -1.5683    
  22  Prefactor     21.414        18.915        .21565E-03   -1.5615    
  23  norm          6.4317        2.1526        .39570E-03   -1.5657    
  24  Normalizat    1.0227        .10403        .42989E-01   -.92274    
  25  Prefactor     .86642        .12086        .65701E-01   -.97324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38042e-06
Minuit parameter uncertainties:
  1  7.36566
  2  22.6852
  3  27.8435
  4  2.97565
  5  8.84593
  6  5.96105e-08
  7  7.41839e-06
  8  1.96323
  9  4.27994
  10  6.41871e-05
  11  16.1165
  12  2.29541
  13  9.46069
  14  0.000156133
  15  5.41582
  16  0.194519
  17  2.13772
  18  9.58015
  19  0.000486375
  20  2.75878e-05
  21  1.68003
  22  18.9148
  23  2.1526
  24  0.104053
  25  0.120901
Done.

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

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.380e+01  1.612e+01  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.076e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  8.664e-01  1.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.023e+00  1.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 158.173 37.623
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.10e-08 +/- 1.28e-08
Energy Flux (Fixed Index): 6.35e-06 +/- 7.42e-06

TS (Fixed Index): 1.03
Ra Dec: 158.173 37.623
Photon Flux Upper Limit: 4.07985171249e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00307889691777 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378019/likelihoodResults_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.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) = 14776.2610243
delta logL = 0.000335839378749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14776.2608109
delta logL = 0.000549281292479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.204       1.0000          .0000       .10000E+07
     2 'Index     '    2.0497       1.0000          .0000       10.000    
     3 'Normalizat'    1.0231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+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=   14776.26     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      287 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.228        23.126        .10620E-04    .37253E-03
   2  Index         2.0514        .80600        .12086E-01    .49110E-04
   3  Normalizat    1.0231        .11648        .22346E-03   -.51634E-03
   4  Prefactor     .86611        .14068        .29067E-03   -.44729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2282
  Index      = 2.05141
  Normalizat = 1.02309
  Prefactor  = 0.866113
 **********
 **   18 **HESSE 
 **********

 FCN=   14776.26     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.228        20.815        .42481E-06   -1.5633    
   2  Index         2.0514        .72644        .48345E-03   -.63071    
   3  Normalizat    1.0231        .11634        .44693E-04   -.92261    
   4  Prefactor     .86611        .14061        .11627E-04   -.97335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39654e-10
Minuit parameter uncertainties:
  1  20.8149
  2  0.730416
  3  0.116373
  4  0.140671
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) = 14776.2607994
delta logL = 0.000560805730856

Extracting fit parameters...

4FGL J1032.6+3737
   Spectrum: PowerLaw
316    Prefactor:  1.423e+01  2.081e+01  0.000e+00  1.000e+06 ( 1.000e-14)
317        Index:  2.051e+00  7.304e-01  0.000e+00  1.000e+01 (-1.000e+00)
318        Scale:  2.586e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  8.661e-01  1.407e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
638   Normalization:  1.023e+00  1.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 158.173 37.623
Photon Index (Free Index): 2.05 +/- 0.73
Photon Flux (Free Index): 1.07e-08 +/- 1.50e-08
Energy Flux (Free Index): 6.54e-06 +/- 9.56e-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/17378019/cmap_HighResolution_786931201_787536001_4FGL_J1032.6+3737_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-03', comment='SUCCESS', photon_flux='1.10e-08', energy_flux2='6.54e-06', photon_flux_error='1.28e-08', dlogl='5.61e-04', energy_flux='6.35e-06', photon_flux2='1.07e-08', job_status='DONE', time_completed='2025-12-16 02:18:10.555461', photon_index_error2='0.73', photon_index2='2.05', ts='1.03', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='4.08e-08', energy_flux_error2='9.56e-06', EG='1.02', time_epoch_completed='1765880290.56', return_code='0', job_id='17378019', GAL2='0.87', EG2='1.02', return_code2='0', energy_flux_error='7.42e-06', photon_flux_error2='1.50e-08', ts2='1.03', photon_index='2.08' WHERE bin_id='906' AND source_name='4FGL J1032.6+3737' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:18:11 PST 2025

