/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 94 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.5-2851_daily_bin339
RA = 186.392, Dec = -28.8625
tmin = 327196801, tmax = 327456001
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='618010', job_status='RUN', time_executed='2021-09-05 14:20:26.966757', time_epoch_executed='1630876826.97' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/618010

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/618010/ft1_4FGL_J1225.5-2851_daily_bin339.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/618010/ft1_4FGL_J1225.5-2851_daily_bin339.fits outfile=/scratch/kocevski/618010/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin339.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=327196801.0 tmax=327456001.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 4.68
user 3.10
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits" evtable="EVENTS" scfile=/scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits sctable="SC_DATA" outfile=/scratch/kocevski/618010/ltcube_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.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/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits
.....................!
real 13.47
user 11.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/618010/ltcube_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.fits outfile=/scratch/kocevski/618010/expmap_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.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/618010/ltcube_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.fits
.....................!
real 197.62
user 185.88
sys 4.12

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/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits scfile=/scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits outfile=/scratch/kocevski/618010/cmap_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits scfile=/scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits outfile=/scratch/kocevski/618010/cmap_HighResolution_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/618010/Model_4FGL_J1225.5-2851_daily_bin339.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/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits.....................!
real 118.43
user 116.40
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits', '/scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits', expMap='/scratch/kocevski/618010/expmap_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.fits', expCube='/scratch/kocevski/618010/ltcube_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/618010/Model_4FGL_J1225.5-2851_daily_bin339.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/618010/ft1_filtered_4FGL_J1225.5-2851_daily_bin339.fits
Spacecraft file(s): /scratch/kocevski/618010/ft2_4FGL_J1225.5-2851_daily_bin339.fits
Exposure map: /scratch/kocevski/618010/expmap_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.fits
Exposure cube: /scratch/kocevski/618010/ltcube_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/618010/Model_4FGL_J1225.5-2851_daily_bin339.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) = 6921.89234521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6080       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.051       1.0000         .10000E-03   10000.    
     3 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.404       1.0000         .10000E-03   10000.    
     5 'norm      '    10.152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5433       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9198       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11428E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.164       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4181       1.0000         .10000E-03   10000.    
    18 'norm      '    12.744       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2994       1.0000         .10000E-03   10000.    
    20 'norm      '    6.8765       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0392       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0694       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=   6921.881     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2331 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6072        7.8410        .10085E-06   -.13591E-04
   2  Prefactor     19.049        25.729        .66342E-07   -.16426E-04
   3  norm          .10000E-03    28.084        .99017E-07** at limit **
   4  Prefactor     32.407        24.430        .12242E-06    .26330E-04
   5  norm          10.152        7.1907        .47133E-07   -.20593E-04
   6  Prefactor     .10000E-03    1.9467       -.11741E-07** at limit **
   7  Prefactor     .10000E-03    26.882       -.66466E-08** at limit **
   8  Prefactor     15.546        17.744        .47997E-06    .11991E-06
   9  Prefactor     .10000E-03    18.647        .22111E-06** at limit **
  10  Prefactor     .10000E-03    10.765        .12215E-07** at limit **
  11  Prefactor     .10000E-03    19.478       -.34565E-06** at limit **
  12  Prefactor     .10000E-03    47.908       -.19479E-06** at limit **
  13  Prefactor     8.5429        13.809        .15868E-06   -.15614E-05
  14  norm          3.9197        1.5951        .36116E-07    .54479E-04
  15  Prefactor     .10000E-03    75.077        .32538E-06** at limit **
  16  norm          16.160        9.4993       -.14245E-07   -.66233E-04
  17  Prefactor     4.4182        6.5036        .77626E-07   -.29522E-04
  18  norm          12.744        8.8775       -.10708E-06    .32376E-04
  19  Prefactor     2.2980        12.767        .74276E-05    .14587E-04
  20  norm          6.8756        11.372        .11380E-05    .86721E-05
  21  Normalizat    1.0391        .29968       -.34256E-06    .13844E-04
  22  Prefactor     1.0695        .12818       -.36973E-06    .46520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.60722
  Prefactor  = 19.049
  norm       = 0.000100001
  Prefactor  = 32.4065
  norm       = 10.1519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5464
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 8.54287
  norm       = 3.91974
  Prefactor  = 0.000100002
  norm       = 16.16
  Prefactor  = 4.41823
  norm       = 12.7437
  Prefactor  = 2.298
  norm       = 6.87563
  Normalizat = 1.03908
  Prefactor  = 1.0695
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.881     FROM HESSE     STATUS=OK           346 CALLS     2677 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6072        7.8499        .13663E-03   -1.5121    
   2  Prefactor     19.049        25.726        .91763E-04   -1.4835    
   3  norm          .10000E-03    28.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.407        24.455        .70391E-04   -1.4569    
   5  norm          10.152        7.1923        .12576E-03   -1.5071    
   6  Prefactor     .10000E-03    1.9567        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.546        17.751        .50789E-03   -1.4919    
   9  Prefactor     .10000E-03    18.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5429        13.805        .13715E-03   -1.5123    
  14  norm          3.9197        1.5929        .63604E-04   -1.5312    
  15  Prefactor     .10000E-03    75.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.160        9.4663        .99621E-04   -1.4904    
  17  Prefactor     4.4182        6.4707        .19159E-03   -1.5288    
  18  norm          12.744        8.8736        .11221E-03   -1.4994    
  19  Prefactor     2.2980        12.772        .13532E-02   -1.5405    
  20  norm          6.8756        11.350        .76499E-03   -1.5183    
  21  Normalizat    1.0391        .34460        .43054E-03   -.91732    
  22  Prefactor     1.0695        .14852        .18643E-03   -.90447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42386e-10
