 **********
 **   18 **HESSE 
 **********

 FCN=   23429.32     FROM HESSE     STATUS=OK           298 CALLS     1404 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2233        8.6930        .44010E-03   -1.5662    
   2  Prefactor     5.3411        4.1374        .43414E-03   -1.5662    
   3  Prefactor     .11345        1.3712        .10144E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1794        10.521        .49255E-03   -1.5667    
   5  Prefactor     18.361        18.161        .23222E-03   -1.5622    
   6  Prefactor     .38858E-09    51.133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0879        5.8414        .40612E-03   -1.5659    
   8  Prefactor     6.1814        7.6723        .40381E-03   -1.5658    
   9  norm           .0000        1.2201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8392        5.0765        .51328E-03   -1.5669    
  11  norm          11.380        7.1977        .29515E-03   -1.5640    
  12  Prefactor      .0000        25.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22204E-08    .79241        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        15.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44817        .48602        .21777E-02   -1.5695    
  16  Prefactor      .0000        2.7735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .73924        .17012        .11025       -1.0236    
  18  Prefactor     1.1802        .61797E-01    .35121E-01   -.86944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96503e-07
Minuit parameter uncertainties:
  1  8.69305
  2  4.13736
  3  0.788828
  4  10.5213
  5  18.1614
  6  0.000281284
  7  5.84143
  8  7.67233
  9  1.10192e-05
  10  5.07655
  11  7.19774
  12  3.20244e-05
  13  8.38395e-05
  14  2.10254e-05
  15  0.486017
  16  3.93372e-08
  17  0.17024
  18  0.0618013
/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).

Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  0.000e+00  1.102e-05  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  1.180e+00  6.180e-02  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  7.392e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 259.806 17.753
Photon Flux Upper Limit: 2.79807008017e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19661726/likelihoodResults_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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): 102
logL (Free Index) = 23429.3184671
delta logL = -0.00300928080105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23429.315475
delta logL = -1.72072504938e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27675E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    2.5268       1.0000          .0000       5.0000    
     3 'Normalizat'    .73864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   23429.32     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      257 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .26672        .42118E-02** at limit **
   2  alpha         2.5589        .99979        .32686E-04     .0000    
   3  Normalizat    .73924        1.0787       -.11584E-04    .54353E-04
   4  Prefactor     1.1802        1.1096        .44711E-05    .29341E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.55892
  Normalizat = 0.739237
  Prefactor  = 1.18016
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23429.32     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .26672        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3313        1.2227        .32686E-04    .23569E-01
   3  Normalizat    .73924        1.0787       -.11584E-04   -1.0236    
   4  Prefactor     1.1802        1.1096        .44711E-05   -.86944    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.42028e-12
Minuit parameter uncertainties:
  1  2.75009e-06
  2  1.02858
  3  1.11235
  4  1.13277
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) = 23429.3154578
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  0.000e+00  2.750e-06  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  2.559e+00  1.029e+00  0.000e+00  5.000e+00 ( 1.000e+00)
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  1.180e+00  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  7.392e-01  1.112e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 259.806 17.753

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/19661726/cmap_HighResolution_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.80e-08', time_completed='2023-07-18 01:51:53.136234', job_id='19661726', GAL2='1.18', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1689670313.14', return_code2='101', ts='0.00', return_code='0', GAL='1.18', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='780' AND source_name='4FGL J1719.2+1745' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 01:51:54 PDT 2023

number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1719.2+1745_weekly_bin780
RA = 259.806, Dec = 17.7533
tmin = 710726401, tmax = 711331201
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='19663188', job_status='RUN', time_executed='2023-07-18 01:42:55.112184', time_epoch_executed='1689669775.11' WHERE source_name='4FGL J1719.2+1745' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19663188

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19663188/ft1_4FGL_J1719.2+1745_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19663188/ft1_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19663188/ft1_filteredMKT_4FGL_J1719.2+1745_weekly_bin780.fits ra=259.806 dec=17.7533 rad=12.0 tmin=710726401.0 tmax=711331201.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 3.56
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.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/19663188/ft1_filteredMKT_4FGL_J1719.2+1745_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.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 1.18
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 2265

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19663188/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits
.....................!
real 16.06
user 15.02
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19663188/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19663188/expmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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/19663188/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits
.....................!
real 60.48
user 55.97
sys 3.46

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

