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


Performing analysis on: 4FGL_J0011.4+0057_weekly_bin767
RA = 2.8551, Dec = 0.9646
tmin = 702864001, tmax = 703468801
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='16328597', job_status='RUN', time_executed='2023-04-18 00:04:41.165008', time_epoch_executed='1681801481.17' WHERE source_name='4FGL J0011.4+0057' and cadence='weekly' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/16328597

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/16328597/ft1_4FGL_J0011.4+0057_weekly_bin767.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/16328597/ft1_4FGL_J0011.4+0057_weekly_bin767.fits outfile=/lscratch/kocevski/16328597/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin767.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=702864001.0 tmax=703468801.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 6.34
user 5.96
sys 0.29

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.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/16328597/ft1_filteredMKT_4FGL_J0011.4+0057_weekly_bin767.fits evtable="EVENTS" outfile="/lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.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.44
user 0.26
sys 0.13

Number of photons that the gtmktime cut: 1493

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits" evtable="EVENTS" scfile=/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits sctable="SC_DATA" outfile=/lscratch/kocevski/16328597/ltcube_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.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/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits
.....................!
real 33.06
user 32.29
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits evtable="EVENTS" scfile=/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits sctable="SC_DATA" expcube=/lscratch/kocevski/16328597/ltcube_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.fits outfile=/lscratch/kocevski/16328597/expmap_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.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/16328597/ltcube_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.fits
.....................!
real 74.60
user 70.14
sys 4.09

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

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits scfile=/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits outfile=/lscratch/kocevski/16328597/cmap_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.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=2.8551 yref=0.9646 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.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits scfile=/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits outfile=/lscratch/kocevski/16328597/cmap_HighResolution_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.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=2.8551 yref=0.9646 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 1.11
user 0.27
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits evtable="EVENTS" scfile=/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/16328597/Model_4FGL_J0011.4+0057_weekly_bin767.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/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits.....................!
real 64.94
user 61.86
sys 2.55

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits', '/lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits', expMap='/lscratch/kocevski/16328597/expmap_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.fits', expCube='/lscratch/kocevski/16328597/ltcube_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/16328597/Model_4FGL_J0011.4+0057_weekly_bin767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/16328597/ft1_filtered_4FGL_J0011.4+0057_weekly_bin767.fits
Spacecraft file(s): /lscratch/kocevski/16328597/ft2_4FGL_J0011.4+0057_weekly_bin767.fits
Exposure map: /lscratch/kocevski/16328597/expmap_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.fits
Exposure cube: /lscratch/kocevski/16328597/ltcube_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/16328597/Model_4FGL_J0011.4+0057_weekly_bin767.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10211E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .65917E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .65831E-06   1.0000          .0000       .10000E+07
     4 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    .57238E-05   1.0000          .0000       .10000E+07
     6 'norm      '    1.8882       1.0000          .0000       .10000E+07
     7 'norm      '    .63673       1.0000          .0000       .10000E+07
     8 'Prefactor '    .95758E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .66835       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.1701       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.0360       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.7667       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54245E-06   1.0000          .0000       .10000E+07
    14 'norm      '    .51987E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.8694       1.0000          .0000       .10000E+07
    16 'Prefactor '    .36337       1.0000          .0000       .10000E+07
    17 'Prefactor '    18.365       1.0000          .0000       .10000E+07
    18 'Prefactor '    .16635       1.0000          .0000       .10000E+07
    19 'Normalizat'    .70643       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2816       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16701.34     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1251 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.0194        .16790E-07** at limit **
   2  Prefactor      .0000        14.492       -.10411E-06** at limit **
   3  Prefactor      .0000        1.9530        .34046E-07** at limit **
   4  norm           .0000        .33702        .18846E-07** at limit **
   5  Prefactor      .0000        3.0159       -.95912E-07** at limit **
   6  norm          1.8879        1.5687       -.12088E-07   -.25463E-03
   7  norm          .63522        2.1780       -.15362E-07   -.78346E-04
   8  Prefactor      .0000        8.0893        .74660E-07** at limit **
   9  norm          .66494        4.8472       -.76080E-07    .61488E-04
  10  Prefactor     5.1703        1.8319       -.61093E-08   -.48497E-03
  11  Prefactor     4.0286        2.0584        .77772E-08    .18811E-03
  12  Prefactor     7.7624        1.1573       -.20674E-08    .40128E-02
  13  Prefactor      .0000        4.9414       -.12874E-06** at limit **
  14  norm          .55511E-10    8.8168        .59818E-07** at limit **
  15  Prefactor     3.8729        2.4757        .69625E-08    .38343E-03
  16  Prefactor     .22483E-01    1337.2        .12248E-05** at limit **
  17  Prefactor     18.462        1.3122        .93865E-09   -.21124E-01
  18  Prefactor     .16020        17.197        .42407E-07** at limit **
  19  Normalizat    .70658        .13280        .18978E-06    .11256E-04
  20  Prefactor     1.2816        .10456       -.35843E-07    .19682E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 1.88786
  norm       = 0.635219
  Prefactor  = 0
  norm       = 0.664941
  Prefactor  = 5.17026
  Prefactor  = 4.02859
  Prefactor  = 7.76236
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 3.87293
  Prefactor  = 0.0224832
  Prefactor  = 18.4617
  Prefactor  = 0.160202
  Normalizat = 0.706575
  Prefactor  = 1.28161
 **********
 **   18 **HESSE 
 **********

 FCN=   16701.34     FROM HESSE     STATUS=OK           345 CALLS     1596 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.0349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        14.363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.9516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .33574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.0212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8879        1.5812        .75704E-03   -1.5680    
   7  norm          .63522        2.1945        .66001E-03   -1.5692    
   8  Prefactor      .0000        8.1734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .66494        4.8804        .63316E-03   -1.5692    
  10  Prefactor     5.1703        1.8335        .44189E-03   -1.5662    
  11  Prefactor     4.0286        2.0686        .50169E-03   -1.5668    
  12  Prefactor     7.7624        13.912        .35958E-03   -1.5652    
  13  Prefactor      .0000        4.9325        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    9.0163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8729        2.4926        .51274E-03   -1.5669    
  16  Prefactor     .22483E-01    6.7555        .12624E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.462        12.148        .23344E-03   -1.5622    
  18  Prefactor     .16020        1.4981        .85225E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .70658        .12071        .73873E-01   -1.0363    
  20  Prefactor     1.2816        .93878E-01    .32939E-01   -.83855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76113e-06
