/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 72 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.5-2851_daily_bin124
RA = 186.392, Dec = -28.8625
tmin = 271468801, tmax = 271728001
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='617521', job_status='RUN', time_executed='2021-09-05 14:19:35.798098', time_epoch_executed='1630876775.8' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617521

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617521/ft1_4FGL_J1225.5-2851_daily_bin124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617521/ft1_4FGL_J1225.5-2851_daily_bin124.fits outfile=/scratch/kocevski/617521/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin124.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=271468801.0 tmax=271728001.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.60
user 1.75
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.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/617521/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin124.fits evtable="EVENTS" outfile="/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.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 1.94
user 0.45
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/617521/ltcube_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.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/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits
.....................!
real 10.79
user 9.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/617521/ltcube_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.fits outfile=/scratch/kocevski/617521/expmap_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.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/617521/ltcube_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.fits
.....................!
real 146.34
user 137.89
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 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.
Added 183 point sources and 1 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 J1225.5-2851 @ 186.392 -28.8625

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits scfile=/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits outfile=/scratch/kocevski/617521/cmap_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.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=186.392 yref=-28.8625 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.45
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits scfile=/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits outfile=/scratch/kocevski/617521/cmap_HighResolution_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.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=186.392 yref=-28.8625 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.44
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617521/Model_4FGL_J1225.5-2851_daily_bin124.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 GAL_V02
Working on...
/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits.....................!
real 118.81
user 116.80
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits', '/scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits', expMap='/scratch/kocevski/617521/expmap_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.fits', expCube='/scratch/kocevski/617521/ltcube_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/617521/Model_4FGL_J1225.5-2851_daily_bin124.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.5-2851'

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  2.708e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/617521/ft1_filtered_4FGL_J1225.5-2851_daily_bin124.fits
Spacecraft file(s): /scratch/kocevski/617521/ft2_4FGL_J1225.5-2851_daily_bin124.fits
Exposure map: /scratch/kocevski/617521/expmap_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.fits
Exposure cube: /scratch/kocevski/617521/ltcube_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/617521/Model_4FGL_J1225.5-2851_daily_bin124.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) = 9783.79986057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2547       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4362       1.0000         .10000E-03   10000.    
     7 'Prefactor '    94.272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22201E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.768       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5046       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.3433       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3889       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7230       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3876       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9783.776     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2390 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1275        .10795E-07** at limit **
   2  Prefactor     .10000E-03    36.183        .13763E-05** at limit **
   3  norm          19.594        16.304        .11875E-06    .23020E-04
   4  Prefactor     5.2580        16.934        .78652E-05   -.42412E-03
   5  norm          2.3650        3.9464       -.94103E-06   -.37079E-03
   6  Prefactor     4.4362        5.9144        .20320E-05    .10041E-02
   7  Prefactor     94.259        70.677       -.45869E-05   -.22148E-03
   8  Prefactor     8.4705        9.5726        .69080E-07   -.54617E-04
   9  Prefactor     .10000E-03    17.549        .10416E-05** at limit **
  10  Prefactor     4.8466        23.413        .17054E-05    .42321E-04
  11  Prefactor     .10000E-03    140.85       -.14153E-05** at limit **
  12  Prefactor     18.766        24.657        .28787E-06    .17045E-04
  13  Prefactor     .10000E-03    3.9924        .19409E-07** at limit **
  14  norm          1.5046        .94779        .57093E-07   -.98222E-04
  15  Prefactor     .10000E-03    23.738       -.12580E-05** at limit **
  16  norm          5.3431        4.2253        .18263E-06    .94085E-04
  17  Prefactor     .10000E-03    2.1782        .10027E-07** at limit **
  18  norm          3.3882        5.2847       -.18577E-06   -.52060E-03
  19  Prefactor     .10000E-03    11.366       -.11490E-06** at limit **
  20  norm          3.7227        7.3678        .67063E-07   -.17672E-03
  21  Normalizat    1.3873        .22766       -.13418E-05   -.28567E-05
  22  Prefactor     .92791        .96949E-01    .44067E-07   -.12418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5939
  Prefactor  = 5.25796
  norm       = 2.36502
  Prefactor  = 4.43617
  Prefactor  = 94.2587
  Prefactor  = 8.47048
  Prefactor  = 0.0001
  Prefactor  = 4.84663
  Prefactor  = 0.000100003
  Prefactor  = 18.7661
  Prefactor  = 0.0001
  norm       = 1.50457
  Prefactor  = 0.000100001
  norm       = 5.34309
  Prefactor  = 0.0001
  norm       = 3.38822
  Prefactor  = 0.0001
  norm       = 3.72269
  Normalizat = 1.38733
  Prefactor  = 0.927912
 **********
 **   18 **HESSE 
 **********

 FCN=   9783.776     FROM HESSE     STATUS=OK           346 CALLS     2736 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1860        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.594        16.306        .90480E-04   -1.4822    
   4  Prefactor     5.2580        18.110        .87673E-03   -1.5249    
   5  norm          2.3650        3.9138        .21778E-03   -1.5400    
   6  Prefactor     4.4362        6.2671        .19119E-03   -1.5287    
   7  Prefactor     94.259        70.715        .41393E-04   -1.3763    
   8  Prefactor     8.4705        9.5745        .13773E-03   -1.5126    
   9  Prefactor     .10000E-03    17.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8466        23.185        .18277E-03   -1.5268    
  11  Prefactor     .10000E-03    141.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.766        24.701        .92451E-04   -1.4841    
  13  Prefactor     .10000E-03    4.0011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5046        .94385        .72834E-04   -1.5463    
  15  Prefactor     .10000E-03    23.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.3431        4.2191        .17386E-03   -1.5246    
  17  Prefactor     .10000E-03    2.1914        .14233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3882        5.3308        .21979E-03   -1.5340    
  19  Prefactor     .10000E-03    11.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7227        7.3605        .20928E-03   -1.5322    
  21  Normalizat    1.3873        .27255        .35037E-03   -.80996    
  22  Prefactor     .92791        .11668        .18582E-03   -.95172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3492e-09
