/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 86 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7426
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1229.7-5304_daily_bin1261
RA = 187.444, Dec = -53.0704
tmin = 566179201, tmax = 566438401
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='728247', job_status='RUN', time_executed='2021-09-05 20:07:04.613387', time_epoch_executed='1630897624.61' WHERE source_name='4FGL J1229.7-5304' and cadence='daily' and bin_id='1261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728247

Creating custom pfile directory:
/scratch/kocevski/728247/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=566179201.0 && nMetStart<566438401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=566179201.0 && nMetStart<566438401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728247/ft1_4FGL_J1229.7-5304_daily_bin1261.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=566179201.0 && nMetStart<566438401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728247/ft1_4FGL_J1229.7-5304_daily_bin1261.fits outfile=/scratch/kocevski/728247/ft1_filteredMKT_4FGL_J1229.7-5304_daily_bin1261.fits ra=187.444 dec=-53.0704 rad=12.0 tmin=566179201.0 tmax=566438401.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.64
user 3.37
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/728247/ft1_filteredMKT_4FGL_J1229.7-5304_daily_bin1261.fits evtable="EVENTS" outfile="/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits" evtable="EVENTS" scfile=/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits sctable="SC_DATA" outfile=/scratch/kocevski/728247/ltcube_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.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 /scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits
.....................!
real 18.29
user 17.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits sctable="SC_DATA" expcube=/scratch/kocevski/728247/ltcube_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.fits outfile=/scratch/kocevski/728247/expmap_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.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 /scratch/kocevski/728247/ltcube_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.fits
.....................!
real 194.33
user 188.71
sys 4.89

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 /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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 /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/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=/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits scfile=/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits outfile=/scratch/kocevski/728247/cmap_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits scfile=/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits outfile=/scratch/kocevski/728247/cmap_HighResolution_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits evtable="EVENTS" scfile=/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/728247/Model_4FGL_J1229.7-5304_daily_bin1261.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...
/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits...........................!
real 20.51
user 18.57
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits', '/scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits', expMap='/scratch/kocevski/728247/expmap_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.fits', expCube='/scratch/kocevski/728247/ltcube_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/728247/Model_4FGL_J1229.7-5304_daily_bin1261.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/728247/ft1_filtered_4FGL_J1229.7-5304_daily_bin1261.fits
Spacecraft file(s): /scratch/kocevski/728247/ft2_4FGL_J1229.7-5304_daily_bin1261.fits
Exposure map: /scratch/kocevski/728247/expmap_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.fits
Exposure cube: /scratch/kocevski/728247/ltcube_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/728247/Model_4FGL_J1229.7-5304_daily_bin1261.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 353.995374787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 353.119870032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9928       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2333       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4268       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34856E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0754       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3725       1.0000         .10000E-03   10000.    
     8 'Prefactor '    68.000       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1345       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11212E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14414E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .72689E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7583       1.0000         .10000E-03   10000.    
    16 'norm      '    2.9174       1.0000         .10000E-03   10000.    
    17 'norm      '    .18016       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0113       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84802       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=   353.0964     FROM MIGRAD    STATUS=CONVERGED    182 CALLS      360 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    516.46       -.16427E-04** at limit **
   2  Prefactor     5.9928        1.0035         .0000         .0000    
   3  Prefactor     .10000E-03    170.66       -.32376E-05** at limit **
   4  Prefactor     .18067E-03    668.46       -.61682E-04** at limit **
   5  Prefactor     .10000E-03    41.717        .13810E-04** at limit **
   6  Prefactor     .13103E-03    870.64       -.16407E-03** at limit **
   7  norm          2.3725        1.0241         .0000         .0000    
   8  Prefactor     67.398        76.058       -.30619E-04   -.41058E-03
   9  Prefactor     52.772        47.518        .43605E-05   -.51581E-02
  10  Prefactor     .10156E-03    1593.5        .36547E-05** at limit **
  11  Prefactor     9.1345        1.0015         .0000         .0000    
  12  Prefactor     .10000E-03    31.341        .35356E-05** at limit **
  13  norm          .10000E-03    24.352       -.54980E-05** at limit **
  14  Prefactor     .10000E-03    12.932       -.22980E-05** at limit **
  15  Prefactor     1.7583        1.0475         .0000         .0000    
  16  norm          .10030E-03    653.72       -.10462E-03** at limit **
  17  norm          .10000E-03    166.42        .15042E-05** at limit **
  18  norm          1.0113        1.3197         .0000         .0000    
  19  Normalizat    .10000E-01    6.3487       -.29693E-03** at limit **
  20  Prefactor     .85144        .23540       -.36324E-04   -.26499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.99281
  Prefactor  = 0.0001
  Prefactor  = 0.00018067
  Prefactor  = 0.0001
  Prefactor  = 0.00013103
  norm       = 2.37247
  Prefactor  = 67.3978
  Prefactor  = 52.772
  Prefactor  = 0.00010156
  Prefactor  = 9.13453
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75831
  norm       = 0.000100298
  norm       = 0.0001
  norm       = 1.01127
  Normalizat = 0.01
  Prefactor  = 0.851437
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   353.0964     FROM HESSE     STATUS=FAILED        15 CALLS      375 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    516.88        .86100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     522.04        516.00         .0000       -1.5218    
   3  Prefactor     .10000E-03    .79292E-01   -.32376E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18067E-03    .57240E-01   -.61682E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .21141        .13810E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13103E-03    .41457E-01   -.16407E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3725        1.0241         .0000       -1.5400    
   8  Prefactor     67.398        .99562       -.30619E-04   -1.4064    
   9  Prefactor     52.772        .98910        .43605E-05   -1.4254    
  10  Prefactor     .10156E-03    .27399E-01    .36547E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1345        1.0015         .0000       -1.5103    
  12  Prefactor     .10000E-03    .20571        .35356E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20679       -.54980E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .27453       -.22980E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7583        1.0475         .0000       -1.5443    
  16  norm          .10030E-03    .88399E-01   -.10462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .24436        .15042E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0113        1.3197         .0000       -1.5507    
  19  Normalizat    .10000E-01    .25626       -.29693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .85144        1.1973       -.36324E-04   -.97859    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.60114e-11
