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


Performing analysis on: 4FGL_J1648.2+4232_weekly_bin855
RA = 252.072, Dec = 42.5498
tmin = 756086401, tmax = 756691201
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='60730035', job_status='RUN', time_executed='2024-12-24 03:55:58.213954', time_epoch_executed='1735041358.21' WHERE source_name='4FGL J1648.2+4232' and cadence='weekly' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60730035

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

Retrieving the FT1 file...

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

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

Retrieving 65 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60730035/ft1_4FGL_J1648.2+4232_weekly_bin855.fits


Retrieving the FT1 file...

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

Retrieving 65 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60730035/ft1_4FGL_J1648.2+4232_weekly_bin855.fits outfile=/lscratch/kocevski/60730035/ft1_filteredMKT_4FGL_J1648.2+4232_weekly_bin855.fits ra=252.072 dec=42.5498 rad=12.0 tmin=756086401.0 tmax=756691201.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 2.57
user 2.27
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.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/60730035/ft1_filteredMKT_4FGL_J1648.2+4232_weekly_bin855.fits evtable="EVENTS" outfile="/lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.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.36
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 826

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60730035/ltcube_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.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/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits
.....................!
real 9.51
user 9.10
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60730035/ltcube_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.fits outfile=/lscratch/kocevski/60730035/expmap_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.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/60730035/ltcube_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.fits
.....................!
real 59.03
user 55.19
sys 3.47

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

