/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_J1740.5+5211_weekly_bin854
RA = 265.136, Dec = 52.1927
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='60352537', job_status='RUN', time_executed='2024-12-17 00:57:02.128154', time_epoch_executed='1734425822.13' WHERE source_name='4FGL J1740.5+5211' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352537

Creating custom pfile directory:
/lscratch/kocevski/60352537/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/60352537/ft1_4FGL_J1740.5+5211_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/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352537/ft1_4FGL_J1740.5+5211_weekly_bin854.fits outfile=/lscratch/kocevski/60352537/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin854.fits ra=265.136 dec=52.1927 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.82
user 4.45
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_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/60352537/ft1_filteredMKT_4FGL_J1740.5+5211_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_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.56
user 0.22
sys 0.16

Number of photons that the gtmktime cut: 1817

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352537/ltcube_755481601_756086401_4FGL_J1740.5+5211_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/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits
.....................!
real 16.75
user 16.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352537/ltcube_755481601_756086401_4FGL_J1740.5+5211_weekly_bin854.fits outfile=/lscratch/kocevski/60352537/expmap_755481601_756086401_4FGL_J1740.5+5211_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/60352537/ltcube_755481601_756086401_4FGL_J1740.5+5211_weekly_bin854.fits
.....................!
real 66.90
user 62.83
sys 3.72

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

