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


Performing analysis on: 4FGL_J1228.0-4853_daily_bin1429
RA = 187.01, Dec = -48.8847
tmin = 609724801, tmax = 609984001
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='691337', job_status='RUN', time_executed='2021-09-05 18:03:09.548429', time_epoch_executed='1630890189.55' WHERE source_name='4FGL J1228.0-4853' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/691337

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/691337/ft1_4FGL_J1228.0-4853_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/691337/ft1_4FGL_J1228.0-4853_daily_bin1429.fits outfile=/scratch/kocevski/691337/ft1_filteredMKT_4FGL_J1228.0-4853_daily_bin1429.fits ra=187.01 dec=-48.8847 rad=12.0 tmin=609724801.0 tmax=609984001.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.57
user 2.36
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.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/691337/ft1_filteredMKT_4FGL_J1228.0-4853_daily_bin1429.fits evtable="EVENTS" outfile="/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/691337/ltcube_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.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/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits
.....................!
real 12.24
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/691337/ltcube_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.fits outfile=/scratch/kocevski/691337/expmap_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.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/691337/ltcube_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.fits
.....................!
real 189.44
user 185.44
sys 3.66

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 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 J1109.4-6115 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 Westerlund 2 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 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.
Added 303 point sources and 10 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 J1228.0-4853 @ 187.01 -48.8847

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits scfile=/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits outfile=/scratch/kocevski/691337/cmap_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.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.01 yref=-48.8847 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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits scfile=/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits outfile=/scratch/kocevski/691337/cmap_HighResolution_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.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.01 yref=-48.8847 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/691337/Model_4FGL_J1228.0-4853_daily_bin1429.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 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 Westerlund 2
Working on...
/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits...................!
real 18.04
user 16.22
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits', '/scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits', expMap='/scratch/kocevski/691337/expmap_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.fits', expCube='/scratch/kocevski/691337/ltcube_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/691337/Model_4FGL_J1228.0-4853_daily_bin1429.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1228.0-4853'

4FGL J1228.0-4853
   Spectrum: PLSuperExpCutoff2
