*****
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1408 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8845        4.1024       -.70787E-07    .22683E-01
   2  Prefactor     .33307E-09    6.3564        .63348E-06** at limit **
   3  Prefactor     31.641        5.6268        .21448E-07    .14485    
   4  Prefactor     13.120        1.6561        .60765E-08    .10234E-01
   5  norm          5.4642        2.3689       -.25884E-07    .62247E-03
   6  norm          10.309        .86179       -.86184E-08    .83085E-03
   7  norm          5.8168        2.8966        .26523E-07   -.30154E-03
   8  Prefactor     5.4698        5.6689        .16149E-06    .16140E-02
   9  Prefactor     .16653E-09    3.1231       -.11128E-07** at limit **
  10  Prefactor     .22204E-09    2.1578        .20531E-07** at limit **
  11  norm          38.718        24.518       -.74700E-07    .36734E-01
  12  norm           .0000        .86253       -.21344E-07** at limit **
  13  Prefactor     6.1762        1.0221       -.92603E-09   -.32918E-02
  14  norm           .0000        1.2079       -.49848E-07** at limit **
  15  Prefactor     4.7248        6.7020        .10972E-06    .18558E-01
  16  Prefactor     .18097E-07    15.502       -.21956E-06** at limit **
  17  Prefactor     5.2895        6.6779       -.54869E-07    .83073E-02
  18  Normalizat    .92436        .12208       -.44444E-06    .55242E-04
  19  Prefactor     1.0224        .35550E-01   -.36074E-06    .17667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88452
  Prefactor  = 3.33067e-10
  Prefactor  = 31.6405
  Prefactor  = 13.1205
  norm       = 5.46425
  norm       = 10.3088
  norm       = 5.81678
  Prefactor  = 5.46984
  Prefactor  = 1.66533e-10
  Prefactor  = 2.22045e-10
  norm       = 38.7179
  norm       = 0
  Prefactor  = 6.17619
  norm       = 0
  Prefactor  = 4.72479
  Prefactor  = 1.80966e-08
  Prefactor  = 5.28953
  Normalizat = 0.924364
  Prefactor  = 1.02243
/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).

/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).

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

 FCN=   37954.06     FROM HESSE     STATUS=OK           318 CALLS     1726 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8845        8.0562        .45540E-03   -1.5664    
   2  Prefactor     .33307E-09    .68607        .53233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.641        19.903        .17792E-03   -1.5595    
   4  Prefactor     13.120        20.889        .27758E-03   -1.5636    
   5  norm          5.4642        2.3715        .42962E-03   -1.5661    
   6  norm          10.309        .88034        .31181E-03   -1.5644    
   7  norm          5.8168        2.9097        .41644E-03   -1.5660    
   8  Prefactor     5.4698        5.6983        .42752E-03   -1.5661    
   9  Prefactor     .16653E-09    3.1599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    2.1512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.718        25.639        .15987E-03   -1.5584    
  12  norm           .0000        .86128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1762        15.903        .40418E-03   -1.5658    
  14  norm           .0000        1.1994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7248        7.6529        .46365E-03   -1.5664    
  16  Prefactor     .18097E-07    15.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2895        6.7656        .43329E-03   -1.5662    
  18  Normalizat    .92436        .11879        .11210       -.95609    
  19  Prefactor     1.0224        .33329E-01    .41911E-01   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38927e-07
Minuit parameter uncertainties:
  1  8.05625
  2  3.00529e-05
  3  19.9027
  4  20.889
  5  2.37153
  6  0.880343
  7  2.90967
  8  5.69834
  9  4.57289e-05
  10  4.23343e-05
  11  25.6389
  12  3.13432e-06
  13  15.9035
  14  5.74243e-06
  15  7.65295
  16  0.00106097
  17  6.76558
  18  0.11882
  19  0.0333301
number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2005.5+7752_weekly_bin780
RA = 301.393, Dec = 77.8829
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='19665134', job_status='RUN', time_executed='2023-07-18 01:55:44.232589', time_epoch_executed='1689670544.23' WHERE source_name='4FGL J2005.5+7752' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19665134

Creating custom pfile directory:
/lscratch/kocevski/19665134/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/19665134/ft1_4FGL_J2005.5+7752_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/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19665134/ft1_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665134/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits ra=301.393 dec=77.8829 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.79
user 3.80
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_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/19665134/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_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.06
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 3772

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA"number of points = 17189
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2005.5+7752_weekly_bin780
RA = 301.393, Dec = 77.8829
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='19665153', job_status='RUN', time_executed='2023-07-18 01:55:51.100830', time_epoch_executed='1689670551.1' WHERE source_name='4FGL J2005.5+7752' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19665153

Creating custom pfile directory:
/lscratch/kocevski/19665153/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/19665153/ft1_4FGL_J2005.5+7752_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/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19665153/ft1_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665153/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits ra=301.393 dec=77.8829 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.59
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_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/19665153/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_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 0.99
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 3772

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" ch/kocevski/19663967/Model_4FGL_J2005.5+7752_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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/lscratch/kocevski/19663967/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits.....................!
real 180.77
user 178.19
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19663967/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits', '/lscratch/kocevski/19663967/ft2_4FGL_J2005.5+7752_weekly_bin780.fits', expMap='/lscratch/kocevski/19663967/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', expCube='/lscratch/kocevski/19663967/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19663967/Model_4FGL_J2005.5+7752_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.5+7752'

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.878e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19663967/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19663967/ft2_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19663967/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19663967/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19663967/Model_4FGL_J2005.5+7752_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) = 37954.079749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8737       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27692E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.599       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.998       1.0000          .0000       .10000E+07
     5 'norm      '    5.4641       1.0000          .0000       .10000E+07
     6 'norm      '    10.309       1.0000          .0000       .10000E+07
     7 'norm      '    5.8097       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.5169       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21231E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
    11 'norm      '    39.132       1.0000          .0000       .10000E+07
    12 'norm      '    .11871E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.1622       1.0000          .0000       .10000E+07
    14 'norm      '    .94114E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.7055       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18293E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3735       1.0000          .0000       .10000E+07
    18 'Normalizat'    .92433       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 ***** outfile=/lscratch/kocevski/19665134/ltcube_710726401_711331201_4FGL_J2005.5+7752_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/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits
