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


Performing analysis on: 4FGL_J1216.2+0537_weekly_bin906
RA = 184.061, Dec = 5.6248
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='17378884', job_status='RUN', time_executed='2025-12-16 02:25:25.168545', time_epoch_executed='1765880725.17' WHERE source_name='4FGL J1216.2+0537' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378884

Creating custom pfile directory:
/lscratch/kocevski/17378884/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/17378884/ft1_4FGL_J1216.2+0537_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/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378884/ft1_4FGL_J1216.2+0537_weekly_bin906.fits outfile=/lscratch/kocevski/17378884/ft1_filteredMKT_4FGL_J1216.2+0537_weekly_bin906.fits ra=184.061 dec=5.6248 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.52
user 4.66
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_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/17378884/ft1_filteredMKT_4FGL_J1216.2+0537_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_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.97
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1728

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378884/ltcube_786931201_787536001_4FGL_J1216.2+0537_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/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits
.....................!
real 17.97
user 17.16
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378884/ltcube_786931201_787536001_4FGL_J1216.2+0537_weekly_bin906.fits outfile=/lscratch/kocevski/17378884/expmap_786931201_787536001_4FGL_J1216.2+0537_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/17378884/ltcube_786931201_787536001_4FGL_J1216.2+0537_weekly_bin906.fits
.....................!
real 64.84
user 60.41
sys 3.61

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

Setting source of interest to:
4FGL J1216.2+0537 @ 184.061 5.6248

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits scfile=/lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits outfile=/lscratch/kocevski/17378884/cmap_786931201_787536001_4FGL_J1216.2+0537_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=184.061 yref=5.6248 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.98
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits scfile=/lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits outfile=/lscratch/kocevski/17378884/cmap_HighResolution_786931201_787536001_4FGL_J1216.2+0537_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=184.061 yref=5.6248 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.90
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378884/Model_4FGL_J1216.2+0537_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/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits.....................!
real 55.11
user 53.22
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits', '/lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits', expMap='/lscratch/kocevski/17378884/expmap_786931201_787536001_4FGL_J1216.2+0537_weekly_bin906.fits', expCube='/lscratch/kocevski/17378884/ltcube_786931201_787536001_4FGL_J1216.2+0537_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378884/Model_4FGL_J1216.2+0537_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1216.2+0537'

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  1.062e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378884/ft1_filtered_4FGL_J1216.2+0537_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378884/ft2_4FGL_J1216.2+0537_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378884/expmap_786931201_787536001_4FGL_J1216.2+0537_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378884/ltcube_786931201_787536001_4FGL_J1216.2+0537_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378884/Model_4FGL_J1216.2+0537_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) = 18794.2660378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9688       1.0000          .0000       .10000E+07
     2 'Prefactor '    .35767E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55941E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .30749E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .58974E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.974       1.0000          .0000       .10000E+07
     7 'Prefactor '    31.110       1.0000          .0000       .10000E+07
     8 'Prefactor '    .19302E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    19.465       1.0000          .0000       .10000E+07
    10 'Prefactor '    .30249E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11953E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.0216       1.0000          .0000       .10000E+07
    13 'norm      '    .48272E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .36082E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    .14366E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .58231E-07   1.0000          .0000       .10000E+07
    17 'norm      '    3.2924       1.0000          .0000       .10000E+07
    18 'Prefactor '    5.9133       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.2617       1.0000          .0000       .10000E+07
    20 'norm      '    .94058       1.0000          .0000       .10000E+07
    21 'Prefactor '    .24181E-03   1.0000          .0000       .10000E+07
    22 'norm      '    7.7318       1.0000          .0000       .10000E+07
    23 'Prefactor '    .20016E-04   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1067       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18794.20     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     1711 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9709        1.7052        .72675E-08   -.60626E-04
   2  Prefactor      .0000        13.266        .12267E-06** at limit **
   3  Prefactor      .0000        1.9390       -.65491E-07** at limit **
   4  Prefactor      .0000        2.1580       -.94642E-08** at limit **
   5  Prefactor      .0000        2.3831       -.48648E-07** at limit **
   6  Prefactor     12.982        8.6738        .45981E-08    .10232E-02
   7  Prefactor     33.483        34.369        .84447E-07    .14737E-04
   8  Prefactor      .0000        16.181        .62448E-07** at limit **
   9  Prefactor     19.545        2.0073        .22299E-08   -.68422E-02
  10  Prefactor      .0000        1.8926        .66438E-08** at limit **
  11  Prefactor      .0000        35.887       -.50088E-07** at limit **
  12  Prefactor     8.0714        5.0280        .55215E-09    .30825E-03
  13  norm           .0000        .91219        .13693E-07** at limit **
  14  norm           .0000        .93011        .12207E-07** at limit **
  15  Prefactor      .0000        3.4934       -.16841E-06** at limit **
  16  norm           .0000        5.8468       -.43549E-07** at limit **
  17  norm          3.2925        .41329        .15824E-08   -.50510E-03
  18  Prefactor     5.9127        4.9629       -.36423E-07   -.14102E-04
  19  Prefactor     5.2711        4.7513        .10267E-07   -.19678E-04
  20  norm          .94147        .68352       -.42673E-08    .19867E-03
  21  Prefactor      .0000        4.8301       -.81940E-07** at limit **
  22  norm          7.7529        1.0532        .10685E-08    .49774E-03
  23  Prefactor      .0000        6.1780       -.56616E-07** at limit **
  24  Normalizat    1.1058        .13484        .46926E-06   -.31577E-05
  25  Prefactor     .98900        .11334       -.18833E-06   -.13254E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97087
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 12.9819
  Prefactor  = 33.483
  Prefactor  = 0
  Prefactor  = 19.5449
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.07139
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 3.2925
  Prefactor  = 5.91265
  Prefactor  = 5.27107
  norm       = 0.941474
  Prefactor  = 0
  norm       = 7.75288
  Prefactor  = 0
  Normalizat = 1.10576
  Prefactor  = 0.989001
 **********
 **   18 **HESSE 
 **********

 FCN=   18794.20     FROM HESSE     STATUS=OK           477 CALLS     2188 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9709        1.7075        .58904E-03   -1.5673    
   2  Prefactor      .0000        13.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.9361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.1525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        2.3803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.982        8.8664        .27784E-03   -1.5636    
   7  Prefactor     33.483        34.328        .17931E-03   -1.5592    
   8  Prefactor      .0000        16.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.545        10.610        .22674E-03   -1.5620    
  10  Prefactor      .0000        1.8531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        35.509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.0714        5.1007        .35377E-03   -1.5651    
  13  norm           .0000        .87976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .92184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        3.4951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        5.8651        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2925        .41250        .55774E-03   -1.5672    
  18  Prefactor     5.9127        4.9652        .41272E-03   -1.5659    
  19  Prefactor     5.2711        4.7562        .43795E-03   -1.5662    
  20  norm          .94147        .68682        .42994E-03   -1.5689    
  21  Prefactor      .0000        4.6599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.7529        12.015        .36039E-03   -1.5652    
  23  Prefactor      .0000        6.1627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1058        .11477        .62078E-01   -.89567    
  25  Prefactor     .98900        .96642E-01    .46128E-01   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.8177e-08
