/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_J1542.3+1801_weekly_bin854
RA = 235.579, Dec = 18.0322
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='60352393', job_status='RUN', time_executed='2024-12-17 00:51:55.575656', time_epoch_executed='1734425515.58' WHERE source_name='4FGL J1542.3+1801' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352393

Creating custom pfile directory:
/lscratch/kocevski/60352393/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/60352393/ft1_4FGL_J1542.3+1801_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/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352393/ft1_4FGL_J1542.3+1801_weekly_bin854.fits outfile=/lscratch/kocevski/60352393/ft1_filteredMKT_4FGL_J1542.3+1801_weekly_bin854.fits ra=235.579 dec=18.0322 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 5.02
user 4.43
sys 0.33

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_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/60352393/ft1_filteredMKT_4FGL_J1542.3+1801_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_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.52
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1428

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352393/ltcube_755481601_756086401_4FGL_J1542.3+1801_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/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits
.....................!
real 16.92
user 16.23
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352393/ltcube_755481601_756086401_4FGL_J1542.3+1801_weekly_bin854.fits outfile=/lscratch/kocevski/60352393/expmap_755481601_756086401_4FGL_J1542.3+1801_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/60352393/ltcube_755481601_756086401_4FGL_J1542.3+1801_weekly_bin854.fits
.....................!
real 67.42
user 63.17
sys 3.79

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

Setting source of interest to:
4FGL J1542.3+1801 @ 235.579 18.0322

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits scfile=/lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits outfile=/lscratch/kocevski/60352393/cmap_755481601_756086401_4FGL_J1542.3+1801_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=235.579 yref=18.0322 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits scfile=/lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits outfile=/lscratch/kocevski/60352393/cmap_HighResolution_755481601_756086401_4FGL_J1542.3+1801_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=235.579 yref=18.0322 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352393/Model_4FGL_J1542.3+1801_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/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits.....................!
real 42.21
user 41.22
sys 0.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits', '/lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits', expMap='/lscratch/kocevski/60352393/expmap_755481601_756086401_4FGL_J1542.3+1801_weekly_bin854.fits', expCube='/lscratch/kocevski/60352393/ltcube_755481601_756086401_4FGL_J1542.3+1801_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352393/Model_4FGL_J1542.3+1801_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1542.3+1801'

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  4.061e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352393/ft1_filtered_4FGL_J1542.3+1801_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352393/ft2_4FGL_J1542.3+1801_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352393/expmap_755481601_756086401_4FGL_J1542.3+1801_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352393/ltcube_755481601_756086401_4FGL_J1542.3+1801_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352393/Model_4FGL_J1542.3+1801_weekly_bin854.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 15708.5749516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.317       1.0000          .0000       .10000E+07
     2 'Prefactor '    .52736E-08   1.0000          .0000       .10000E+07
     3 'norm      '    .24686       1.0000          .0000       .10000E+07
     4 'norm      '    4.1507       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.827       1.0000          .0000       .10000E+07
     6 'Prefactor '    .18208E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    30.181       1.0000          .0000       .10000E+07
     8 'norm      '    1.0386       1.0000          .0000       .10000E+07
     9 'Prefactor '    43.256       1.0000          .0000       .10000E+07
    10 'norm      '    5.5063       1.0000          .0000       .10000E+07
    11 'norm      '    7.8896       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12212E-08   1.0000          .0000       .10000E+07
    13 'norm      '    72.177       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.8204       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.3616       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .79224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15705.30     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      752 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.194        18.261       -.67059E-09    .13169    
   2  Prefactor     .38858E-09    3.2209        .10145E-09** at limit **
   3  norm          .24689        .17902        .12288E-10** at limit **
   4  norm          4.1529        3.6863        .20593E-08   -.12235E-01
   5  Prefactor     23.200        31.861        .53224E-08   -.11944    
   6  Prefactor     .16653E-09    5.7989        .71818E-09** at limit **
   7  Prefactor     30.290        10.009       -.13752E-09   -.56239E-01
   8  norm          1.0386        1.1234        .46588E-10    .10367E-01
   9  Prefactor     43.565        45.333        .86885E-08   -.28438    
  10  norm          5.4889        6.7078       -.62647E-09   -.22159E-02
  11  norm          7.8884        1.6464        .42604E-10    .40662E-01
  12  Prefactor     .72164E-09    1.9969        .32749E-09** at limit **
  13  norm          72.288        16.140       -.44946E-09    .95530E-01
  14  Prefactor     6.8151        6.8834        .72921E-10   -.25285E-02
  15  Normalizat    1.3622        .17935        .16608E-09    .27228E-03
  16  Prefactor     .79204        .95570E-01   -.28504E-08   -.31238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1944
  Prefactor  = 3.88578e-10
  norm       = 0.246895
  norm       = 4.15295
  Prefactor  = 23.2
  Prefactor  = 1.66533e-10
  Prefactor  = 30.2897
  norm       = 1.03855
  Prefactor  = 43.5647
  norm       = 5.48894
  norm       = 7.88843
  Prefactor  = 7.21645e-10
  norm       = 72.2882
  Prefactor  = 6.8151
  Normalizat = 1.36222
  Prefactor  = 0.792035
 **********
 **   18 **HESSE 
 **********

 FCN=   15705.30     FROM HESSE     STATUS=OK           245 CALLS      997 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.194        20.929        .17073E-03   -1.5591    
   2  Prefactor     .38858E-09    3.2174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .24689        .19038        .97648E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1529        16.267        .49449E-03   -1.5667    
   5  Prefactor     23.200        32.061        .20491E-03   -1.5612    
   6  Prefactor     .16653E-09    .38175        .31044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.290        21.889        .18205E-03   -1.5598    
   8  norm          1.0386        1.1467        .12312E-02   -1.5688    
   9  Prefactor     43.565        46.363        .15206E-03   -1.5576    
  10  norm          5.4889        6.8173        .42794E-03   -1.5661    
  11  norm          7.8884        1.6570        .35674E-03   -1.5652    
  12  Prefactor     .72164E-09    2.0074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          72.288        16.417        .11771E-03   -1.5538    
  14  Prefactor     6.8151        6.8910        .38395E-03   -1.5656    
  15  Normalizat    1.3622        .15206        .67715E-01   -.81728    
  16  Prefactor     .79204        .79809E-01    .43616E-01   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09145e-06