.....................!
real 17.32
user 16.11
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19665134/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665134/expmap_710726401_711331201_4FGL_J2005.5+7752_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/19665134/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
.....................!
real 64.14
user 59.24
sys 3.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 209 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2005.5+7752 @ 301.393 77.8829

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits scfile=/lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665134/cmap_710726401_711331201_4FGL_J2005.5+7752_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=301.393 yref=77.8829 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/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits scfile=/lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665134/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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=301.393 yref=77.8829 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.06
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratoutfile=/lscratch/kocevski/19665153/ltcube_710726401_711331201_4FGL_J2005.5+7752_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/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits
.....................!
real 16.48
user 15.52
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19665153/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665153/expmap_710726401_711331201_4FGL_J2005.5+7752_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/19665153/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
.....................!
real 62.05
user 57.01
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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 209 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2005.5+7752 @ 301.393 77.8829

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits scfile=/lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665153/cmap_710726401_711331201_4FGL_J2005.5+7752_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=301.393 yref=77.8829 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.27
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits scfile=/lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19665153/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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=301.393 yref=77.8829 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.91
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratc*****
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1408 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8845        4.1024       -.70787E-07    .22683E-01
   2  Prefactor     .33307E-09    6.3564        .63348E-06** at limit **
   3  Prefactor     31.641        5.6268        .21448E-07    .14485    
   4  Prefactor     13.120        1.6561        .60765E-08    .10234E-01
   5  norm          5.4642        2.3689       -.25884E-07    .62247E-03
   6  norm          10.309        .86179       -.86184E-08    .83085E-03
   7  norm          5.8168        2.8966        .26523E-07   -.30154E-03
   8  Prefactor     5.4698        5.6689        .16149E-06    .16140E-02
   9  Prefactor     .16653E-09    3.1231       -.11128E-07** at limit **
  10  Prefactor     .22204E-09    2.1578        .20531E-07** at limit **
  11  norm          38.718        24.518       -.74700E-07    .36734E-01
  12  norm           .0000        .86253       -.21344E-07** at limit **
  13  Prefactor     6.1762        1.0221       -.92603E-09   -.32918E-02
  14  norm           .0000        1.2079       -.49848E-07** at limit **
  15  Prefactor     4.7248        6.7020        .10972E-06    .18558E-01
  16  Prefactor     .18097E-07    15.502       -.21956E-06** at limit **
  17  Prefactor     5.2895        6.6779       -.54869E-07    .83073E-02
  18  Normalizat    .92436        .12208       -.44444E-06    .55242E-04
  19  Prefactor     1.0224        .35550E-01   -.36074E-06    .17667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88452
  Prefactor  = 3.33067e-10
  Prefactor  = 31.6405
  Prefactor  = 13.1205
  norm       = 5.46425
  norm       = 10.3088
  norm       = 5.81678
  Prefactor  = 5.46984
  Prefactor  = 1.66533e-10
  Prefactor  = 2.22045e-10
  norm       = 38.7179
  norm       = 0
  Prefactor  = 6.17619
  norm       = 0
  Prefactor  = 4.72479
  Prefactor  = 1.80966e-08
  Prefactor  = 5.28953
  Normalizat = 0.924364
  Prefactor  = 1.02243
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  3.134e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  3.333e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 2.93889802681e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19663522/likelihoodResults_710726401_711331201_4FGL_J2005.5+7752_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) = 37954.0657722
delta logL = -0.00784502692113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37954.0579273
delta logL = -8.15198291093e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      268 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .76797        .42118E-03** at limit **
   2  alpha         1.9891        .97890        .24176E-04     .0000    
   3  Normalizat    .92436        1.2585        .15883E-04   -.30548E-03
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.54725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.98911
  Normalizat = 0.924363
  Prefactor  = 1.02243
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   37954.06     FROM HESSE     STATUS=FAILED         9 CALLS      277 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .76797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .85944        1.1723        .24176E-04   -.20581    
   3  Normalizat    .92436        1.2585        .15883E-04   -.95609    
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.03812e-11
Minuit parameter uncertainties:
  1  4.10397e-06
  2  1.00709
  3  1.30244
  4  1.26966
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) = 37954.0579272
delta logL = -3.63797880709e-11

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  4.104e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  1.989e+00  1.007e+00  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  1.270e+00  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.302e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 301.393 77.883

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/19663522/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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.94e-08', time_completed='2023-07-18 02:08:34.908214', job_id='19663522', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689671314.91', return_code2='101', ts='0.00', return_code='0', GAL='1.02', dlogl='-3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:08:35 PDT 2023

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

 FCN=   37954.06     FROM HESSE     STATUS=OK           318 CALLS     1726 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8845        8.0562        .45540E-03   -1.5664    
   2  Prefactor     .33307E-09    .68607        .53233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.641        19.903        .17792E-03   -1.5595    
   4  Prefactor     13.120        20.889        .27758E-03   -1.5636    
   5  norm          5.4642        2.3715        .42962E-03   -1.5661    
   6  norm          10.309        .88034        .31181E-03   -1.5644    
   7  norm          5.8168        2.9097        .41644E-03   -1.5660    
   8  Prefactor     5.4698        5.6983        .42752E-03   -1.5661    
   9  Prefactor     .16653E-09    3.1599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    2.1512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.718        25.639        .15987E-03   -1.5584    
  12  norm           .0000        .86128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1762        15.903        .40418E-03   -1.5658    
  14  norm           .0000        1.1994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7248        7.6529        .46365E-03   -1.5664    
  16  Prefactor     .18097E-07    15.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2895        6.7656        .43329E-03   -1.5662    
  18  Normalizat    .92436        .11879        .11210       -.95609    
  19  Prefactor     1.0224        .33329E-01    .41911E-01   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38927e-07
