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


Performing analysis on: 4FGL_J1722.6+6104_daily_bin1920
RA = 260.662, Dec = 61.0734
tmin = 736992001, tmax = 737251201
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='47697544', job_status='RUN', time_executed='2024-05-13 00:45:37.923513', time_epoch_executed='1715586337.92' WHERE source_name='4FGL J1722.6+6104' and cadence='daily' and bin_id='1920'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/47697544

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/47697544/ft1_4FGL_J1722.6+6104_daily_bin1920.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/47697544/ft1_4FGL_J1722.6+6104_daily_bin1920.fits outfile=/lscratch/kocevski/47697544/ft1_filteredMKT_4FGL_J1722.6+6104_daily_bin1920.fits ra=260.662 dec=61.0734 rad=12.0 tmin=736992001.0 tmax=737251201.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 1.52
user 1.27
sys 0.17

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

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

Number of photons that the gtmktime cut: 1836

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits" evtable="EVENTS" scfile=/lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits sctable="SC_DATA" outfile=/lscratch/kocevski/47697544/ltcube_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.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/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits
.....................!
real 8.90
user 8.38
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits evtable="EVENTS" scfile=/lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits sctable="SC_DATA" expcube=/lscratch/kocevski/47697544/ltcube_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.fits outfile=/lscratch/kocevski/47697544/expmap_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.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/47697544/ltcube_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.fits
.....................!
real 64.39
user 60.25
sys 3.66

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/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits scfile=/lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits outfile=/lscratch/kocevski/47697544/cmap_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.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.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits scfile=/lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits outfile=/lscratch/kocevski/47697544/cmap_HighResolution_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.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.42
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits evtable="EVENTS" scfile=/lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/47697544/Model_4FGL_J1722.6+6104_daily_bin1920.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/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits.....................!
real 58.53
user 57.18
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits', '/lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits', expMap='/lscratch/kocevski/47697544/expmap_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.fits', expCube='/lscratch/kocevski/47697544/ltcube_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/47697544/Model_4FGL_J1722.6+6104_daily_bin1920.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/47697544/ft1_filtered_4FGL_J1722.6+6104_daily_bin1920.fits
Spacecraft file(s): /lscratch/kocevski/47697544/ft2_4FGL_J1722.6+6104_daily_bin1920.fits
Exposure map: /lscratch/kocevski/47697544/expmap_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.fits
Exposure cube: /lscratch/kocevski/47697544/ltcube_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/47697544/Model_4FGL_J1722.6+6104_daily_bin1920.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) = 18803.5286215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10250E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .96001E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.9046       1.0000          .0000       .10000E+07
     4 'norm      '    13.835       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.107       1.0000          .0000       .10000E+07
     6 'norm      '    17.045       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.8577       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.5246       1.0000          .0000       .10000E+07
     9 'norm      '    10.396       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.4880       1.0000          .0000       .10000E+07
    11 'Prefactor '    .91995       1.0000          .0000       .10000E+07
    12 'norm      '    .14392E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.0511       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.5300       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.3121       1.0000          .0000       .10000E+07
    16 'Prefactor '    .58926E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    2.6392       1.0000          .0000       .10000E+07
    18 'Prefactor '    .29262E-02   1.0000          .0000       .10000E+07
    19 'norm      '    1.8983       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.3153       1.0000          .0000       .10000E+07
    21 'Prefactor '    52.340       1.0000          .0000       .10000E+07
    22 'Prefactor '    20.431       1.0000          .0000       .10000E+07
    23 'norm      '    3.0097       1.0000          .0000       .10000E+07
    24 'Prefactor '    8.3253       1.0000          .0000       .10000E+07
    25 'norm      '    16.772       1.0000          .0000       .10000E+07
    26 'Prefactor '    5.9291       1.0000          .0000       .10000E+07
    27 'Prefactor '    .17173E-01   1.0000          .0000       .10000E+07
    28 'Prefactor '    5.4913       1.0000          .0000       .10000E+07
    29 'norm      '    2.4162       1.0000          .0000       .10000E+07
    30 'Prefactor '    .24812E-05   1.0000          .0000       .10000E+07
    31 'Prefactor '    5.2726       1.0000          .0000       .10000E+07
    32 'Prefactor '    .21366E-01   1.0000          .0000       .10000E+07
    33 'norm      '    2.2172       1.0000          .0000       .10000E+07
    34 'Normalizat'    1.0360       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .90692       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=   18803.47     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     2886 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    1.9154        .24254E-08** at limit **
   2  Prefactor     .83195E-06    57.394       -.75957E-06** at limit **
   3  Prefactor     9.9335        6.2305        .61165E-06    .57058E-01
   4  norm          13.864        5.7872       -.27531E-06   -.35830E-01
   5  Prefactor     11.216        3.5555        .18280E-07   -.27395E-01
   6  norm          17.000        8.8963       -.26448E-06    .74440E-01
   7  Prefactor     7.8367        4.3535        .24457E-07    .27051E-02
   8  Prefactor     6.5759        15.506        .91592E-07   -.26231E-01
   9  norm          10.418        5.3291        .11266E-06    .12837E-01
  10  Prefactor     6.4778        4.5161        .39273E-06    .76587E-02
  11  Prefactor     .90291        14.177       -.13835E-05    .71869E-02
  12  norm           .0000        .81170        .16946E-08** at limit **
  13  Prefactor     1.0423        3.4088       -.37769E-07    .57316E-03
  14  Prefactor     1.5761        6.6239        .29365E-06    .24755E-02
  15  Prefactor     3.3122        3.2991        .44817E-07   -.12155E-02
  16  Prefactor     .55511E-10    1.4772       -.37134E-07** at limit **
  17  Prefactor     2.6412        1.7482       -.44601E-08   -.81568E-02
  18  Prefactor     .99920E-09    9.4961       -.57795E-07** at limit **
  19  norm          1.8914        2.8158        .14056E-07    .17753E-02
  20  Prefactor     4.3627        3.2471       -.74500E-07    .58738E-02
  21  Prefactor     51.254        28.499        .76110E-06   -.53245E-01
  22  Prefactor     22.433        15.812       -.19028E-06    .15434E-01
  23  norm          3.0059        1.7618       -.21010E-08    .29435E-02
  24  Prefactor     8.2620        9.5882        .99274E-07    .47049E-01
  25  norm          16.801        4.1475        .78288E-08    .27085E-02
  26  Prefactor     5.9278        3.6398        .46488E-06    .25915E-01
  27  Prefactor     .13173E-06    4.7342        .12987E-05** at limit **
  28  Prefactor     5.4834        3.7378        .25124E-07   -.12030E-02
  29  norm          2.4015        3.3244        .10500E-07    .44771E-03
  30  Prefactor     .13323E-08    6.0673       -.11966E-07** at limit **
  31  Prefactor     5.2805        4.2780       -.25604E-06    .16700E-01
  32  Prefactor     .88818E-09    18.066        .12452E-06** at limit **
  33  norm          2.2181        1.6186        .29291E-07   -.54647E-02
  34  Normalizat    1.0357        .14907        .22832E-06    .12531E-03
  35  Prefactor     .90673        .11106       -.11128E-05    .38090E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  Prefactor  = 8.31946e-07
  Prefactor  = 9.93353
  norm       = 13.8644
  Prefactor  = 11.2158
  norm       = 17.0004
  Prefactor  = 7.83674
  Prefactor  = 6.57586
  norm       = 10.4181
  Prefactor  = 6.47784
  Prefactor  = 0.902913
  norm       = 0
  Prefactor  = 1.04229
  Prefactor  = 1.57608
  Prefactor  = 3.31219
  Prefactor  = 5.55112e-11
  Prefactor  = 2.64122
  Prefactor  = 9.99201e-10
  norm       = 1.8914
  Prefactor  = 4.3627
  Prefactor  = 51.2538
  Prefactor  = 22.4332
  norm       = 3.00585
  Prefactor  = 8.26202
  norm       = 16.8007
  Prefactor  = 5.9278
  Prefactor  = 1.31728e-07
  Prefactor  = 5.48338
  norm       = 2.40148
  Prefactor  = 1.33227e-09
  Prefactor  = 5.28048
  Prefactor  = 8.88178e-10
  norm       = 2.21808
  Normalizat = 1.03574
  Prefactor  = 0.906726
 **********
 **   18 **HESSE 
 **********

 FCN=   18803.47     FROM HESSE     STATUS=OK           866 CALLS     3752 TOTAL
                     EDM=   .72E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    1.8947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .83195E-06    67.447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.9335        6.6795        .31816E-03   -1.5645    
   4  norm          13.864        6.0187        .26903E-03   -1.5633    
   5  Prefactor     11.216        14.473        .30037E-03   -1.5641    
   6  norm          17.000        13.254        .24232E-03   -1.5625    
   7  Prefactor     7.8367        4.3342        .35747E-03   -1.5652    
   8  Prefactor     6.5759        29.728        .39265E-03   -1.5657    
   9  norm          10.418        5.4749        .31051E-03   -1.5643    
  10  Prefactor     6.4778        6.1176        .39377E-03   -1.5657    
  11  Prefactor     .90291        22.120        .44391E-03   -1.5689    
  12  norm           .0000        .15937        .26935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0423        3.5057        .12062E-02   -1.5688    
  14  Prefactor     1.5761        7.3084        .86257E-03   -1.5683    
  15  Prefactor     3.3122        3.3088        .55601E-03   -1.5672    
  16  Prefactor     .55511E-10    1.4772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6412        1.7479        .62735E-03   -1.5675    
  18  Prefactor     .99920E-09    9.5008        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.8914        2.8507        .75466E-03   -1.5680    
  20  Prefactor     4.3627        3.2982        .48470E-03   -1.5666    
  21  Prefactor     51.254        34.434        .13823E-03   -1.5565    
  22  Prefactor     22.433        39.250        .22130E-03   -1.5613    
  23  norm          3.0059        1.7709        .58479E-03   -1.5673    
  24  Prefactor     8.2620        10.635        .34721E-03   -1.5650    
  25  norm          16.801        4.1659        .24429E-03   -1.5626    
  26  Prefactor     5.9278        5.9128        .41216E-03   -1.5659    
  27  Prefactor     .13173E-06    21.708        .17230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.4834        3.9403        .42854E-03   -1.5661    
  29  norm          2.4015        3.3413        .65826E-03   -1.5677    
  30  Prefactor     .13323E-08    6.0443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.2805        13.288        .43749E-03   -1.5662    
  32  Prefactor     .88818E-09    18.051        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          2.2181        1.7366        .69038E-03   -1.5678    
  34  Normalizat    1.0357        .12798        .67077E-01   -.91843    
  35  Prefactor     .90673        .94193E-01    .45093E-01   -.95906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18719e-07
