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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1738.3+3228_weekly_bin854
RA = 264.584, Dec = 32.4823
tmin = 755481601, tmax = 756086401
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='60352534', job_status='RUN', time_executed='2024-12-17 00:57:02.306629', time_epoch_executed='1734425822.31' WHERE source_name='4FGL J1738.3+3228' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352534

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

Retrieving the FT1 file...

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

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

Retrieving 92 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/60352534/ft1_4FGL_J1738.3+3228_weekly_bin854.fits


Retrieving the FT1 file...

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

Retrieving 92 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352534/ft1_4FGL_J1738.3+3228_weekly_bin854.fits outfile=/lscratch/kocevski/60352534/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin854.fits ra=264.584 dec=32.4823 rad=12.0 tmin=755481601.0 tmax=756086401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.87
user 4.40
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/60352534/ft1_filteredMKT_4FGL_J1738.3+3228_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.21
sys 0.15

Number of photons that the gtmktime cut: 1546

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352534/ltcube_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits
.....................!
real 18.46
user 17.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352534/ltcube_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits outfile=/lscratch/kocevski/60352534/expmap_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/60352534/ltcube_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits
.....................!
real 67.09
user 62.96
sys 3.77

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits scfile=/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits outfile=/lscratch/kocevski/60352534/cmap_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=264.584 yref=32.4823 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.56
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits scfile=/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits outfile=/lscratch/kocevski/60352534/cmap_HighResolution_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=264.584 yref=32.4823 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.44
user 0.22
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352534/Model_4FGL_J1738.3+3228_weekly_bin854.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits.....................!
real 46.67
user 44.83
sys 1.50

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits', '/lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits', expMap='/lscratch/kocevski/60352534/expmap_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits', expCube='/lscratch/kocevski/60352534/ltcube_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352534/Model_4FGL_J1738.3+3228_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352534/ft1_filtered_4FGL_J1738.3+3228_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352534/ft2_4FGL_J1738.3+3228_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352534/expmap_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352534/ltcube_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352534/Model_4FGL_J1738.3+3228_weekly_bin854.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3818       1.0000          .0000       .10000E+07
     2 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     3 'norm      '    22.809       1.0000          .0000       .10000E+07
     4 'norm      '    3.0134       1.0000          .0000       .10000E+07
     5 'norm      '    .34417E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    54.341       1.0000          .0000       .10000E+07
     7 'Prefactor '    80.305       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .43288E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    22.085       1.0000          .0000       .10000E+07
    11 'Prefactor '    .35381E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .16043E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .78514       1.0000          .0000       .10000E+07
    14 'norm      '    31.887       1.0000          .0000       .10000E+07
    15 'Prefactor '    .18874E-08   1.0000          .0000       .10000E+07
    16 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.0007       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.0162       1.0000          .0000       .10000E+07
    19 'Normalizat'    .36987       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16419.25     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1789 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3818        .83661        .37338E-08    .17363E-03
   2  Prefactor      .0000        7.5673        .41701E-07** at limit **
   3  norm          22.808        6.5682       -.54186E-08   -.34695E-03
   4  norm          3.0136        2.7853       -.16072E-07   -.62572E-04
   5  norm          .44409E-09    19.039        .15636E-06** at limit **
   6  Prefactor     54.336        1.5110        .43516E-08   -.54676E-02
   7  Prefactor     80.308        2.0397       -.58123E-08    .20183E-01
   8  Prefactor      .0000        4.2032        .14557E-07** at limit **
   9  Prefactor      .0000        6.7032        .19521E-07** at limit **
  10  Prefactor     22.074        22.557       -.12279E-06   -.14129E-01
  11  Prefactor     .18874E-08    84.134       -.38030E-06** at limit **
  12  Prefactor      .0000        3.6569        .98886E-08** at limit **
  13  norm          .78516        .64889        .10134E-08    .45837E-04
  14  norm          31.895        8.2128       -.42193E-07    .45345E-01
  15  Prefactor      .0000        1.3476        .66440E-08** at limit **
  16  norm           .0000        1.6600        .14016E-07** at limit **
  17  Prefactor     5.0007        3.6905        .49814E-08    .15302E-02
  18  Prefactor     6.0145        1.2084       -.45675E-08   -.17461E-01
  19  Normalizat    .37001        .15617        .77402E-06    .19241E-04
  20  Prefactor     1.2415        .84962E-01    .55661E-06    .66918E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.38176
  Prefactor  = 0
  norm       = 22.808
  norm       = 3.01362
  norm       = 4.44089e-10
  Prefactor  = 54.3363
  Prefactor  = 80.3078
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 22.0743
  Prefactor  = 1.88738e-09
  Prefactor  = 0
  norm       = 0.785158
  norm       = 31.8948
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.00071
  Prefactor  = 6.01449
  Normalizat = 0.37001
  Prefactor  = 1.24155
 **********
 **   18 **HESSE 
 **********

 FCN=   16419.25     FROM HESSE     STATUS=OK           333 CALLS     2122 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3818        .84054        .92541E-03   -1.5684    
   2  Prefactor      .0000        7.5653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.808        6.6337        .20944E-03   -1.5612    
   4  norm          3.0136        2.8992        .58441E-03   -1.5673    
   5  norm          .44409E-09    19.062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.336        40.051        .13567E-03   -1.5561    
   7  Prefactor     80.308        56.735        .11160E-03   -1.5529    
   8  Prefactor      .0000        4.1928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        6.6694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.074        23.898        .21285E-03   -1.5614    
  11  Prefactor     .18874E-08    83.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        3.6476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .78516        .64990        .54049E-03   -1.5690    
  14  norm          31.895        29.846        .17711E-03   -1.5595    
  15  Prefactor      .0000        1.3439        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.6652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.0007        3.9236        .44946E-03   -1.5663    
  18  Prefactor     6.0145        14.623        .40913E-03   -1.5659    
  19  Normalizat    .37001        .16543        .11359       -1.1888    
  20  Prefactor     1.2415        .86729E-01    .33714E-01   -.85062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89661e-08