Minuit parameter uncertainties:
  1  8.05625
  2  3.00529e-05
  3  19.9027
  4  20.889
  5  2.37153
  6  0.880343
  7  2.90967
  8  5.69834
  9  4.57289e-05
  10  4.23343e-05
  11  25.6389
  12  3.13432e-06
  13  15.9035
  14  5.74243e-06
  15  7.65295
  16  0.00106097
  17  6.76558
  18  0.11882
  19  0.0333301
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  3.134e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  3.333e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 2.93889802681e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19663967/likelihoodResults_710726401_711331201_4FGL_J2005.5+7752_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) = 37954.0657722
delta logL = -0.00784502692113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37954.0579273
delta logL = -8.15198291093e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      268 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .76797        .42118E-03** at limit **
   2  alpha         1.9891        .97890        .24176E-04     .0000    
   3  Normalizat    .92436        1.2585        .15883E-04   -.30548E-03
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.54725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.98911
  Normalizat = 0.924363
  Prefactor  = 1.02243
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   37954.06     FROM HESSE     STATUS=FAILED         9 CALLS      277 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .76797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .85944        1.1723        .24176E-04   -.20581    
   3  Normalizat    .92436        1.2585        .15883E-04   -.95609    
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.03812e-11
Minuit parameter uncertainties:
  1  4.10397e-06
  2  1.00709
  3  1.30244
  4  1.26966
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) = 37954.0579272
delta logL = -3.63797880709e-11

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  4.104e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  1.989e+00  1.007e+00  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  1.270e+00  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.302e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 301.393 77.883

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/19663967/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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.94e-08', time_completed='2023-07-18 02:12:19.860294', job_id='19663967', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689671539.86', return_code2='101', ts='0.00', return_code='0', GAL='1.02', dlogl='-3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:12: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_J2005.5+7752_weekly_bin780
RA = 301.393, Dec = 77.8829
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='19666810', job_status='RUN', time_executed='2023-07-18 02:05:03.699965', time_epoch_executed='1689671103.7' WHERE source_name='4FGL J2005.5+7752' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19666810

Creating custom pfile directory:
/lscratch/kocevski/19666810/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/19666810/ft1_4FGL_J2005.5+7752_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/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19666810/ft1_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19666810/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits ra=301.393 dec=77.8829 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 5.09
user 3.84
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_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/19666810/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" outfile="/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_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.08
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 3772

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits" evtable="EVENTS" scfile=/lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" h/kocevski/19665153/Model_4FGL_J2005.5+7752_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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits.....................!
real 168.38
user 165.31
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits', '/lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits', expMap='/lscratch/kocevski/19665153/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', expCube='/lscratch/kocevski/19665153/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19665153/Model_4FGL_J2005.5+7752_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.5+7752'

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.878e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19665153/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19665153/ft2_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19665153/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19665153/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19665153/Model_4FGL_J2005.5+7752_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) = 37954.079749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8737       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27692E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.599       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.998       1.0000          .0000       .10000E+07
     5 'norm      '    5.4641       1.0000          .0000       .10000E+07
     6 'norm      '    10.309       1.0000          .0000       .10000E+07
     7 'norm      '    5.8097       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.5169       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21231E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
    11 'norm      '    39.132       1.0000          .0000       .10000E+07
    12 'norm      '    .11871E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.1622       1.0000          .0000       .10000E+07
    14 'norm      '    .94114E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.7055       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18293E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3735       1.0000          .0000       .10000E+07
    18 'Normalizat'    .92433       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 ******ch/kocevski/19665134/Model_4FGL_J2005.5+7752_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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits.....................!
