/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_J1522.1+3144_weekly_bin906
RA = 230.545, Dec = 31.7395
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='17379761', job_status='RUN', time_executed='2025-12-16 02:45:50.118663', time_epoch_executed='1765881950.12' WHERE source_name='4FGL J1522.1+3144' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17379761

Creating custom pfile directory:
/lscratch/kocevski/17379761/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/17379761/ft1_4FGL_J1522.1+3144_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/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17379761/ft1_4FGL_J1522.1+3144_weekly_bin906.fits outfile=/lscratch/kocevski/17379761/ft1_filteredMKT_4FGL_J1522.1+3144_weekly_bin906.fits ra=230.545 dec=31.7395 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 6.35
user 5.21
sys 0.42

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_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/17379761/ft1_filteredMKT_4FGL_J1522.1+3144_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_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.98
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 1443

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17379761/ltcube_786931201_787536001_4FGL_J1522.1+3144_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/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits
.....................!
real 20.15
user 19.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17379761/ltcube_786931201_787536001_4FGL_J1522.1+3144_weekly_bin906.fits outfile=/lscratch/kocevski/17379761/expmap_786931201_787536001_4FGL_J1522.1+3144_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/17379761/ltcube_786931201_787536001_4FGL_J1522.1+3144_weekly_bin906.fits
.....................!
real 70.67
user 65.64
sys 4.06

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 J1522.1+3144 @ 230.545 31.7395

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits scfile=/lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits outfile=/lscratch/kocevski/17379761/cmap_786931201_787536001_4FGL_J1522.1+3144_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=230.545 yref=31.7395 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.04
user 0.25
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits scfile=/lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits outfile=/lscratch/kocevski/17379761/cmap_HighResolution_786931201_787536001_4FGL_J1522.1+3144_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=230.545 yref=31.7395 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.07
user 0.25
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17379761/Model_4FGL_J1522.1+3144_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/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits.....................!
real 45.97
user 42.86
sys 2.15

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits', '/lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits', expMap='/lscratch/kocevski/17379761/expmap_786931201_787536001_4FGL_J1522.1+3144_weekly_bin906.fits', expCube='/lscratch/kocevski/17379761/ltcube_786931201_787536001_4FGL_J1522.1+3144_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17379761/Model_4FGL_J1522.1+3144_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1522.1+3144'

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  8.555e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17379761/ft1_filtered_4FGL_J1522.1+3144_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17379761/ft2_4FGL_J1522.1+3144_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17379761/expmap_786931201_787536001_4FGL_J1522.1+3144_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17379761/ltcube_786931201_787536001_4FGL_J1522.1+3144_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17379761/Model_4FGL_J1522.1+3144_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) = 15747.7138397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61259       1.0000          .0000       .10000E+07
     2 'norm      '    .44792       1.0000          .0000       .10000E+07
     3 'Prefactor '    79.763       1.0000          .0000       .10000E+07
     4 'norm      '    .88616E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.5254       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8182       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13052E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .34325E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.9515       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79766       1.0000          .0000       .10000E+07
    11 'Prefactor '    .59256E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .72057       1.0000          .0000       .10000E+07
    13 'Prefactor '    .61802E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    25.864       1.0000          .0000       .10000E+07
    15 'norm      '    14.832       1.0000          .0000       .10000E+07
    16 'Prefactor '    .82212E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .37174E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .97900E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .32885E-03   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.4201       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15747.71     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2659 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .60439        2.2425        .65406E-06    .23510E-04
   2  norm          .46421        3.9493        .34131E-06   -.30798E-03
   3  Prefactor     79.607        25.300       -.63131E-06   -.57755E-01
   4  norm          .14322E-07    2.3105       -.15620E-06** at limit **
   5  Prefactor     5.5219        6.5476       -.52698E-06   -.90089E-02
   6  Prefactor     2.8230        2.5342        .40505E-06    .93074E-03
   7  Prefactor     .44409E-08    1.7568       -.46078E-06** at limit **
   8  norm           .0000        .76354       -.30673E-06** at limit **
   9  Prefactor     2.7982        24.936       -.32764E-05    .34621E-01
  10  Prefactor     .86785        17.358       -.35414E-05    .28002E-01
  11  Prefactor     .18596E-07    3.8602        .72813E-06** at limit **
  12  norm          .72172        .48055       -.56252E-07    .30976E-04
  13  Prefactor     .23759E-07    5.7520        .84831E-06** at limit **
  14  Prefactor     25.907        8.0650       -.42298E-06   -.21025    
  15  norm          14.828        1.1812       -.65674E-07   -.53185E-02
  16  Prefactor      .0000        .33166        .53231E-07** at limit **
  17  Prefactor     .38247E-07    1.8726       -.18247E-07** at limit **
  18  Prefactor     .31530E-07    2.7505        .19643E-05** at limit **
  19  Prefactor     .49960E-08    3.0720        .15857E-05** at limit **
  20  Normalizat    1.4204        .13192        .89189E-05    .55239E-04
  21  Prefactor     .68087        .10191       -.85012E-05    .11082E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.604393
  norm       = 0.464207
  Prefactor  = 79.6069
  norm       = 1.43219e-08
  Prefactor  = 5.52194
  Prefactor  = 2.82299
  Prefactor  = 4.44089e-09
  norm       = 0
  Prefactor  = 2.79816
  Prefactor  = 0.867854
  Prefactor  = 1.85962e-08
  norm       = 0.721722
  Prefactor  = 2.37588e-08
  Prefactor  = 25.9072
  norm       = 14.8276
  Prefactor  = 0
  Prefactor  = 3.82472e-08
  Prefactor  = 3.15303e-08
  Prefactor  = 4.996e-09
  Normalizat = 1.42035
  Prefactor  = 0.68087
 **********
 **   18 **HESSE 
 **********

 FCN=   15747.71     FROM HESSE     STATUS=OK           369 CALLS     3028 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .60439        2.2495        .68108E-03   -1.5692    
   2  norm          .46421        3.8158        .84132E-03   -1.5694    
   3  Prefactor     79.607        28.866        .11198E-03   -1.5530    
   4  norm          .14322E-07    2.3554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5219        6.5677        .42719E-03   -1.5661    
   6  Prefactor     2.8230        2.5523        .60561E-03   -1.5674    
   7  Prefactor     .44409E-08    3.5070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .32072        .24162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7982        119.03        .59088E-03   -1.5675    
  10  Prefactor     .86785        21.840        .53110E-03   -1.5689    
  11  Prefactor     .18596E-07    3.9476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .72172        .48381        .59054E-03   -1.5691    
  13  Prefactor     .23759E-07    5.7016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.907        14.006        .19667E-03   -1.5606    
  15  norm          14.828        8.2420        .25981E-03   -1.5631    
  16  Prefactor      .0000        .32952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38247E-07    3.2555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .31530E-07    2.8781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .49960E-08    .73724        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4204        .11390        .50244E-01   -.80042    
  21  Prefactor     .68087        .87682E-01    .42149E-01   -1.0428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74398e-06