Minuit parameter uncertainties:
  1  0.840537
  2  2.24582e-05
  3  6.63372
  4  2.89917
  5  0.000188395
  6  40.0508
  7  56.7356
  8  2.28926e-06
  9  6.27804e-06
  10  23.8985
  11  0.000792134
  12  1.35187e-06
  13  0.649897
  14  29.8459
  15  7.54974e-07
  16  4.13678e-07
  17  3.92359
  18  14.6235
  19  0.16565
  20  0.0867388
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  8.031e+01  5.674e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.242e+00  8.674e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  3.700e-01  1.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 264.584 32.482
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.27e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 1.00e-05 +/- 7.06e-06

TS (Fixed Index): 2.96
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 7.97811847464e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00618691306081 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352534/likelihoodResults_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16419.2502207
delta logL = 0.000294838613627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16419.2499574
delta logL = 0.000558206407732

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16419.25     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      270 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.052        83.934        .22090E-04    .38142E-02
   2  Index         2.4358        .58540        .72301E-02    .29198E-03
   3  Normalizat    .37059        .15521        .50267E-03   -.50299E-04
   4  Prefactor     1.2414        .84444E-01    .15564E-03   -.10606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.0523
  Index      = 2.4358
  Normalizat = 0.370591
  Prefactor  = 1.24137
 **********
 **   18 **HESSE 
 **********

 FCN=   16419.25     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.052        77.600        .44180E-05   -1.5527    
   2  Index         2.4358        .54107        .28920E-03   -.53849    
   3  Normalizat    .37059        .15502        .20107E-04   -1.1885    
   4  Prefactor     1.2414        .84372E-01    .62256E-05   -.85068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.494e-10
Minuit parameter uncertainties:
  1  77.6011
  2  0.542513
  3  0.155195
  4  0.084381
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) = 16419.2499486
delta logL = 0.000566920542042

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  8.205e+01  7.760e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.436e+00  5.425e-01  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.241e+00  8.438e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  3.706e-01  1.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 264.584 32.482
Photon Index (Free Index): 2.44 +/- 0.54
Photon Flux (Free Index): 3.22e-08 +/- 2.61e-08
Energy Flux (Free Index): 1.01e-05 +/- 7.61e-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/60352534/cmap_HighResolution_755481601_756086401_4FGL_J1738.3+3228_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', comment='SUCCESS', photon_flux='3.27e-08', energy_flux2='1.01e-05', photon_flux_error='2.31e-08', dlogl='5.67e-04', energy_flux='1.00e-05', photon_flux2='3.22e-08', job_status='DONE', time_completed='2024-12-17 01:05:48.125659', photon_index_error2='0.54', photon_index2='2.44', ts='2.96', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='7.98e-08', energy_flux_error2='7.61e-06', EG='0.37', time_epoch_completed='1734426348.13', return_code='0', job_id='60352534', GAL2='1.24', EG2='0.37', return_code2='0', energy_flux_error='7.06e-06', photon_flux_error2='2.61e-08', ts2='2.96', photon_index='2.45' WHERE bin_id='854' AND source_name='4FGL J1738.3+3228' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:05:48 PST 2024