real 173.63
user 170.86
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits', '/lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits', expMap='/lscratch/kocevski/19665134/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', expCube='/lscratch/kocevski/19665134/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19665134/Model_4FGL_J2005.5+7752_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.5+7752'

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.878e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19665134/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19665134/ft2_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19665134/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19665134/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19665134/Model_4FGL_J2005.5+7752_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) = 37954.079749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8737       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27692E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.599       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.998       1.0000          .0000       .10000E+07
     5 'norm      '    5.4641       1.0000          .0000       .10000E+07
     6 'norm      '    10.309       1.0000          .0000       .10000E+07
     7 'norm      '    5.8097       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.5169       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21231E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
    11 'norm      '    39.132       1.0000          .0000       .10000E+07
    12 'norm      '    .11871E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.1622       1.0000          .0000       .10000E+07
    14 'norm      '    .94114E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.7055       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18293E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3735       1.0000          .0000       .10000E+07
    18 'Normalizat'    .92433       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 *********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1408 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8845        4.1024       -.70787E-07    .22683E-01
   2  Prefactor     .33307E-09    6.3564        .63348E-06** at limit **
   3  Prefactor     31.641        5.6268        .21448E-07    .14485    
   4  Prefactor     13.120        1.6561        .60765E-08    .10234E-01
   5  norm          5.4642        2.3689       -.25884E-07    .62247E-03
   6  norm          10.309        .86179       -.86184E-08    .83085E-03
   7  norm          5.8168        2.8966        .26523E-07   -.30154E-03
   8  Prefactor     5.4698        5.6689        .16149E-06    .16140E-02
   9  Prefactor     .16653E-09    3.1231       -.11128E-07** at limit **
  10  Prefactor     .22204E-09    2.1578        .20531E-07** at limit **
  11  norm          38.718        24.518       -.74700E-07    .36734E-01
  12  norm           .0000        .86253       -.21344E-07** at limit **
  13  Prefactor     6.1762        1.0221       -.92603E-09   -.32918E-02
  14  norm           .0000        1.2079       -.49848E-07** at limit **
  15  Prefactor     4.7248        6.7020        .10972E-06    .18558E-01
  16  Prefactor     .18097E-07    15.502       -.21956E-06** at limit **
  17  Prefactor     5.2895        6.6779       -.54869E-07    .83073E-02
  18  Normalizat    .92436        .12208       -.44444E-06    .55242E-04
  19  Prefactor     1.0224        .35550E-01   -.36074E-06    .17667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88452
  Prefactor  = 3.33067e-10
  Prefactor  = 31.6405
  Prefactor  = 13.1205
  norm       = 5.46425
  norm       = 10.3088
  norm       = 5.81678
  Prefactor  = 5.46984
  Prefactor  = 1.66533e-10
  Prefactor  = 2.22045e-10
  norm       = 38.7179
  norm       = 0
  Prefactor  = 6.17619
  norm       = 0
  Prefactor  = 4.72479
  Prefactor  = 1.80966e-08
  Prefactor  = 5.28953
  Normalizat = 0.924364
  Prefactor  = 1.02243
*****
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1408 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8845        4.1024       -.70787E-07    .22683E-01
   2  Prefactor     .33307E-09    6.3564        .63348E-06** at limit **
   3  Prefactor     31.641        5.6268        .21448E-07    .14485    
   4  Prefactor     13.120        1.6561        .60765E-08    .10234E-01
   5  norm          5.4642        2.3689       -.25884E-07    .62247E-03
   6  norm          10.309        .86179       -.86184E-08    .83085E-03
   7  norm          5.8168        2.8966        .26523E-07   -.30154E-03
   8  Prefactor     5.4698        5.6689        .16149E-06    .16140E-02
   9  Prefactor     .16653E-09    3.1231       -.11128E-07** at limit **
  10  Prefactor     .22204E-09    2.1578        .20531E-07** at limit **
  11  norm          38.718        24.518       -.74700E-07    .36734E-01
  12  norm           .0000        .86253       -.21344E-07** at limit **
  13  Prefactor     6.1762        1.0221       -.92603E-09   -.32918E-02
  14  norm           .0000        1.2079       -.49848E-07** at limit **
  15  Prefactor     4.7248        6.7020        .10972E-06    .18558E-01
  16  Prefactor     .18097E-07    15.502       -.21956E-06** at limit **
  17  Prefactor     5.2895        6.6779       -.54869E-07    .83073E-02
  18  Normalizat    .92436        .12208       -.44444E-06    .55242E-04
  19  Prefactor     1.0224        .35550E-01   -.36074E-06    .17667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88452
  Prefactor  = 3.33067e-10
  Prefactor  = 31.6405
  Prefactor  = 13.1205
  norm       = 5.46425
  norm       = 10.3088
  norm       = 5.81678
  Prefactor  = 5.46984
  Prefactor  = 1.66533e-10
  Prefactor  = 2.22045e-10
  norm       = 38.7179
  norm       = 0
  Prefactor  = 6.17619
  norm       = 0
  Prefactor  = 4.72479
  Prefactor  = 1.80966e-08
  Prefactor  = 5.28953
  Normalizat = 0.924364
  Prefactor  = 1.02243
Done.


Performing analysis on: 4FGL_J2005.5+7752_weekly_bin780
RA = 301.393, Dec = 77.8829
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='19666829', job_status='RUN', time_executed='2023-07-18 02:05:16.684166', time_epoch_executed='1689671116.68' WHERE source_name='4FGL J2005.5+7752' and cadence='weekly' and bin_id='780'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/19666829

Creating custom pfile directory:
/lscratch/kocevski/19666829/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/19666829/ft1_4FGL_J2005.5+7752_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/19666829/ft2_4FGL_J2005.5+7752_weekly_bin780.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/19666829/ft1_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19666829/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits ra=301.393 dec=77.8829 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"
CAUTION: tmpfile /tmp/C4jJ3Q_cint can't open

 *** Break *** segmentation violation
#0  0x00007f154bbca3cb in waitpid () from /lib64/libc.so.6
#1  0x00007f154bb2bbff in do_system () from /lib64/libc.so.6
#2  0x00007f154dc18b0f in TUnixSystem::StackTrace (this=0xd226d0) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/unix/src/TUnixSystem.cxx:2419
#3  0x00007f154dc1a73c in TUnixSystem::DispatchSignals (this=0xd226d0, sig=kSigSegmentationViolation) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/unix/src/TUnixSystem.cxx:1294
#4  <signal handler called>
#5  0x00007f154bb57800 in fgetpos