541    Prefactor:  2.507e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
542       Index1:  1.835e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
543        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
544    Expfactor:  5.290e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
545       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/691337/ft1_filtered_4FGL_J1228.0-4853_daily_bin1429.fits
Spacecraft file(s): /scratch/kocevski/691337/ft2_4FGL_J1228.0-4853_daily_bin1429.fits
Exposure map: /scratch/kocevski/691337/expmap_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.fits
Exposure cube: /scratch/kocevski/691337/ltcube_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/691337/Model_4FGL_J1228.0-4853_daily_bin1429.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) = 236.935133972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    85.444       1.0000         .10000E-03   10000.    
     2 'Prefactor '    178.94       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    1373.8       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    162.71       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.242       1.0000         .10000E-03   10000.    
    14 'norm      '    43.828       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6030       1.0000         .10000E-03   10000.    
    16 'Prefactor '    107.81       1.0000         .10000E-03   10000.    
    17 'norm      '    .12649E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79810E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1121E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   235.9341     FROM MIGRAD    STATUS=FAILED       813 CALLS     2952 TOTAL
                     EDM=   .23E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          84.634        97.220        .21730E-03   -.86599E-01
   2  Prefactor     178.22        357.61        .15087E-03   -.12738E-01
   3  Prefactor     .30714E-03    61.885        .12003E-02** at limit **
   4  Prefactor     .65515E-03    130.42        .17657E-02** at limit **
   5  Prefactor     9999.7        1693.6        .20857E-02   -.42733E-02
   6  Prefactor    10000.0        2246.3        .18286E-02    .37640E-04
   7  Prefactor    10000.0        912.24        .18142E-02   -.24046E-02
   8  Prefactor     9999.8        2144.7        .20786E-02    .65333E-03
   9  norm          1375.0        1313.3        .58098E-04    .88121E-02
  10  Prefactor    10000.0        1968.1        .21241E-02    .19023E-03
  11  Prefactor    10000.0        2098.4        .21459E-02   -.37436E-03
  12  Prefactor     9990.8        2282.9        .15808E-02   -.32696E-03
  13  Prefactor     9864.6        2229.2        .57244E-02   -.80955E-03
  14  norm          9625.5        2120.6        .30279E-02   -.11880E-02
  15  Prefactor     4685.1        4199.0        .84859E-02   -.10494E-02
  16  Prefactor     108.59        102.66        .19367E-03    .85799E-01
  17  norm          .72408E-03    153.41        .18142E-02** at limit **
  18  norm          .13894E-03    31.301        .84613E-03** at limit **
  19  norm          .10050E-03    2.6693        .24557E-03** at limit **
  20  Normalizat    .10003E-01    .32328        .28843E-02   -.66760E-02
  21  Prefactor     .79458E-01    .12376        .15112E-03    .28495E-01
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   235.9340     FROM SIMPLEX   STATUS=PROGRESS     644 CALLS     3596 TOTAL
                     EDM=   .25E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          85.469        97.220        .82179E-03   -1.3856    
   2  Prefactor     178.54        357.61        .10246E-02   -1.3028    
   3  Prefactor     .10012E-03    61.885        .82181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10068E-03    130.42        .20214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9999.7        1693.6        .22349E-02    1.5603    
   6  Prefactor     9999.9        2246.3        .18229E-01    1.5656    
   7  Prefactor    10000.0        912.24        .69710E-02    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9999.9        2144.7        .10598E-01    1.5771    
   9  norm          1374.9        1313.3        .89789E-04   -.81107    
  10  Prefactor    10000.0        1968.1        .18850E-01    1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9999.9        2098.4        .64521E-02    1.5643    
  12  Prefactor     9990.8        2282.9        .95701E-03    1.5102    
  13  Prefactor     9864.7        2229.2        .38657E-03    1.3377    
  14  norm          9625.7        2120.6        .31593E-03    1.1814    
  15  Prefactor     4685.5        4199.0        .27175E-03   -.62946E-01
  16  Prefactor     108.58        102.66        .18651E-04   -1.3620    
  17  norm          .27414E-03    153.41        .15093E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .12420E-03    31.301        .40858E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10223E-03    2.6693        .13981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10006E-01    .32328        .12272E-02   -1.5723    
  21  Prefactor     .79456E-01    .12376        .51388E-05   -1.3923    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   235.9325     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     3983 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          85.639        98.171        .43460E-04    .34306E-04
   2  Prefactor     180.48        374.52        .30174E-04    .84091E-04
   3  Prefactor     .10000E-03    63.603        .24005E-03** at limit **
   4  Prefactor     .10014E-03    137.60        .35314E-03** at limit **
   5  Prefactor    10000.0        7579.1        .41714E-03** at limit **
   6  Prefactor    10000.0        5000.0        .36572E-03** at limit **
   7  Prefactor    10000.0        1435.8        .36285E-03** at limit **
   8  Prefactor    10000.0        9767.9        .41573E-03** at limit **
   9  norm          1378.2        1425.5        .11620E-04    .18174E-04
  10  Prefactor    10000.0        9227.2        .42483E-03** at limit **
  11  Prefactor    10000.0        9996.2        .42919E-03** at limit **
  12  Prefactor    10000.0        6280.5        .31617E-01** at limit **
  13  Prefactor    10000.0        8493.4        .11449E-02** at limit **
  14  norm         10000.0        6161.1        .60558E-02** at limit **
  15  Prefactor    10000.0        5404.7        .16972E-01** at limit **
  16  Prefactor     107.88        103.45        .38734E-04   -.80735E-04
  17  norm          .10000E-03    164.48        .36285E-03** at limit **
  18  norm          .10001E-03    31.715        .16923E-03** at limit **
  19  norm          .10000E-03    2.6753        .49114E-04** at limit **
  20  Normalizat    .10000E-01    .37120        .57686E-03** at limit **
  21  Prefactor     .78543E-01    .12831        .30224E-04    .18147E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 85.6392
  Prefactor  = 180.483
  Prefactor  = 0.0001
  Prefactor  = 0.000100142
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 1378.21
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 107.878
  norm       = 0.000100001
  norm       = 0.000100015
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.0785434
 **********
 **   18 **HESSE 
 **********

 FCN=   235.9325     FROM HESSE     STATUS=OK           301 CALLS     4284 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          85.639        98.173        .86920E-05   -1.3854    
   2  Prefactor     180.48        374.53        .60348E-05   -1.3013    
   3  Prefactor     .10000E-03    63.603        .48010E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10014E-03    137.60        .70627E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        7579.1        .41714E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        5000.0        .36572E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        1435.8        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        9767.9        .41573E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1378.2        1426.5        .23239E-05   -.81010    
  10  Prefactor    10000.0        9227.2        .42483E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        9996.2        .42919E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        6268.2        .63234E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        8492.7        .22898E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm         10000.0        6191.1        .12112E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        5405.1        .33943E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     107.88        103.46        .77468E-05   -1.3627    
  17  norm          .10000E-03    164.48        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    31.715        .33845E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.6753        .98227E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .37108        .11537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .78543E-01    .12833        .60449E-05   -1.3933    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9703e-09
