/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_J0712.7+5033_weekly_bin854
RA = 108.188, Dec = 50.5506
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='60351128', job_status='RUN', time_executed='2024-12-17 00:12:00.676999', time_epoch_executed='1734423120.68' WHERE source_name='4FGL J0712.7+5033' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351128

Creating custom pfile directory:
/lscratch/kocevski/60351128/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/60351128/ft1_4FGL_J0712.7+5033_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/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351128/ft1_4FGL_J0712.7+5033_weekly_bin854.fits outfile=/lscratch/kocevski/60351128/ft1_filteredMKT_4FGL_J0712.7+5033_weekly_bin854.fits ra=108.188 dec=50.5506 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.67
user 4.17
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_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/60351128/ft1_filteredMKT_4FGL_J0712.7+5033_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_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.46
user 0.20
sys 0.15

Number of photons that the gtmktime cut: 1749

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351128/ltcube_755481601_756086401_4FGL_J0712.7+5033_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/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits
.....................!
real 27.06
user 26.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351128/ltcube_755481601_756086401_4FGL_J0712.7+5033_weekly_bin854.fits outfile=/lscratch/kocevski/60351128/expmap_755481601_756086401_4FGL_J0712.7+5033_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/60351128/ltcube_755481601_756086401_4FGL_J0712.7+5033_weekly_bin854.fits
.....................!
real 62.61
user 58.78
sys 3.41

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