Minuit parameter uncertainties:
  1  1.77407e-05
  2  0.000215696
  3  16.3101
  4  18.1287
  5  3.91422
  6  6.26806
  7  70.7788
  8  9.57624
  9  3.42512e-05
  10  21.2139
  11  0.00126236
  12  24.7141
  13  3.48038e-06
  14  0.943861
  15  0.000300576
  16  4.21931
  17  9.49083e-07
  18  5.33156
  19  5.40277e-06
  20  7.36227
  21  0.272835
  22  0.116713
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.877e+01  2.471e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.279e-01  1.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.387e+00  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/617521/likelihoodResults_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.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) = 9783.18622135
delta logL = 0.589558740181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9783.16768892
delta logL = 0.608091169184

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1257       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5096       1.0000          .0000       10.000    
     3 'Normalizat'    1.3240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94537       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .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=   9783.168     FROM MIGRAD    STATUS=FAILED       104 CALLS      305 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1041        182.48        .81105E-03   -.10919E-03
   2  Index         3.5114        6.7477        .65564E-02    .92326E-03
   3  Normalizat    1.3241        .23450        .35722E-03   -.23551E-04
   4  Prefactor     .94538        .10661        .18424E-03   -.82563E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9783.168     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      398 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1041        182.48        .27323E-03   -.10919E-03
   2  Index         3.5114        6.7477        .10949E-02    .92326E-03
   3  Normalizat    1.3241        .23450        .30010E-03   -.23551E-04
   4  Prefactor     .94538        .10661        .17723E-03   -.82563E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9783.168     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      431 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1041        17.807        .32442E-04   -.97419E-04
   2  Index         3.5114        1.4865        .13113E-02   -.15172E-04
   3  Normalizat    1.3241        .26786        .14289E-04   -.14321E-04
   4  Prefactor     .94538        .11716        .73695E-05   -.57387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10411
  Index      = 3.51136
  Normalizat = 1.32406
  Prefactor  = 0.945383
 **********
 **   18 **HESSE 
 **********

 FCN=   9783.168     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1041        14.999        .12977E-05   -1.5214    
   2  Index         3.5114        1.2574        .52451E-04   -.30231    
   3  Normalizat    1.3241        .26693        .28578E-05   -.82851    
   4  Prefactor     .94538        .11662        .14739E-05   -.94573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67003e-12
Minuit parameter uncertainties:
  1  15.0079
  2  1.27244
  3  0.267209
  4  0.116649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617521': 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) = 9783.1676877
delta logL = 0.608092388233

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  6.104e+00  1.501e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.511e+00  1.272e+00  0.000e+00  1.000e+01 (-1.000e+00)
295        Scale:  1.028e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.454e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.324e+00  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 3.51 +/- 1.27
Photon Flux (Free Index): 8.73e-08 +/- 7.24e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.22e-05

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 /scratch/kocevski/617521/cmap_HighResolution_271468801_271728001_4FGL_J1225.5-2851_daily_bin124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='6.08e-01', photon_flux2='8.73e-08', job_status='DONE', time_completed='2021-09-05 14:31:39.383811', photon_index_error2='1.27', photon_index2='3.51', ts='0.70', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.22e-05', EG='1.39', time_epoch_completed='1630877499.38', return_code='0', job_id='617521', GAL2='0.95', EG2='1.32', return_code2='0', photon_flux_error2='7.24e-08', ts2='2.00', photon_index='2.43' WHERE bin_id='124' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:31:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 617521: <4FGL_J1225.5-2851_daily_bin124> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin124> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 14:16:22 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:16:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 14:16:24 2021
Terminated at Sun Sep  5 14:31:40 2021
Results reported at Sun Sep  5 14:31:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin124 186.392 -28.8625 271468801 271728001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.5-2851 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   704.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            918 sec.

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

