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


Performing analysis on: 4FGL_J1149.5-4029_daily_bin1804
RA = 177.387, Dec = -40.491
tmin = 706924801, tmax = 707184001
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='18022820', job_status='RUN', time_executed='2023-05-31 00:35:52.280916', time_epoch_executed='1685518552.28' WHERE source_name='4FGL J1149.5-4029' and cadence='daily' and bin_id='1804'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18022820

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18022820/ft1_4FGL_J1149.5-4029_daily_bin1804.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18022820/ft1_4FGL_J1149.5-4029_daily_bin1804.fits outfile=/lscratch/kocevski/18022820/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin1804.fits ra=177.387 dec=-40.491 rad=12.0 tmin=706924801.0 tmax=707184001.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 2.22
user 1.93
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.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/18022820/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin1804.fits evtable="EVENTS" outfile="/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.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.68
user 0.22
sys 0.13

Number of photons that the gtmktime cut: 855

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18022820/ltcube_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.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/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits
.....................!
real 14.14
user 13.63
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits evtable="EVENTS" scfile=/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18022820/ltcube_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.fits outfile=/lscratch/kocevski/18022820/expmap_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.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/18022820/ltcube_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.fits
.....................!
real 68.65
user 64.34
sys 3.59

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 G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Added 231 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1149.5-4029 @ 177.387 -40.491

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits scfile=/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits outfile=/lscratch/kocevski/18022820/cmap_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.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=177.387 yref=-40.491 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.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits scfile=/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits outfile=/lscratch/kocevski/18022820/cmap_HighResolution_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.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=177.387 yref=-40.491 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.51
user 0.25
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits evtable="EVENTS" scfile=/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/18022820/Model_4FGL_J1149.5-4029_daily_bin1804.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 CenA Lobes
adding source EG_v02
adding source FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source G296.5+10.0
adding source GAL_V02
Working on...
/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits.....................!
real 72.33
user 69.53
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits', '/lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits', expMap='/lscratch/kocevski/18022820/expmap_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.fits', expCube='/lscratch/kocevski/18022820/ltcube_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/18022820/Model_4FGL_J1149.5-4029_daily_bin1804.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1149.5-4029'

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  3.786e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
406        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
407        Scale:  1.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/18022820/ft1_filtered_4FGL_J1149.5-4029_daily_bin1804.fits
Spacecraft file(s): /lscratch/kocevski/18022820/ft2_4FGL_J1149.5-4029_daily_bin1804.fits
Exposure map: /lscratch/kocevski/18022820/expmap_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.fits
Exposure cube: /lscratch/kocevski/18022820/ltcube_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/18022820/Model_4FGL_J1149.5-4029_daily_bin1804.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) = 8923.54355601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49516E-07   1.0000          .0000       .10000E+07
     2 'norm      '    2.0928       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14424E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .15247E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    165.05       1.0000          .0000       .10000E+07
     6 'norm      '    15.876       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17711E-02   1.0000          .0000       .10000E+07
     8 'norm      '    4.9795       1.0000          .0000       .10000E+07
     9 'Prefactor '    12.597       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.606       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.1661       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.452       1.0000          .0000       .10000E+07
    13 'Normalizat'    1.4208       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .91813       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8923.489     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      784 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4945        .41565E-07** at limit **
   2  norm          2.0939        2.0744        .47448E-07    .58194E-04
   3  Prefactor      .0000        18.999       -.33691E-08** at limit **
   4  norm           .0000        11.277        .28136E-06** at limit **
   5  Prefactor     158.15        66.760       -.66478E-07   -.35363E-03
   6  norm          15.809        8.3436        .14429E-06   -.47814E-03
   7  Prefactor      .0000        27.446       -.26818E-06** at limit **
   8  norm          5.1200        14.694       -.14513E-06   -.12626E-03
   9  Prefactor     12.493        12.588       -.86491E-07    .16918E-03
  10  Prefactor     25.134        70.414       -.48588E-06   -.34016E-03
  11  Prefactor     .97760        18.080       -.11469E-05   -.15791E-03
  12  Prefactor     11.311        10.605       -.69374E-07    .93406E-05
  13  Normalizat    1.4203        .31598        .51303E-05   -.36049E-04
  14  Prefactor     .91808        .10963       -.10337E-05   -.11069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 2.0939
  Prefactor  = 0
  norm       = 0
  Prefactor  = 158.153
  norm       = 15.8087
  Prefactor  = 0
  norm       = 5.11999
  Prefactor  = 12.4926
  Prefactor  = 25.1341
  Prefactor  = 0.977601
  Prefactor  = 11.3112
  Normalizat = 1.42027
  Prefactor  = 0.91808
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.489     FROM HESSE     STATUS=NOT POSDEF   194 CALLS      978 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0939        2.0759        .71326E-03   -1.5679    
   3  Prefactor      .0000        18.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        11.162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     158.15        66.591        .77845E-04   -1.5456    
   6  norm          15.809        8.3274        .25110E-03   -1.5628    
   7  Prefactor      .0000        27.443        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1200        14.635        .45043E-03   -1.5663    
   9  Prefactor     12.493        12.550        .28198E-03   -1.5637    
  10  Prefactor     25.134        1137.9        .26181E-03   -1.5608    
  11  Prefactor     .97760        403.73        .69959E-02   -1.5510    
  12  Prefactor     11.311        10.623        .29578E-03   -1.5641    
  13  Normalizat    1.4203        .28085        .89027E-01   -.80044    
  14  Prefactor     .91808        .89163E-01    .45236E-01   -.95512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3939e-07