Minuit parameter uncertainties:
  1  1.7075
  2  3.11968e-06
  3  6.52724e-07
  4  3.39023e-07
  5  4.01491e-07
  6  8.86641
  7  34.3284
  8  2.96576e-06
  9  10.6105
  10  4.81151e-07
  11  1.97027e-06
  12  5.10071
  13  1.11571e-07
  14  1.71462e-07
  15  2.07057e-06
  16  7.93609e-06
  17  0.412502
  18  4.96525
  19  4.75622
  20  0.686816
  21  1.75465e-06
  22  12.015
  23  8.48519e-06
  24  0.114796
  25  0.0966591
Done.

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

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  0.000e+00  1.970e-06  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  2.020e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.890e-01  9.666e-02  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.106e+00  1.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 184.061 5.625
Photon Flux Upper Limit: 3.0446534912e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00228723932055 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378884/likelihoodResults_786931201_787536001_4FGL_J1216.2+0537_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) = 18794.2125274
delta logL = -0.0163982376034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 18794.1961356
delta logL = -6.51818118058e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43391E-03   1.0000          .0000       .10000E+07
     2 'Index     '    1.9919       1.0000          .0000       10.000    
     3 'Normalizat'    1.1058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18794.20     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      210 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        33.612        .42118E-03** at limit **
   2  Index         2.3737        1.0870        .45519E-05     .0000    
   3  Normalizat    1.1058        1.1513       -.24862E-05    .31936E-04
   4  Prefactor     .98900        1.3288        .14169E-05   -.22609E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.37367
  Normalizat = 1.10576
  Prefactor  = 0.989001
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   18794.20     FROM HESSE     STATUS=FAILED         9 CALLS      219 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        33.612        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .63084        1.8300        .45519E-05   -.55303    
   3  Normalizat    1.1058        1.1513       -.24862E-05   -.89567    
   4  Prefactor     .98900        1.3288        .14169E-05   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.25183e-12
Minuit parameter uncertainties:
  1  1.35436e-05
  2  1.09922
  3  1.17914
  4  1.3771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 18794.1961291
delta logL = 0.0

Extracting fit parameters...

4FGL J1216.2+0537
   Spectrum: PowerLaw
320    Prefactor:  0.000e+00  1.354e-05  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  2.374e+00  1.099e+00  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.130e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  9.890e-01  1.377e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.106e+00  1.179e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 184.061 5.625

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/17378884/cmap_HighResolution_786931201_787536001_4FGL_J1216.2+0537_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.29e-03', job_status='DONE', photon_flux_upper_limit='3.04e-08', time_completed='2025-12-16 02:38:57.860597', job_id='17378884', GAL2='0.99', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1765881537.86', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='906' AND source_name='4FGL J1216.2+0537' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:38:58 PST 2025

