/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_J1722.6+6104_weekly_bin854
RA = 260.662, Dec = 61.0734
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='60352512', job_status='RUN', time_executed='2024-12-17 00:57:02.128277', time_epoch_executed='1734425822.13' WHERE source_name='4FGL J1722.6+6104' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352512

Creating custom pfile directory:
/lscratch/kocevski/60352512/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/60352512/ft1_4FGL_J1722.6+6104_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/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352512/ft1_4FGL_J1722.6+6104_weekly_bin854.fits outfile=/lscratch/kocevski/60352512/ft1_filteredMKT_4FGL_J1722.6+6104_weekly_bin854.fits ra=260.662 dec=61.0734 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 5.31
user 4.68
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_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/60352512/ft1_filteredMKT_4FGL_J1722.6+6104_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_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.55
user 0.22
sys 0.15

Number of photons that the gtmktime cut: 1952

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352512/ltcube_755481601_756086401_4FGL_J1722.6+6104_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/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits
.....................!
real 17.12
user 16.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352512/ltcube_755481601_756086401_4FGL_J1722.6+6104_weekly_bin854.fits outfile=/lscratch/kocevski/60352512/expmap_755481601_756086401_4FGL_J1722.6+6104_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/60352512/ltcube_755481601_756086401_4FGL_J1722.6+6104_weekly_bin854.fits
.....................!
real 71.21
user 66.78
sys 3.88

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