Minuit parameter uncertainties:
  1  2.2495
  2  2.66181
  3  28.8662
  4  0.000367043
  5  6.5677
  6  2.55225
  7  0.000249655
  8  1.85363e-06
  9  36.5011
  10  8.70725
  11  0.000541518
  12  0.48381
  13  0.000735864
  14  14.0058
  15  8.24196
  16  1.93602e-06
  17  0.000705812
  18  0.000602375
  19  0.000121538
  20  0.113918
  21  0.0876996
Done.

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

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  7.217e-01  4.838e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  2.370e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.148e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  6.809e-01  8.770e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.420e+00  1.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.13
Ra Dec: 230.545 31.739
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 1.58e-08
Energy Flux (Fixed Index): 7.41e-06 +/- 4.97e-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) = 15747.1394943
delta logL = 0.57328856932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15747.1260316
delta logL = 0.586751308705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65212       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7691       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15747.13     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65207        .45477        .64683E-03    .40412E-02
   2  alpha         1.7690        .37202        .43630       -.74369E-04
   3  Normalizat    1.4326        .10778        .50063E-01    .90077E-05
   4  Prefactor     .67479        .87090E-01    .42065E-01    .57474E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.652066
  alpha      = 1.76899
  Normalizat = 1.43262
  Prefactor  = 0.674791
 **********
 **   18 **HESSE 
 **********

 FCN=   15747.13     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65207        .50089        .67261E-05   -1.5692    
   2  alpha         1.7690        .51185        .18717E-01   -.29674    
   3  Normalizat    1.4326        .12453        .22132E-03   -.79690    
   4  Prefactor     .67479        .10047        .24909E-03   -1.0452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45304e-12
Minuit parameter uncertainties:
  1  0.500889
  2  0.515838
  3  0.124554
  4  0.100496
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) = 15747.1260316
delta logL = 0.586751332108

Extracting fit parameters...

4FGL J1522.1+3144
   Spectrum: LogParabola
270         norm:  6.521e-01  5.009e-01  0.000e+00  1.000e+06 ( 1.000e-11)
271        alpha:  1.769e+00  5.158e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.148e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  6.748e-01  1.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.433e+00  1.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.31
Ra Dec: 230.545 31.739
Photon Index (Free Index): 1.77 +/- 0.52
Photon Flux (Free Index): 1.39e-08 +/- 1.25e-08
Energy Flux (Free Index): 1.12e-05 +/- 9.79e-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/17379761/cmap_HighResolution_786931201_787536001_4FGL_J1522.1+3144_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.12e-05', photon_flux_error='1.58e-08', dlogl='5.87e-01', energy_flux='7.41e-06', photon_flux2='1.39e-08', job_status='DONE', time_completed='2025-12-16 03:00:05.568851', photon_index_error2='0.52', photon_index2='1.77', ts='5.13', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', energy_flux_error2='9.79e-06', EG='1.42', time_epoch_completed='1765882805.57', return_code='0', job_id='17379761', GAL2='0.67', EG2='1.43', return_code2='0', energy_flux_error='4.97e-06', photon_flux_error2='1.25e-08', ts2='6.31', photon_index='2.37' WHERE bin_id='906' AND source_name='4FGL J1522.1+3144' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:00:06 PST 2025

