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


Performing analysis on: 4FGL_J1848.5+6537_weekly_bin880
RA = 282.133, Dec = 65.6313
tmin = 771206401, tmax = 771811201
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='6511146', job_status='RUN', time_executed='2025-06-17 04:34:53.544859', time_epoch_executed='1750160093.54' WHERE source_name='4FGL J1848.5+6537' and cadence='weekly' and bin_id='880'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/6511146

Creating custom pfile directory:
/lscratch/kocevski/6511146/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=771206401.0 && nMetStart<771811201.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=771206401.0 && nMetStart<771811201.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/6511146/ft1_4FGL_J1848.5+6537_weekly_bin880.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=771206401.0 && nMetStart<771811201.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/6511146/ft1_4FGL_J1848.5+6537_weekly_bin880.fits outfile=/lscratch/kocevski/6511146/ft1_filteredMKT_4FGL_J1848.5+6537_weekly_bin880.fits ra=282.133 dec=65.6313 rad=12.0 tmin=771206401.0 tmax=771811201.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.73
user 3.86
sys 0.30

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.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/6511146/ft1_filteredMKT_4FGL_J1848.5+6537_weekly_bin880.fits evtable="EVENTS" outfile="/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.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.90
user 0.23
sys 0.15

Number of photons that the gtmktime cut: 4391

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits" evtable="EVENTS" scfile=/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits sctable="SC_DATA" outfile=/lscratch/kocevski/6511146/ltcube_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.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/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits
.....................!
real 19.99
user 18.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits evtable="EVENTS" scfile=/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits sctable="SC_DATA" expcube=/lscratch/kocevski/6511146/ltcube_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.fits outfile=/lscratch/kocevski/6511146/expmap_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.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/6511146/ltcube_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.fits
.....................!
real 68.70
user 62.69
sys 3.94

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 FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 181 point sources and 3 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 J1848.5+6537 @ 282.133 65.6313

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits scfile=/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits outfile=/lscratch/kocevski/6511146/cmap_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.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=282.133 yref=65.6313 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.72
user 0.22
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits scfile=/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits outfile=/lscratch/kocevski/6511146/cmap_HighResolution_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.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=282.133 yref=65.6313 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.73
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits evtable="EVENTS" scfile=/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/6511146/Model_4FGL_J1848.5+6537_weekly_bin880.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
adding source HB 21
Working on...
/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits.....................!
real 179.06
user 175.59
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits', '/lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits', expMap='/lscratch/kocevski/6511146/expmap_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.fits', expCube='/lscratch/kocevski/6511146/ltcube_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/6511146/Model_4FGL_J1848.5+6537_weekly_bin880.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1848.5+6537'

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  3.482e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
352        Index:  1.750e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.537e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/6511146/ft1_filtered_4FGL_J1848.5+6537_weekly_bin880.fits
Spacecraft file(s): /lscratch/kocevski/6511146/ft2_4FGL_J1848.5+6537_weekly_bin880.fits
Exposure map: /lscratch/kocevski/6511146/expmap_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.fits
Exposure cube: /lscratch/kocevski/6511146/ltcube_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/6511146/Model_4FGL_J1848.5+6537_weekly_bin880.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) = 44496.6499545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2023       1.0000          .0000       .10000E+07
     2 'Prefactor '    1.6454       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.0236       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.0779       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.4778       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12835E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    19.421       1.0000          .0000       .10000E+07
     8 'norm      '    6.2223       1.0000          .0000       .10000E+07
     9 'norm      '    8.3771       1.0000          .0000       .10000E+07
    10 'Prefactor '    7.2353       1.0000          .0000       .10000E+07
    11 'Prefactor '    .28496E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .63727E-07   1.0000          .0000       .10000E+07
    13 'norm      '    9.5572       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.0563       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17521E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .46807E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .88467       1.0000          .0000       .10000E+07
    18 'norm      '    4.0890       1.0000          .0000       .10000E+07
    19 'norm      '    .72582       1.0000          .0000       .10000E+07
    20 'norm      '    8.3766       1.0000          .0000       .10000E+07
    21 'Prefactor '    19.905       1.0000          .0000       .10000E+07
    22 'Prefactor '    6.0476       1.0000          .0000       .10000E+07
    23 'norm      '    .99309E-07   1.0000          .0000       .10000E+07
    24 'norm      '    4.6148       1.0000          .0000       .10000E+07
    25 'norm      '    5.3136       1.0000          .0000       .10000E+07
    26 'Prefactor '    14.766       1.0000          .0000       .10000E+07
    27 'norm      '    .39191E-03   1.0000          .0000       .10000E+07
    28 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    29 'Normalizat'    1.0817       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   44496.59     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2203 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2016        .35812       -.16027E-07    .97470E-03
   2  Prefactor     1.6466        2.9796       -.52167E-07   -.27661E-03
   3  Prefactor     1.0757        5.3188        .54771E-07    .21642E-03
   4  Prefactor     2.0816        2.2942        .20141E-06    .94921E-03
   5  Prefactor     3.4783        2.6608        .20453E-07    .45684E-04
   6  Prefactor      .0000        24.198       -.94858E-06** at limit **
   7  Prefactor     19.850        1.9485        .32464E-07    .64555E-02
   8  norm          6.2227        1.4084       -.66458E-09   -.75497E-03
   9  norm          8.3706        2.1312       -.71918E-07    .13303E-02
  10  Prefactor     7.2487        6.1717        .17449E-06    .10620E-01
  11  Prefactor      .0000        17.442       -.68184E-06** at limit **
  12  Prefactor      .0000        .50044        .12499E-06** at limit **
  13  norm          9.5595        3.5517       -.57610E-08    .61555E-03
  14  Prefactor     3.0691        6.3431       -.31444E-06   -.13270E-01
  15  Prefactor      .0000        3.4078       -.13555E-06** at limit **
  16  Prefactor      .0000        8.6608       -.24586E-06** at limit **
  17  norm          .88330        .97222       -.47552E-07    .26660E-04
  18  norm          4.0875        1.0966       -.16183E-07   -.45284E-03
  19  norm          .72519        1.8870       -.12956E-06    .76999E-04
  20  norm          8.3800        5.1807        .25208E-08   -.48689E-03
  21  Prefactor     19.974        4.1304       -.45686E-07    .37833E-01
  22  Prefactor     6.0396        2.7166        .55083E-07    .30670E-04
  23  norm           .0000        .35286        .19214E-07** at limit **
  24  norm          4.6094        1.0116       -.31446E-08   -.56611E-03
  25  norm          5.3437        6.3614        .30407E-06   -.15263E-01
  26  Prefactor     14.793        3.3490        .74720E-08    .27299E-01
  27  norm          .16653E-09    6.2474        .63272E-07** at limit **
  28  norm           .0000        .95064       -.92806E-07** at limit **
  29  Normalizat    1.0814        .10328       -.66137E-06    .64930E-04
  30  Prefactor     .93042        .45220E-01    .19887E-06    .16937E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20165
  Prefactor  = 1.64661
  Prefactor  = 1.0757
  Prefactor  = 2.08161
  Prefactor  = 3.4783
  Prefactor  = 0
  Prefactor  = 19.8502
  norm       = 6.22269
  norm       = 8.37056
  Prefactor  = 7.2487
  Prefactor  = 0
  Prefactor  = 0
  norm       = 9.55949
  Prefactor  = 3.06909
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.883299
  norm       = 4.0875
  norm       = 0.725189
  norm       = 8.37997
  Prefactor  = 19.9738
  Prefactor  = 6.03959
  norm       = 0
  norm       = 4.60939
  norm       = 5.34373
  Prefactor  = 14.7934
  norm       = 1.66533e-10
  norm       = 0
  Normalizat = 1.08142
  Prefactor  = 0.930415
 **********
 **   18 **HESSE 
 **********

 FCN=   44496.59     FROM HESSE     STATUS=OK           666 CALLS     2869 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2016        .36771        .10342E-02   -1.5686    
   2  Prefactor     1.6466        3.0088        .82310E-03   -1.5682    
   3  Prefactor     1.0757        5.4860        .12689E-02   -1.5687    
   4  Prefactor     2.0816        2.3037        .71618E-03   -1.5679    
   5  Prefactor     3.4783        2.6636        .54198E-03   -1.5671    
   6  Prefactor      .0000        24.182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.850        20.424        .22699E-03   -1.5619    
   8  norm          6.2227        1.4099        .40220E-03   -1.5658    
   9  norm          8.3706        2.1335        .34613E-03   -1.5650    
  10  Prefactor     7.2487        6.3284        .37266E-03   -1.5654    
  11  Prefactor      .0000        17.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        .50049        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.5595        3.5540        .32392E-03   -1.5646    
  14  Prefactor     3.0691        7.0897        .58005E-03   -1.5673    
  15  Prefactor      .0000        3.3930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        8.6786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .88330        .97651        .46826E-03   -1.5689    
  18  norm          4.0875        1.0962        .49833E-03   -1.5668    
  19  norm          .72519        1.9227        .58636E-03   -1.5691    
  20  norm          8.3800        5.2539        .34614E-03   -1.5650    
  21  Prefactor     19.974        8.0724        .22421E-03   -1.5619    
  22  Prefactor     6.0396        2.7672        .40805E-03   -1.5659    
  23  norm           .0000        .34388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.6094        12.843        .46829E-03   -1.5665    
  25  norm          5.3437        7.4393        .43577E-03   -1.5662    
  26  Prefactor     14.793        8.9176        .26039E-03   -1.5631    
  27  norm          .16653E-09    .33274        .67448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm           .0000        .95295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0814        .93711E-01    .83489E-01   -.90351    
  30  Prefactor     .93042        .40813E-01    .45392E-01   -.95086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42217e-05