Setting source of interest to:
4FGL J0712.7+5033 @ 108.188 50.5506

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits scfile=/lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits outfile=/lscratch/kocevski/60351128/cmap_755481601_756086401_4FGL_J0712.7+5033_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=108.188 yref=50.5506 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.50
user 0.22
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits scfile=/lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits outfile=/lscratch/kocevski/60351128/cmap_HighResolution_755481601_756086401_4FGL_J0712.7+5033_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=108.188 yref=50.5506 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.57
user 0.24
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351128/Model_4FGL_J0712.7+5033_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
Working on...
/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits.....................!
real 67.39
user 65.72
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits', '/lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits', expMap='/lscratch/kocevski/60351128/expmap_755481601_756086401_4FGL_J0712.7+5033_weekly_bin854.fits', expCube='/lscratch/kocevski/60351128/ltcube_755481601_756086401_4FGL_J0712.7+5033_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351128/Model_4FGL_J0712.7+5033_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0712.7+5033'

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  9.082e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351128/ft1_filtered_4FGL_J0712.7+5033_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351128/ft2_4FGL_J0712.7+5033_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351128/expmap_755481601_756086401_4FGL_J0712.7+5033_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351128/ltcube_755481601_756086401_4FGL_J0712.7+5033_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351128/Model_4FGL_J0712.7+5033_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) = 18884.3759583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.581       1.0000          .0000       .10000E+07
     2 'norm      '    .93802       1.0000          .0000       .10000E+07
     3 'Prefactor '    15.715       1.0000          .0000       .10000E+07
     4 'Prefactor '    .18185E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    16.283       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.2406       1.0000          .0000       .10000E+07
     7 'norm      '    4.1368       1.0000          .0000       .10000E+07
     8 'norm      '    .19403E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .35042E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .32341E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.7696       1.0000          .0000       .10000E+07
    12 'Prefactor '    10.926       1.0000          .0000       .10000E+07
    13 'Prefactor '    .60553       1.0000          .0000       .10000E+07
    14 'norm      '    .34655E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .72746E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    21.322       1.0000          .0000       .10000E+07
    17 'norm      '    .15211       1.0000          .0000       .10000E+07
    18 'Prefactor '    .49033E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.2132       1.0000          .0000       .10000E+07
    20 'norm      '    2.1844       1.0000          .0000       .10000E+07
    21 'Prefactor '    .13419E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .20856E-04   1.0000          .0000       .10000E+07
    23 'norm      '    2.8737       1.0000          .0000       .10000E+07
    24 'norm      '    .90282       1.0000          .0000       .10000E+07
    25 'Prefactor '    3.9060       1.0000          .0000       .10000E+07
    26 'Prefactor '    13.575       1.0000          .0000       .10000E+07
    27 'Normalizat'    .83752       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0655       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18884.34     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2013 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.186        18.445       -.16674E-06   -.58858E-01
   2  norm          .93913        1.0252       -.16371E-07   -.31475E-03
   3  Prefactor     15.718        6.2613        .11690E-08   -.56854E-03
   4  Prefactor      .0000        2.1404       -.93649E-07** at limit **
   5  Prefactor     16.114        8.6975       -.33665E-07   -.94226E-01
   6  Prefactor     8.2517        5.4364       -.32263E-07   -.64410E-01
   7  norm          4.1330        2.5396       -.62665E-07   -.72610E-03
   8  norm           .0000        1.2149       -.19848E-06** at limit **
   9  norm           .0000        1.3116       -.14742E-07** at limit **
  10  Prefactor     .20373E-06    16.728       -.35817E-07** at limit **
  11  Prefactor     1.7718        2.4600       -.10115E-07   -.27872E-03
  12  Prefactor     10.863        4.1805       -.20820E-07   -.33082E-01
  13  Prefactor     .21471        60.745       -.10273E-05** at limit **
  14  norm           .0000        1.0747       -.16583E-06** at limit **
  15  Prefactor      .0000        4.7601       -.12396E-06** at limit **
  16  Prefactor     21.651        2.4221       -.14405E-07   -.17036E-01
  17  norm          .15104        .51018        .14424E-07** at limit **
  18  Prefactor     .12035E-06    11.729       -.38558E-06** at limit **
  19  Prefactor     5.2249        7.4454       -.11789E-06   -.23136E-01
  20  norm          2.1843        1.4499       -.15539E-06   -.38366E-02
  21  Prefactor     .72164E-09    5.9377        .13170E-06** at limit **
  22  Prefactor     .26928E-06    7.0946       -.19049E-06** at limit **
  23  norm          2.8753        2.4487       -.52274E-08   -.55972E-03
  24  norm          .90175        .72119       -.90962E-07   -.45933E-02
  25  Prefactor     3.9615        4.1902        .12474E-06    .74146E-03
  26  Prefactor     13.585        7.1923       -.28595E-07   -.59310E-02
  27  Normalizat    .83765        .14023       -.12324E-05   -.35285E-04
  28  Prefactor     1.0656        .74305E-01    .79194E-06   -.38107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1857
  norm       = 0.939127
  Prefactor  = 15.7176
  Prefactor  = 0
  Prefactor  = 16.1135
  Prefactor  = 8.25175
  norm       = 4.13304
  norm       = 0
  norm       = 0
  Prefactor  = 2.03726e-07
  Prefactor  = 1.77184
  Prefactor  = 10.863
  Prefactor  = 0.214707
  norm       = 0
  Prefactor  = 0
  Prefactor  = 21.6511
  norm       = 0.15104
  Prefactor  = 1.20348e-07
  Prefactor  = 5.22491
  norm       = 2.18435
  Prefactor  = 7.21645e-10
  Prefactor  = 2.69285e-07
  norm       = 2.87526
  norm       = 0.901753
  Prefactor  = 3.96154
  Prefactor  = 13.5855
  Normalizat = 0.837654
  Prefactor  = 1.06564
 **********
 **   18 **HESSE 
 **********

 FCN=   18884.34     FROM HESSE     STATUS=OK           587 CALLS     2600 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.186        26.043        .16314E-03   -1.5586    
   2  norm          .93913        1.0269        .43166E-03   -1.5689    
   3  Prefactor     15.718        6.2674        .25239E-03   -1.5629    
   4  Prefactor      .0000        2.1366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.114        13.735        .24793E-03   -1.5628    
   6  Prefactor     8.2517        10.530        .34900E-03   -1.5651    
   7  norm          4.1330        2.5585        .49535E-03   -1.5667    
   8  norm           .0000        1.2066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.3073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .20373E-06    20.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7718        2.4929        .78694E-03   -1.5681    
  12  Prefactor     10.863        11.073        .30286E-03   -1.5642    
  13  Prefactor     .21471        7.3707        .10311E-01   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.0745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        4.9234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.651        17.538        .21662E-03   -1.5615    
  17  norm          .15104        .51194        .12699E-03   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12035E-06    16.552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2249        11.791        .44002E-03   -1.5662    
  20  norm          2.1843        1.4563        .69618E-03   -1.5678    
  21  Prefactor     .72164E-09    6.1351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .26928E-06    16.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8753        2.4675        .59934E-03   -1.5674    
  24  norm          .90175        .72051        .45566E-03   -1.5689    
  25  Prefactor     3.9615        4.1944        .51025E-03   -1.5668    
  26  Prefactor     13.585        7.2142        .27160E-03   -1.5634    
  27  Normalizat    .83765        .12942        .78575E-01   -.98687    
  28  Prefactor     1.0656        .66004E-01    .39077E-01   -.90572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96728e-07
