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


Performing analysis on: 4FGL_J1229.7-5304_daily_bin1790
RA = 187.444, Dec = -53.0704
tmin = 703296001, tmax = 703555201
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='16461953', job_status='RUN', time_executed='2023-04-19 00:40:45.360973', time_epoch_executed='1681890045.36' WHERE source_name='4FGL J1229.7-5304' and cadence='daily' and bin_id='1790'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/16461953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/16461953/ft1_4FGL_J1229.7-5304_daily_bin1790.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/16461953/ft1_4FGL_J1229.7-5304_daily_bin1790.fits outfile=/lscratch/kocevski/16461953/ft1_filteredMKT_4FGL_J1229.7-5304_daily_bin1790.fits ra=187.444 dec=-53.0704 rad=12.0 tmin=703296001.0 tmax=703555201.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.09
user 1.84
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.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/16461953/ft1_filteredMKT_4FGL_J1229.7-5304_daily_bin1790.fits evtable="EVENTS" outfile="/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.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.37
user 0.20
sys 0.12

Number of photons that the gtmktime cut: 2412

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits" evtable="EVENTS" scfile=/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits sctable="SC_DATA" outfile=/lscratch/kocevski/16461953/ltcube_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.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/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits
.....................!
real 9.47
user 8.99
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits evtable="EVENTS" scfile=/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits sctable="SC_DATA" expcube=/lscratch/kocevski/16461953/ltcube_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.fits outfile=/lscratch/kocevski/16461953/expmap_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.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/16461953/ltcube_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.fits
.....................!
real 67.58
user 62.80
sys 4.00

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 J1213.3-6240 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian 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.
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 HESS J1356-645 in ROI with RadialDisk spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Extended source Westerlund 2 in ROI with RadialDisk spatial model.
Extended source RCW 86 in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian spatial model.
Added 321 point sources and 12 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 J1229.7-5304 @ 187.444 -53.0704

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits scfile=/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits outfile=/lscratch/kocevski/16461953/cmap_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.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=187.444 yref=-53.0704 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.46
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits scfile=/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits outfile=/lscratch/kocevski/16461953/cmap_HighResolution_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.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=187.444 yref=-53.0704 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.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits evtable="EVENTS" scfile=/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/16461953/Model_4FGL_J1229.7-5304_daily_bin1790.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 FGES J1213.3-6240
adding source FGES J1409.1-6121
adding source FHES J1501.0-6310
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1356-645
adding source HESS J1420-607
adding source RCW 86
adding source Westerlund 2
Working on...
/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits.....................!
real 226.66
user 223.54
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits', '/lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits', expMap='/lscratch/kocevski/16461953/expmap_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.fits', expCube='/lscratch/kocevski/16461953/ltcube_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/16461953/Model_4FGL_J1229.7-5304_daily_bin1790.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1229.7-5304'

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  7.161e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
551        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  2.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/16461953/ft1_filtered_4FGL_J1229.7-5304_daily_bin1790.fits
Spacecraft file(s): /lscratch/kocevski/16461953/ft2_4FGL_J1229.7-5304_daily_bin1790.fits
Exposure map: /lscratch/kocevski/16461953/expmap_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.fits
Exposure cube: /lscratch/kocevski/16461953/ltcube_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/16461953/Model_4FGL_J1229.7-5304_daily_bin1790.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) = 22263.7030119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.886       1.0000          .0000       .10000E+07
     2 'Prefactor '    35.625       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34972E-08   1.0000          .0000       .10000E+07
     5 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.5083       1.0000          .0000       .10000E+07
     7 'Prefactor '    43.653       1.0000          .0000       .10000E+07
     8 'Prefactor '    15.121       1.0000          .0000       .10000E+07
     9 'norm      '    15.397       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.7290       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.6500       1.0000          .0000       .10000E+07
    12 'norm      '    .27089E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .76050E-08   1.0000          .0000       .10000E+07
    14 'norm      '    .33917E-07   1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .94298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1199E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22263.69     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     1284 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.898        1.0679       -.14213E-08    .41988E-01
   2  Prefactor     35.631        1.4919       -.83590E-08    .76915E-01
   3  Prefactor     .10000E-03    1.4790       -.34113E-06** at limit **
   4  Prefactor      .0000        15.014       -.22172E-06** at limit **
   5  norm          .55511E-10    2.9171       -.10258E-06** at limit **
   6  Prefactor     1.5093        8.9885       -.67410E-06   -.66185E-02
   7  Prefactor     43.658        1.4065       -.78313E-08    .86600E-01
   8  Prefactor     15.120        1.5082        .18928E-07   -.44431E-01
   9  norm          15.397        1.0973        .50868E-08   -.95883E-02
  10  Prefactor     9.7293        1.8516        .51862E-08   -.21365E-02
  11  Prefactor     4.6493        7.6169       -.35015E-06    .52937E-02
  12  norm          .55511E-10    5.3606       -.31167E-06** at limit **
  13  norm           .0000        1.9388        .13189E-06** at limit **
  14  norm           .0000        .69097       -.93051E-07** at limit **
  15  Normalizat    1.1932        .26872       -.38018E-05   -.11483E-04
  16  Prefactor     .94299        .32721E-01    .42421E-06   -.62759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.898
  Prefactor  = 35.6309
  Prefactor  = 0.0001
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 1.50929
  Prefactor  = 43.6579
  Prefactor  = 15.1203
  norm       = 15.3971
  Prefactor  = 9.72935
  Prefactor  = 4.64927
  norm       = 5.55112e-11
  norm       = 0
  norm       = 0
  Normalizat = 1.19324
  Prefactor  = 0.942986
 **********
 **   18 **HESSE 
 **********

 FCN=   22263.69     FROM HESSE     STATUS=OK           239 CALLS     1523 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.898        67.340        .12321E-03   -1.5546    
   2  Prefactor     35.631        27.510        .16756E-03   -1.5589    
   3  Prefactor     .10000E-03    1.4777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        15.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55511E-10    2.9163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5093        9.4007        .87081E-03   -1.5683    
   7  Prefactor     43.658        29.510        .15137E-03   -1.5576    
   8  Prefactor     15.120        13.126        .25730E-03   -1.5630    
   9  norm          15.397        11.948        .25498E-03   -1.5629    
  10  Prefactor     9.7293        7.5571        .32103E-03   -1.5646    
  11  Prefactor     4.6493        7.7491        .46647E-03   -1.5665    
  12  norm          .55511E-10    5.3687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        1.9384        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .67053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    1.1932        .29844        .19921       -.86812    
  16  Prefactor     .94299        .33472E-01    .27312E-01   -.94655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11908e-06
