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


Performing analysis on: 4FGL_J0156.5+3914_weekly_bin853
RA = 29.1325, Dec = 39.2493
tmin = 754876801, tmax = 755481601
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='59976382', job_status='RUN', time_executed='2024-12-10 00:02:11.421705', time_epoch_executed='1733817731.42' WHERE source_name='4FGL J0156.5+3914' and cadence='weekly' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/59976382

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/59976382/ft1_4FGL_J0156.5+3914_weekly_bin853.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/59976382/ft1_4FGL_J0156.5+3914_weekly_bin853.fits outfile=/lscratch/kocevski/59976382/ft1_filteredMKT_4FGL_J0156.5+3914_weekly_bin853.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=754876801.0 tmax=755481601.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 3.86
user 3.28
sys 0.28

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.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/59976382/ft1_filteredMKT_4FGL_J0156.5+3914_weekly_bin853.fits evtable="EVENTS" outfile="/lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.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.72
user 0.24
sys 0.14

Number of photons that the gtmktime cut: 526

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits" evtable="EVENTS" scfile=/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits sctable="SC_DATA" outfile=/lscratch/kocevski/59976382/ltcube_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.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/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits
.....................!
real 36.02
user 34.75
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits sctable="SC_DATA" expcube=/lscratch/kocevski/59976382/ltcube_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.fits outfile=/lscratch/kocevski/59976382/expmap_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.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/59976382/ltcube_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.fits
.....................!
real 71.71
user 66.25
sys 4.15

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

Setting source of interest to:
4FGL J0156.5+3914 @ 29.1325 39.2493

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits scfile=/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits outfile=/lscratch/kocevski/59976382/cmap_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.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=29.1325 yref=39.2493 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.57
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits scfile=/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits outfile=/lscratch/kocevski/59976382/cmap_HighResolution_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.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=29.1325 yref=39.2493 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.55
user 0.23
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits evtable="EVENTS" scfile=/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/59976382/Model_4FGL_J0156.5+3914_weekly_bin853.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/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits.....................!
real 29.29
user 27.82
sys 0.66

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits', '/lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits', expMap='/lscratch/kocevski/59976382/expmap_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.fits', expCube='/lscratch/kocevski/59976382/ltcube_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/59976382/Model_4FGL_J0156.5+3914_weekly_bin853.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.5+3914'

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.010e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/59976382/ft1_filtered_4FGL_J0156.5+3914_weekly_bin853.fits
Spacecraft file(s): /lscratch/kocevski/59976382/ft2_4FGL_J0156.5+3914_weekly_bin853.fits
Exposure map: /lscratch/kocevski/59976382/expmap_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.fits
Exposure cube: /lscratch/kocevski/59976382/ltcube_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/59976382/Model_4FGL_J0156.5+3914_weekly_bin853.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) = 5833.87922384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6455       1.0000          .0000       .10000E+07
     2 'Prefactor '    25.070       1.0000          .0000       .10000E+07
     3 'norm      '    .57267       1.0000          .0000       .10000E+07
     4 'Prefactor '    .86178       1.0000          .0000       .10000E+07
     5 'norm      '    4.7367       1.0000          .0000       .10000E+07
     6 'norm      '    1.9428       1.0000          .0000       .10000E+07
     7 'Prefactor '    25.336       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14436E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .53788E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    131.26       1.0000          .0000       .10000E+07
    11 'norm      '    10.477       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.1086       1.0000          .0000       .10000E+07
    13 'norm      '    8.9865       1.0000          .0000       .10000E+07
    14 'norm      '    .18871       1.0000          .0000       .10000E+07
    15 'norm      '    .21694E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.8823       1.0000          .0000       .10000E+07
    17 'norm      '    18.713       1.0000          .0000       .10000E+07
    18 'Normalizat'    .74107       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5833.827     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1437 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6878        8.1221        .54364E-07    .66247E-04
   2  Prefactor     25.464        18.302        .37867E-06   -.64354E-03
   3  norm          .57395        .63438        .25562E-07   -.46174E-03
   4  Prefactor     .27756E-09    122.50        .22719E-05** at limit **
   5  norm          4.7387        1.8126       -.30807E-07    .39009E-03
   6  norm          1.9495        1.0738        .79423E-07   -.31219E-02
   7  Prefactor     26.343        18.323        .10171E-06   -.20140E-03
   8  Prefactor      .0000        3.7196       -.59159E-07** at limit **
   9  Prefactor     .27756E-09    48.769       -.15759E-05** at limit **
  10  Prefactor     137.35        101.68       -.29730E-07   -.11304E-04
  11  norm          10.344        7.2692        .15207E-07   -.89140E-04
  12  Prefactor     9.2727        11.912       -.16658E-06   -.23936E-04
  13  norm          8.9069        8.2513        .12096E-06    .14983E-04
  14  norm          .19425        1.5482       -.17834E-06** at limit **
  15  norm           .0000        .42760        .59398E-07** at limit **
  16  Prefactor     3.8612        13.547       -.79680E-06    .93113E-04
  17  norm          18.755        19.526       -.10310E-06    .41564E-03
  18  Normalizat    .73691        .25782       -.57593E-05   -.35548E-04
  19  Prefactor     .90870        .13131        .31075E-05   -.96089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.68783
  Prefactor  = 25.464
  norm       = 0.573949
  Prefactor  = 2.77556e-10
  norm       = 4.73871
  norm       = 1.9495
  Prefactor  = 26.343
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 137.351
  norm       = 10.3443
  Prefactor  = 9.27266
  norm       = 8.90688
  norm       = 0.194247
  norm       = 0
  Prefactor  = 3.8612
  norm       = 18.7545
  Normalizat = 0.736908
  Prefactor  = 0.908696
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.827     FROM HESSE     STATUS=OK           320 CALLS     1757 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6878        8.1633        .62655E-03   -1.5675    
   2  Prefactor     25.464        18.320        .19976E-03   -1.5607    
   3  norm          .57395        .63491        .71713E-03   -1.5693    
   4  Prefactor     .27756E-09    122.57        .48439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7387        1.8118        .46209E-03   -1.5664    
   6  norm          1.9495        1.0710        .74449E-04   -1.5680    
   7  Prefactor     26.343        18.342        .19871E-03   -1.5605    
   8  Prefactor      .0000        3.6725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    48.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     137.35        101.54        .87291E-04   -1.5474    
  11  norm          10.344        7.2743        .30930E-03   -1.5644    
  12  Prefactor     9.2727        11.965        .33184E-03   -1.5647    
  13  norm          8.9069        7.5486        .33410E-03   -1.5648    
  14  norm          .19425        .84514        .27596E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .24254        .14804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8612        13.985        .51186E-03   -1.5669    
  17  norm          18.755        20.199        .23125E-03   -1.5621    
  18  Normalizat    .73691        .23086        .82775E-01   -1.0245    
  19  Prefactor     .90870        .11588        .45112E-01   -.95838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97763e-09
