/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_J2022.5+7612_weekly_bin906
RA = 305.646, Dec = 76.2007
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='17380633', job_status='RUN', time_executed='2025-12-16 03:06:54.949205', time_epoch_executed='1765883214.95' WHERE source_name='4FGL J2022.5+7612' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380633

Creating custom pfile directory:
/lscratch/kocevski/17380633/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/17380633/ft1_4FGL_J2022.5+7612_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/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380633/ft1_4FGL_J2022.5+7612_weekly_bin906.fits outfile=/lscratch/kocevski/17380633/ft1_filteredMKT_4FGL_J2022.5+7612_weekly_bin906.fits ra=305.646 dec=76.2007 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.77
user 5.05
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_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/17380633/ft1_filteredMKT_4FGL_J2022.5+7612_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_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.75
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 3863

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380633/ltcube_786931201_787536001_4FGL_J2022.5+7612_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/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits
.....................!
real 18.75
user 17.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380633/ltcube_786931201_787536001_4FGL_J2022.5+7612_weekly_bin906.fits outfile=/lscratch/kocevski/17380633/expmap_786931201_787536001_4FGL_J2022.5+7612_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/17380633/ltcube_786931201_787536001_4FGL_J2022.5+7612_weekly_bin906.fits
.....................!
real 69.27
user 64.29
sys 3.87

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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 206 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2022.5+7612 @ 305.646 76.2007

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits scfile=/lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits outfile=/lscratch/kocevski/17380633/cmap_786931201_787536001_4FGL_J2022.5+7612_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=305.646 yref=76.2007 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.77
user 0.24
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits scfile=/lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits outfile=/lscratch/kocevski/17380633/cmap_HighResolution_786931201_787536001_4FGL_J2022.5+7612_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=305.646 yref=76.2007 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.75
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17380633/Model_4FGL_J2022.5+7612_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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits.....................!
real 193.59
user 190.69
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits', '/lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits', expMap='/lscratch/kocevski/17380633/expmap_786931201_787536001_4FGL_J2022.5+7612_weekly_bin906.fits', expCube='/lscratch/kocevski/17380633/ltcube_786931201_787536001_4FGL_J2022.5+7612_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17380633/Model_4FGL_J2022.5+7612_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2022.5+7612'

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  8.450e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17380633/ft1_filtered_4FGL_J2022.5+7612_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17380633/ft2_4FGL_J2022.5+7612_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17380633/expmap_786931201_787536001_4FGL_J2022.5+7612_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17380633/ltcube_786931201_787536001_4FGL_J2022.5+7612_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17380633/Model_4FGL_J2022.5+7612_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) = 39057.4293299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16764E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.5264       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10217E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.7436       1.0000          .0000       .10000E+07
     5 'norm      '    .29573E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.3433       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.6337       1.0000          .0000       .10000E+07
     8 'norm      '    5.1255       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15897E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16807E-05   1.0000          .0000       .10000E+07
    11 'norm      '    5.2330       1.0000          .0000       .10000E+07
    12 'norm      '    7.2215       1.0000          .0000       .10000E+07
    13 'norm      '    3.3092       1.0000          .0000       .10000E+07
    14 'norm      '    14.427       1.0000          .0000       .10000E+07
    15 'Prefactor '    .84293       1.0000          .0000       .10000E+07
    16 'norm      '    1.8910       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.037       1.0000          .0000       .10000E+07
    18 'norm      '    4.3808       1.0000          .0000       .10000E+07
    19 'Prefactor '    .31272E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10118E-04   1.0000          .0000       .10000E+07
    21 'norm      '    3.0753       1.0000          .0000       .10000E+07
    22 'Prefactor '    .10620E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0652       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   39057.38     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1605 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64877        .17736E-07** at limit **
   2  Prefactor     3.4833        2.3426       -.11086E-06   -.30292E-01
   3  Prefactor     .37748E-08    10.755        .31066E-06** at limit **
   4  norm          2.7434        .53484        .86235E-08    .51721E-02
   5  norm          .89363E-01    6.7929        .16172E-06** at limit **
   6  Prefactor     7.2918        4.9765       -.29412E-07   -.20068E-02
   7  Prefactor     1.6274        10.392       -.75573E-07   -.95977E-03
   8  norm          5.1273        2.1673       -.13687E-07   -.17433E-02
   9  Prefactor     .57732E-08    7.1152        .89947E-07** at limit **
  10  Prefactor     .16653E-09    1.4604       -.12543E-07** at limit **
  11  norm          5.2480        1.2437       -.17963E-07   -.96047E-02
  12  norm          7.2205        1.1029        .37625E-08   -.60410E-01
  13  norm          3.3083        1.6890       -.34873E-07   -.47365E-02
  14  norm          14.462        4.6208        .25524E-06    .41744E-01
  15  Prefactor     .24172        242.26       -.67111E-05** at limit **
  16  norm          1.8912        1.6619        .38809E-07    .16988E-02
  17  Prefactor     20.043        8.3621        .39051E-08    .75339E-02
  18  norm          4.4143        3.7185       -.12089E-09   -.21077E-03
  19  Prefactor     .44009E-06    5.5116        .89902E-07** at limit **
  20  Prefactor     .16653E-08    15.967       -.23143E-06** at limit **
  21  norm          3.0785        1.1292       -.20006E-08    .29006E-01
  22  Prefactor     .44409E-09    2.9117        .71708E-07** at limit **
  23  Normalizat    1.0656        .12346        .48233E-06   -.10938E-03
  24  Prefactor     .98844        .32664E-01   -.31962E-06   -.33779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.4833
  Prefactor  = 3.77476e-09
  norm       = 2.74339
  norm       = 0.0893629
  Prefactor  = 7.29178
  Prefactor  = 1.62738
  norm       = 5.12734
  Prefactor  = 5.77316e-09
  Prefactor  = 1.66533e-10
  norm       = 5.24799
  norm       = 7.22052
  norm       = 3.30828
  norm       = 14.4622
  Prefactor  = 0.241717
  norm       = 1.89117
  Prefactor  = 20.0433
  norm       = 4.41428
  Prefactor  = 4.40092e-07
  Prefactor  = 1.66533e-09
  norm       = 3.07855
  Prefactor  = 4.44089e-10
  Normalizat = 1.06563
  Prefactor  = 0.988436
 **********
 **   18 **HESSE 
 **********

 FCN=   39057.38     FROM HESSE     STATUS=OK           475 CALLS     2080 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.4833        14.554        .53807E-03   -1.5671    
   3  Prefactor     .37748E-08    10.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7434        .54405        .61438E-03   -1.5675    
   5  norm          .89363E-01    .85163        .63671E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2918        5.1011        .36989E-03   -1.5654    
   7  Prefactor     1.6274        10.774        .82683E-03   -1.5682    
   8  norm          5.1273        2.1968        .44384E-03   -1.5663    
   9  Prefactor     .57732E-08    7.2142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    1.4560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2480        1.3123        .43917E-03   -1.5662    
  12  norm          7.2205        8.6717        .37302E-03   -1.5654    
  13  norm          3.3083        1.6977        .55626E-03   -1.5672    
  14  norm          14.462        15.868        .26344E-03   -1.5632    
  15  Prefactor     .24172        11.506        .98528E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8912        1.6773        .75636E-03   -1.5680    
  17  Prefactor     20.043        8.4624        .22347E-03   -1.5618    
  18  norm          4.4143        3.7199        .48096E-03   -1.5666    
  19  Prefactor     .44009E-06    .74060        .61686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16653E-08    16.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0785        11.112        .57815E-03   -1.5673    
  22  Prefactor     .44409E-09    2.9112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0656        .11987        .10832       -.90863    
  24  Prefactor     .98844        .31285E-01    .31283E-01   -.93116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54429e-07