Minuit parameter uncertainties:
  1  20.9289
  2  6.89967e-05
  3  0.190377
  4  16.2667
  5  32.0616
  6  1.54695e-05
  7  21.8895
  8  1.14671
  9  46.3637
  10  6.81726
  11  1.65696
  12  7.65127e-05
  13  16.4171
  14  6.89102
  15  0.152108
  16  0.0798207
Done.

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

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  3.029e+01  2.189e+01  0.000e+00  1.000e+06 ( 1.000e-13)
239        Index:  2.522e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  7.920e-01  7.982e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.362e+00  1.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 235.579 18.032
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 8.96e-06

TS (Fixed Index): 2.97
Ra Dec: 235.579 18.032
Photon Flux Upper Limit: 1.08445863734e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00844659365003 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/60352393/likelihoodResults_755481601_756086401_4FGL_J1542.3+1801_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) = 15705.2997778
delta logL = 3.87335603591e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15705.2997777
delta logL = 6.36609911453e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.290       1.0000          .0000       .10000E+07
     2 'Index     '    2.5222       1.0000          .0000       10.000    
     3 'Normalizat'    1.3622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   15705.30     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      239 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.302        25.283        .72691E-05   -.62559E-05
   2  Index         2.5220        .64472        .98219E-02    .19050E-04
   3  Normalizat    1.3622        .17825        .29957E-03    .61783E-04
   4  Prefactor     .79203        .95447E-01    .20615E-03   -.75995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.3017
  Index      = 2.52195
  Normalizat = 1.36223
  Prefactor  = 0.792031
 **********
 **   18 **HESSE 
 **********

 FCN=   15705.30     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.302        24.434        .29076E-06   -1.5598    
   2  Index         2.5220        .62220        .39288E-03   -.51854    
   3  Normalizat    1.3622        .17821        .11983E-04   -.81727    
   4  Prefactor     .79203        .95467E-01    .82459E-05   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26344e-11
Minuit parameter uncertainties:
  1  24.4336
  2  0.624346
  3  0.178288
  4  0.0954866
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) = 15705.2997776
delta logL = 2.36252162722e-07

Extracting fit parameters...

4FGL J1542.3+1801
   Spectrum: PowerLaw
238    Prefactor:  3.030e+01  2.443e+01  0.000e+00  1.000e+06 ( 1.000e-13)
239        Index:  2.522e+00  6.243e-01  0.000e+00  1.000e+01 (-1.000e+00)
240        Scale:  8.483e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  7.920e-01  9.549e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.362e+00  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 235.579 18.032
Photon Index (Free Index): 2.52 +/- 0.62
Photon Flux (Free Index): 4.38e-08 +/- 4.01e-08
Energy Flux (Free Index): 1.24e-05 +/- 9.04e-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/60352393/cmap_HighResolution_755481601_756086401_4FGL_J1542.3+1801_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.45e-03', comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='1.24e-05', photon_flux_error='3.16e-08', dlogl='2.36e-07', energy_flux='1.24e-05', photon_flux2='4.38e-08', job_status='DONE', time_completed='2024-12-17 00:57:30.980532', photon_index_error2='0.62', photon_index2='2.52', ts='2.97', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='9.04e-06', EG='1.36', time_epoch_completed='1734425850.98', return_code='0', job_id='60352393', GAL2='0.79', EG2='1.36', return_code2='0', energy_flux_error='8.96e-06', photon_flux_error2='4.01e-08', ts2='2.96', photon_index='2.52' WHERE bin_id='854' AND source_name='4FGL J1542.3+1801' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:57:31 PST 2024