Setting source of interest to:
4FGL J1722.6+6104 @ 260.662 61.0734

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits scfile=/lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits outfile=/lscratch/kocevski/60352512/cmap_755481601_756086401_4FGL_J1722.6+6104_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=260.662 yref=61.0734 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.42
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits scfile=/lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits outfile=/lscratch/kocevski/60352512/cmap_HighResolution_755481601_756086401_4FGL_J1722.6+6104_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=260.662 yref=61.0734 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.43
user 0.24
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352512/Model_4FGL_J1722.6+6104_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/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits.....................!
real 69.25
user 67.58
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits', '/lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits', expMap='/lscratch/kocevski/60352512/expmap_755481601_756086401_4FGL_J1722.6+6104_weekly_bin854.fits', expCube='/lscratch/kocevski/60352512/ltcube_755481601_756086401_4FGL_J1722.6+6104_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352512/Model_4FGL_J1722.6+6104_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1722.6+6104'

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  1.901e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
353        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352512/ft1_filtered_4FGL_J1722.6+6104_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352512/ft2_4FGL_J1722.6+6104_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352512/expmap_755481601_756086401_4FGL_J1722.6+6104_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352512/ltcube_755481601_756086401_4FGL_J1722.6+6104_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352512/Model_4FGL_J1722.6+6104_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) = 20239.5611837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0880       1.0000          .0000       .10000E+07
     2 'Prefactor '    .64289       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34913E-03   1.0000          .0000       .10000E+07
     4 'norm      '    30.054       1.0000          .0000       .10000E+07
     5 'Prefactor '    .20077E-03   1.0000          .0000       .10000E+07
     6 'norm      '    5.2193       1.0000          .0000       .10000E+07
     7 'Prefactor '    .30039E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    15.364       1.0000          .0000       .10000E+07
     9 'norm      '    20.293       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.7827       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.7241       1.0000          .0000       .10000E+07
    12 'norm      '    2.0269       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.8034       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.7469       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.7877       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.8824       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.4444       1.0000          .0000       .10000E+07
    18 'Prefactor '    .28990E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .81962E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    5.7179       1.0000          .0000       .10000E+07
    21 'Prefactor '    34.831       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.545       1.0000          .0000       .10000E+07
    23 'norm      '    4.3612       1.0000          .0000       .10000E+07
    24 'Prefactor '    .12218E-06   1.0000          .0000       .10000E+07
    25 'norm      '    6.3529       1.0000          .0000       .10000E+07
    26 'Prefactor '    .64045E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    .10262E-01   1.0000          .0000       .10000E+07
    28 'Prefactor '    1.0274       1.0000          .0000       .10000E+07
    29 'norm      '    52.978       1.0000          .0000       .10000E+07
    30 'Prefactor '    .22410E-04   1.0000          .0000       .10000E+07
    31 'Prefactor '    .12807E-03   1.0000          .0000       .10000E+07
    32 'Prefactor '    .57040E-04   1.0000          .0000       .10000E+07
    33 'norm      '    4.2989       1.0000          .0000       .10000E+07
    34 'Normalizat'    .74965       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20239.50     FROM MIGRAD    STATUS=CONVERGED    240 CALLS     2866 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0937        2.3769        .10385E-07    .27247E-02
   2  Prefactor     .31552E-04    361.58       -.11840E-06** at limit **
   3  Prefactor     .11580E-06    29.172       -.11600E-06** at limit **
   4  norm          30.055        6.5961       -.49873E-07   -.14264E-01
   5  Prefactor     .16653E-09    5.9867        .49355E-07** at limit **
   6  norm          5.2191        7.8926        .63400E-08   -.34927E-02
   7  Prefactor     .25313E-07    8.6527       -.25384E-07** at limit **
   8  Prefactor     15.365        6.1735        .29596E-07   -.13727    
   9  norm          20.258        6.2799        .62163E-08    .72300E-03
  10  Prefactor     5.7667        4.9793       -.62744E-10   -.15382E-03
  11  Prefactor     5.7041        10.791        .27578E-07   -.43322E-02
  12  norm          2.0286        .59245       -.20511E-08   -.31425E-02
  13  Prefactor     3.7593        4.1822        .24411E-08    .17048E-02
  14  Prefactor     2.7434        8.5042       -.97669E-07   -.24249E-01
  15  Prefactor     4.7935        3.3472       -.19741E-07   -.20591E-02
  16  Prefactor     5.8522        5.3175       -.19229E-07   -.12353E-02
  17  Prefactor     1.4441        1.6590       -.29123E-07   -.44907E-02
  18  Prefactor     .63172E-07    27.112       -.31239E-06** at limit **
  19  norm          .55511E-10    1.9577       -.20423E-07** at limit **
  20  Prefactor     5.6971        3.0113        .13378E-07    .36828E-02
  21  Prefactor     35.574        13.284        .15531E-07   -.16582E-01
  22  Prefactor     11.741        18.841        .58017E-09   -.42584E-01
  23  norm          4.3600        1.6430        .16191E-07    .92144E-02
  24  Prefactor      .0000        3.6585       -.21684E-07** at limit **
  25  norm          6.3573        2.9442       -.94135E-08   -.40891E-03
  26  Prefactor     .16653E-09    6.7374        .10551E-06** at limit **
  27  Prefactor     .83267E-09    18.246        .36164E-07** at limit **
  28  Prefactor     1.0176        3.5077       -.23754E-07   -.48587E-05
  29  norm          52.979        8.0364       -.10822E-07   -.43453E-02
  30  Prefactor      .0000        3.0100        .44500E-07** at limit **
  31  Prefactor     .13323E-08    9.6006        .18855E-06** at limit **
  32  Prefactor     .44409E-09    56.361       -.18865E-07** at limit **
  33  norm          4.2979        2.0684        .26825E-07    .98984E-02
  34  Normalizat    .74999        .14682        .54948E-06    .27448E-03
  35  Prefactor     1.1173        .11253        .17456E-06    .43859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.09368
  Prefactor  = 3.15523e-05
  Prefactor  = 1.15796e-07
  norm       = 30.0547
  Prefactor  = 1.66533e-10
  norm       = 5.21906
  Prefactor  = 2.53131e-08
  Prefactor  = 15.3655
  norm       = 20.2583
  Prefactor  = 5.76667
  Prefactor  = 5.70411
  norm       = 2.02862
  Prefactor  = 3.75932
  Prefactor  = 2.74341
  Prefactor  = 4.79349
  Prefactor  = 5.85215
  Prefactor  = 1.44407
  Prefactor  = 6.31717e-08
  norm       = 5.55112e-11
  Prefactor  = 5.69709
  Prefactor  = 35.5742
  Prefactor  = 11.7415
  norm       = 4.36004
  Prefactor  = 0
  norm       = 6.35732
  Prefactor  = 1.66533e-10
  Prefactor  = 8.32667e-10
  Prefactor  = 1.01765
  norm       = 52.9795
  Prefactor  = 0
  Prefactor  = 1.33227e-09
  Prefactor  = 4.44089e-10
  norm       = 4.29788
  Normalizat = 0.749989
  Prefactor  = 1.11725
 **********
 **   18 **HESSE 
 **********

 FCN=   20239.50     FROM HESSE     STATUS=OK           868 CALLS     3734 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0937        2.3791        .49839E-03   -1.5667    
   2  Prefactor     .31552E-04    416.33        .65471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11580E-06    3.0614        .78818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.055        7.0391        .18244E-03   -1.5598    
   5  Prefactor     .16653E-09    5.9940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.2191        7.9037        .43976E-03   -1.5662    
   7  Prefactor     .25313E-07    2.2467        .59023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.365        14.980        .25526E-03   -1.5630    
   9  norm          20.258        6.2855        .22205E-03   -1.5618    
  10  Prefactor     5.7667        4.9826        .41742E-03   -1.5660    
  11  Prefactor     5.7041        10.834        .41959E-03   -1.5660    
  12  norm          2.0286        .60612        .72643E-03   -1.5679    
  13  Prefactor     3.7593        4.2086        .51733E-03   -1.5669    
  14  Prefactor     2.7434        8.7898        .61399E-03   -1.5675    
  15  Prefactor     4.7935        3.3574        .45956E-03   -1.5664    
  16  Prefactor     5.8522        5.3859        .41382E-03   -1.5660    
  17  Prefactor     1.4441        1.6699        .89682E-03   -1.5684    
  18  Prefactor     .63172E-07    28.029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    1.9537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.6971        3.0909        .41982E-03   -1.5660    
  21  Prefactor     35.574        30.730        .16946E-03   -1.5589    
  22  Prefactor     11.741        60.750        .28256E-03   -1.5639    
  23  norm          4.3600        1.6466        .48207E-03   -1.5666    
  24  Prefactor      .0000        3.6544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.3573        2.9986        .39799E-03   -1.5658    
  26  Prefactor     .16653E-09    6.7376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .83267E-09    18.311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0176        3.5504        .12584E-02   -1.5688    
  29  norm          52.979        8.0427        .13740E-03   -1.5562    
  30  Prefactor      .0000        3.0132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .13323E-08    9.5969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .44409E-09    56.831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          4.2979        2.0756        .48565E-03   -1.5667    
  34  Normalizat    .74999        .12906        .79672E-01   -1.0195    
  35  Prefactor     1.1173        .96020E-01    .53070E-01   -.88917    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2581e-07
