/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_J1419.5+3821_weekly_bin906
RA = 214.894, Dec = 38.3657
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='17379368', job_status='RUN', time_executed='2025-12-16 02:36:21.162006', time_epoch_executed='1765881381.16' WHERE source_name='4FGL J1419.5+3821' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379368

Creating custom pfile directory:
/lscratch/kocevski/17379368/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/17379368/ft1_4FGL_J1419.5+3821_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/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379368/ft1_4FGL_J1419.5+3821_weekly_bin906.fits outfile=/lscratch/kocevski/17379368/ft1_filteredMKT_4FGL_J1419.5+3821_weekly_bin906.fits ra=214.894 dec=38.3657 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.43
user 4.65
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_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/17379368/ft1_filteredMKT_4FGL_J1419.5+3821_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_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.79
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1516

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379368/ltcube_786931201_787536001_4FGL_J1419.5+3821_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/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits
.....................!
real 17.24
user 16.34
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379368/ltcube_786931201_787536001_4FGL_J1419.5+3821_weekly_bin906.fits outfile=/lscratch/kocevski/17379368/expmap_786931201_787536001_4FGL_J1419.5+3821_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/17379368/ltcube_786931201_787536001_4FGL_J1419.5+3821_weekly_bin906.fits
.....................!
real 63.86
user 59.38
sys 3.73

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

Setting source of interest to:
4FGL J1419.5+3821 @ 214.894 38.3657

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits scfile=/lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits outfile=/lscratch/kocevski/17379368/cmap_786931201_787536001_4FGL_J1419.5+3821_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=214.894 yref=38.3657 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.78
user 0.21
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits scfile=/lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits outfile=/lscratch/kocevski/17379368/cmap_HighResolution_786931201_787536001_4FGL_J1419.5+3821_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=214.894 yref=38.3657 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.86
user 0.23
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379368/Model_4FGL_J1419.5+3821_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/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits.....................!
real 39.06
user 37.73
sys 0.64

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits', '/lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits', expMap='/lscratch/kocevski/17379368/expmap_786931201_787536001_4FGL_J1419.5+3821_weekly_bin906.fits', expCube='/lscratch/kocevski/17379368/ltcube_786931201_787536001_4FGL_J1419.5+3821_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379368/Model_4FGL_J1419.5+3821_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.5+3821'

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  4.993e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17379368/ft1_filtered_4FGL_J1419.5+3821_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379368/ft2_4FGL_J1419.5+3821_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379368/expmap_786931201_787536001_4FGL_J1419.5+3821_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379368/ltcube_786931201_787536001_4FGL_J1419.5+3821_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379368/Model_4FGL_J1419.5+3821_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) = 16357.4290388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8540       1.0000          .0000       .10000E+07
     2 'norm      '    2.4804       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.0763       1.0000          .0000       .10000E+07
     4 'norm      '    5.9380       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18856E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .74107       1.0000          .0000       .10000E+07
     7 'Prefactor '    .60997E-03   1.0000          .0000       .10000E+07
     8 'norm      '    1.1895       1.0000          .0000       .10000E+07
     9 'Prefactor '    17.779       1.0000          .0000       .10000E+07
    10 'Prefactor '    .29711E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    44.330       1.0000          .0000       .10000E+07
    12 'norm      '    .33070E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .59550       1.0000          .0000       .10000E+07
    14 'Prefactor '    58.664       1.0000          .0000       .10000E+07
    15 'norm      '    .93400E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.6971       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.0227       1.0000          .0000       .10000E+07
    18 'norm      '    .59397E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .52714E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.4204       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1656       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16357.37     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1808 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8596        1.4874       -.95511E-07   -.24751E-03
   2  norm          2.4810        .92421       -.34811E-07   -.12477E-03
   3  Prefactor     2.0781        2.2847       -.83474E-07   -.36924E-03
   4  norm          5.9082        6.4579        .53150E-07    .28206E-03
   5  Prefactor     .17741E-06    10.482        .36625E-06** at limit **
   6  Prefactor     .73915        1.6297        .23548E-07    .28624E-03
   7  Prefactor     .79431E-06    10.962       -.22021E-05** at limit **
   8  norm          1.1902        2.3229       -.15480E-06    .27484E-03
   9  Prefactor     17.790        8.6573       -.39772E-07    .13887E-03
  10  Prefactor      .0000        4.2664       -.16019E-05** at limit **
  11  Prefactor     44.356        4.6647        .12137E-07   -.17215E-02
  12  norm          .22204E-08    8.6539        .19145E-06** at limit **
  13  norm          .58478        2.1739        .39303E-06    .50917E-04
  14  Prefactor     59.195        15.978       -.10393E-06    .16995    
  15  norm           .0000        2.4127       -.47452E-07** at limit **
  16  Prefactor     5.6298        6.4469       -.41159E-06   -.11356E-02
  17  Prefactor     3.0257        2.6469       -.19302E-07    .74754E-03
  18  norm           .0000        1.0213       -.21735E-06** at limit **
  19  Prefactor     .59358E-06    15.322       -.13424E-05** at limit **
  20  Prefactor     5.8484        51.647        .20524E-05   -.18062E-01
  21  Normalizat    1.1652        .12976       -.55259E-06    .64348E-04
  22  Prefactor     .80631        .14490        .42665E-05    .37961E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.85957
  norm       = 2.48103
  Prefactor  = 2.07807
  norm       = 5.90823
  Prefactor  = 1.77414e-07
  Prefactor  = 0.739153
  Prefactor  = 7.94309e-07
  norm       = 1.19015
  Prefactor  = 17.79
  Prefactor  = 0
  Prefactor  = 44.3561
  norm       = 2.22045e-09
  norm       = 0.584781
  Prefactor  = 59.1948
  norm       = 0
  Prefactor  = 5.6298
  Prefactor  = 3.02565
  norm       = 0
  Prefactor  = 5.93581e-07
  Prefactor  = 5.84843
  Normalizat = 1.16524
  Prefactor  = 0.80631
 **********
 **   18 **HESSE 
 **********

 FCN=   16357.37     FROM HESSE     STATUS=OK           400 CALLS     2208 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8596        16.900        .35755E-03   -1.5652    
   2  norm          2.4810        .92686        .64887E-03   -1.5676    
   3  Prefactor     2.0781        2.2967        .71650E-03   -1.5679    
   4  norm          5.9082        6.4594        .41185E-03   -1.5659    
   5  Prefactor     .17741E-06    10.839        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .73915        1.6430        .57435E-03   -1.5691    
   7  Prefactor     .79431E-06    12.488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1902        2.3535        .10444E-02   -1.5686    
   9  Prefactor     17.790        8.6776        .23726E-03   -1.5624    
  10  Prefactor      .0000        4.2685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     44.356        4.6735        .15021E-03   -1.5575    
  12  norm          .22204E-08    8.6397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .58478        2.1886        .69632E-03   -1.5693    
  14  Prefactor     59.195        25.750        .13057E-03   -1.5554    
  15  norm           .0000        2.4148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6298        6.4740        .42060E-03   -1.5661    
  17  Prefactor     3.0257        2.6719        .58345E-03   -1.5673    
  18  norm           .0000        .33677        .25093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .59358E-06    16.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8484        61.119        .43138E-03   -1.5660    
  21  Normalizat    1.1652        .10748        .51404E-01   -.87684    
  22  Prefactor     .80631        .12083        .69341E-01   -.99496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50698e-06
