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


Performing analysis on: 4FGL_J0945.2+5200_weekly_bin825
RA = 146.316, Dec = 52.0053
tmin = 737942401, tmax = 738547201
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='49203960', job_status='RUN', time_executed='2024-05-28 01:26:17.528771', time_epoch_executed='1716884777.53' WHERE source_name='4FGL J0945.2+5200' and cadence='weekly' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/49203960

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/49203960/ft1_4FGL_J0945.2+5200_weekly_bin825.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/49203960/ft1_4FGL_J0945.2+5200_weekly_bin825.fits outfile=/lscratch/kocevski/49203960/ft1_filteredMKT_4FGL_J0945.2+5200_weekly_bin825.fits ra=146.316 dec=52.0053 rad=12.0 tmin=737942401.0 tmax=738547201.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.43
user 4.01
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.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/49203960/ft1_filteredMKT_4FGL_J0945.2+5200_weekly_bin825.fits evtable="EVENTS" outfile="/lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.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.55
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 1485

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits" evtable="EVENTS" scfile=/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits sctable="SC_DATA" outfile=/lscratch/kocevski/49203960/ltcube_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.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/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits
.....................!
real 18.07
user 17.50
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits sctable="SC_DATA" expcube=/lscratch/kocevski/49203960/ltcube_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.fits outfile=/lscratch/kocevski/49203960/expmap_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.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/49203960/ltcube_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.fits
.....................!
real 66.76
user 62.31
sys 3.90

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