GLIBC_2.2.5 () from /lib64/libc.so.6
#6  0x00007f154ce48b92 in G__replacefuncmacro (callfuncmacro=0xe40748, nosemic=nosemic
entry=1, nobraces=1, def_pos=..., def_fp=0xe3d6c0, defpara=0xe40738, callpara=0x7ffcc1fc4150, item=0xe1ab70 "G__DECL_IOFM(") at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/macro.cxx:338
#7  G__transfuncmacro (item=item
entry=0xe1ab70 "G__DECL_IOFM(", deffuncmacro=deffuncmacro
entry=0xe40710, callfuncmacro=callfuncmacro
entry=0xe40748, call_pos=..., p=p
entry=0xd3849c "(hex,basefield)", nobraces=nobraces
entry=1, nosemic=nosemic
entry=1) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/macro.cxx:458
#8  0x00007f154ce49095 in G__execfuncmacro_noexec (macroname=0xe1ab70 "G__DECL_IOFM(") at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/macro.cxx:894
#9  0x00007f154ce77f80 in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:7065
#10 0x00007f154cdf08f5 in G__loadfile (filenamein=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:2338
#11 0x00007f154cdf11aa in G__include_file () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:269
#12 0x00007f154ce7f4df in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:6600
#13 0x00007f154cecded1 in G__define_struct (type=110 'n') at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/struct.cxx:751
#14 0x00007f154ce7dca5 in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:6620
#15 0x00007f154cdf08f5 in G__loadfile (filenamein=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:2338
#16 0x00007f154cdf11aa in G__include_file () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/loadfile.cxx:269
#17 0x00007f154ce7f4df in G__exec_statement (mparen=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/parse.cxx:6600
#18 0x00007f154cdf2e5d in G__exec_tempfile_core (file=file
entry=0x0, fp=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/debug.cxx:266
#19 0x00007f154cdf436e in G__exec_tempfile_fp (fp=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/debug.cxx:807
#20 0x00007f154ce88c19 in G__process_cmd (line=<optimized out>, prompt=<optimized out>, more=<optimized out>, err=0x7ffcc1fca13c, rslt=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/cint/cint/src/pause.cxx:3341
#21 0x00007f154dbdd918 in TCint::ProcessLine (this=this
entry=0xd28360, line=line
entry=0x7f154dd22f6b "#include <iostream>", error=error
entry=0x0) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/meta/src/TCint.cxx:588
#22 0x00007f154dbe0287 in TCint::TCint (this=0xd28360, name=<optimized out>, title=<optimized out>) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/meta/src/TCint.cxx:351
#23 0x00007f154dc65ba3 in TROOT::TROOT (this=0x7f154e0887c0 <ROOT::GetROOT()::root>, name=0x7f154dcd9cc0 "root", title=<optimized out>, initfunc=0x0) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:316
#24 0x00007f154dc67084 in ROOT::GetROOT () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:206
#25 0x00007f154d8926f0 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:215
#26 _GLOBAL__sub_I_TROOT.cxx(void) () at /feedstock_root/build_artefacts/root5_1526511887783/work/root/core/base/src/TROOT.cxx:2258
#27 0x00007f15577dbe0a in call_init (l=<optimized out>, argc=argc
entry=23, argv=argv
entry=0x7ffcc1fca368, env=env
entry=0x7ffcc1fca428) at dl-init.c:72
#28 0x00007f15577dbf0a in call_init (env=0x7ffcc1fca428, argv=0x7ffcc1fca368, argc=23, l=<optimized out>) at dl-init.c:30
#29 _dl_init (main_map=0x7f15579f61f0, argc=23, argv=0x7ffcc1fca368, env=0x7ffcc1fca428) at dl-init.c:119
#30 0x00007f15577cd01a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#31 0x0000000000000017 in ?? ()
#32 0x00007ffcc1fccdde in ?? ()
#33 0x00007ffcc1fccde7 in ?? ()
#34 0x00007ffcc1fcce33 in ?? ()
#35 0x00007ffcc1fcce8c in ?? ()
#36 0x00007ffcc1fcce97 in ?? ()
#37 0x00007ffcc1fccea3 in ?? ()
#38 0x00007ffcc1fcceac in ?? ()
#39 0x00007ffcc1fccebd in ?? ()
#40 0x00007ffcc1fccece in ?? ()
#41 0x00007ffcc1fcced9 in ?? ()
#42 0x00007ffcc1fccee7 in ?? ()
#43 0x00007ffcc1fccef0 in ?? ()
#44 0x00007ffcc1fccefa in ?? ()
#45 0x00007ffcc1fccf06 in ?? ()
#46 0x00007ffcc1fccf13 in ?? ()
#47 0x00007ffcc1fccf1f in ?? ()
#48 0x00007ffcc1fccf2c in ?? ()
#49 0x00007ffcc1fccf39 in ?? ()
#50 0x00007ffcc1fccf48 in ?? ()
#51 0x00007ffcc1fccf52 in ?? ()
#52 0x00007ffcc1fccf5e in ?? ()
#53 0x00007ffcc1fccf67 in ?? ()
#54 0x0000outfile=/lscratch/kocevski/19666810/ltcube_710726401_711331201_4FGL_J2005.5+7752_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/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits
.....................!
real 17.35
user 16.16
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" expcube=/lscratch/kocevski/19666810/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19666810/expmap_710726401_711331201_4FGL_J2005.5+7752_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/19666810/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
.....................!
real 65.83
user 60.83
sys 3.69

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 209 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2005.5+7752 @ 301.393 77.8829

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits scfile=/lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19666810/cmap_710726401_711331201_4FGL_J2005.5+7752_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=301.393 yref=77.8829 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.19
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits scfile=/lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits outfile=/lscratch/kocevski/19666810/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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=301.393 yref=77.8829 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.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits evtable="EVENTS" scfile=/lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits sctable="SC_DATA" srcmdl=/lscratc7ffcc1fccf6e in ?? ()
#55 0x0000000000000000 in ?? ()
real 13.97
user 1.87
sys 0.42
[Errno 2] No such file or directory: '/lscratch/kocevski/19666829/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits'
Traceback (most recent call last):
  File "/sdf/group/fermi/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py", line 2936, in sourceAnalysis
    ft1 = astro_fits.open(filteredEventsMKT)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 148, in fitsopen
    lazy_load_hdus, **kwargs)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 402, in fromfile
    lazy_load_hdus=lazy_load_hdus, **kwargs)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/hdu/hdulist.py", line 1006, in _readfrom
    fileobj = _File(fileobj, mode=mode, memmap=memmap, cache=cache)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/utils/decorators.py", line 508, in wrapper
    return function(*args, **kwargs)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/file.py", line 150, in __init__
    self._open_filename(fileobj, mode, overwrite)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/file.py", line 506, in _open_filename
    self._file = fileobj_open(self.name, IO_FITS_MODES[mode])
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/astropy/io/fits/util.py", line 395, in fileobj_open
    return open(filename, mode)