Minuit parameter uncertainties:
  1  0.000494834
  2  1.00352
  3  6.55873e-06
  4  0.00429769
  5  4.49786e-06
  6  0.00226842
  7  1.02414
  8  0.995618
  9  0.989097
  10  0.000413542
  11  1.00151
  12  6.2766e-07
  13  1.25805e-06
  14  6.55109e-07
  15  1.04756
  16  0.000324433
  17  3.94483e-07
  18  1.31977
  19  1.14772e-06
  20  1.23748
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 353.096436948

Extracting fit parameters...

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  1.310e-04  2.268e-03  1.000e-04  1.000e+04 ( 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:  8.514e-01  1.237e+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.000e-02  1.148e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.444 -53.070
Photon Flux Upper Limit: 3.33e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728247/likelihoodResults_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.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) = 353.096443345
delta logL = -6.39705530148e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 353.096443258
delta logL = -6.31049363164e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96295E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1249       1.0000          .0000       10.000    
     3 'Normalizat'    .10007E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85154       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1199E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   353.0964     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      215 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    938.94        .90719E-02** at limit **
   2  Index         2.0850        8.5324        .50000        .31902E-06
   3  Normalizat    .10000E-01    .21756E-02    .32123    ** at limit **
   4  Prefactor     .85144        .91416E-02    .30945E-01   -.19703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Index      = 2.08499
  Normalizat = 0.01
  Prefactor  = 0.851437
 **********
 **   18 **HESSE 
 **********

 FCN=   353.0964     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    7039.7        .18144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0850        6.0288        .50000       -.62242    
   3  Normalizat    .10000E-01    .28993E-01    .12324E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85144        .20414E-01    .13676E-03   -.97859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.46746e-09
Minuit parameter uncertainties:
  1  0.0211937
  2  1234.71
  3  4.29737e-06
  4  0.0204141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728247': No such file or directory
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) = 353.096436928
delta logL = 1.97264284907e-08

Extracting fit parameters...

4FGL J1229.7-5304
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  2.119e-02  1.000e-04  1.000e+04 ( 1.000e-14)
551        Index:  2.085e+00  1.235e+03  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:  8.514e-01  2.041e-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.000e-02  4.297e-06  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/728247/cmap_HighResolution_566179201_566438401_4FGL_J1229.7-5304_daily_bin1261.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/728247

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-01', job_status='DONE', photon_flux_upper_limit='3.33e-06', time_completed='2021-09-05 20:13:37.532639', job_id='728247', GAL2='0.85', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630898017.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.85', dlogl='1.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1261' AND source_name='4FGL J1229.7-5304' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 20:13:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 728247: <4FGL_J1229.7-5304_daily_bin1261> in cluster <slac> Done

Job <4FGL_J1229.7-5304_daily_bin1261> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 20:05:24 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 20:05:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 20:05:25 2021
Terminated at Sun Sep  5 20:13:38 2021
Results reported at Sun Sep  5 20:13:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1229.7-5304_daily_bin1261 187.444 -53.0704 566179201 566438401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1229.7-5304 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   388.10 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             383.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   492 sec.
    Turnaround time :                            494 sec.

The output (if any) is above this job summary.

