/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_J0532.6+0732_weekly_bin854
RA = 83.172, Dec = 7.5493
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='60351028', job_status='RUN', time_executed='2024-12-17 00:11:44.693662', time_epoch_executed='1734423104.69' WHERE source_name='4FGL J0532.6+0732' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60351028

Creating custom pfile directory:
/lscratch/kocevski/60351028/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/60351028/ft1_4FGL_J0532.6+0732_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/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60351028/ft1_4FGL_J0532.6+0732_weekly_bin854.fits outfile=/lscratch/kocevski/60351028/ft1_filteredMKT_4FGL_J0532.6+0732_weekly_bin854.fits ra=83.172 dec=7.5493 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.25
user 4.61
sys 0.44

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_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/60351028/ft1_filteredMKT_4FGL_J0532.6+0732_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_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.75
user 0.21
sys 0.19

Number of photons that the gtmktime cut: 3202

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60351028/ltcube_755481601_756086401_4FGL_J0532.6+0732_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/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits
.....................!
real 26.48
user 25.71
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60351028/ltcube_755481601_756086401_4FGL_J0532.6+0732_weekly_bin854.fits outfile=/lscratch/kocevski/60351028/expmap_755481601_756086401_4FGL_J0532.6+0732_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/60351028/ltcube_755481601_756086401_4FGL_J0532.6+0732_weekly_bin854.fits
.....................!
real 68.47
user 64.14
sys 3.89

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
Extended source Rosette in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Extended source S 147 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Added 156 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0532.6+0732 @ 83.172 7.5493

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits scfile=/lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits outfile=/lscratch/kocevski/60351028/cmap_755481601_756086401_4FGL_J0532.6+0732_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=83.172 yref=7.5493 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.59
user 0.27
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits scfile=/lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits outfile=/lscratch/kocevski/60351028/cmap_HighResolution_755481601_756086401_4FGL_J0532.6+0732_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=83.172 yref=7.5493 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.58
user 0.28
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60351028/Model_4FGL_J0532.6+0732_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
adding source IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits.....................!
real 322.91
user 319.17
sys 0.89

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits', '/lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits', expMap='/lscratch/kocevski/60351028/expmap_755481601_756086401_4FGL_J0532.6+0732_weekly_bin854.fits', expCube='/lscratch/kocevski/60351028/ltcube_755481601_756086401_4FGL_J0532.6+0732_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60351028/Model_4FGL_J0532.6+0732_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0532.6+0732'

4FGL J0532.6+0732
   Spectrum: LogParabola
235         norm:  2.134e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
236        alpha:  2.265e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
237         beta:  9.409e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
238           Eb:  6.477e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60351028/ft1_filtered_4FGL_J0532.6+0732_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60351028/ft2_4FGL_J0532.6+0732_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60351028/expmap_755481601_756086401_4FGL_J0532.6+0732_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60351028/ltcube_755481601_756086401_4FGL_J0532.6+0732_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60351028/Model_4FGL_J0532.6+0732_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) = 33444.6053166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3287       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15173E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17544E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    5.3917       1.0000          .0000       .10000E+07
     5 'norm      '    1.2848       1.0000          .0000       .10000E+07
     6 'norm      '    .19429E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15839E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .11930E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .93869E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    200.54       1.0000          .0000       .10000E+07
    11 'Prefactor '    .96866       1.0000          .0000       .10000E+07
    12 'norm      '    2.3548       1.0000          .0000       .10000E+07
    13 'norm      '    1.5955       1.0000          .0000       .10000E+07
    14 'Prefactor '    .43237E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16403E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.4103       1.0000          .0000       .10000E+07
    17 'norm      '    1.3241       1.0000          .0000       .10000E+07
    18 'norm      '    .13972E-06   1.0000          .0000       .10000E+07
    19 'Normalizat'    .93395       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0308       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   33444.47     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1252 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3279        2.2050        .11031E-06   -.80672E-02
   2  Prefactor     .94941E-06    4.1783       -.22951E-05** at limit **
   3  Prefactor     .10615E-05    4.0286       -.13898E-05** at limit **
   4  Prefactor     5.4054        7.4257       -.27521E-05   -.66193E-02
   5  norm          1.2840        .48205        .11675E-06    .34767E-02
   6  norm          .55511E-10    .71770        .28007E-06** at limit **
   7  Prefactor      .0000        3.4258       -.53693E-05** at limit **
   8  norm          .38858E-09    1.8790       -.56898E-06** at limit **
   9  Prefactor     .55511E-10    2.2690        .15958E-05** at limit **
  10  Prefactor     197.29        61.039       -.14514E-05   -.11591E-02
  11  Prefactor     .98035        .65622       -.48080E-06    .51806E-01
  12  norm          2.3672        3.3932       -.20850E-05   -.47943E-02
  13  norm          1.5946        .83127        .46076E-06   -.20181E-01
  14  Prefactor     .87153E-08    6.6680        .53224E-06** at limit **
  15  Prefactor     .11657E-08    10.746        .99227E-06** at limit **
  16  Prefactor     3.4192        3.2824       -.65884E-06   -.40250E-03
  17  norm          1.3021        11.117        .21253E-04    .63402E-02
  18  norm           .0000        1.2426       -.25933E-05** at limit **
  19  Normalizat    .93458        .21649        .10842E-04    .71111E-04
  20  Prefactor     1.0309        .37445E-01    .90981E-06   -.42314E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.3279
  Prefactor  = 9.49407e-07
  Prefactor  = 1.06148e-06
  Prefactor  = 5.40544
  norm       = 1.28399
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 3.88578e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 197.295
  Prefactor  = 0.980347
  norm       = 2.36723
  norm       = 1.59464
  Prefactor  = 8.71525e-09
  Prefactor  = 1.16573e-09
  Prefactor  = 3.41918
  norm       = 1.30212
  norm       = 0
  Normalizat = 0.934581
  Prefactor  = 1.03089
 **********
 **   18 **HESSE 
 **********

 FCN=   33444.47     FROM HESSE     STATUS=OK           333 CALLS     1585 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3279        2.2113        .39876E-03   -1.5658    
   2  Prefactor     .94941E-06    8.2117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10615E-05    8.0664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4054        7.4851        .43254E-03   -1.5661    
   5  norm          1.2840        .49123        .97790E-03   -1.5685    
   6  norm          .55511E-10    .71659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        3.3572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .38858E-09    1.8816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    2.2907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     197.29        61.197        .70623E-04   -1.5427    
  11  Prefactor     .98035        8.0296        .42653E-03   -1.5688    
  12  norm          2.3672        3.4173        .66765E-03   -1.5677    
  13  norm          1.5946        .84112        .83938E-03   -1.5683    
  14  Prefactor     .87153E-08    6.6946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11657E-08    10.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4192        3.3075        .54756E-03   -1.5671    
  17  norm          1.3021        10.934        .95519E-03   -1.5685    
  18  norm           .0000        1.2375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93458        .22407        .17588       -.95255    
  20  Prefactor     1.0309        .36985E-01    .30501E-01   -.91707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03639e-06
