/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 = 17428
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1043.2+2408_weekly_bin850
RA = 160.805, Dec = 24.146
tmin = 753062401, tmax = 753667201
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='59112925', job_status='RUN', time_executed='2024-11-19 01:02:51.030564', time_epoch_executed='1732006971.03' WHERE source_name='4FGL J1043.2+2408' and cadence='weekly' and bin_id='850'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59112925

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59112925/ft1_4FGL_J1043.2+2408_weekly_bin850.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59112925/ft1_4FGL_J1043.2+2408_weekly_bin850.fits outfile=/lscratch/kocevski/59112925/ft1_filteredMKT_4FGL_J1043.2+2408_weekly_bin850.fits ra=160.805 dec=24.146 rad=12.0 tmin=753062401.0 tmax=753667201.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.04
user 4.68
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.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/59112925/ft1_filteredMKT_4FGL_J1043.2+2408_weekly_bin850.fits evtable="EVENTS" outfile="/lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.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.47
user 0.21
sys 0.14

Number of photons that the gtmktime cut: 1215

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59112925/ltcube_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.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/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits
.....................!
real 17.37
user 16.90
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits evtable="EVENTS" scfile=/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59112925/ltcube_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.fits outfile=/lscratch/kocevski/59112925/expmap_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.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/59112925/ltcube_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.fits
.....................!
real 66.51
user 61.96
sys 3.97

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

Setting source of interest to:
4FGL J1043.2+2408 @ 160.805 24.146

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits scfile=/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits outfile=/lscratch/kocevski/59112925/cmap_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.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=160.805 yref=24.146 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.48
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits scfile=/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits outfile=/lscratch/kocevski/59112925/cmap_HighResolution_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.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=160.805 yref=24.146 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.46
user 0.25
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits evtable="EVENTS" scfile=/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59112925/Model_4FGL_J1043.2+2408_weekly_bin850.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/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits.....................!
real 38.85
user 37.59
sys 0.77

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits', '/lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits', expMap='/lscratch/kocevski/59112925/expmap_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.fits', expCube='/lscratch/kocevski/59112925/ltcube_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59112925/Model_4FGL_J1043.2+2408_weekly_bin850.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1043.2+2408'

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.079e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59112925/ft1_filtered_4FGL_J1043.2+2408_weekly_bin850.fits
Spacecraft file(s): /lscratch/kocevski/59112925/ft2_4FGL_J1043.2+2408_weekly_bin850.fits
Exposure map: /lscratch/kocevski/59112925/expmap_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.fits
Exposure cube: /lscratch/kocevski/59112925/ltcube_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59112925/Model_4FGL_J1043.2+2408_weekly_bin850.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) = 13228.7190536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56294E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.2260       1.0000          .0000       .10000E+07
     3 'norm      '    18.736       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54690E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    18.137       1.0000          .0000       .10000E+07
     6 'Prefactor '    26.831       1.0000          .0000       .10000E+07
     7 'Prefactor '    .63266       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.7025       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.6231       1.0000          .0000       .10000E+07
    10 'Prefactor '    .43299E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.7420       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.8658       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21572E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .74163E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.8884       1.0000          .0000       .10000E+07
    16 'Prefactor '    .31397E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    .79906       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13227.67     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     1256 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.4870        .37629E-08** at limit **
   2  Prefactor     1.2248        1.4079       -.59968E-07    .22981E-02
   3  norm          18.732        6.3685        .87387E-06    .30059E-03
   4  Prefactor      .0000        5.0617       -.18585E-06** at limit **
   5  Prefactor     18.180        1.2467        .77819E-07   -.32134E-01
   6  Prefactor     26.811        5.5680        .20712E-06    .53619E-02
   7  Prefactor     .63319        .78731        .12819E-07    .50235E-02
   8  Prefactor     4.6617        4.8286        .13752E-06    .26017E-03
   9  Prefactor     3.5971        3.3693        .18178E-07   -.62390E-02
  10  Prefactor      .0000        3.9837        .71632E-07** at limit **
  11  Prefactor     8.7438        3.6869       -.23273E-06    .17790E-02
  12  Prefactor     9.8556        5.3772        .57138E-07   -.57201E-02
  13  Prefactor     .55511E-10    25.967        .15684E-05** at limit **
  14  Prefactor     .11102E-09    1.3664       -.13075E-06** at limit **
  15  Prefactor     4.8882        3.4726        .25627E-07   -.90030E-03
  16  Prefactor     .55511E-10    16.819        .36921E-06** at limit **
  17  Normalizat    .79944        .13022       -.34329E-05   -.46923E-03
  18  Prefactor     1.1562        .14004       -.11024E-06   -.34627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 1.22477
  norm       = 18.7316
  Prefactor  = 0
  Prefactor  = 18.1797
  Prefactor  = 26.8111
  Prefactor  = 0.633186
  Prefactor  = 4.6617
  Prefactor  = 3.59713
  Prefactor  = 0
  Prefactor  = 8.74382
  Prefactor  = 9.85564
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 4.88817
  Prefactor  = 5.55112e-11
  Normalizat = 0.799438
  Prefactor  = 1.15618
 **********
 **   18 **HESSE 
 **********

 FCN=   13227.67     FROM HESSE     STATUS=OK           286 CALLS     1542 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    2.5202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2248        1.4406        .10166E-02   -1.5686    
   3  norm          18.732        6.3699        .23111E-03   -1.5621    
   4  Prefactor      .0000        5.0661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.180        18.237        .23490E-03   -1.5623    
   6  Prefactor     26.811        5.9106        .19309E-03   -1.5604    
   7  Prefactor     .63319        .79980        .66352E-03   -1.5692    
   8  Prefactor     4.6617        4.8306        .46380E-03   -1.5665    
   9  Prefactor     3.5971        5.8744        .53054E-03   -1.5670    
  10  Prefactor      .0000        3.9824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7438        5.9063        .33877E-03   -1.5649    
  12  Prefactor     9.8556        5.3844        .31878E-03   -1.5645    
  13  Prefactor     .55511E-10    25.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11102E-09    1.3348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8882        3.4745        .45470E-03   -1.5664    
  16  Prefactor     .55511E-10    16.504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .79944        .11198        .43598E-01   -1.0009    
  18  Prefactor     1.1562        .11976        .54150E-01   -.87691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77063e-07