Minuit parameter uncertainties:
  1  2.37911
  2  0.229243
  3  0.0011909
  4  7.03909
  5  6.30158e-05
  6  7.9037
  7  0.000476757
  8  14.9803
  9  6.28548
  10  4.98265
  11  10.8337
  12  0.606115
  13  4.20862
  14  8.78986
  15  3.3574
  16  5.38586
  17  1.66992
  18  0.00266168
  19  1.66411e-05
  20  3.09093
  21  30.7304
  22  53.4159
  23  1.64664
  24  4.98077e-06
  25  2.99864
  26  6.75314e-05
  27  0.000244206
  28  3.5504
  29  8.0427
  30  6.81567e-06
  31  0.00022641
  32  0.000320572
  33  2.07565
  34  0.12911
  35  0.0960349
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  4.793e+00  3.357e+00  0.000e+00  1.000e+06 ( 1.000e-12)
353        Index:  2.844e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.117e+00  9.603e-02  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  7.500e-01  1.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 260.662 61.073
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 3.03e-08 +/- 2.12e-08
Energy Flux (Fixed Index): 6.59e-06 +/- 4.62e-06

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) = 20237.8082683
delta logL = 1.69477417511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20237.7732928
delta logL = 1.72974967845

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20237.77     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8689        4.4015        .41445E-03    .60926E-02
   2  Index         1.8919        .33021        .26453       -.13387E-03
   3  Normalizat    .77126        .12112        .78646E-01    .89564E-04
   4  Prefactor     1.1063        .96852E-01    .37351E-01    .20598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.8689
  Index      = 1.89186
  Normalizat = 0.771263
  Prefactor  = 1.10631
 **********
 **   18 **HESSE 
 **********

 FCN=   20237.77     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8689        4.7411        .82890E-04   -1.5660    
   2  Index         1.8919        .45935        .11145E-01   -.67082    
   3  Normalizat    .77126        .13755        .34818E-03   -1.0114    
   4  Prefactor     1.1063        .11013        .23552E-03   -.89265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02641e-09
Minuit parameter uncertainties:
  1  4.74106
  2  0.460406
  3  0.137611
  4  0.11015
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) = 20237.7732923
delta logL = 1.72975020803

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  5.869e+00  4.741e+00  0.000e+00  1.000e+06 ( 1.000e-12)
353        Index:  1.892e+00  4.604e-01  0.000e+00  1.000e+01 (-1.000e+00)
354        Scale:  5.326e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.106e+00  1.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  7.713e-01  1.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.22
Ra Dec: 260.662 61.073
Photon Index (Free Index): 1.89 +/- 0.46
Photon Flux (Free Index): 1.55e-08 +/- 1.49e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.37e-05

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/60352512/cmap_HighResolution_755481601_756086401_4FGL_J1722.6+6104_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.03e-08', energy_flux2='1.43e-05', photon_flux_error='2.12e-08', dlogl='1.73e+00', energy_flux='6.59e-06', photon_flux2='1.55e-08', job_status='DONE', time_completed='2024-12-17 01:11:06.683035', photon_index_error2='0.46', photon_index2='1.89', ts='4.82', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.75', time_epoch_completed='1734426666.68', return_code='0', job_id='60352512', GAL2='1.11', EG2='0.77', return_code2='0', energy_flux_error='4.62e-06', photon_flux_error2='1.49e-08', ts2='8.22', photon_index='2.84' WHERE bin_id='854' AND source_name='4FGL J1722.6+6104' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:11:06 PST 2024