Setting source of interest to:
4FGL J1719.2+1745 @ 259.806 17.7533

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits scfile=/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19663188/cmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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=259.806 yref=17.7533 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 1.17
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits scfile=/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19663188/cmap_HighResolution_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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=259.806 yref=17.7533 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 1.09
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19663188/Model_4FGL_J1719.2+1745_weekly_bin780.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/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits.....................!
real 58.30
user 56.34
sys 0.86

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits', '/lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits', expMap='/lscratch/kocevski/19663188/expmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits', expCube='/lscratch/kocevski/19663188/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19663188/Model_4FGL_J1719.2+1745_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1719.2+1745'

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.764e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19663188/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19663188/ft2_4FGL_J1719.2+1745_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19663188/expmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19663188/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19663188/Model_4FGL_J1719.2+1745_weekly_bin780.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) = 23429.3489549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2115       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.3529       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11911       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1826       1.0000          .0000       .10000E+07
     5 'Prefactor '    18.557       1.0000          .0000       .10000E+07
     6 'Prefactor '    .47643E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.1044       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.1734       1.0000          .0000       .10000E+07
     9 'norm      '    .18964E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8616       1.0000          .0000       .10000E+07
    11 'norm      '    11.502       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33442E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28187E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .14890E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .44839       1.0000          .0000       .10000E+07
    16 'Prefactor '    .84844E-05   1.0000          .0000       .10000E+07
    17 'Normalizat'    .73914       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23429.32     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1106 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2233        8.6932       -.23529E-06   -.28958E-02
   2  Prefactor     5.3411        4.1159        .90704E-09   -.27709E-02
   3  Prefactor     .11345        41.643        .48190E-05** at limit **
   4  Prefactor     4.1794        10.470       -.12312E-05   -.82515E-03
   5  Prefactor     18.361        1.3430       -.62273E-08   -.11224E-02
   6  Prefactor     .38858E-09    50.943       -.54524E-06** at limit **
   7  Prefactor     6.0879        5.7309       -.23464E-06   -.78237E-03
   8  Prefactor     6.1814        7.6387       -.14114E-06   -.23814E-02
   9  norm           .0000        1.2464        .16380E-06** at limit **
  10  Prefactor     3.8392        5.0318       -.41377E-07   -.57731E-03
  11  norm          11.380        6.8044       -.45751E-06   -.27679E-02
  12  Prefactor      .0000        25.084        .13055E-05** at limit **
  13  Prefactor     .22204E-08    17.591        .87727E-06** at limit **
  14  norm           .0000        15.091       -.73553E-07** at limit **
  15  norm          .44817        .42410       -.32651E-07   -.28622E-02
  16  Prefactor      .0000        2.7852        .42932E-07** at limit **
  17  Normalizat    .73924        .18671       -.13845E-04   -.20202E-03
  18  Prefactor     1.1802        .68980E-01    .37215E-05   -.45591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.22334
  Prefactor  = 5.34106
  Prefactor  = 0.113447
  Prefactor  = 4.1794
  Prefactor  = 18.3606
  Prefactor  = 3.88578e-10
  Prefactor  = 6.08794
  Prefactor  = 6.18144
  norm       = 0
  Prefactor  = 3.83923
  norm       = 11.3797
  Prefactor  = 0
  Prefactor  = 2.22045e-09
  norm       = 0
  norm       = 0.448169
  Prefactor  = 0
  Normalizat = 0.739235
  Prefactor  = 1.18016
 **********
 **   18 **HESSE 
 **********

 FCN=   23429.32     FROM HESSE     STATUS=OK           298 CALLS     1404 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2233        8.6930        .44010E-03   -1.5662    
   2  Prefactor     5.3411        4.1374        .43414E-03   -1.5662    
   3  Prefactor     .11345        1.3712        .10144E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1794        10.521        .49255E-03   -1.5667    
   5  Prefactor     18.361        18.161        .23222E-03   -1.5622    
   6  Prefactor     .38858E-09    51.133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0879        5.8414        .40612E-03   -1.5659    
   8  Prefactor     6.1814        7.6723        .40381E-03   -1.5658    
   9  norm           .0000        1.2201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8392        5.0765        .51328E-03   -1.5669    
  11  norm          11.380        7.1977        .29515E-03   -1.5640    
  12  Prefactor      .0000        25.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22204E-08    .79241        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        15.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44817        .48602        .21777E-02   -1.5695    
  16  Prefactor      .0000        2.7735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .73924        .17012        .11025       -1.0236    
  18  Prefactor     1.1802        .61797E-01    .35121E-01   -.86944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96503e-07