Minuit parameter uncertainties:
  1  8.04156e-06
  2  14.2404
  3  0.000405721
  4  0.544047
  5  0.551739
  6  5.10108
  7  8.37448
  8  2.1968
  9  0.000408775
  10  2.91988e-05
  11  1.31227
  12  8.67167
  13  1.69773
  14  15.8676
  15  3.3354
  16  1.67731
  17  8.46236
  18  3.71989
  19  0.00114181
  20  0.000330239
  21  11.1121
  22  6.98075e-05
  23  0.119902
  24  0.0312859
Done.

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

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  2.004e+01  8.462e+00  0.000e+00  1.000e+06 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  9.884e-01  3.129e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  1.066e+00  1.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.45
Ra Dec: 305.646 76.201
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 5.63e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 9.47e-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) = 39056.9864768
delta logL = 0.392365620399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 39056.9816136
delta logL = 0.397228785019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.817       1.0000          .0000       .10000E+07
     2 'Index     '    2.5558       1.0000          .0000       10.000    
     3 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98946       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+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=   39056.98     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      301 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.817        10.316        .10397E-04    .12115E-01
   2  Index         2.5558        .38880        .75822E-02    .18467E-03
   3  Normalizat    1.0534        .11638        .48259E-03   -.10177E-04
   4  Prefactor     .98946        .32251E-01    .13817E-03    .13165E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8174
  Index      = 2.5558
  Normalizat = 1.05335
  Prefactor  = 0.989458
 **********
 **   18 **HESSE 
 **********

 FCN=   39056.98     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.817        8.9069        .41590E-06   -1.5631    
   2  Index         2.5558        .33559        .30329E-03   -.51076    
   3  Normalizat    1.0534        .11624        .19304E-04   -.91264    
   4  Prefactor     .98946        .32241E-01    .55266E-05   -.93082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16481e-10
Minuit parameter uncertainties:
  1  8.90696
  2  0.33592
  3  0.11627
  4  0.0322416
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) = 39056.9816136
delta logL = 0.397228790025

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.482e+01  8.907e+00  0.000e+00  1.000e+06 ( 1.000e-13)
472        Index:  2.556e+00  3.359e-01  0.000e+00  1.000e+01 (-1.000e+00)
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  9.895e-01  3.224e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  1.053e+00  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.28
Ra Dec: 305.646 76.201
Photon Index (Free Index): 2.56 +/- 0.34
Photon Flux (Free Index): 7.15e-08 +/- 3.11e-08
Energy Flux (Free Index): 1.96e-05 +/- 8.10e-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/17380633/cmap_HighResolution_786931201_787536001_4FGL_J2022.5+7612_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.63e-08', energy_flux2='1.96e-05', photon_flux_error='2.38e-08', dlogl='3.97e-01', energy_flux='2.24e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2025-12-16 03:28:26.104594', photon_index_error2='0.34', photon_index2='2.56', ts='9.45', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='8.10e-06', EG='1.07', time_epoch_completed='1765884506.1', return_code='0', job_id='17380633', GAL2='0.99', EG2='1.05', return_code2='0', energy_flux_error='9.47e-06', photon_flux_error2='3.11e-08', ts2='10.28', photon_index='2.27' WHERE bin_id='906' AND source_name='4FGL J2022.5+7612' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:28:26 PST 2025