Minuit parameter uncertainties:
  1  7.85083
  2  25.7407
  3  0.000373088
  4  24.463
  5  7.19293
  6  9.52328e-07
  7  1.31602e-05
  8  17.7569
  9  0.000329715
  10  1.96698e-06
  11  0.000442561
  12  0.000773418
  13  13.8104
  14  1.59288
  15  0.000763365
  16  9.46721
  17  6.4717
  18  8.87452
  19  10.8385
  20  11.3533
  21  0.345346
  22  0.148577
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  7.734e-04  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:  1.069e+00  1.486e-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.039e+00  3.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/618010/likelihoodResults_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.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) = 6921.88157219
delta logL = -9.80270770015e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6921.88147437
delta logL = -2.06267031899e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3713       1.0000          .0000       10.000    
     3 'Normalizat'    1.0391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0695       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6921.881     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8407.6        .18142E-02** at limit **
   2  Index         2.4277        5.8135        .50000       -.12653E-04
   3  Normalizat    1.0391        .16169        .43054E-03   -.82913E-05
   4  Prefactor     1.0695        .71509E-01    .18643E-03    .22977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.42772
  Normalizat = 1.03908
  Prefactor  = 1.0695
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.881     FROM HESSE     STATUS=OK            29 CALLS      306 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    51.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4277        6.2133        .50000       -.54037    
   3  Normalizat    1.0391        .33022        .17222E-04   -.91732    
   4  Prefactor     1.0695        .14632        .37287E-04   -.90447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49684e-10
Minuit parameter uncertainties:
  1  0.00128004
  2  4.50732
  3  0.330872
  4  0.146376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/618010': 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) = 6921.88147418
delta logL = -1.6693775251e-08

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.280e-03  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.428e+00  4.507e+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:  1.069e+00  1.464e-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.039e+00  3.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.392 -28.863

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/618010/cmap_HighResolution_327196801_327456001_4FGL_J1225.5-2851_daily_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-05 14:33:07.391113', job_id='618010', GAL2='1.07', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630877587.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-1.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='339' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:33:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 618010: <4FGL_J1225.5-2851_daily_bin339> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin339> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 14:16:50 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:16:51 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:51 2021
Terminated at Sun Sep  5 14:33:08 2021
Results reported at Sun Sep  5 14:33:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin339 186.392 -28.8625 327196801 327456001 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 :                                   738.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