Minuit parameter uncertainties:
  1  16.9002
  2  0.926856
  3  2.2967
  4  6.45944
  5  0.0027734
  6  1.64299
  7  0.00629885
  8  2.35351
  9  8.67756
  10  1.7486e-05
  11  4.67351
  12  0.000276081
  13  2.18863
  14  25.7504
  15  2.64478e-06
  16  6.47396
  17  2.67189
  18  1.46213e-06
  19  0.00621267
  20  37.8132
  21  0.107504
  22  0.120872
Done.

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

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.779e+01  8.678e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.063e-01  1.209e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.165e+00  1.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.74
Ra Dec: 214.894 38.366
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.44e-08 +/- 2.16e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 6.49e-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) = 16357.3654419
delta logL = 0.00607967160067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16357.3613483
delta logL = 0.0101733316533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.756       1.0000          .0000       .10000E+07
     2 'Index     '    2.4093       1.0000          .0000       10.000    
     3 'Normalizat'    1.1684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80391       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   16357.36     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      270 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.755        11.852        .92395E-05    .15011E-02
   2  Index         2.4092        .46536        .82029E-02    .78200E-04
   3  Normalizat    1.1685        .12830        .22701E-03    .22476E-03
   4  Prefactor     .80382        .14496        .30724E-03    .41606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7552
  Index      = 2.4092
  Normalizat = 1.16845
  Prefactor  = 0.803822
 **********
 **   18 **HESSE 
 **********

 FCN=   16357.36     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.755        11.199        .36958E-06   -1.5621    
   2  Index         2.4092        .43929        .32811E-03   -.54470    
   3  Normalizat    1.1685        .12823        .90804E-05   -.87583    
   4  Prefactor     .80382        .14496        .12289E-04   -.99588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32394e-10
Minuit parameter uncertainties:
  1  11.1995
  2  0.440061
  3  0.128261
  4  0.145029
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) = 16357.3613481
delta logL = 0.010173542576

Extracting fit parameters...

4FGL J1419.5+3821
   Spectrum: PowerLaw
285    Prefactor:  1.876e+01  1.120e+01  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.409e+00  4.401e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.038e-01  1.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  1.168e+00  1.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.73
Ra Dec: 214.894 38.366
Photon Index (Free Index): 2.41 +/- 0.44
Photon Flux (Free Index): 4.21e-08 +/- 2.64e-08
Energy Flux (Free Index): 1.36e-05 +/- 7.07e-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/17379368/cmap_HighResolution_786931201_787536001_4FGL_J1419.5+3821_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.44e-08', energy_flux2='1.36e-05', photon_flux_error='2.16e-08', dlogl='1.02e-02', energy_flux='1.33e-05', photon_flux2='4.21e-08', job_status='DONE', time_completed='2025-12-16 02:48:10.546747', photon_index_error2='0.44', photon_index2='2.41', ts='8.74', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='7.07e-06', EG='1.17', time_epoch_completed='1765882090.55', return_code='0', job_id='17379368', GAL2='0.80', EG2='1.17', return_code2='0', energy_flux_error='6.49e-06', photon_flux_error2='2.64e-08', ts2='8.73', photon_index='2.47' WHERE bin_id='906' AND source_name='4FGL J1419.5+3821' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:48:10 PST 2025