Setting source of interest to:
4FGL J1740.5+5211 @ 265.136 52.1927

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits scfile=/lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits outfile=/lscratch/kocevski/60352537/cmap_755481601_756086401_4FGL_J1740.5+5211_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=265.136 yref=52.1927 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.43
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits scfile=/lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits outfile=/lscratch/kocevski/60352537/cmap_HighResolution_755481601_756086401_4FGL_J1740.5+5211_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=265.136 yref=52.1927 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.42
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352537/Model_4FGL_J1740.5+5211_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/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits.....................!
real 57.12
user 55.55
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits', '/lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits', expMap='/lscratch/kocevski/60352537/expmap_755481601_756086401_4FGL_J1740.5+5211_weekly_bin854.fits', expCube='/lscratch/kocevski/60352537/ltcube_755481601_756086401_4FGL_J1740.5+5211_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352537/Model_4FGL_J1740.5+5211_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.5+5211'

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.805e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352537/ft1_filtered_4FGL_J1740.5+5211_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352537/ft2_4FGL_J1740.5+5211_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352537/expmap_755481601_756086401_4FGL_J1740.5+5211_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352537/ltcube_755481601_756086401_4FGL_J1740.5+5211_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352537/Model_4FGL_J1740.5+5211_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) = 18776.4896815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6602       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.9386       1.0000          .0000       .10000E+07
     3 'Prefactor '    .39447E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13441E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.4884       1.0000          .0000       .10000E+07
     6 'Prefactor '    4.2608       1.0000          .0000       .10000E+07
     7 'norm      '    .12990E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.2148       1.0000          .0000       .10000E+07
     9 'norm      '    .49924       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.7713       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.1607       1.0000          .0000       .10000E+07
    12 'norm      '    3.3135       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4603       1.0000          .0000       .10000E+07
    14 'Prefactor '    .70882E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .94980E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .92075E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.4194       1.0000          .0000       .10000E+07
    18 'Prefactor '    34.017       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.4314       1.0000          .0000       .10000E+07
    20 'Prefactor '    .56266E-04   1.0000          .0000       .10000E+07
    21 'norm      '    1.2273       1.0000          .0000       .10000E+07
    22 'Prefactor '    .10448E-02   1.0000          .0000       .10000E+07
    23 'norm      '    50.612       1.0000          .0000       .10000E+07
    24 'norm      '    .13027E-02   1.0000          .0000       .10000E+07
    25 'norm      '    .89950E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .81917       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0861       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91138       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18773.52     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1521 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4998        1.4184       -.80660E-07   -.24310E-01
   2  Prefactor     2.9361        2.0808       -.20630E-06   -.12603E-02
   3  Prefactor      .0000        12.051       -.30150E-06** at limit **
   4  Prefactor      .0000        .76425        .28325E-09** at limit **
   5  Prefactor     5.4919        4.7636       -.49424E-08    .29843E-03
   6  Prefactor     4.2001        10.522        .61449E-06   -.14478E-02
   7  norm           .0000        .12661        .26317E-07** at limit **
   8  Prefactor     3.2556        4.3717        .12207E-06    .56225E-04
   9  norm          .49793        .41487        .20828E-07   -.16374E-03
  10  Prefactor     4.7771        3.3480       -.48290E-07   -.38755E-03
  11  Prefactor     5.2465        5.1207        .10927E-06   -.24564E-03
  12  norm          3.3093        1.1780       -.27126E-08    .47747E-03
  13  Prefactor     1.4583        1.6364       -.41300E-07   -.75194E-03
  14  Prefactor     .55511E-10    28.042       -.48314E-06** at limit **
  15  norm           .0000        2.0569        .23081E-06** at limit **
  16  Prefactor      .0000        14.812       -.84333E-06** at limit **
  17  Prefactor     5.4387        3.0206       -.57661E-07    .49789E-05
  18  Prefactor     33.314        29.431        .11491E-05    .65044E-03
  19  Prefactor     3.9624        143.04       -.64028E-05    .36902E-03
  20  Prefactor     .55511E-10    3.4598        .27651E-06** at limit **
  21  norm          1.2406        4.3011       -.55296E-06   -.36808E-03
  22  Prefactor      .0000        3.2360        .48150E-06** at limit **
  23  norm          50.678        7.7270        .16513E-06   -.56914E-02
  24  norm           .0000        5.4015        .28572E-07** at limit **
  25  norm           .0000        1.8895        .91241E-07** at limit **
  26  Prefactor     .81841        .87599        .65293E-08   -.22662E-03
  27  Normalizat    1.0869        .15489       -.38657E-05   -.57337E-04
  28  Prefactor     .91151        .10715        .11216E-05   -.55801E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.49978
  Prefactor  = 2.93608
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.49192
  Prefactor  = 4.20008
  norm       = 0
  Prefactor  = 3.25564
  norm       = 0.497928
  Prefactor  = 4.7771
  Prefactor  = 5.24646
  norm       = 3.30929
  Prefactor  = 1.45835
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 0
  Prefactor  = 5.43874
  Prefactor  = 33.3136
  Prefactor  = 3.96242
  Prefactor  = 5.55112e-11
  norm       = 1.24061
  Prefactor  = 0
  norm       = 50.6784
  norm       = 0
  norm       = 0
  Prefactor  = 0.818408
  Normalizat = 1.08688
  Prefactor  = 0.91151
 **********
 **   18 **HESSE 
 **********

 FCN=   18773.52     FROM HESSE     STATUS=OK           583 CALLS     2104 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4998        7.9591        .42199E-03   -1.5661    
   2  Prefactor     2.9361        2.0800        .59225E-03   -1.5674    
   3  Prefactor      .0000        11.587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        .75526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.4919        4.7696        .42865E-03   -1.5661    
   6  Prefactor     4.2001        10.540        .48788E-03   -1.5667    
   7  norm           .0000        .12577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2556        4.4072        .56478E-03   -1.5672    
   9  norm          .49793        .42886        .78786E-03   -1.5694    
  10  Prefactor     4.7771        3.3600        .46037E-03   -1.5664    
  11  Prefactor     5.2465        5.1329        .44230E-03   -1.5662    
  12  norm          3.3093        1.1811        .55588E-03   -1.5672    
  13  Prefactor     1.4583        1.6492        .89008E-03   -1.5684    
  14  Prefactor     .55511E-10    28.006        .14789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        2.0477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        14.849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.4387        3.0237        .43142E-03   -1.5661    
  18  Prefactor     33.314        29.506        .17148E-03   -1.5593    
  19  Prefactor     3.9624        147.36        .36767E-03   -1.5668    
  20  Prefactor     .55511E-10    3.4611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2406        4.3178        .10156E-02   -1.5686    
  22  Prefactor      .0000        3.2412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          50.678        7.7796        .14057E-03   -1.5566    
  24  norm           .0000        5.3254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        1.8893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .81841        .87562        .51517E-03   -1.5690    
  27  Normalizat    1.0869        .12953        .67405E-01   -.90174    
  28  Prefactor     .91151        .89508E-01    .45150E-01   -.95740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55745e-06