Setting source of interest to:
4FGL J0945.2+5200 @ 146.316 52.0053

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits scfile=/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits outfile=/lscratch/kocevski/49203960/cmap_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.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=146.316 yref=52.0053 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits scfile=/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits outfile=/lscratch/kocevski/49203960/cmap_HighResolution_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.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=146.316 yref=52.0053 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.44
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits evtable="EVENTS" scfile=/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/49203960/Model_4FGL_J0945.2+5200_weekly_bin825.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/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits.....................!
real 50.32
user 49.07
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits', '/lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits', expMap='/lscratch/kocevski/49203960/expmap_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.fits', expCube='/lscratch/kocevski/49203960/ltcube_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/49203960/Model_4FGL_J0945.2+5200_weekly_bin825.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0945.2+5200'

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  1.732e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/49203960/ft1_filtered_4FGL_J0945.2+5200_weekly_bin825.fits
Spacecraft file(s): /lscratch/kocevski/49203960/ft2_4FGL_J0945.2+5200_weekly_bin825.fits
Exposure map: /lscratch/kocevski/49203960/expmap_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.fits
Exposure cube: /lscratch/kocevski/49203960/ltcube_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/49203960/Model_4FGL_J0945.2+5200_weekly_bin825.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) = 16168.7513343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1635       1.0000          .0000       .10000E+07
     2 'norm      '    1.7262       1.0000          .0000       .10000E+07
     3 'norm      '    .11546E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .72432       1.0000          .0000       .10000E+07
     5 'Prefactor '    .82104E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    7.5975       1.0000          .0000       .10000E+07
     7 'norm      '    .20650E-07   1.0000          .0000       .10000E+07
     8 'norm      '    3.3206       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24322       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.1893       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11823E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.3014       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3843       1.0000          .0000       .10000E+07
    14 'norm      '    7.5160       1.0000          .0000       .10000E+07
    15 'Prefactor '    17.950       1.0000          .0000       .10000E+07
    16 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
    17 'Prefactor '    7.2011       1.0000          .0000       .10000E+07
    18 'norm      '    2.7926       1.0000          .0000       .10000E+07
    19 'Prefactor '    .39565E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    11.358       1.0000          .0000       .10000E+07
    21 'norm      '    1.3571       1.0000          .0000       .10000E+07
    22 'norm      '    5.5727       1.0000          .0000       .10000E+07
    23 'Prefactor '    .36027E-06   1.0000          .0000       .10000E+07
    24 'norm      '    10.823       1.0000          .0000       .10000E+07
    25 'Prefactor '    .54261E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    31.212       1.0000          .0000       .10000E+07
    27 'norm      '    2.9364       1.0000          .0000       .10000E+07
    28 'norm      '    2.8489       1.0000          .0000       .10000E+07
    29 'Prefactor '    .77889E-02   1.0000          .0000       .10000E+07
    30 'norm      '    1.7082       1.0000          .0000       .10000E+07
    31 'Prefactor '    7.1946       1.0000          .0000       .10000E+07
    32 'Normalizat'    .93576       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95861       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+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=   16166.74     FROM MIGRAD    STATUS=CONVERGED   1730 CALLS     3481 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1648        3.3008        .98742E-04    .63769E-02
   2  norm          1.7264        2.5125        .23655E-04    .29413E-03
   3  norm           .0000        .93424        .84235E-04** at limit **
   4  Prefactor     .71171        7.1840        .23502E-04    .21478E-02
   5  Prefactor      .0000        7.1081        .84235E-04** at limit **
   6  Prefactor     7.6090        3.8633        .14544E-04    .93319E-02
   7  norm          .33307E-09    .18108        .74191E-04** at limit **
   8  norm          3.3207        .65190        .43690E-05    .13141E-01
   9  Prefactor     .22758        2.6754        .17247E-03** at limit **
  10  Prefactor     3.1916        1.7286        .11403E-04    .10937E-01
  11  Prefactor     .38858E-09    3.4265        .84235E-04** at limit **
  12  Prefactor     2.3000        1.9856        .15634E-04    .68836E-02
  13  Prefactor     4.4586        11.074        .19230E-04    .88677E-03
  14  norm          7.4319        8.3886        .14623E-04    .98270E-03
  15  Prefactor     17.907        16.587        .94450E-05    .14926E-02
  16  Prefactor     .55511E-10    2.2210        .84235E-04** at limit **
  17  Prefactor     7.1978        4.0726        .74711E-04    .44558E-02
  18  norm          2.7892        3.1180        .23032E-04    .12340E-03
  19  Prefactor     .66613E-09    14.482        .13456E-01** at limit **
  20  Prefactor     11.307        11.002        .11880E-04    .19866E-03
  21  norm          1.3572        .34464        .36137E-05    .10879E-01
  22  norm          5.6091        6.7163        .17014E-04    .13872E-02
  23  Prefactor      .0000        2.3217        .84235E-04** at limit **
  24  norm          10.821        2.2939        .85583E-05    .33502E-02
  25  Prefactor     .55511E-10    7.9046        .84235E-04** at limit **
  26  Prefactor     31.237        13.963        .71608E-05    .73031E-03
  27  norm          2.9351        1.5384        .95926E-05   -.63524E-03
  28  norm          2.8487        .98524        .71681E-05    .12910E-02
  29  Prefactor     .55511E-10    82.021        .84235E-04** at limit **
  30  norm          1.7076        1.1713        .11123E-04    .52330E-03
  31  Prefactor     7.6423        30.065        .14949E-04    .91259E-04
  32  Normalizat    .93569        .12427        .24468E-03    .18584E-02
  33  Prefactor     .95869        .13376        .27906E-03    .15620E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.16477
  norm       = 1.72639
  norm       = 0
  Prefactor  = 0.711713
  Prefactor  = 0
  Prefactor  = 7.60903
  norm       = 3.33067e-10
  norm       = 3.32069
  Prefactor  = 0.227581
  Prefactor  = 3.19162
  Prefactor  = 3.88578e-10
  Prefactor  = 2.30004
  Prefactor  = 4.45861
  norm       = 7.43194
  Prefactor  = 17.9075
  Prefactor  = 5.55112e-11
  Prefactor  = 7.19781
  norm       = 2.78922
  Prefactor  = 6.66134e-10
  Prefactor  = 11.307
  norm       = 1.35715
  norm       = 5.60912
  Prefactor  = 0
  norm       = 10.8213
  Prefactor  = 5.55112e-11
  Prefactor  = 31.2374
  norm       = 2.9351
  norm       = 2.84872
  Prefactor  = 5.55112e-11
  norm       = 1.70759
  Prefactor  = 7.64228
  Normalizat = 0.935688
  Prefactor  = 0.95869
 **********
 **   18 **HESSE 
 **********

 FCN=   16166.74     FROM HESSE     STATUS=OK           673 CALLS     4154 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1648        3.3003        .39497E-05   -1.5667    
   2  norm          1.7264        2.5124        .94618E-06   -1.5682    
   3  norm           .0000        .93429        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71171        7.1814        .94008E-06   -1.5691    
   5  Prefactor      .0000        7.1085        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6090        3.8578        .58175E-06   -1.5653    
   7  norm          .33307E-09    .18121        .14838E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.3207        .65185        .17476E-06   -1.5672    
   9  Prefactor     .22758        2.6315        .68989E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1916        1.7272        .45611E-06   -1.5672    
  11  Prefactor     .38858E-09    3.4271        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3000        1.9851        .62535E-06   -1.5678    
  13  Prefactor     4.4586        11.070        .76922E-06   -1.5666    
  14  norm          7.4319        8.3875        .58492E-06   -1.5653    
  15  Prefactor     17.907        16.582        .37780E-06   -1.5623    
  16  Prefactor     .55511E-10    2.2216        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1978        4.0703        .29884E-05   -1.5654    
  18  norm          2.7892        3.1180        .92127E-06   -1.5675    
  19  Prefactor     .66613E-09    13.814        .13952E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.307        11.001        .23761E-05   -1.5641    
  21  norm          1.3572        .34460        .14455E-06   -1.5685    
  22  norm          5.6091        6.7159        .68055E-06   -1.5661    
  23  Prefactor      .0000        2.3225        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.821        2.2938        .34233E-06   -1.5642    
  25  Prefactor     .55511E-10    7.9048        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     31.237        13.960        .28643E-06   -1.5596    
  27  norm          2.9351        1.5384        .38370E-06   -1.5674    
  28  norm          2.8487        .98520        .28672E-06   -1.5674    
  29  Prefactor     .55511E-10    82.023        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.7076        1.1712        .44493E-06   -1.5682    
  31  Prefactor     7.6423        30.065        .59796E-06   -1.5653    
  32  Normalizat    .93569        .12403        .48937E-04   -.95217    
  33  Prefactor     .95869        .13382        .55813E-04   -.94119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56054e-09
