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


Performing analysis on: 4FGL_J0650.2-1636_weekly_bin854
RA = 102.572, Dec = -16.6012
tmin = 755481601, tmax = 756086401
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='60351108', job_status='RUN', time_executed='2024-12-17 00:12:00.676977', time_epoch_executed='1734423120.68' WHERE source_name='4FGL J0650.2-1636' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351108

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60351108/ft1_4FGL_J0650.2-1636_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351108/ft1_4FGL_J0650.2-1636_weekly_bin854.fits outfile=/lscratch/kocevski/60351108/ft1_filteredMKT_4FGL_J0650.2-1636_weekly_bin854.fits ra=102.572 dec=-16.6012 rad=12.0 tmin=755481601.0 tmax=756086401.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 4.62
user 4.14
sys 0.34

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.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/60351108/ft1_filteredMKT_4FGL_J0650.2-1636_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.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.40
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 4238

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351108/ltcube_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.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/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits
.....................!
real 23.19
user 22.59
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351108/ltcube_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.fits outfile=/lscratch/kocevski/60351108/expmap_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.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/60351108/ltcube_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.fits
.....................!
real 62.69
user 58.82
sys 3.49

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 Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Added 157 point sources and 1 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 J0650.2-1636 @ 102.572 -16.6012

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits scfile=/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits outfile=/lscratch/kocevski/60351108/cmap_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.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=102.572 yref=-16.6012 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.56
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits scfile=/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits outfile=/lscratch/kocevski/60351108/cmap_HighResolution_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.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=102.572 yref=-16.6012 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.51
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351108/Model_4FGL_J0650.2-1636_weekly_bin854.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
adding source Rosette
Working on...
/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits.....................!
real 235.43
user 232.48
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits', '/lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits', expMap='/lscratch/kocevski/60351108/expmap_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.fits', expCube='/lscratch/kocevski/60351108/ltcube_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351108/Model_4FGL_J0650.2-1636_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0650.2-1636'

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  1.216e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
252        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.842e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351108/ft1_filtered_4FGL_J0650.2-1636_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351108/ft2_4FGL_J0650.2-1636_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351108/expmap_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351108/ltcube_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351108/Model_4FGL_J0650.2-1636_weekly_bin854.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) = 41623.9191823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26493E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .91260E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17933E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .63005E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .33855E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .20206E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.6492       1.0000          .0000       .10000E+07
     8 'norm      '    .80598E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .65704       1.0000          .0000       .10000E+07
    10 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    .31397E-06   1.0000          .0000       .10000E+07
    12 'norm      '    3.1776       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14250E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .15596E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .24764E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .79323       1.0000          .0000       .10000E+07
    17 'Normalizat'    .89024       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   41623.00     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1073 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13878E-08    16.484       -.94742E-07** at limit **
   2  Prefactor     .18319E-08    1.7237       -.29329E-07** at limit **
   3  Prefactor     .11102E-09    13.370       -.38497E-06** at limit **
   4  Prefactor     .55511E-10    2.0826        .14195E-06** at limit **
   5  Prefactor     .69483E-06    54.541       -.49146E-06** at limit **
   6  norm           .0000        3.2018        .20923E-06** at limit **
   7  Prefactor     2.6490        2.2688        .83542E-08    .29637E-03
   8  norm          .21649E-08    1.8578       -.10113E-06** at limit **
   9  norm          .65700        .68731       -.55153E-08    .23618E-03
  10  norm           .0000        4.3442        .31080E-06** at limit **
  11  Prefactor     .10658E-07    .70324       -.69990E-07** at limit **
  12  norm          3.1710        3.2217        .97666E-08   -.10368E-03
  13  Prefactor      .0000        .64724        .44249E-07** at limit **
  14  norm          .27200E-06    72.684       -.55180E-06** at limit **
  15  norm           .0000        .45319        .35611E-07** at limit **
  16  norm          .79294        .61235        .63752E-10   -.71753E-03
  17  Normalizat    .89032        .15769        .45320E-07    .75978E-05
  18  Prefactor     1.0097        .26608E-01   -.10146E-06    .41066E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.38778e-09
  Prefactor  = 1.83187e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 6.94833e-07
  norm       = 0
  Prefactor  = 2.64902
  norm       = 2.16493e-09
  norm       = 0.656998
  norm       = 0
  Prefactor  = 1.06581e-08
  norm       = 3.17096
  Prefactor  = 0
  norm       = 2.72005e-07
  norm       = 0
  norm       = 0.792935
  Normalizat = 0.890316
  Prefactor  = 1.00973
 **********
 **   18 **HESSE 
 **********

 FCN=   41623.00     FROM HESSE     STATUS=OK           288 CALLS     1361 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13878E-08    16.011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .18319E-08    1.9748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    13.412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    2.0909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .69483E-06    5.6149        .16254E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        3.1197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6490        2.2713        .62608E-03   -1.5675    
   8  norm          .21649E-08    2.1398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .65700        .69556        .64266E-03   -1.5692    
  10  norm           .0000        4.2765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10658E-07    2.2026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1710        3.2346        .56825E-03   -1.5672    
  13  Prefactor      .0000        .64267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .27200E-06    6.2803        .26399E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .45238        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .79294        .61723        .53441E-03   -1.5690    
  17  Normalizat    .89032        .15969        .16808       -.96801    
  18  Prefactor     1.0097        .26325E-01    .26752E-01   -.92406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10744e-07