Minuit parameter uncertainties:
  1  26.0426
  2  1.02687
  3  6.26745
  4  2.91455e-06
  5  13.7346
  6  10.5299
  7  2.55849
  8  6.23768e-06
  9  2.08038e-06
  10  0.00404966
  11  2.49292
  12  11.0727
  13  2.51599
  14  4.42434e-06
  15  1.45041e-05
  16  17.5384
  17  0.511941
  18  0.00282294
  19  11.7908
  20  1.45626
  21  0.000135611
  22  0.00416384
  23  2.46745
  24  0.720514
  25  4.19441
  26  7.21423
  27  0.129467
  28  0.0660092
Done.

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

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  1.086e+01  1.107e+01  0.000e+00  1.000e+06 ( 1.000e-13)
281        Index:  2.201e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.066e+00  6.601e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  8.377e-01  1.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 108.188 50.551
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.13e-08
Energy Flux (Fixed Index): 9.37e-06 +/- 9.56e-06

TS (Fixed Index): 1.26
Ra Dec: 108.188 50.551
Photon Flux Upper Limit: 6.48820080268e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00494365954497 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60351128/likelihoodResults_755481601_756086401_4FGL_J0712.7+5033_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) = 18884.2743185
delta logL = 0.0638603821571

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18884.2624804
delta logL = 0.0756984465806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3132       1.0000          .0000       .10000E+07
     2 'Index     '    2.4390       1.0000          .0000       10.000    
     3 'Normalizat'    .83076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0675       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   18884.26     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3125        11.519        .13126E-04   -.60281E-03
   2  Index         2.4391        .67752        .86113E-02    .56481E-03
   3  Normalizat    .83074        .13407        .34914E-03   -.33852E-03
   4  Prefactor     1.0675        .73174E-01    .17102E-03   -.67492E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.31254
  Index      = 2.43907
  Normalizat = 0.830736
  Prefactor  = 1.06753
 **********
 **   18 **HESSE 
 **********

 FCN=   18884.26     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3125        10.810        .52505E-06   -1.5647    
   2  Index         2.4391        .63574        .17223E-02   -.53773    
   3  Normalizat    .83074        .13406        .13965E-04   -.98939    
   4  Prefactor     1.0675        .73165E-01    .34204E-04   -.90511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01269e-11
Minuit parameter uncertainties:
  1  10.8101
  2  0.638089
  3  0.13411
  4  0.0731718
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) = 18884.2624804
delta logL = 0.0756985114604

Extracting fit parameters...

4FGL J0712.7+5033
   Spectrum: PowerLaw
280    Prefactor:  9.313e+00  1.081e+01  0.000e+00  1.000e+06 ( 1.000e-13)
281        Index:  2.439e+00  6.381e-01  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  1.186e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  1.068e+00  7.317e-02  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  8.307e-01  1.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 108.188 50.551
Photon Index (Free Index): 2.44 +/- 0.64
Photon Flux (Free Index): 2.70e-08 +/- 2.78e-08
Energy Flux (Free Index): 8.41e-06 +/- 8.35e-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/60351128/cmap_HighResolution_755481601_756086401_4FGL_J0712.7+5033_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='8.41e-06', photon_flux_error='2.13e-08', dlogl='7.57e-02', energy_flux='9.37e-06', photon_flux2='2.70e-08', job_status='DONE', time_completed='2024-12-17 00:23:41.896446', photon_index_error2='0.64', photon_index2='2.44', ts='1.26', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='6.49e-08', energy_flux_error2='8.35e-06', EG='0.84', time_epoch_completed='1734423821.9', return_code='0', job_id='60351128', GAL2='1.07', EG2='0.83', return_code2='0', energy_flux_error='9.56e-06', photon_flux_error2='2.78e-08', ts2='1.42', photon_index='2.20' WHERE bin_id='854' AND source_name='4FGL J0712.7+5033' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:23:41 PST 2024