Minuit parameter uncertainties:
  1  1.69152e-05
  2  1.44057
  3  6.36986
  4  6.85675e-06
  5  18.2375
  6  5.91064
  7  0.799799
  8  4.83059
  9  5.87441
  10  8.61737e-06
  11  5.90631
  12  5.38437
  13  6.33171e-05
  14  2.24896e-05
  15  3.47453
  16  5.16089e-05
  17  0.112016
  18  0.119787
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  6.332e-01  7.998e-01  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.156e+00  1.198e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  7.994e-01  1.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 160.805 24.146
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 9.36e-09 +/- 1.18e-08
Energy Flux (Fixed Index): 3.42e-06 +/- 4.32e-06

TS (Fixed Index): 1.20
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 4.12474735936e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00317055214615 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59112925/likelihoodResults_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.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) = 13227.5447928
delta logL = 0.127796568748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13227.5425787
delta logL = 0.130010704224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82760       1.0000          .0000       .10000E+07
     2 'Index     '    1.9460       1.0000          .0000       10.000    
     3 'Normalizat'    .80253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1535       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   13227.54     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82759        .98628        .12035E-04    .33403E-02
   2  Index         1.9459        .68545        .14911E-01    .59416E-04
   3  Normalizat    .80253        .12367        .25135E-03    .47582E-04
   4  Prefactor     1.1535        .13954        .23965E-03    .32069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.827586
  Index      = 1.94593
  Normalizat = 0.802531
  Prefactor  = 1.15351
 **********
 **   18 **HESSE 
 **********

 FCN=   13227.54     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82759        .97895        .48139E-06   -1.5690    
   2  Index         1.9459        .68087        .59643E-03   -.65709    
   3  Normalizat    .80253        .12378        .10054E-04   -.99975    
   4  Prefactor     1.1535        .13967        .95860E-05   -.87774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03586e-10
Minuit parameter uncertainties:
  1  0.978948
  2  0.684272
  3  0.123819
  4  0.139714
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) = 13227.5425787
delta logL = 0.130010709732

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  8.276e-01  9.789e-01  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  1.946e+00  6.843e-01  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.154e+00  1.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  8.025e-01  1.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 160.805 24.146
Photon Index (Free Index): 1.95 +/- 0.68
Photon Flux (Free Index): 7.25e-09 +/- 1.00e-08
Energy Flux (Free Index): 5.75e-06 +/- 9.17e-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/59112925/cmap_HighResolution_753062401_753667201_4FGL_J1043.2+2408_weekly_bin850.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-03', comment='SUCCESS', photon_flux='9.36e-09', energy_flux2='5.75e-06', photon_flux_error='1.18e-08', dlogl='1.30e-01', energy_flux='3.42e-06', photon_flux2='7.25e-09', job_status='DONE', time_completed='2024-11-19 01:08:41.767779', photon_index_error2='0.68', photon_index2='1.95', ts='1.20', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='4.12e-08', energy_flux_error2='9.17e-06', EG='0.80', time_epoch_completed='1732007321.77', return_code='0', job_id='59112925', GAL2='1.15', EG2='0.80', return_code2='0', energy_flux_error='4.32e-06', photon_flux_error2='1.00e-08', ts2='1.46', photon_index='2.32' WHERE bin_id='850' AND source_name='4FGL J1043.2+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Nov 19 01:08:41 PST 2024