Minuit parameter uncertainties:
  1  0.000300579
  2  0.000120531
  3  8.52318e-05
  4  1.99474e-05
  5  0.0039504
  6  8.48034e-06
  7  2.27134
  8  0.000136367
  9  0.695557
  10  1.489e-06
  11  0.000306535
  12  3.23456
  13  1.52166e-06
  14  0.00261414
  15  7.16865e-07
  16  0.617231
  17  0.15978
  18  0.0263252
Done.

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

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  0.000e+00  1.522e-06  0.000e+00  1.000e+06 ( 1.000e-12)
252        Index:  2.592e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
253        Scale:  9.842e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.010e+00  2.633e-02  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  8.903e-01  1.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 102.572 -16.601
Photon Flux Upper Limit: 5.61551258963e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439251568456 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60351108/likelihoodResults_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.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) = 41623.0063394
delta logL = -0.00393265144521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 41623.0024081
delta logL = -1.35484879138e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   41623.00     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      297 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .67719        .42118E-03** at limit **
   2  Index         2.5133        1.1038        .58979E-05     .0000    
   3  Normalizat    .89032        1.2260        .10641E-05   -.44769E-04
   4  Prefactor     1.0097        1.2659       -.71363E-06    .14277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.51328
  Normalizat = 0.890316
  Prefactor  = 1.00973
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   41623.00     FROM HESSE     STATUS=FAILED         9 CALLS      306 TOTAL
                     EDM=   .97E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .67719        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .71213        1.8830        .58979E-05   -.52054    
   3  Normalizat    .89032        1.2260        .10641E-05   -.96801    
   4  Prefactor     1.0097        1.2659       -.71363E-06   -.92406    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.68903e-12
Minuit parameter uncertainties:
  1  2.49991e-06
  2  1.11605
  3  1.26796
  4  1.30641
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) = 41623.0024068
delta logL = 0.0

Extracting fit parameters...

4FGL J0650.2-1636
   Spectrum: PowerLaw
251    Prefactor:  0.000e+00  2.500e-06  0.000e+00  1.000e+06 ( 1.000e-12)
252        Index:  2.513e+00  1.116e+00  0.000e+00  1.000e+01 (-1.000e+00)
253        Scale:  9.842e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.010e+00  1.306e+00  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  8.903e-01  1.268e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 102.572 -16.601

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/60351108/cmap_HighResolution_755481601_756086401_4FGL_J0650.2-1636_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2024-12-17 00:26:08.315333', job_id='60351108', GAL2='1.01', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1734423968.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='854' AND source_name='4FGL J0650.2-1636' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:26:08 PST 2024