Setting source of interest to:
4FGL J1648.2+4232 @ 252.072 42.5498

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits scfile=/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits outfile=/lscratch/kocevski/60730035/cmap_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.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=252.072 yref=42.5498 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.37
user 0.18
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits scfile=/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits outfile=/lscratch/kocevski/60730035/cmap_HighResolution_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.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=252.072 yref=42.5498 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.37
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits evtable="EVENTS" scfile=/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60730035/Model_4FGL_J1648.2+4232_weekly_bin855.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/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits.....................!
real 23.12
user 22.04
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits', '/lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits', expMap='/lscratch/kocevski/60730035/expmap_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.fits', expCube='/lscratch/kocevski/60730035/ltcube_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60730035/Model_4FGL_J1648.2+4232_weekly_bin855.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1648.2+4232'

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.067e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
356        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  8.460e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60730035/ft1_filtered_4FGL_J1648.2+4232_weekly_bin855.fits
Spacecraft file(s): /lscratch/kocevski/60730035/ft2_4FGL_J1648.2+4232_weekly_bin855.fits
Exposure map: /lscratch/kocevski/60730035/expmap_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.fits
Exposure cube: /lscratch/kocevski/60730035/ltcube_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60730035/Model_4FGL_J1648.2+4232_weekly_bin855.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) = 8817.22125866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32755E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.9367       1.0000          .0000       .10000E+07
     3 'Prefactor '    7.7582       1.0000          .0000       .10000E+07
     4 'Prefactor '    .30524E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .80491E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17969E-06   1.0000          .0000       .10000E+07
     7 'norm      '    8.9759       1.0000          .0000       .10000E+07
     8 'norm      '    .27743E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .11713E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .73108E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .70344E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .19825E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .25208       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.4279       1.0000          .0000       .10000E+07
    15 'Prefactor '    .68569E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.0513       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.6990       1.0000          .0000       .10000E+07
    18 'norm      '    .80668       1.0000          .0000       .10000E+07
    19 'norm      '    .48571       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.9967       1.0000          .0000       .10000E+07
    21 'norm      '    .15902E-05   1.0000          .0000       .10000E+07
    22 'norm      '    17.303       1.0000          .0000       .10000E+07
    23 'norm      '    2.1582       1.0000          .0000       .10000E+07
    24 'Prefactor '    .44031E-06   1.0000          .0000       .10000E+07
    25 'norm      '    2.2877       1.0000          .0000       .10000E+07
    26 'Prefactor '    .12048E-03   1.0000          .0000       .10000E+07
    27 'norm      '    2.3258       1.0000          .0000       .10000E+07
    28 'Prefactor '    1.0824       1.0000          .0000       .10000E+07
    29 'Prefactor '    .34750E-07   1.0000          .0000       .10000E+07
    30 'Normalizat'    .86025       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8815.810     FROM MIGRAD    STATUS=CONVERGED    237 CALLS     1864 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70499E-08    65.640       -.85396E-07** at limit **
   2  Prefactor     1.9331        2.2883       -.58655E-08    .56407E-02
   3  Prefactor     7.7516        4.7747       -.41710E-07   -.23101E-02
   4  Prefactor     .20539E-08    11.342        .21411E-06** at limit **
   5  Prefactor     .33307E-09    5.5042        .35214E-06** at limit **
   6  Prefactor     .27756E-09    .59811       -.46437E-07** at limit **
   7  norm          8.9901        9.8465        .99311E-06   -.24504E-02
   8  norm          .27714E-01    .51089E-01    .61537E-08** at limit **
   9  norm          .55511E-10    2.6697       -.45556E-07** at limit **
  10  Prefactor     .38858E-09    4.7571       -.74038E-07** at limit **
  11  Prefactor     .33307E-09    2.5586       -.79361E-07** at limit **
  12  norm          .28866E-08    14.324       -.12097E-07** at limit **
  13  Prefactor     .24827        3.2433       -.42415E-07** at limit **
  14  Prefactor     4.4291        2.1464        .67664E-08   -.84752E-02
  15  Prefactor      .0000        7.7654       -.14710E-06** at limit **
  16  Prefactor     2.0507        2.2178        .13220E-07    .73257E-02
  17  Prefactor     1.3777        3.4186        .68669E-06    .21002E-02
  18  norm          .80570        1.1825       -.85301E-08   -.83657E-02
  19  norm          .48510        .75250        .30792E-08    .11233E-01
  20  Prefactor     5.9805        5.1588        .66282E-07    .87988E-02
  21  norm          .61062E-09    3.1672        .48675E-07** at limit **
  22  norm          17.233        9.1721       -.67219E-06    .37351E-02
  23  norm          2.1596        1.2872       -.13894E-08   -.35877E-02
  24  Prefactor      .0000        .94671       -.78180E-08** at limit **
  25  norm          2.2881        2.7922        .24563E-07   -.10215E-01
  26  Prefactor     .51792E-07    45.491        .42982E-06** at limit **
  27  norm          2.3343        3.4964       -.67376E-07   -.98968E-02
  28  Prefactor     .30864E-05    69.875        .85967E-06** at limit **
  29  Prefactor     .16653E-09    1.8584        .22516E-07** at limit **
  30  Normalizat    .86042        .18762        .53592E-06    .39303E-03
  31  Prefactor     1.0398        .15719        .94337E-06    .56159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.04992e-09
  Prefactor  = 1.93308
  Prefactor  = 7.75163
  Prefactor  = 2.05391e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 2.77556e-10
  norm       = 8.99006
  norm       = 0.0277139
  norm       = 5.55112e-11
  Prefactor  = 3.88578e-10
  Prefactor  = 3.33067e-10
  norm       = 2.88658e-09
  Prefactor  = 0.248272
  Prefactor  = 4.42907
  Prefactor  = 0
  Prefactor  = 2.05074
  Prefactor  = 1.37773
  norm       = 0.805699
  norm       = 0.485101
  Prefactor  = 5.98053
  norm       = 6.10623e-10
  norm       = 17.2328
  norm       = 2.15963
  Prefactor  = 0
  norm       = 2.28815
  Prefactor  = 5.17919e-08
  norm       = 2.33431
  Prefactor  = 3.08642e-06
  Prefactor  = 1.66533e-10
  Normalizat = 0.860425
  Prefactor  = 1.03983
 **********
 **   18 **HESSE 
 **********

 FCN=   8815.810     FROM HESSE     STATUS=OK           704 CALLS     2568 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70499E-08    66.454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9331        2.3030        .74586E-03   -1.5680    
   3  Prefactor     7.7516        4.7727        .35977E-03   -1.5652    
   4  Prefactor     .20539E-08    11.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    5.5289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27756E-09    .60081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.9901        10.383        .33430E-03   -1.5648    
   8  norm          .27714E-01    .70846E-01    .64030E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    2.6725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38858E-09    4.8306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33307E-09    2.5526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .28866E-08    14.334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .24827        8.7051        .23946E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4291        4.3830        .47833E-03   -1.5666    
  15  Prefactor      .0000        7.5138        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.0507        2.2573        .72147E-03   -1.5679    
  17  Prefactor     1.3777        18.790        .80679E-03   -1.5684    
  18  norm          .80570        1.1986        .52438E-03   -1.5690    
  19  norm          .48510        .77517        .80160E-03   -1.5694    
  20  Prefactor     5.9805        5.2478        .40980E-03   -1.5659    
  21  norm          .61062E-09    .25508        .26414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.233        9.2298        .24051E-03   -1.5625    
  23  norm          2.1596        1.2980        .70093E-03   -1.5679    
  24  Prefactor      .0000        .94991        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.2881        2.8075        .67843E-03   -1.5678    
  26  Prefactor     .51792E-07    52.896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.3343        3.5148        .67225E-03   -1.5677    
  28  Prefactor     .30864E-05    21.756        .15405E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .16653E-09    1.8621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .86042        .16475        .44392E-01   -.97865    
  31  Prefactor     1.0398        .13452        .40612E-01   -.91413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71689e-07