Minuit parameter uncertainties:
  1  8.69305
  2  4.13736
  3  0.788828
  4  10.5213
  5  18.1614
  6  0.000281284
  7  5.84143
  8  7.67233
  9  1.10192e-05
  10  5.07655
  11  7.19774
  12  3.20244e-05
  13  8.38395e-05
  14  2.10254e-05
  15  0.486017
  16  3.93372e-08
  17  0.17024
  18  0.0618013
Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  0.000e+00  1.102e-05  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  1.180e+00  6.180e-02  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  7.392e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 259.806 17.753
Photon Flux Upper Limit: 2.79807008017e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19663188/likelihoodResults_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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): 102
logL (Free Index) = 23429.3184671
delta logL = -0.00300928080105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23429.315475
delta logL = -1.72072504938e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27675E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    2.5268       1.0000          .0000       5.0000    
     3 'Normalizat'    .73864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   23429.32     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      257 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .26672        .42118E-02** at limit **
   2  alpha         2.5589        .99979        .32686E-04     .0000    
   3  Normalizat    .73924        1.0787       -.11584E-04    .54353E-04
   4  Prefactor     1.1802        1.1096        .44711E-05    .29341E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.55892
  Normalizat = 0.739237
  Prefactor  = 1.18016
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23429.32     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .26672        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3313        1.2227        .32686E-04    .23569E-01
   3  Normalizat    .73924        1.0787       -.11584E-04   -1.0236    
   4  Prefactor     1.1802        1.1096        .44711E-05   -.86944    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.42028e-12
Minuit parameter uncertainties:
  1  2.75009e-06
  2  1.02858
  3  1.11235
  4  1.13277
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) = 23429.3154578
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  0.000e+00  2.750e-06  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  2.559e+00  1.029e+00  0.000e+00  5.000e+00 ( 1.000e+00)
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  1.180e+00  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  7.392e-01  1.112e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 259.806 17.753

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/19663188/cmap_HighResolution_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.80e-08', time_completed='2023-07-18 02:00:19.037222', job_id='19663188', GAL2='1.18', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1689670819.04', return_code2='101', ts='0.00', return_code='0', GAL='1.18', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='780' AND source_name='4FGL J1719.2+1745' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:00:20 PDT 2023

number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1719.2+1745_weekly_bin780
RA = 259.806, Dec = 17.7533
tmin = 710726401, tmax = 711331201
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='19664367', job_status='RUN', time_executed='2023-07-18 01:51:02.865725', time_epoch_executed='1689670262.87' WHERE source_name='4FGL J1719.2+1745' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19664367

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/19664367/ft1_4FGL_J1719.2+1745_weekly_bin780.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19664367/ft1_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19664367/ft1_filteredMKT_4FGL_J1719.2+1745_weekly_bin780.fits ra=259.806 dec=17.7533 rad=12.0 tmin=710726401.0 tmax=711331201.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.71
user 3.69
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.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/19664367/ft1_filteredMKT_4FGL_J1719.2+1745_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.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 1.01
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 2265

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits sctable="SC_DATA" outfile=/lscratch/kocevski/19664367/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits
.....................!
real 16.90
user 15.85
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19664367/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19664367/expmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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/19664367/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits
.....................!
real 63.51
user 58.80
sys 3.73

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

