/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

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


Performing analysis on: 4FGL_J1754.2+3212_weekly_bin802
RA = 268.553, Dec = 32.2007
tmin = 724032001, tmax = 724636801
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='36607256', job_status='RUN', time_executed='2023-12-19 01:05:58.734095', time_epoch_executed='1702976758.73' WHERE source_name='4FGL J1754.2+3212' and cadence='weekly' and bin_id='802'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/36607256

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/36607256/ft1_4FGL_J1754.2+3212_weekly_bin802.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/36607256/ft1_4FGL_J1754.2+3212_weekly_bin802.fits outfile=/lscratch/kocevski/36607256/ft1_filteredMKT_4FGL_J1754.2+3212_weekly_bin802.fits ra=268.553 dec=32.2007 rad=12.0 tmin=724032001.0 tmax=724636801.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.75
user 4.33
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.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/36607256/ft1_filteredMKT_4FGL_J1754.2+3212_weekly_bin802.fits evtable="EVENTS" outfile="/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.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.39
user 0.23
sys 0.12

Number of photons that the gtmktime cut: 2010

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits" evtable="EVENTS" scfile=/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits sctable="SC_DATA" outfile=/lscratch/kocevski/36607256/ltcube_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.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/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits
.....................!
real 19.09
user 18.75
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits sctable="SC_DATA" expcube=/lscratch/kocevski/36607256/ltcube_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.fits outfile=/lscratch/kocevski/36607256/expmap_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.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/36607256/ltcube_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.fits
.....................!
real 72.16
user 67.91
sys 3.93

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1754.2+3212 @ 268.553 32.2007

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits scfile=/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits outfile=/lscratch/kocevski/36607256/cmap_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.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=268.553 yref=32.2007 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.39
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits scfile=/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits outfile=/lscratch/kocevski/36607256/cmap_HighResolution_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.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=268.553 yref=32.2007 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.42
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits evtable="EVENTS" scfile=/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/36607256/Model_4FGL_J1754.2+3212_weekly_bin802.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits.....................!
real 65.02
user 63.50
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits', '/lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits', expMap='/lscratch/kocevski/36607256/expmap_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.fits', expCube='/lscratch/kocevski/36607256/ltcube_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/36607256/Model_4FGL_J1754.2+3212_weekly_bin802.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1754.2+3212'

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  1.314e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/36607256/ft1_filtered_4FGL_J1754.2+3212_weekly_bin802.fits
Spacecraft file(s): /lscratch/kocevski/36607256/ft2_4FGL_J1754.2+3212_weekly_bin802.fits
Exposure map: /lscratch/kocevski/36607256/expmap_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.fits
Exposure cube: /lscratch/kocevski/36607256/ltcube_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/36607256/Model_4FGL_J1754.2+3212_weekly_bin802.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) = 20923.7944091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5973       1.0000          .0000       .10000E+07
     2 'norm      '    .12873E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.3364       1.0000          .0000       .10000E+07
     4 'Prefactor '    .21305E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .46260E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.4815       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13028E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .89217E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.5286       1.0000          .0000       .10000E+07
    10 'norm      '    .74654       1.0000          .0000       .10000E+07
    11 'norm      '    1.8993       1.0000          .0000       .10000E+07
    12 'norm      '    .72568E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.5153       1.0000          .0000       .10000E+07
    14 'norm      '    17.141       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0739       1.0000          .0000       .10000E+07
    16 'Prefactor '    27.806       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.0831       1.0000          .0000       .10000E+07
    18 'norm      '    10.047       1.0000          .0000       .10000E+07
    19 'norm      '    .14250E-06   1.0000          .0000       .10000E+07
    20 'norm      '    1.2398       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0729       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20923.76     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1799 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5927        4.4730       -.13421E-07   -.13325E-03
   2  norm           .0000        .90950        .13034E-06** at limit **
   3  Prefactor     2.7047        143.72       -.18484E-05    .11064E-02
   4  Prefactor      .0000        30.254       -.47999E-06** at limit **
   5  Prefactor     .29421E-08    11.935       -.96737E-06** at limit **
   6  Prefactor     7.4681        5.8470       -.20656E-06   -.67298E-03
   7  Prefactor     .55511E-10    7.5675        .52004E-06** at limit **
   8  Prefactor     .43299E-08    12.328        .29046E-06** at limit **
   9  Prefactor     4.5292        3.4278        .12284E-06   -.20995E-04
  10  norm          .74647        .66871       -.11458E-06    .30977E-02
  11  norm          1.4315        109.59        .21985E-04   -.33884E-02
  12  norm           .0000        3.9708        .10305E-06** at limit **
  13  Prefactor     9.5042        4.1001       -.14593E-06   -.40068E-03
  14  norm          17.140        6.5817       -.10522E-05   -.88781E-03
  15  Prefactor     2.0762        2.0354       -.49776E-07   -.66334E-03
  16  Prefactor     27.712        2.0895        .10630E-06    .37400E-01
  17  Prefactor     2.0721        5.0945       -.19187E-06   -.79265E-04
  18  norm          10.062        5.2531       -.16253E-05   -.51859E-01
  19  norm           .0000        4.7691       -.65798E-06** at limit **
  20  norm          1.2388        1.1988        .21100E-06   -.29366E-02
  21  Normalizat    1.0738        .15246       -.19605E-05   -.90428E-04
  22  Prefactor     .98572        .70523E-01    .22236E-06   -.10694E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.59267
  norm       = 0
  Prefactor  = 2.70465
  Prefactor  = 0
  Prefactor  = 2.94209e-09
  Prefactor  = 7.4681
  Prefactor  = 5.55112e-11
  Prefactor  = 4.32987e-09
  Prefactor  = 4.52918
  norm       = 0.746469
  norm       = 1.4315
  norm       = 0
  Prefactor  = 9.50425
  norm       = 17.1401
  Prefactor  = 2.07622
  Prefactor  = 27.7122
  Prefactor  = 2.07206
  norm       = 10.0624
  norm       = 0
  norm       = 1.23885
  Normalizat = 1.0738
  Prefactor  = 0.985716
 **********
 **   18 **HESSE 
 **********

 FCN=   20923.76     FROM HESSE     STATUS=OK           398 CALLS     2197 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5927        4.4813        .36360E-03   -1.5653    
   2  norm           .0000        .91005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7047        147.03        .55387E-03   -1.5675    
   4  Prefactor      .0000        30.090        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .29421E-08    11.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4681        5.8554        .36642E-03   -1.5653    
   7  Prefactor     .55511E-10    7.5675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .43299E-08    12.414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5292        3.4269        .47284E-03   -1.5665    
  10  norm          .74647        .66544        .57008E-03   -1.5691    
  11  norm          1.4315        113.77        .75443E-03   -1.5684    
  12  norm           .0000        3.9702        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5042        4.1021        .32463E-03   -1.5646    
  14  norm          17.140        6.8910        .24164E-03   -1.5625    
  15  Prefactor     2.0762        2.0803        .71697E-03   -1.5679    
  16  Prefactor     27.712        15.130        .18967E-03   -1.5603    
  17  Prefactor     2.0721        5.1687        .71515E-03   -1.5679    
  18  norm          10.062        18.695        .31588E-03   -1.5645    
  19  norm           .0000        .86623        .61421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.2388        1.4445        .10069E-02   -1.5686    
  21  Normalizat    1.0738        .13086        .78197E-01   -.90598    
  22  Prefactor     .98572        .60084E-01    .46090E-01   -.93207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1213e-06