Minuit parameter uncertainties:
  1  3.17114e-05
  2  0.0149819
  3  6.67946
  4  6.01871
  5  14.4734
  6  13.2539
  7  4.33424
  8  27.9638
  9  5.47489
  10  6.11761
  11  8.93819
  12  2.44542e-06
  13  3.50569
  14  6.78783
  15  3.3088
  16  1.35855e-05
  17  1.74791
  18  0.000193903
  19  2.85068
  20  3.29824
  21  34.4344
  22  39.2503
  23  1.77092
  24  10.6351
  25  4.16594
  26  5.9128
  27  0.00338189
  28  3.94029
  29  3.34127
  30  0.000180668
  31  13.2885
  32  0.000250328
  33  1.73659
  34  0.128016
  35  0.0942104
Done.

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

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  3.312e+00  3.309e+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:  9.067e-01  9.421e-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:  1.036e+00  1.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 260.662 61.073
Photon Index (Fixed Index): 2.84 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 4.56e-06 +/- 4.55e-06

TS (Fixed Index): 1.42
Ra Dec: 260.662 61.073
Photon Flux Upper Limit: 6.4963552894e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00515526916621 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/47697544/likelihoodResults_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.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) = 18803.1805255
delta logL = 0.288183374694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18803.1696358
delta logL = 0.299073060829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3764       1.0000          .0000       .10000E+07
     2 'Index     '    2.2367       1.0000          .0000       10.000    
     3 'Normalizat'    1.0470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90020       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18803.17     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      300 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3748        3.9953        .19248E-04    .16774E-03
   2  Index         2.2366        .71009        .16474E-01   -.87395E-05
   3  Normalizat    1.0470        .14079        .29527E-03   -.23872E-04
   4  Prefactor     .90022        .10886        .24452E-03   -.28454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.3748
  Index      = 2.23664
  Normalizat = 1.04699
  Prefactor  = 0.900217
 **********
 **   18 **HESSE 
 **********

 FCN=   18803.17     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3748        4.0233        .76993E-06   -1.5666    
   2  Index         2.2366        .71546        .65896E-03   -.58557    
   3  Normalizat    1.0470        .14097        .11811E-04   -.91472    
   4  Prefactor     .90022        .10897        .97808E-05   -.96134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1406e-13