Setting source of interest to:
4FGL J1719.2+1745 @ 259.806 17.7533

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits scfile=/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19664367/cmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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=259.806 yref=17.7533 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.93
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits scfile=/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits outfile=/lscratch/kocevski/19664367/cmap_HighResolution_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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=259.806 yref=17.7533 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 1.14
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/19664367/Model_4FGL_J1719.2+1745_weekly_bin780.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/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits.....................!
real 60.90
user 58.78
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits', '/lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits', expMap='/lscratch/kocevski/19664367/expmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits', expCube='/lscratch/kocevski/19664367/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19664367/Model_4FGL_J1719.2+1745_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1719.2+1745'

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  1.764e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19664367/ft1_filtered_4FGL_J1719.2+1745_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19664367/ft2_4FGL_J1719.2+1745_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19664367/expmap_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19664367/ltcube_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19664367/Model_4FGL_J1719.2+1745_weekly_bin780.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) = 23429.3489549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2115       1.0000          .0000       .10000E+07
     2 'Prefactor '    5.3529       1.0000          .0000       .10000E+07
     3 'Prefactor '    .11911       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.1826       1.0000          .0000       .10000E+07
     5 'Prefactor '    18.557       1.0000          .0000       .10000E+07
     6 'Prefactor '    .47643E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.1044       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.1734       1.0000          .0000       .10000E+07
     9 'norm      '    .18964E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8616       1.0000          .0000       .10000E+07
    11 'norm      '    11.502       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33442E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .28187E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .14890E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .44839       1.0000          .0000       .10000E+07
    16 'Prefactor '    .84844E-05   1.0000          .0000       .10000E+07
    17 'Normalizat'    .73914       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   23429.32     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1106 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2233        8.6932       -.23529E-06   -.28958E-02
   2  Prefactor     5.3411        4.1159        .90704E-09   -.27709E-02
   3  Prefactor     .11345        41.643        .48190E-05** at limit **
   4  Prefactor     4.1794        10.470       -.12312E-05   -.82515E-03
   5  Prefactor     18.361        1.3430       -.62273E-08   -.11224E-02
   6  Prefactor     .38858E-09    50.943       -.54524E-06** at limit **
   7  Prefactor     6.0879        5.7309       -.23464E-06   -.78237E-03
   8  Prefactor     6.1814        7.6387       -.14114E-06   -.23814E-02
   9  norm           .0000        1.2464        .16380E-06** at limit **
  10  Prefactor     3.8392        5.0318       -.41377E-07   -.57731E-03
  11  norm          11.380        6.8044       -.45751E-06   -.27679E-02
  12  Prefactor      .0000        25.084        .13055E-05** at limit **
  13  Prefactor     .22204E-08    17.591        .87727E-06** at limit **
  14  norm           .0000        15.091       -.73553E-07** at limit **
  15  norm          .44817        .42410       -.32651E-07   -.28622E-02
  16  Prefactor      .0000        2.7852        .42932E-07** at limit **
  17  Normalizat    .73924        .18671       -.13845E-04   -.20202E-03
  18  Prefactor     1.1802        .68980E-01    .37215E-05   -.45591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.22334
  Prefactor  = 5.34106
  Prefactor  = 0.113447
  Prefactor  = 4.1794
  Prefactor  = 18.3606
  Prefactor  = 3.88578e-10
  Prefactor  = 6.08794
  Prefactor  = 6.18144
  norm       = 0
  Prefactor  = 3.83923
  norm       = 11.3797
  Prefactor  = 0
  Prefactor  = 2.22045e-09
  norm       = 0
  norm       = 0.448169
  Prefactor  = 0
  Normalizat = 0.739235
  Prefactor  = 1.18016
 **********
 **   18 **HESSE 
 **********

 FCN=   23429.32     FROM HESSE     STATUS=OK           298 CALLS     1404 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2233        8.6930        .44010E-03   -1.5662    
   2  Prefactor     5.3411        4.1374        .43414E-03   -1.5662    
   3  Prefactor     .11345        1.3712        .10144E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1794        10.521        .49255E-03   -1.5667    
   5  Prefactor     18.361        18.161        .23222E-03   -1.5622    
   6  Prefactor     .38858E-09    51.133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0879        5.8414        .40612E-03   -1.5659    
   8  Prefactor     6.1814        7.6723        .40381E-03   -1.5658    
   9  norm           .0000        1.2201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8392        5.0765        .51328E-03   -1.5669    
  11  norm          11.380        7.1977        .29515E-03   -1.5640    
  12  Prefactor      .0000        25.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22204E-08    .79241        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        15.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44817        .48602        .21777E-02   -1.5695    
  16  Prefactor      .0000        2.7735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .73924        .17012        .11025       -1.0236    
  18  Prefactor     1.1802        .61797E-01    .35121E-01   -.86944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96503e-07