Minuit parameter uncertainties:
  1  4.4813
  2  3.10846e-06
  3  39.8835
  4  5.07215e-05
  5  0.000375856
  6  5.85536
  7  3.85597e-05
  8  0.000462879
  9  3.42686
  10  0.66544
  11  25.524
  12  1.90881e-05
  13  4.1021
  14  6.89102
  15  2.08029
  16  15.1305
  17  5.16875
  18  18.6951
  19  4.99373e-06
  20  1.44452
  21  0.1309
  22  0.0600886
Done.

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

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  7.465e-01  6.654e-01  0.000e+00  1.000e+06 ( 1.000e-12)
349        alpha:  1.748e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
350         beta:  1.054e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  9.857e-01  6.009e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.074e+00  1.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 268.553 32.201
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 7.30e-09 +/- 6.51e-09
Energy Flux (Fixed Index): 8.23e-06 +/- 7.34e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20923.7477237
delta logL = 0.0122622666604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20923.7470766
delta logL = 0.0129094049262

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20923.75     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77010        22.498        .55241E-03   -.15810E-02
   2  alpha         1.8807        3.2566        .42879        .10289E-04
   3  Normalizat    1.0726        .88985E-01    .78234E-01   -.15601E-05
   4  Prefactor     .98573        .28101E-01    .46089E-01    .15352E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.7701
  alpha      = 1.88073
  Normalizat = 1.07259
  Prefactor  = 0.985735
 **********
 **   18 **HESSE 
 **********

 FCN=   20923.75     FROM HESSE     STATUS=OK            31 CALLS      261 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77010        .66850        .10691E-04   -1.5690    
   2  alpha         1.8807        .79800        .36475E-01   -.25031    
   3  Normalizat    1.0726        .14549        .34629E-03   -.90637    
   4  Prefactor     .98573        .68640E-01    .16884E-03   -.93207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26389e-10
Minuit parameter uncertainties:
  1  0.6685
  2  0.813191
  3  0.145546
  4  0.0686462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20923.7470755
delta logL = 0.0129105129381

Extracting fit parameters...

4FGL J1754.2+3212
   Spectrum: LogParabola
348         norm:  7.701e-01  6.685e-01  0.000e+00  1.000e+06 ( 1.000e-12)
349        alpha:  1.881e+00  8.132e-01  0.000e+00  5.000e+00 ( 1.000e+00)
350         beta:  1.054e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
351           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  9.857e-01  6.865e-02  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  1.073e+00  1.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 268.553 32.201
Photon Index (Free Index): 1.88 +/- 0.81
Photon Flux (Free Index): 8.93e-09 +/- 1.27e-08
Energy Flux (Free Index): 7.58e-06 +/- 7.65e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/36607256/cmap_HighResolution_724032001_724636801_4FGL_J1754.2+3212_weekly_bin802.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.30e-09', energy_flux2='7.58e-06', photon_flux_error='6.51e-09', dlogl='1.29e-02', energy_flux='8.23e-06', photon_flux2='8.93e-09', job_status='DONE', time_completed='2023-12-19 01:16:01.210246', photon_index_error2='0.81', photon_index2='1.88', ts='5.09', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='7.65e-06', EG='1.07', time_epoch_completed='1702977361.21', return_code='0', job_id='36607256', GAL2='0.99', EG2='1.07', return_code2='0', energy_flux_error='7.34e-06', photon_flux_error2='1.27e-08', ts2='5.11', photon_index='1.75' WHERE bin_id='802' AND source_name='4FGL J1754.2+3212' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 19 01:16:01 PST 2023

