/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_J1903.2+5540_weekly_bin906
RA = 285.808, Dec = 55.6773
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='17380383', job_status='RUN', time_executed='2025-12-16 03:00:23.895388', time_epoch_executed='1765882823.9' WHERE source_name='4FGL J1903.2+5540' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17380383

Creating custom pfile directory:
/lscratch/kocevski/17380383/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/17380383/ft1_4FGL_J1903.2+5540_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/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17380383/ft1_4FGL_J1903.2+5540_weekly_bin906.fits outfile=/lscratch/kocevski/17380383/ft1_filteredMKT_4FGL_J1903.2+5540_weekly_bin906.fits ra=285.808 dec=55.6773 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.96
user 5.12
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_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/17380383/ft1_filteredMKT_4FGL_J1903.2+5540_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_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 1.10
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 2808

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17380383/ltcube_786931201_787536001_4FGL_J1903.2+5540_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/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits
.....................!
real 19.38
user 18.28
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17380383/ltcube_786931201_787536001_4FGL_J1903.2+5540_weekly_bin906.fits outfile=/lscratch/kocevski/17380383/expmap_786931201_787536001_4FGL_J1903.2+5540_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/17380383/ltcube_786931201_787536001_4FGL_J1903.2+5540_weekly_bin906.fits
.....................!
real 70.45
user 65.62
sys 3.77

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 HB 21 in ROI with RadialDisk spatial model.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 195 point sources and 4 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 J1903.2+5540 @ 285.808 55.6773

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits scfile=/lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits outfile=/lscratch/kocevski/17380383/cmap_786931201_787536001_4FGL_J1903.2+5540_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=285.808 yref=55.6773 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.03
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits scfile=/lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits outfile=/lscratch/kocevski/17380383/cmap_HighResolution_786931201_787536001_4FGL_J1903.2+5540_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=285.808 yref=55.6773 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.91
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17380383/Model_4FGL_J1903.2+5540_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 Cygnus Cocoon
adding source EG_v02
adding source FHES J2129.9+5833
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits.....................!
real 116.17
user 113.71
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits', '/lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits', expMap='/lscratch/kocevski/17380383/expmap_786931201_787536001_4FGL_J1903.2+5540_weekly_bin906.fits', expCube='/lscratch/kocevski/17380383/ltcube_786931201_787536001_4FGL_J1903.2+5540_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17380383/Model_4FGL_J1903.2+5540_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1903.2+5540'

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  2.734e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
335        alpha:  1.817e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  8.376e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.263e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17380383/ft1_filtered_4FGL_J1903.2+5540_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17380383/ft2_4FGL_J1903.2+5540_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17380383/expmap_786931201_787536001_4FGL_J1903.2+5540_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17380383/ltcube_786931201_787536001_4FGL_J1903.2+5540_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17380383/Model_4FGL_J1903.2+5540_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) = 28306.3985428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80355E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .45620E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15233E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    59.387       1.0000          .0000       .10000E+07
     5 'norm      '    6.8758       1.0000          .0000       .10000E+07
     6 'norm      '    2.7722       1.0000          .0000       .10000E+07
     7 'norm      '    5.6933       1.0000          .0000       .10000E+07
     8 'Prefactor '    .28170E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .35308E-03   1.0000          .0000       .10000E+07
    10 'norm      '    5.4181       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6434       1.0000          .0000       .10000E+07
    12 'norm      '    2.5947       1.0000          .0000       .10000E+07
    13 'norm      '    .38818E-05   1.0000          .0000       .10000E+07
    14 'norm      '    8.5218       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10463E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    14.336       1.0000          .0000       .10000E+07
    17 'norm      '    4.9521       1.0000          .0000       .10000E+07
    18 'norm      '    .16251E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1209       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28306.40     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1532 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    17.677        .60578E-06** at limit **
   2  Prefactor     .55511E-10    3.1282       -.28762E-06** at limit **
   3  Prefactor      .0000        6.9507        .11601E-06** at limit **
   4  Prefactor     58.132        135.80       -.75138E-05   -.84617E-03
   5  norm          6.8755        3.7631        .68471E-07    .14276E-02
   6  norm          2.7700        3.0051        .17145E-06    .24053E-02
   7  norm          5.7173        4.7571        .71091E-07    .74401E-03
   8  Prefactor      .0000        5.9621       -.75297E-08** at limit **
   9  Prefactor      .0000        16.611       -.20662E-06** at limit **
  10  norm          5.4197        2.1186        .10202E-06    .40699E-02
  11  Prefactor     1.6426        1.2609        .12046E-07    .31539E-03
  12  norm          2.5944        1.3618       -.60742E-08   -.11959E-02
  13  norm           .0000        1.3861        .11804E-06** at limit **
  14  norm          8.5849        6.3849        .10867E-06    .75953E-03
  15  Prefactor      .0000        3.8811       -.21347E-06** at limit **
  16  Prefactor     14.339        16.587        .36507E-05   -.22804E-02
  17  norm          4.9516        1.2159        .10193E-07    .73638E-03
  18  norm           .0000        28.944        .21439E-07** at limit **
  19  Normalizat    1.1209        .13301        .35884E-05    .91257E-04
  20  Prefactor     .97375        .55702E-01   -.36616E-05    .33397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 58.132
  norm       = 6.8755
  norm       = 2.77002
  norm       = 5.71733
  Prefactor  = 0
  Prefactor  = 0
  norm       = 5.41966
  Prefactor  = 1.64262
  norm       = 2.59445
  norm       = 0
  norm       = 8.58495
  Prefactor  = 0
  Prefactor  = 14.3386
  norm       = 4.95161
  norm       = 0
  Normalizat = 1.12089
  Prefactor  = 0.97375
 **********
 **   18 **HESSE 
 **********

 FCN=   28306.40     FROM HESSE     STATUS=OK           339 CALLS     1871 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    17.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    3.1235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        6.9549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.132        135.82        .12977E-03   -1.5555    
   5  norm          6.8755        3.7572        .38238E-03   -1.5656    
   6  norm          2.7700        3.0162        .61098E-03   -1.5675    
   7  norm          5.7173        4.7635        .42074E-03   -1.5660    
   8  Prefactor      .0000        5.9449        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        16.609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.4197        2.1173        .43147E-03   -1.5661    
  11  Prefactor     1.6426        1.2696        .82374E-03   -1.5682    
  12  norm          2.5944        1.3608        .63315E-03   -1.5676    
  13  norm           .0000        1.3841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5849        6.3965        .34315E-03   -1.5649    
  15  Prefactor      .0000        3.8765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.339        16.533        .26428E-03   -1.5632    
  17  norm          4.9516        1.2423        .45171E-03   -1.5663    
  18  norm           .0000        4.0514        .12713E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1209        .11823        .87346E-01   -.89084    
  20  Prefactor     .97375        .49177E-01    .45939E-01   -.93610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22577e-09