Minuit parameter uncertainties:
  1  8.69305
  2  4.13736
  3  0.788828
  4  10.5213
  5  18.1614
  6  0.000281284
  7  5.84143
  8  7.67233
  9  1.10192e-05
  10  5.07655
  11  7.19774
  12  3.20244e-05
  13  8.38395e-05
  14  2.10254e-05
  15  0.486017
  16  3.93372e-08
  17  0.17024
  18  0.0618013
Done.

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

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  0.000e+00  1.102e-05  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  1.940e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  1.180e+00  6.180e-02  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  7.392e-01  1.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 259.806 17.753
Photon Flux Upper Limit: 2.79807008017e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19664367/likelihoodResults_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.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): 102
logL (Free Index) = 23429.3184671
delta logL = -0.00300928080105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23429.315475
delta logL = -1.72072504938e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27675E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    2.5268       1.0000          .0000       5.0000    
     3 'Normalizat'    .73864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1804       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   23429.32     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      257 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .26672        .42118E-02** at limit **
   2  alpha         2.5589        .99979        .32686E-04     .0000    
   3  Normalizat    .73924        1.0787       -.11584E-04    .54353E-04
   4  Prefactor     1.1802        1.1096        .44711E-05    .29341E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.55892
  Normalizat = 0.739237
  Prefactor  = 1.18016
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   23429.32     FROM HESSE     STATUS=FAILED         9 CALLS      266 TOTAL
                     EDM=   .84E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .26672        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3313        1.2227        .32686E-04    .23569E-01
   3  Normalizat    .73924        1.0787       -.11584E-04   -1.0236    
   4  Prefactor     1.1802        1.1096        .44711E-05   -.86944    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.42028e-12
Minuit parameter uncertainties:
  1  2.75009e-06
  2  1.02858
  3  1.11235
  4  1.13277
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) = 23429.3154578
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1719.2+1745
   Spectrum: LogParabola
271         norm:  0.000e+00  2.750e-06  0.000e+00  1.000e+06 ( 1.000e-12)
272        alpha:  2.559e+00  1.029e+00  0.000e+00  5.000e+00 ( 1.000e+00)
273         beta:  9.472e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
274           Eb:  1.170e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
631    Prefactor:  1.180e+00  1.133e+00  0.000e+00  1.000e+01 ( 1.000e+00)
632        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
633        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
630   Normalization:  7.392e-01  1.112e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 259.806 17.753

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/19664367/cmap_HighResolution_710726401_711331201_4FGL_J1719.2+1745_weekly_bin780.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET job_status='DONE', comment='SUCCESS', photon_flux_upper_limit='2.80e-08', time_completed='2023-07-18 02:08:52.054577', job_id='19664367', GAL2='1.18', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1689671332.05', return_code2='101', ts='0.00', return_code='0', GAL='1.18', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='1.94' WHERE bin_id='780' AND source_name='4FGL J1719.2+1745' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:08:53 PDT 2023

