/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_J2036.4+6553_weekly_bin854
RA = 309.103, Dec = 65.8834
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='60352826', job_status='RUN', time_executed='2024-12-17 01:06:59.740954', time_epoch_executed='1734426419.74' WHERE source_name='4FGL J2036.4+6553' and cadence='weekly' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/60352826

Creating custom pfile directory:
/lscratch/kocevski/60352826/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/60352826/ft1_4FGL_J2036.4+6553_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/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/60352826/ft1_4FGL_J2036.4+6553_weekly_bin854.fits outfile=/lscratch/kocevski/60352826/ft1_filteredMKT_4FGL_J2036.4+6553_weekly_bin854.fits ra=309.103 dec=65.8834 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.63
user 4.21
sys 0.34

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_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/60352826/ft1_filteredMKT_4FGL_J2036.4+6553_weekly_bin854.fits evtable="EVENTS" outfile="/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_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.39
user 0.17
sys 0.16

Number of photons that the gtmktime cut: 4381

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits" evtable="EVENTS" scfile=/lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits sctable="SC_DATA" outfile=/lscratch/kocevski/60352826/ltcube_755481601_756086401_4FGL_J2036.4+6553_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/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits
.....................!
real 17.68
user 17.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits sctable="SC_DATA" expcube=/lscratch/kocevski/60352826/ltcube_755481601_756086401_4FGL_J2036.4+6553_weekly_bin854.fits outfile=/lscratch/kocevski/60352826/expmap_755481601_756086401_4FGL_J2036.4+6553_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/60352826/ltcube_755481601_756086401_4FGL_J2036.4+6553_weekly_bin854.fits
.....................!
real 63.78
user 59.79
sys 3.60

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 FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 191 point sources and 5 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 J2036.4+6553 @ 309.103 65.8834

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits scfile=/lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits outfile=/lscratch/kocevski/60352826/cmap_755481601_756086401_4FGL_J2036.4+6553_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=309.103 yref=65.8834 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.39
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits scfile=/lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits outfile=/lscratch/kocevski/60352826/cmap_HighResolution_755481601_756086401_4FGL_J2036.4+6553_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=309.103 yref=65.8834 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.40
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits evtable="EVENTS" scfile=/lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/60352826/Model_4FGL_J2036.4+6553_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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source FHES J2304.0+5406
adding source GAL_V02
adding source HB 21
Working on...
/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits.....................!
real 212.38
user 209.82
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits', '/lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits', expMap='/lscratch/kocevski/60352826/expmap_755481601_756086401_4FGL_J2036.4+6553_weekly_bin854.fits', expCube='/lscratch/kocevski/60352826/ltcube_755481601_756086401_4FGL_J2036.4+6553_weekly_bin854.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/60352826/Model_4FGL_J2036.4+6553_weekly_bin854.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2036.4+6553'

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  1.458e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/60352826/ft1_filtered_4FGL_J2036.4+6553_weekly_bin854.fits
Spacecraft file(s): /lscratch/kocevski/60352826/ft2_4FGL_J2036.4+6553_weekly_bin854.fits
Exposure map: /lscratch/kocevski/60352826/expmap_755481601_756086401_4FGL_J2036.4+6553_weekly_bin854.fits
Exposure cube: /lscratch/kocevski/60352826/ltcube_755481601_756086401_4FGL_J2036.4+6553_weekly_bin854.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/60352826/Model_4FGL_J2036.4+6553_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) = 42521.064063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84964E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .51909E-05   1.0000          .0000       .10000E+07
     3 'norm      '    3.2195       1.0000          .0000       .10000E+07
     4 'norm      '    .40329E-06   1.0000          .0000       .10000E+07
     5 'norm      '    6.9095       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15554E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76754       1.0000          .0000       .10000E+07
     8 'norm      '    3.8734       1.0000          .0000       .10000E+07
     9 'norm      '    .54906E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .35705E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .99222       1.0000          .0000       .10000E+07
    12 'norm      '    .96421       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.400       1.0000          .0000       .10000E+07
    14 'norm      '    7.7488       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22362E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .40634E-07   1.0000          .0000       .10000E+07
    17 'norm      '    .46685E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .32173       1.0000          .0000       .10000E+07
    19 'Prefactor '    .36149       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.4838       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   42520.99     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1283 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15321E-07    5.5180       -.11141E-05** at limit **
   2  Prefactor     .82712E-08    50.594        .35614E-05** at limit **
   3  norm          3.2191        1.8460        .33197E-07   -.36543E-03
   4  norm           .0000        1.7000        .24971E-06** at limit **
   5  norm          6.9389        5.9997       -.11688E-06    .20140E-02
   6  Prefactor     .52125E-07    1.7097       -.12433E-06** at limit **
   7  Prefactor     .76055        3.6240       -.31595E-06   -.14165E-01
   8  norm          3.8723        1.0401        .52028E-08   -.86751E-03
   9  norm          .24980E-08    7.3488       -.67920E-07** at limit **
  10  norm          .32196E-08    3.2392       -.22797E-07** at limit **
  11  Prefactor     1.0222        3.8460       -.92313E-06    .71658E-01
  12  norm          .95553        1.8075        .22242E-06    .39421E-02
  13  Prefactor     11.402        1.3783       -.24196E-07   -.86422E-02
  14  norm          7.7344        5.4023       -.71034E-07   -.15607E-02
  15  Prefactor     .29532E-06    3.3717        .62174E-06** at limit **
  16  Prefactor      .0000        .77292       -.15370E-06** at limit **
  17  norm          .10464E-06    1.9344       -.21166E-06** at limit **
  18  Prefactor     .29897E-04    17.899        .24165E-05** at limit **
  19  Prefactor     .12622E-02    12.469        .12138E-05** at limit **
  20  Normalizat    1.4836        .15681        .29164E-05   -.15420E-04
  21  Prefactor     .93496        .26658E-01   -.95556E-06   -.12429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53211e-08
  Prefactor  = 8.27116e-09
  norm       = 3.21906
  norm       = 0
  norm       = 6.93893
  Prefactor  = 5.2125e-08
  Prefactor  = 0.760547
  norm       = 3.8723
  norm       = 2.498e-09
  norm       = 3.21965e-09
  Prefactor  = 1.02219
  norm       = 0.955526
  Prefactor  = 11.4022
  norm       = 7.73443
  Prefactor  = 2.95319e-07
  Prefactor  = 0
  norm       = 1.04639e-07
  Prefactor  = 2.98968e-05
  Prefactor  = 0.00126218
  Normalizat = 1.48356
  Prefactor  = 0.934956
 **********
 **   18 **HESSE 
 **********

 FCN=   42520.99     FROM HESSE     STATUS=OK           371 CALLS     1654 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15321E-07    5.5503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .82712E-08    53.935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2191        1.8495        .56435E-03   -1.5672    
   4  norm           .0000        1.6998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9389        5.9977        .38144E-03   -1.5655    
   6  Prefactor     .52125E-07    3.8173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .76055        3.6665        .55387E-03   -1.5691    
   8  norm          3.8723        1.0535        .51247E-04   -1.5669    
   9  norm          .24980E-08    7.3680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .32196E-08    3.2780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0222        15.923        .43490E-03   -1.5688    
  12  norm          .95553        1.8286        .42494E-03   -1.5688    
  13  Prefactor     11.402        8.7691        .29646E-03   -1.5640    
  14  norm          7.7344        5.4078        .35999E-03   -1.5652    
  15  Prefactor     .29532E-06    3.9528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        .77232        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10464E-06    3.8856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29897E-04    12.604        .18182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12622E-02    4.2696        .13445E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4836        .15183        .13102       -.78241    
  21  Prefactor     .93496        .25583E-01    .28549E-01   -.94930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27472e-06