Minuit parameter uncertainties:
  1  4.02331
  2  0.71902
  3  0.141017
  4  0.108998
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) = 18803.1696357
delta logL = 0.299073173323

Extracting fit parameters...

4FGL J1722.6+6104
   Spectrum: PowerLaw
352    Prefactor:  4.375e+00  4.023e+00  0.000e+00  1.000e+06 ( 1.000e-12)
353        Index:  2.237e+00  7.190e-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:  9.002e-01  1.090e-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:  1.047e+00  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 260.662 61.073
Photon Index (Free Index): 2.24 +/- 0.72
Photon Flux (Free Index): 1.49e-08 +/- 1.76e-08
Energy Flux (Free Index): 6.27e-06 +/- 6.50e-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/47697544/cmap_HighResolution_736992001_737251201_4FGL_J1722.6+6104_daily_bin1920.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='6.27e-06', photon_flux_error='2.09e-08', dlogl='2.99e-01', energy_flux='4.56e-06', photon_flux2='1.49e-08', job_status='DONE', time_completed='2024-05-13 01:00:02.188782', photon_index_error2='0.72', photon_index2='2.24', ts='1.42', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='6.50e-08', energy_flux_error2='6.50e-06', EG='1.04', time_epoch_completed='1715587202.19', return_code='0', job_id='47697544', GAL2='0.90', EG2='1.05', return_code2='0', energy_flux_error='4.55e-06', photon_flux_error2='1.76e-08', ts2='1.99', photon_index='2.84' WHERE bin_id='1920' AND source_name='4FGL J1722.6+6104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May 13 01:00:02 PDT 2024