Minuit parameter uncertainties:
  1  0.367711
  2  3.00876
  3  4.85852
  4  2.30373
  5  2.66362
  6  1.12177e-05
  7  20.4242
  8  1.40994
  9  2.13349
  10  6.3284
  11  1.70219e-06
  12  5.75194e-07
  13  3.55398
  14  7.08969
  15  7.33376e-08
  16  3.29784e-06
  17  0.976506
  18  1.09619
  19  1.92273
  20  5.25393
  21  8.07244
  22  2.76722
  23  1.37504e-07
  24  12.8427
  25  7.43927
  26  8.91757
  27  1.59412e-05
  28  9.32078e-07
  29  0.0937257
  30  0.0408144
Done.

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

Extracting fit parameters...

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  0.000e+00  3.298e-06  0.000e+00  1.000e+06 ( 1.000e-15)
352        Index:  1.750e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.537e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  9.304e-01  4.081e-02  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.081e+00  9.373e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 282.133 65.631
Photon Flux Upper Limit: 9.48558977806e-09 ph cm-2 s-1
Energy Flux Upper Limit: 0.000695582936865 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/6511146/likelihoodResults_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 44496.6445171
delta logL = -0.0550099154789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 44496.5895073
delta logL = -7.49350874685e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28560E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .35754       1.0000          .0000       10.000    
     3 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93041       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   44496.59     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      224 TOTAL
                     EDM=   .34E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.9099        .42118E-03** at limit **
   2  Index         .44030        .75405       -.47719E-04     .0000    
   3  Normalizat    1.0814        1.1698       -.10892E-05    .80837E-04
   4  Prefactor     .93042        1.2738        .19026E-06    .16450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.440298
  Normalizat = 1.08142
  Prefactor  = 0.930415
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   44496.59     FROM HESSE     STATUS=FAILED         9 CALLS      233 TOTAL
                     EDM=   .34E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.9099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .18994E-01    .75405       -.47719E-04   -1.1480    
   3  Normalizat    1.0814        1.1698       -.10892E-05   -.90351    
   4  Prefactor     .93042        1.2738        .19026E-06   -.95086    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.41509e-12
Minuit parameter uncertainties:
  1  2.69695e-05
  2  0.77215
  3  1.19971
  4  1.31858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

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

Extracting fit parameters...

4FGL J1848.5+6537
   Spectrum: PowerLaw
351    Prefactor:  0.000e+00  2.697e-05  0.000e+00  1.000e+06 ( 1.000e-15)
352        Index:  4.403e-01  7.721e-01  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.537e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
604    Prefactor:  9.304e-01  1.319e+00  0.000e+00  1.000e+01 ( 1.000e+00)
605        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
606        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.081e+00  1.200e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 282.133 65.631

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/6511146/cmap_HighResolution_771206401_771811201_4FGL_J1848.5+6537_weekly_bin880.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-04', job_status='DONE', photon_flux_upper_limit='9.49e-09', time_completed='2025-06-17 05:07:33.002974', job_id='6511146', GAL2='0.93', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1750162053.0', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='880' AND source_name='4FGL J1848.5+6537' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 17 05:07:33 PDT 2025