Minuit parameter uncertainties:
  1  67.3408
  2  27.5099
  3  9.66194e-07
  4  2.77232e-05
  5  2.55971e-05
  6  7.53351
  7  29.5101
  8  13.126
  9  11.9477
  10  7.55713
  11  7.74917
  12  2.74911e-05
  13  7.47524e-06
  14  9.76117e-07
  15  0.298871
  16  0.0334725
Done.

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

Extracting fit parameters...

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  0.000e+00  2.772e-05  0.000e+00  1.000e+06 ( 1.000e-14)
551        Index:  2.125e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  2.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1181    Prefactor:  9.430e-01  3.347e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1182        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1183        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1158   Normalization:  1.193e+00  2.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 187.444 -53.070
Photon Flux Upper Limit: 6.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/16461953/likelihoodResults_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.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): 102
logL (Free Index) = 22263.7174125
delta logL = -0.0317543216552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 22263.6856587
delta logL = -4.47318598162e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31941E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .67168       1.0000          .0000       10.000    
     3 'Normalizat'    1.1931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94298       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1199E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   22263.69     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      205 TOTAL
                     EDM=   .89E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        21.181       -.47526E-06** at limit **
   2  Index         1.7531        5.6738        .15713E-04     .0000    
   3  Normalizat    1.1932        .26224        .46697E-05    .13684E-04
   4  Prefactor     .94299        .32607E-01    .13833E-05    .15295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.75309
  Normalizat = 1.19324
  Prefactor  = 0.942986
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   22263.69     FROM HESSE     STATUS=FAILED        11 CALLS      216 TOTAL
                     EDM=   .89E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        21.332        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .31008        1.7255        .15713E-04   -.70677    
   3  Normalizat    1.1932        1.1088        .46697E-05   -.86812    
   4  Prefactor     .94299        1.2856        .13833E-05   -.94655    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.90061e-13
Minuit parameter uncertainties:
  1  2.71117e-06
  2  1.59785
  3  1.13188
  4  1.33119
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) = 22263.6856582
delta logL = 0.0

Extracting fit parameters...

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  0.000e+00  2.711e-06  0.000e+00  1.000e+06 ( 1.000e-14)
551        Index:  1.753e+00  1.598e+00  0.000e+00  1.000e+01 (-1.000e+00)
552        Scale:  2.433e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1181    Prefactor:  9.430e-01  1.331e+00  0.000e+00  1.000e+01 ( 1.000e+00)
1182        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1183        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1158   Normalization:  1.193e+00  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 187.444 -53.070

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/16461953/cmap_HighResolution_703296001_703555201_4FGL_J1229.7-5304_daily_bin1790.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2023-04-19 00:56:21.068654', job_id='16461953', GAL2='0.94', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1681890981.07', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1790' AND source_name='4FGL J1229.7-5304' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr 19 00:56:21 PDT 2023