Minuit parameter uncertainties:
  1  4.35027e-06
  2  2.07595
  3  1.11602e-05
  4  8.51345e-06
  5  66.5914
  6  8.32743
  7  1.49249e-05
  8  14.6354
  9  12.55
  10  338.294
  11  40.0056
  12  10.6232
  13  0.281152
  14  0.0891777
Done.

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

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  0.000e+00  1.492e-05  0.000e+00  1.000e+06 ( 1.000e-13)
406        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
407        Scale:  1.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
818    Prefactor:  9.181e-01  8.918e-02  0.000e+00  1.000e+01 ( 1.000e+00)
819        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
820        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
807   Normalization:  1.420e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 177.387 -40.491
Photon Flux Upper Limit: 1.07774667413e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00830754210816 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18022820/likelihoodResults_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.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) = 8923.50684737
delta logL = -0.0180229756425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8923.48882474
delta logL = -3.42226485373e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8923.489     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      196 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42188E-08    30.247       -.48529E-05** at limit **
   2  Index         2.2345        3.2558        .53594E-04    .90207E-10
   3  Normalizat    1.4203        .30583       -.84733E-05    .58232E-04
   4  Prefactor     .91808        .10720       -.31901E-06    .43102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21885e-09
  Index      = 2.23449
  Normalizat = 1.42027
  Prefactor  = 0.918081
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.489     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      233 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42188E-08    .65722        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2345        5.7365        .50000       -.58608    
   3  Normalizat    1.4203        .98266E-03    .89027E-01   -.80044    
   4  Prefactor     .91808        .34374E-03    .45236E-01   -.95512    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.82036e-12
Minuit parameter uncertainties:
  1  0.000105417
  2  3356.58
  3  0.000982665
  4  0.000343744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8923.4888244
delta logL = -1.38243194669e-10

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  4.219e-09  1.054e-04  0.000e+00  1.000e+06 ( 1.000e-13)
406        Index:  2.234e+00  3.357e+03  0.000e+00  1.000e+01 (-1.000e+00)
407        Scale:  1.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
818    Prefactor:  9.181e-01  3.437e-04  0.000e+00  1.000e+01 ( 1.000e+00)
819        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
820        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
807   Normalization:  1.420e+00  9.827e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 177.387 -40.491

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/18022820/cmap_HighResolution_706924801_707184001_4FGL_J1149.5-4029_daily_bin1804.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2023-05-31 00:41:06.971271', job_id='18022820', GAL2='0.92', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1685518866.97', return_code2='102', ts='0.00', comment='SUCCESS', return_code='102', GAL='0.92', dlogl='-1.38e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1804' AND source_name='4FGL J1149.5-4029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed May 31 00:41:07 PDT 2023