Minuit parameter uncertainties:
  1  0.00136898
  2  2.30296
  3  4.77266
  4  0.000304256
  5  8.51513e-05
  6  2.55387e-05
  7  10.3826
  8  0.0708462
  9  2.27073e-05
  10  8.72645e-05
  11  6.02095e-05
  12  0.000406676
  13  2.94022
  14  4.38304
  15  4.23832e-06
  16  2.25732
  17  10.1759
  18  1.19856
  19  0.775166
  20  5.24778
  21  2.51909e-05
  22  9.22986
  23  1.29803
  24  5.2865e-06
  25  2.80752
  26  0.00331032
  27  3.51477
  28  0.0163887
  29  3.56667e-05
  30  0.164844
  31  0.134564
Done.

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

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  2.051e+00  2.257e+00  0.000e+00  1.000e+06 ( 1.000e-12)
356        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  8.460e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.040e+00  1.346e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  8.604e-01  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 252.072 42.550
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.56e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 8.11e-06 +/- 8.92e-06

TS (Fixed Index): 1.20
Ra Dec: 252.072 42.550
Photon Flux Upper Limit: 8.66618283287e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00670789603073 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60730035/likelihoodResults_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.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) = 8815.70760309
delta logL = 0.10216069076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8815.70450074
delta logL = 0.105263040346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5293       1.0000          .0000       .10000E+07
     2 'Index     '    2.8725       1.0000          .0000       10.000    
     3 'Normalizat'    .84561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0479       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8815.704     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      260 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5280        22.801        .86285E-03    .10200E-01
   2  Index         2.8740        3.0042        .22416        .83601E-04
   3  Normalizat    .84545        .34930E-01    .44203E-01   -.60646E-04
   4  Prefactor     1.0481        .28986E-01    .40031E-01   -.11197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52804
  Index      = 2.87401
  Normalizat = 0.845449
  Prefactor  = 1.0481
 **********
 **   18 **HESSE 
 **********

 FCN=   8815.704     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5280        2.5881        .10601E-04   -1.5683    
   2  Index         2.8740        1.2168        .80517E-02   -.43918    
   3  Normalizat    .84545        .18406        .27382E-03   -.98404    
   4  Prefactor     1.0481        .15701        .21488E-03   -.91143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86298e-09
Minuit parameter uncertainties:
  1  2.5881
  2  1.23193
  3  0.184194
  4  0.157082
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) = 8815.70449906
delta logL = 0.105264723845

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.528e+00  2.588e+00  0.000e+00  1.000e+06 ( 1.000e-12)
356        Index:  2.874e+00  1.232e+00  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  8.460e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.048e+00  1.571e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  8.454e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 252.072 42.550
Photon Index (Free Index): 2.87 +/- 1.23
Photon Flux (Free Index): 3.78e-08 +/- 4.20e-08
Energy Flux (Free Index): 8.07e-06 +/- 7.81e-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/60730035/cmap_HighResolution_756086401_756691201_4FGL_J1648.2+4232_weekly_bin855.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.71e-03', comment='SUCCESS', photon_flux='2.56e-08', energy_flux2='8.07e-06', photon_flux_error='2.81e-08', dlogl='1.05e-01', energy_flux='8.11e-06', photon_flux2='3.78e-08', job_status='DONE', time_completed='2024-12-24 04:01:59.648280', photon_index_error2='1.23', photon_index2='2.87', ts='1.20', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.67e-08', energy_flux_error2='7.81e-06', EG='0.86', time_epoch_completed='1735041719.65', return_code='0', job_id='60730035', GAL2='1.05', EG2='0.85', return_code2='0', energy_flux_error='8.92e-06', photon_flux_error2='4.20e-08', ts2='1.44', photon_index='2.43' WHERE bin_id='855' AND source_name='4FGL J1648.2+4232' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 24 04:01:59 PST 2024