Minuit parameter uncertainties:
  1  8.16333
  2  18.3205
  3  0.634907
  4  0.000382574
  5  1.81182
  6  1.071
  7  18.3417
  8  6.45294e-06
  9  0.000237433
  10  101.543
  11  7.27432
  12  11.9646
  13  7.54865
  14  0.81035
  15  2.15815e-07
  16  13.9851
  17  20.1989
  18  0.231167
  19  0.115916
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  0.000e+00  6.453e-06  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  9.087e-01  1.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.369e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 29.133 39.249
Photon Flux Upper Limit: 1.28476630756e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00995837919202 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/59976382/likelihoodResults_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.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) = 5833.82866094
delta logL = -0.00175245222272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5833.82690885
delta logL = -3.62434548151e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38997E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.1955       1.0000          .0000       10.000    
     3 'Normalizat'    .73686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90868       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5833.736     FROM MIGRAD    STATUS=CONVERGED    286 CALLS      486 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18718E-05    .44089E-05     .0000    ** at limit **
   2  Index        10.0000        7.6999         .0000    ** at limit **
   3  Normalizat    .70847        .21925         .0000       -.63015E-04
   4  Prefactor     .91849        .11565         .0000       -.18506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87184e-06
  Index      = 10
  Normalizat = 0.708475
  Prefactor  = 0.918492
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.736     FROM HESSE     STATUS=OK            33 CALLS      519 TOTAL
                     EDM=   .41E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18718E-05    .47726E-05    .74902E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        7.8171        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .70847        .25215        .37315E-03   -1.0356    
   4  Prefactor     .91849        .13180        .17722E-03   -.95498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07848e-05
Minuit parameter uncertainties:
  1  4.77263e-06
  2  0.000347671
  3  0.25256
  4  0.131847
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) = 5833.73636645
delta logL = 0.0905420369545

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.872e-06  4.773e-06  0.000e+00  1.000e+06 ( 1.000e-12)
274        Index:  1.000e+01  3.477e-04  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  9.185e-01  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.085e-01  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 29.133 39.249

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/59976382/cmap_HighResolution_754876801_755481601_4FGL_J0156.5+3914_weekly_bin853.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.96e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2024-12-10 00:08:40.868721', job_id='59976382', GAL2='0.92', fit_tolerance='1e-08', EG2='0.71', EG='0.74', time_epoch_completed='1733818120.87', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.05e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='853' AND source_name='4FGL J0156.5+3914' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 10 00:08:40 PST 2024