Minuit parameter uncertainties:
  1  1.81375e-06
  2  3.52674e-05
  3  8.55082e-07
  4  1.6915e-07
  5  4.04841e-06
  6  1.58115
  7  2.19453
  8  1.90378e-05
  9  3.60288
  10  1.83351
  11  2.06858
  12  13.9123
  13  1.48689e-05
  14  5.10902e-05
  15  2.49259
  16  0.77945
  17  12.1484
  18  0.979805
  19  0.120757
  20  0.09389
Done.

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

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  3.527e-05  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.282e+00  9.389e-02  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.066e-01  1.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 3.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-03 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/16328597/likelihoodResults_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.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) = 16701.3852769
delta logL = -0.0474617883483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16701.3378151
delta logL = -6.0725142248e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16701.34     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      207 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        14.684       -.76239E-06** at limit **
   2  Index         2.3347        2.2156        .25731E-04     .0000    
   3  Normalizat    .70658        .12657       -.70243E-06    .43053E-04
   4  Prefactor     1.2816        .10362        .72874E-06    .95767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.33466
  Normalizat = 0.706575
  Prefactor  = 1.28161
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16701.34     FROM HESSE     STATUS=FAILED        11 CALLS      218 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        14.344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .60867        1.8481        .25731E-04   -.56222    
   3  Normalizat    .70658        1.0462       -.70243E-06   -1.0363    
   4  Prefactor     1.2816        1.0812        .72874E-06   -.83855    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.97668e-12
Minuit parameter uncertainties:
  1  7.04341e-06
  2  1.28552
  3  1.07823
  4  1.10101
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 16701.3378151
delta logL = 0.0

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  0.000e+00  7.043e-06  0.000e+00  1.000e+06 ( 1.000e-13)
52         Index:  2.335e+00  1.286e+00  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.282e+00  1.101e+00  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.066e-01  1.078e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 2.855 0.965

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/16328597/cmap_HighResolution_702864001_703468801_4FGL_J0011.4+0057_weekly_bin767.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.43e-08', time_completed='2023-04-18 00:12:49.117524', job_id='16328597', GAL2='1.28', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1681801969.12', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='767' AND source_name='4FGL J0011.4+0057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 18 00:12:49 PDT 2023