IOError: [Errno 2] No such file or directory: '/lscratch/kocevski/19666829/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits'


UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='[Errno 2] No such file or directory: '/lscratch/kocevski/19666829/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits'', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.417227', job_id='19666829' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='[Errno 2] No such file or directory: '/lscratch/kocevski/19666829/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits'', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.417227', job_id='19666829' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.41' at line 1
Traceback (most recent call last):
  File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.41' at line 1

Command execution failed.

Waiting 26.0363797212 seconds and trying again...


UPDATE lightcurve_data_v2 SET job_status='FAIL', commen **********
 **   18 **HESSE 
 **********

 FCN=   37954.06     FROM HESSE     STATUS=OK           318 CALLS     1726 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8845        8.0562        .45540E-03   -1.5664    
   2  Prefactor     .33307E-09    .68607        .53233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.641        19.903        .17792E-03   -1.5595    
   4  Prefactor     13.120        20.889        .27758E-03   -1.5636    
   5  norm          5.4642        2.3715        .42962E-03   -1.5661    
   6  norm          10.309        .88034        .31181E-03   -1.5644    
   7  norm          5.8168        2.9097        .41644E-03   -1.5660    
   8  Prefactor     5.4698        5.6983        .42752E-03   -1.5661    
   9  Prefactor     .16653E-09    3.1599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    2.1512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.718        25.639        .15987E-03   -1.5584    
  12  norm           .0000        .86128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1762        15.903        .40418E-03   -1.5658    
  14  norm           .0000        1.1994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7248        7.6529        .46365E-03   -1.5664    
  16  Prefactor     .18097E-07    15.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2895        6.7656        .43329E-03   -1.5662    
  18  Normalizat    .92436        .11879        .11210       -.95609    
  19  Prefactor     1.0224        .33329E-01    .41911E-01   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38927e-07
Minuit parameter uncertainties:
  1  8.05625
  2  3.00529e-05
  3  19.9027
  4  20.889
  5  2.37153
  6  0.880343
  7  2.90967
  8  5.69834
  9  4.57289e-05
  10  4.23343e-05
  11  25.6389
  12  3.13432e-06
  13  15.9035
  14  5.74243e-06
  15  7.65295
  16  0.00106097
  17  6.76558
  18  0.11882
  19  0.0333301
 **********
 **   18 **HESSE 
 **********

 FCN=   37954.06     FROM HESSE     STATUS=OK           318 CALLS     1726 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8845        8.0562        .45540E-03   -1.5664    
   2  Prefactor     .33307E-09    .68607        .53233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.641        19.903        .17792E-03   -1.5595    
   4  Prefactor     13.120        20.889        .27758E-03   -1.5636    
   5  norm          5.4642        2.3715        .42962E-03   -1.5661    
   6  norm          10.309        .88034        .31181E-03   -1.5644    
   7  norm          5.8168        2.9097        .41644E-03   -1.5660    
   8  Prefactor     5.4698        5.6983        .42752E-03   -1.5661    
   9  Prefactor     .16653E-09    3.1599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    2.1512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.718        25.639        .15987E-03   -1.5584    
  12  norm           .0000        .86128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1762        15.903        .40418E-03   -1.5658    
  14  norm           .0000        1.1994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7248        7.6529        .46365E-03   -1.5664    
  16  Prefactor     .18097E-07    15.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2895        6.7656        .43329E-03   -1.5662    
  18  Normalizat    .92436        .11879        .11210       -.95609    
  19  Prefactor     1.0224        .33329E-01    .41911E-01   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38927e-07
Minuit parameter uncertainties:
  1  8.05625
  2  3.00529e-05
  3  19.9027
  4  20.889
  5  2.37153
  6  0.880343
  7  2.90967
  8  5.69834
  9  4.57289e-05
  10  4.23343e-05
  11  25.6389
  12  3.13432e-06
  13  15.9035
  14  5.74243e-06
  15  7.65295
  16  0.00106097
  17  6.76558
  18  0.11882
  19  0.0333301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