Minuit parameter uncertainties:
  1  98.3595
  2  379.66
  3  0.000271331
  4  0.00885896
  5  0.0581882
  6  0.224857
  7  0.0186799
  8  0.0590226
  9  1470.7
  10  0.223447
  11  0.614495
  12  12.0312
  13  27.386
  14  4.39583
  15  31.5753
  16  103.634
  17  0.000735165
  18  0.00137031
  19  1.26237e-06
  20  4.15738e-06
  21  0.128788
Done.

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

Extracting fit parameters...

4FGL J1228.0-4853
   Spectrum: PLSuperExpCutoff2
541    Prefactor:  1.000e+04  1.868e-02  1.000e-04  1.000e+04 ( 1.000e-12)
542       Index1:  1.835e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
543        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
544    Expfactor:  5.290e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
545       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1106    Prefactor:  7.854e-02  1.288e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1107        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1108        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1087   Normalization:  1.000e-02  4.157e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.81
Ra Dec: 187.010 -48.885
Photon Index (Fixed Index): 1.84 +/- 0.00
Photon Flux (Fixed Index): 1.44e-04 +/- 2.69e-10
Energy Flux (Fixed Index): 5.62e-02 +/- 1.05e-07

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) = 119.163272034
delta logL = 116.769209679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 119.135448202
delta logL = 116.797033511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index1    '    10.000       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .25733E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1121E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   119.1354     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      186 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        596.62        .90723E-02** at limit **
   2  Index1       10.0000        .32589E-01    .32078E-01** at limit **
   3  Normalizat    .10000E-01    .24101        .75380E-01** at limit **
   4  Prefactor     .25673E-01    .63705E-01    .32504E-01    .35176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index1     = 10
  Normalizat = 0.01
  Prefactor  = 0.0256727
 **********
 **   18 **HESSE 
 **********

 FCN=   119.1354     FROM HESSE     STATUS=OK            25 CALLS      211 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        596.62        .18145E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1       10.0000        .32586E-01    .61010E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .24138        .16595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25673E-01    .63127E-01    .13432E-03   -1.4694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54849e-11
Minuit parameter uncertainties:
  1  0.000712666
  2  1.43846e-08
  3  1.52075e-06
  4  0.0632919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/691337': 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): 0
logL (Free Index) = 119.1354391
delta logL = 116.797042613

Extracting fit parameters...

4FGL J1228.0-4853
   Spectrum: PLSuperExpCutoff2
541    Prefactor:  1.000e+04  7.127e-04  1.000e-04  1.000e+04 ( 1.000e-12)
542       Index1:  1.000e+01  1.438e-08  0.000e+00  1.000e+01 (-1.000e+00)
543        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
544    Expfactor:  5.290e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
545       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1106    Prefactor:  2.567e-02  6.329e-02  0.000e+00  1.000e+01 ( 1.000e+00)
1107        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1108        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1087   Normalization:  1.000e-02  1.521e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 242.35
Ra Dec: 187.010 -48.885
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.10e+05 +/- 8.59e-03
Energy Flux (Free Index): 1.22e+07 +/- 9.64e-01

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/691337/cmap_HighResolution_609724801_609984001_4FGL_J1228.0-4853_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-04', energy_flux2='1.22e+07', photon_flux_error='2.69e-10', dlogl='1.17e+02', energy_flux='5.62e-02', photon_flux2='1.10e+05', job_status='DONE', time_completed='2021-09-05 18:09:51.844189', photon_index_error2='0.00', photon_index2='10.00', ts='8.81', fit_tolerance='1e-08', GAL='0.08', photon_index_error='0.00', energy_flux_error2='9.64e-01', EG='0.01', time_epoch_completed='1630890591.84', return_code='0', job_id='691337', GAL2='0.03', EG2='0.01', return_code2='0', energy_flux_error='1.05e-07', photon_flux_error2='8.59e-03', ts2='242.35', photon_index='1.84' WHERE bin_id='1429' AND source_name='4FGL J1228.0-4853' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:09:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 691337: <4FGL_J1228.0-4853_daily_bin1429> in cluster <slac> Done

Job <4FGL_J1228.0-4853_daily_bin1429> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 18:00:31 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:00:34 2021
Terminated at Sun Sep  5 18:09:52 2021
Results reported at Sun Sep  5 18:09:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.0-4853_daily_bin1429 187.01 -48.8847 609724801 609984001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1228.0-4853 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   377.00 sec.
    Max Memory :                                 1260 MB
    Average Memory :                             276.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            561 sec.

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