Minuit parameter uncertainties:
  1  3.30031
  2  2.51236
  3  1.82125e-06
  4  4.52156
  5  2.28467e-05
  6  3.85776
  7  1.49519e-05
  8  0.651846
  9  1.54776
  10  1.72723
  11  7.28848e-05
  12  1.98507
  13  11.07
  14  8.38755
  15  16.582
  16  2.04315e-05
  17  4.07029
  18  3.11796
  19  0.000192714
  20  11.0012
  21  0.344603
  22  6.71587
  23  1.1603e-05
  24  2.29376
  25  3.24624e-05
  26  13.9599
  27  1.53842
  28  0.985199
  29  0.000159146
  30  1.1712
  31  30.0659
  32  0.124065
  33  0.133863
Done.

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

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  7.198e+00  4.070e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  9.587e-01  1.339e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  9.357e-01  1.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.15
Ra Dec: 146.316 52.005
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.93e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 9.33e-06 +/- 5.27e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16166.6084045
delta logL = 0.131744631106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16166.6039305
delta logL = 0.136218628939

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16166.60     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      273 TOTAL
                     EDM=   .72E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8021        4.4464        .71747E-04   -.36952E-03
   2  Index         2.3949        .58683        .12312E-01   -.30693E-05
   3  Normalizat    .94863        .11553        .24320E-03   -.32535E-04
   4  Prefactor     .94852        .13114        .28032E-03   -.19710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80212
  Index      = 2.39486
  Normalizat = 0.948627
  Prefactor  = 0.948518
 **********
 **   18 **HESSE 
 **********

 FCN=   16166.60     FROM HESSE     STATUS=OK            27 CALLS      300 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8021        4.4393        .28699E-05   -1.5652    
   2  Index         2.3949        .58545        .49248E-03   -.54806    
   3  Normalizat    .94863        .11562        .97280E-05   -.94772    
   4  Prefactor     .94852        .13122        .11213E-04   -.94466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85806e-13
Minuit parameter uncertainties:
  1  4.43929
  2  0.587306
  3  0.115653
  4  0.131263
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) = 16166.6039303
delta logL = 0.136218886422

Extracting fit parameters...

4FGL J0945.2+5200
   Spectrum: PowerLaw
380    Prefactor:  7.802e+00  4.439e+00  0.000e+00  1.000e+06 ( 1.000e-12)
381        Index:  2.395e+00  5.873e-01  0.000e+00  1.000e+01 (-1.000e+00)
382        Scale:  5.314e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
745    Prefactor:  9.485e-01  1.313e-01  0.000e+00  1.000e+01 ( 1.000e+00)
746        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
747        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
744   Normalization:  9.486e-01  1.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.37
Ra Dec: 146.316 52.005
Photon Index (Free Index): 2.39 +/- 0.59
Photon Flux (Free Index): 3.06e-08 +/- 2.44e-08
Energy Flux (Free Index): 1.01e-05 +/- 6.16e-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/49203960/cmap_HighResolution_737942401_738547201_4FGL_J0945.2+5200_weekly_bin825.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.93e-08', energy_flux2='1.01e-05', photon_flux_error='2.22e-08', dlogl='1.36e-01', energy_flux='9.33e-06', photon_flux2='3.06e-08', job_status='DONE', time_completed='2024-05-28 01:40:37.923210', photon_index_error2='0.59', photon_index2='2.39', ts='6.15', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='6.16e-06', EG='0.94', time_epoch_completed='1716885637.92', return_code='0', job_id='49203960', GAL2='0.95', EG2='0.95', return_code2='0', energy_flux_error='5.27e-06', photon_flux_error2='2.44e-08', ts2='6.37', photon_index='2.72' WHERE bin_id='825' AND source_name='4FGL J0945.2+5200' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 28 01:40:38 PDT 2024