Minuit parameter uncertainties:
  1  0.000583226
  2  0.00133509
  3  1.84955
  4  6.63754e-06
  5  5.99769
  6  0.000892372
  7  3.33979
  8  1.05347
  9  0.000271508
  10  0.000206221
  11  8.06874
  12  1.82855
  13  8.76911
  14  5.40776
  15  0.00216081
  16  9.75405e-07
  17  0.00127517
  18  0.0388232
  19  0.14682
  20  0.151874
  21  0.0255836
Done.

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

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  7.734e+00  5.408e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.921e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.350e-01  2.558e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.484e+00  1.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.31
Ra Dec: 309.103 65.883
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.68e-08 +/- 1.18e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.20e-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) = 42520.9760257
delta logL = 0.0139318756628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 42520.974366
delta logL = 0.0155915678333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0682       1.0000          .0000       .10000E+07
     2 'alpha     '    1.8187       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93501       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+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=   42520.97     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      274 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0685        6.0375        .14110E-04    .11152E-02
   2  alpha         1.8186        .58366        .31571E-01    .46726E-03
   3  Normalizat    1.4845        .14691        .58131E-03   -.35829E-04
   4  Prefactor     .93501        .26321E-01    .12616E-03   -.11607E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.06849
  alpha      = 1.81863
  Normalizat = 1.48448
  Prefactor  = 0.935014
 **********
 **   18 **HESSE 
 **********

 FCN=   42520.97     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0685        5.9187        .56438E-06   -1.5651    
   2  alpha         1.8186        .57323        .63141E-02   -.27604    
   3  Normalizat    1.4845        .14692        .23252E-04   -.78215    
   4  Prefactor     .93501        .26326E-01    .50463E-05   -.94928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51767e-11
Minuit parameter uncertainties:
  1  5.91868
  2  0.578798
  3  0.146959
  4  0.0263264
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) = 42520.974366
delta logL = 0.0155915726427

Extracting fit parameters...

4FGL J2036.4+6553
   Spectrum: LogParabola
337         norm:  8.068e+00  5.919e+00  0.000e+00  1.000e+06 ( 1.000e-13)
338        alpha:  1.819e+00  5.788e-01  0.000e+00  5.000e+00 ( 1.000e+00)
339         beta:  1.490e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
340           Eb:  2.258e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.350e-01  2.633e-02  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
655   Normalization:  1.484e+00  1.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 309.103 65.883
Photon Index (Free Index): 1.82 +/- 0.58
Photon Flux (Free Index): 1.49e-08 +/- 1.47e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.63e-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/60352826/cmap_HighResolution_755481601_756086401_4FGL_J2036.4+6553_weekly_bin854.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-08', energy_flux2='1.87e-05', photon_flux_error='1.18e-08', dlogl='1.56e-02', energy_flux='1.72e-05', photon_flux2='1.49e-08', job_status='DONE', time_completed='2024-12-17 01:21:47.494564', photon_index_error2='0.58', photon_index2='1.82', ts='6.31', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.48', time_epoch_completed='1734427307.49', return_code='0', job_id='60352826', GAL2='0.94', EG2='1.48', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='1.47e-08', ts2='6.34', photon_index='1.92' WHERE bin_id='854' AND source_name='4FGL J2036.4+6553' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 17 01:21:47 PST 2024