Minuit parameter uncertainties:
  1  0.000123822
  2  2.39787e-05
  3  1.58999e-05
  4  135.829
  5  3.75721
  6  3.01617
  7  4.76354
  8  4.47923e-06
  9  2.92821e-06
  10  2.11731
  11  1.26964
  12  1.36079
  13  6.22178e-06
  14  6.39652
  15  1.98054e-05
  16  16.5335
  17  1.24229
  18  1.05146e-06
  19  0.118261
  20  0.0491788
Done.

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

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  2.594e+00  1.361e+00  0.000e+00  1.000e+06 ( 1.000e-12)
335        alpha:  1.817e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
336         beta:  8.376e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.263e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.737e-01  4.918e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.121e+00  1.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 285.808 55.677
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 2.48e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.24e-05

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) = 28306.0228895
delta logL = 0.374029981605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 28306.012914
delta logL = 0.384005506319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4267       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1630       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1085       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+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=   28306.01     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      249 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4266        1.3311        .12125E-04    .13258E-01
   2  alpha         2.1630        .40725        .15679E-01    .10168E-03
   3  Normalizat    1.1085        .13068        .38863E-03   -.23204E-03
   4  Prefactor     .97549        .54713E-01    .17256E-03   -.63559E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42662
  alpha      = 2.16303
  Normalizat = 1.10849
  Prefactor  = 0.975489
 **********
 **   18 **HESSE 
 **********

 FCN=   28306.01     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4266        1.2913        .48500E-06   -1.5677    
   2  alpha         2.1630        .39497        .62716E-03   -.13520    
   3  Normalizat    1.1085        .13065        .15545E-04   -.89480    
   4  Prefactor     .97549        .54725E-01    .34511E-04   -.93551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35992e-10
Minuit parameter uncertainties:
  1  1.29132
  2  0.39666
  3  0.130691
  4  0.0547281
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) = 28306.012914
delta logL = 0.384005507931

Extracting fit parameters...

4FGL J1903.2+5540
   Spectrum: LogParabola
334         norm:  2.427e+00  1.291e+00  0.000e+00  1.000e+06 ( 1.000e-12)
335        alpha:  2.163e+00  3.967e-01  0.000e+00  5.000e+00 ( 1.000e+00)
336         beta:  8.376e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
337           Eb:  1.263e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.755e-01  5.473e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.108e+00  1.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.30
Ra Dec: 285.808 55.677
Photon Index (Free Index): 2.16 +/- 0.40
Photon Flux (Free Index): 3.79e-08 +/- 2.33e-08
Energy Flux (Free Index): 1.86e-05 +/- 9.89e-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/17380383/cmap_HighResolution_786931201_787536001_4FGL_J1903.2+5540_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.48e-08', energy_flux2='1.86e-05', photon_flux_error='1.30e-08', dlogl='3.84e-01', energy_flux='2.36e-05', photon_flux2='3.79e-08', job_status='DONE', time_completed='2025-12-16 03:15:49.471717', photon_index_error2='0.40', photon_index2='2.16', ts='8.53', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='9.89e-06', EG='1.12', time_epoch_completed='1765883749.47', return_code='0', job_id='17380383', GAL2='0.98', EG2='1.11', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='2.33e-08', ts2='9.30', photon_index='1.82' WHERE bin_id='906' AND source_name='4FGL J1903.2+5540' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:15:49 PST 2025