Minuit parameter uncertainties:
  1  2.21134
  2  0.0055843
  3  0.00585226
  4  7.48508
  5  0.491232
  6  1.01202e-05
  7  4.1059e-06
  8  5.54349e-05
  9  1.76236e-05
  10  61.1972
  11  5.61136
  12  3.41733
  13  0.841115
  14  0.000482663
  15  0.000223499
  16  3.30749
  17  7.54664
  18  5.52049e-06
  19  0.224289
  20  0.0369863
Done.

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

Extracting fit parameters...

4FGL J0532.6+0732
   Spectrum: LogParabola
235         norm:  1.595e+00  8.411e-01  0.000e+00  1.000e+06 ( 1.000e-11)
236        alpha:  2.265e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
237         beta:  9.409e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
238           Eb:  6.477e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.031e+00  3.699e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.346e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.12
Ra Dec: 83.172 7.549
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 7.39e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.42e-05

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) = 33444.3932839
delta logL = 0.0803559429914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 33444.3880963
delta logL = 0.0855435580961

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   33444.39     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5037        8.6508        .87272E-03    .56761E-01
   2  alpha         2.5889        3.7935        .41185        .23152E-03
   3  Normalizat    .90925        .83243E-01    .17804        .27976E-03
   4  Prefactor     1.0328        .11938E-01    .30475E-01   -.11075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50372
  alpha      = 2.58888
  Normalizat = 0.90925
  Prefactor  = 1.03283
 **********
 **   18 **HESSE 
 **********

 FCN=   33444.39     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5037        .94577        .10478E-04   -1.5683    
   2  alpha         2.5889        .77436        .27836E-01    .35559E-01
   3  Normalizat    .90925        .21277        .79215E-03   -.96136    
   4  Prefactor     1.0328        .37091E-01    .13468E-03   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.93204e-08
Minuit parameter uncertainties:
  1  0.945767
  2  0.787332
  3  0.212968
  4  0.0370918
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) = 33444.3880959
delta logL = 0.0855439359802

Extracting fit parameters...

4FGL J0532.6+0732
   Spectrum: LogParabola
235         norm:  1.504e+00  9.458e-01  0.000e+00  1.000e+06 ( 1.000e-11)
236        alpha:  2.589e+00  7.873e-01  0.000e+00  5.000e+00 ( 1.000e+00)
237         beta:  9.409e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
238           Eb:  6.477e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  1.033e+00  3.709e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  9.092e-01  2.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.35
Ra Dec: 83.172 7.549
Photon Index (Free Index): 2.59 +/- 0.79
Photon Flux (Free Index): 1.00e-07 +/- 7.31e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.32e-05

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/60351028/cmap_HighResolution_755481601_756086401_4FGL_J0532.6+0732_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.39e-08', energy_flux2='2.67e-05', photon_flux_error='3.90e-08', dlogl='8.55e-02', energy_flux='2.69e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2024-12-17 00:25:48.626846', photon_index_error2='0.79', photon_index2='2.59', ts='6.12', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.32e-05', EG='0.93', time_epoch_completed='1734423948.63', return_code='0', job_id='60351028', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='7.31e-08', ts2='6.35', photon_index='2.27' WHERE bin_id='854' AND source_name='4FGL J0532.6+0732' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 00:25:48 PST 2024