Minuit parameter uncertainties:
  1  7.95913
  2  2.07997
  3  3.12336e-05
  4  7.89843e-07
  5  4.76962
  6  10.5404
  7  3.39186e-07
  8  4.4072
  9  0.428863
  10  3.36
  11  5.1329
  12  1.18109
  13  1.64922
  14  6.84553e-05
  15  1.5731e-07
  16  3.96005e-05
  17  3.02367
  18  29.5061
  19  48.3289
  20  2.41934e-05
  21  4.31779
  22  1.78686e-05
  23  7.77958
  24  2.26099e-05
  25  3.58781e-07
  26  0.875618
  27  0.12957
  28  0.089522
Done.

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

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.439e+00  3.024e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.470e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  9.115e-01  8.952e-02  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.087e+00  1.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.83
Ra Dec: 265.136 52.193
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 6.91e-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) = 18773.4511138
delta logL = 0.0646708191634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18773.4470704
delta logL = 0.0687142197421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18773.45     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6678        66.373        .42171E-03    .54234E-02
   2  Index         2.2858        6.1429        .24368        .49006E-04
   3  Normalizat    1.0954        .62733E-01    .67179E-01    .41465E-04
   4  Prefactor     .90806        .36170E-01    .45108E-01    .29400E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.66783
  Index      = 2.28578
  Normalizat = 1.09542
  Prefactor  = 0.908062
 **********
 **   18 **HESSE 
 **********

 FCN=   18773.45     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6678        3.2352        .16868E-04   -1.5660    
   2  Index         2.2858        .49466        .10927E-01   -.57382    
   3  Normalizat    1.0954        .14679        .29721E-03   -.89899    
   4  Prefactor     .90806        .10589        .23480E-03   -.95860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80438e-10
Minuit parameter uncertainties:
  1  3.23522
  2  0.495814
  3  0.146845
  4  0.105911
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) = 18773.4470704
delta logL = 0.0687142247298

Extracting fit parameters...

4FGL J1740.5+5211
   Spectrum: PowerLaw
345    Prefactor:  5.668e+00  3.235e+00  0.000e+00  1.000e+06 ( 1.000e-12)
346        Index:  2.286e+00  4.958e-01  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  6.751e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
657    Prefactor:  9.081e-01  1.059e-01  0.000e+00  1.000e+01 ( 1.000e+00)
658        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
659        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
656   Normalization:  1.095e+00  1.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.91
Ra Dec: 265.136 52.193
Photon Index (Free Index): 2.29 +/- 0.50
Photon Flux (Free Index): 3.47e-08 +/- 2.67e-08
Energy Flux (Free Index): 1.34e-05 +/- 8.51e-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/60352537/cmap_HighResolution_755481601_756086401_4FGL_J1740.5+5211_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.34e-05', photon_flux_error='2.30e-08', dlogl='6.87e-02', energy_flux='1.24e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2024-12-17 01:06:02.187722', photon_index_error2='0.50', photon_index2='2.29', ts='7.83', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='8.51e-06', EG='1.09', time_epoch_completed='1734426362.19', return_code='0', job_id='60352537', GAL2='0.91', EG2='1.10', return_code2='0', energy_flux_error='6.91e-06', photon_flux_error2='2.67e-08', ts2='7.91', photon_index='2.47' WHERE bin_id='854' AND source_name='4FGL J1740.5+5211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:06:02 PST 2024