t='[Errno 2] No such file or directory: '/lscratch/kocevski/19666829/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits'', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.417227', job_id='19666829' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';
UPDATE lightcurve_data_v2 SET job_status='FAIL', comment='[Errno 2] No such file or directory: '/lscratch/kocevski/19666829/ft1_filteredMKT_4FGL_J2005.5+7752_weekly_bin780.fits'', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.417227', job_id='19666829' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';
1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.41' at line 1
Traceback (most recent call last):
  File "/sdf/data/fermi/g/LCRepository/Likelihood/Scripts/DatabaseTools.py", line 120, in executeCommand
    cursor.execute(command)
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/cursor.py", line 554, in execute
    self._handle_result(self._connection.cmd_query(stmt))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 495, in cmd_query
    result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query))
  File "/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/mysql/connector/connection.py", line 397, in _handle_result
    raise errors.get_exception(packet)
ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''', time_epoch_completed='1689671866.42', time_completed='2023-07-18 02:17:46.41' at line 1

Command execution failed.

Waiting 20.038613337 seconds and trying again...


Error: could not find cmap file: /lscratch/kocevski/19666829/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
Continuing... 

Cleaning up...

** Nuclear option initiated! **


Analysis Complete.


Tue Jul 18 02:18:34 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  3.134e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  3.333e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 2.93889802681e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19665153/likelihoodResults_710726401_711331201_4FGL_J2005.5+7752_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) = 37954.0657722
delta logL = -0.00784502692113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37954.0579273
delta logL = -8.15198291093e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      268 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .76797        .42118E-03** at limit **
   2  alpha         1.9891        .97890        .24176E-04     .0000    
   3  Normalizat    .92436        1.2585        .15883E-04   -.30548E-03
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.54725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.98911
  Normalizat = 0.924363
  Prefactor  = 1.02243
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   37954.06     FROM HESSE     STATUS=FAILED         9 CALLS      277 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .76797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .85944        1.1723        .24176E-04   -.20581    
   3  Normalizat    .92436        1.2585        .15883E-04   -.95609    
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.03812e-11
Minuit parameter uncertainties:
  1  4.10397e-06
  2  1.00709
  3  1.30244
  4  1.26966
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) = 37954.0579272
delta logL = -3.63797880709e-11

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  4.104e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  1.989e+00  1.007e+00  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  1.270e+00  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.302e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 301.393 77.883

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/19665153/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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.94e-08', time_completed='2023-07-18 02:20:51.837232', job_id='19665153', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689672051.84', return_code2='101', ts='0.00', return_code='0', GAL='1.02', dlogl='-3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:20:52 PDT 2023

Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  3.134e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  3.333e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 2.93889802681e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19665134/likelihoodResults_710726401_711331201_4FGL_J2005.5+7752_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) = 37954.0657722
delta logL = -0.00784502692113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37954.0579273
delta logL = -8.15198291093e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      268 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .76797        .42118E-03** at limit **
   2  alpha         1.9891        .97890        .24176E-04     .0000    
   3  Normalizat    .92436        1.2585        .15883E-04   -.30548E-03
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.54725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.98911
  Normalizat = 0.924363
  Prefactor  = 1.02243
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   37954.06     FROM HESSE     STATUS=FAILED         9 CALLS      277 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .76797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .85944        1.1723        .24176E-04   -.20581    
   3  Normalizat    .92436        1.2585        .15883E-04   -.95609    
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.03812e-11
Minuit parameter uncertainties:
  1  4.10397e-06
  2  1.00709
  3  1.30244
  4  1.26966
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) = 37954.0579272
delta logL = -3.63797880709e-11

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  4.104e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  1.989e+00  1.007e+00  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  1.270e+00  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.302e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 301.393 77.883

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/19665134/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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.94e-08', time_completed='2023-07-18 02:21:08.749568', job_id='19665134', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689672068.75', return_code2='101', ts='0.00', return_code='0', GAL='1.02', dlogl='-3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:21:09 PDT 2023

h/kocevski/19666810/Model_4FGL_J2005.5+7752_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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits.....................!
real 178.32
user 175.61
sys 0.77

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits', '/lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits', expMap='/lscratch/kocevski/19666810/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', expCube='/lscratch/kocevski/19666810/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/19666810/Model_4FGL_J2005.5+7752_weekly_bin780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.5+7752'

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  3.878e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/19666810/ft1_filtered_4FGL_J2005.5+7752_weekly_bin780.fits
Spacecraft file(s): /lscratch/kocevski/19666810/ft2_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure map: /lscratch/kocevski/19666810/expmap_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
Exposure cube: /lscratch/kocevski/19666810/ltcube_710726401_711331201_4FGL_J2005.5+7752_weekly_bin780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/19666810/Model_4FGL_J2005.5+7752_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) = 37954.079749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8737       1.0000          .0000       .10000E+07
     2 'Prefactor '    .27692E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.599       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.998       1.0000          .0000       .10000E+07
     5 'norm      '    5.4641       1.0000          .0000       .10000E+07
     6 'norm      '    10.309       1.0000          .0000       .10000E+07
     7 'norm      '    5.8097       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.5169       1.0000          .0000       .10000E+07
     9 'Prefactor '    .21231E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
    11 'norm      '    39.132       1.0000          .0000       .10000E+07
    12 'norm      '    .11871E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.1622       1.0000          .0000       .10000E+07
    14 'norm      '    .94114E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.7055       1.0000          .0000       .10000E+07
    16 'Prefactor '    .18293E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3735       1.0000          .0000       .10000E+07
    18 'Normalizat'    .92433       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1408 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8845        4.1024       -.70787E-07    .22683E-01
   2  Prefactor     .33307E-09    6.3564        .63348E-06** at limit **
   3  Prefactor     31.641        5.6268        .21448E-07    .14485    
   4  Prefactor     13.120        1.6561        .60765E-08    .10234E-01
   5  norm          5.4642        2.3689       -.25884E-07    .62247E-03
   6  norm          10.309        .86179       -.86184E-08    .83085E-03
   7  norm          5.8168        2.8966        .26523E-07   -.30154E-03
   8  Prefactor     5.4698        5.6689        .16149E-06    .16140E-02
   9  Prefactor     .16653E-09    3.1231       -.11128E-07** at limit **
  10  Prefactor     .22204E-09    2.1578        .20531E-07** at limit **
  11  norm          38.718        24.518       -.74700E-07    .36734E-01
  12  norm           .0000        .86253       -.21344E-07** at limit **
  13  Prefactor     6.1762        1.0221       -.92603E-09   -.32918E-02
  14  norm           .0000        1.2079       -.49848E-07** at limit **
  15  Prefactor     4.7248        6.7020        .10972E-06    .18558E-01
  16  Prefactor     .18097E-07    15.502       -.21956E-06** at limit **
  17  Prefactor     5.2895        6.6779       -.54869E-07    .83073E-02
  18  Normalizat    .92436        .12208       -.44444E-06    .55242E-04
  19  Prefactor     1.0224        .35550E-01   -.36074E-06    .17667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.88452
  Prefactor  = 3.33067e-10
  Prefactor  = 31.6405
  Prefactor  = 13.1205
  norm       = 5.46425
  norm       = 10.3088
  norm       = 5.81678
  Prefactor  = 5.46984
  Prefactor  = 1.66533e-10
  Prefactor  = 2.22045e-10
  norm       = 38.7179
  norm       = 0
  Prefactor  = 6.17619
  norm       = 0
  Prefactor  = 4.72479
  Prefactor  = 1.80966e-08
  Prefactor  = 5.28953
  Normalizat = 0.924364
  Prefactor  = 1.02243
 **********
 **   18 **HESSE 
 **********

 FCN=   37954.06     FROM HESSE     STATUS=OK           318 CALLS     1726 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8845        8.0562        .45540E-03   -1.5664    
   2  Prefactor     .33307E-09    .68607        .53233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.641        19.903        .17792E-03   -1.5595    
   4  Prefactor     13.120        20.889        .27758E-03   -1.5636    
   5  norm          5.4642        2.3715        .42962E-03   -1.5661    
   6  norm          10.309        .88034        .31181E-03   -1.5644    
   7  norm          5.8168        2.9097        .41644E-03   -1.5660    
   8  Prefactor     5.4698        5.6983        .42752E-03   -1.5661    
   9  Prefactor     .16653E-09    3.1599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .22204E-09    2.1512        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          38.718        25.639        .15987E-03   -1.5584    
  12  norm           .0000        .86128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1762        15.903        .40418E-03   -1.5658    
  14  norm           .0000        1.1994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7248        7.6529        .46365E-03   -1.5664    
  16  Prefactor     .18097E-07    15.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2895        6.7656        .43329E-03   -1.5662    
  18  Normalizat    .92436        .11879        .11210       -.95609    
  19  Prefactor     1.0224        .33329E-01    .41911E-01   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38927e-07
Minuit parameter uncertainties:
  1  8.05625
  2  3.00529e-05
  3  19.9027
  4  20.889
  5  2.37153
  6  0.880343
  7  2.90967
  8  5.69834
  9  4.57289e-05
  10  4.23343e-05
  11  25.6389
  12  3.13432e-06
  13  15.9035
  14  5.74243e-06
  15  7.65295
  16  0.00106097
  17  6.76558
  18  0.11882
  19  0.0333301
Done.

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

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  3.134e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  2.142e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  3.333e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 301.393 77.883
Photon Flux Upper Limit: 2.93889802681e-08 ph cm-2 s-1
Energy Flux Upper Limit: None

Saving results to:
/lscratch/kocevski/19666810/likelihoodResults_710726401_711331201_4FGL_J2005.5+7752_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) = 37954.0657722
delta logL = -0.00784502692113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 37954.0579273
delta logL = -8.15198291093e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   37954.06     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      268 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .76797        .42118E-03** at limit **
   2  alpha         1.9891        .97890        .24176E-04     .0000    
   3  Normalizat    .92436        1.2585        .15883E-04   -.30548E-03
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.54725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 1.98911
  Normalizat = 0.924363
  Prefactor  = 1.02243
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   37954.06     FROM HESSE     STATUS=FAILED         9 CALLS      277 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .76797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .85944        1.1723        .24176E-04   -.20581    
   3  Normalizat    .92436        1.2585        .15883E-04   -.95609    
   4  Prefactor     1.0224        1.2328       -.62568E-05   -.91986    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.03812e-11
Minuit parameter uncertainties:
  1  4.10397e-06
  2  1.00709
  3  1.30244
  4  1.26966
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) = 37954.0579272
delta logL = -3.63797880709e-11

Extracting fit parameters...

4FGL J2005.5+7752
   Spectrum: LogParabola
492         norm:  0.000e+00  4.104e-06  0.000e+00  1.000e+06 ( 1.000e-12)
493        alpha:  1.989e+00  1.007e+00  0.000e+00  5.000e+00 ( 1.000e+00)
494         beta:  5.082e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
495           Eb:  9.080e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.022e+00  1.270e+00  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
683   Normalization:  9.244e-01  1.302e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 301.393 77.883

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/19666810/cmap_HighResolution_710726401_711331201_4FGL_J2005.5+7752_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.94e-08', time_completed='2023-07-18 02:31:20.056528', job_id='19666810', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1689672680.06', return_code2='101', ts='0.00', return_code='0', GAL='1.02', dlogl='-3.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='780' AND source_name='4FGL J2005.5+7752' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 18 02:31:20 PDT 2023

