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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin323
RA = 186.392, Dec = -28.8625
tmin = 323049601, tmax = 323308801
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='617980', job_status='RUN', time_executed='2021-09-05 14:18:36.051285', time_epoch_executed='1630876716.05' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617980/ft1_4FGL_J1225.5-2851_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617980/ft2_4FGL_J1225.5-2851_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617980/ft1_4FGL_J1225.5-2851_daily_bin323.fits outfile=/scratch/kocevski/617980/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin323.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=323049601.0 tmax=323308801.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 5.93
user 3.11
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617980/ft1_filtered_4FGL_J1225.5-2851_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/617980/ft2_4FGL_J1225.5-2851_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/617980/ltcube_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.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/617980/ft2_4FGL_J1225.5-2851_daily_bin323.fits
.....................!
real 16.83
user 14.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617980/ft1_filtered_4FGL_J1225.5-2851_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/617980/ft2_4FGL_J1225.5-2851_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/617980/ltcube_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.fits outfile=/scratch/kocevski/617980/expmap_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.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/617980/ltcube_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.fits
.....................!
real 197.81
user 185.39
sys 4.24

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/617980/ft1_filtered_4FGL_J1225.5-2851_daily_bin323.fits scfile=/scratch/kocevski/617980/ft2_4FGL_J1225.5-2851_daily_bin323.fits outfile=/scratch/kocevski/617980/cmap_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617980/ft1_filtered_4FGL_J1225.5-2851_daily_bin323.fits scfile=/scratch/kocevski/617980/ft2_4FGL_J1225.5-2851_daily_bin323.fits outfile=/scratch/kocevski/617980/cmap_HighResolution_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.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.55
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5277       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15404E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0872       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.767       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.105       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    103.44       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10470E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0573       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.221       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62819       1.0000         .10000E-03   10000.    
    18 'norm      '    .71853       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.051       1.0000         .10000E-03   10000.    
    20 'norm      '    .23267E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0666       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0783       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=   6435.497     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2412 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5258        9.2923       -.80945E-07   -.66776E-03
   2  Prefactor     .10000E-03    46.315        .41845E-06** at limit **
   3  norm          .10000E-03    9.9632       -.61190E-07** at limit **
   4  Prefactor     .10001E-03    172.59       -.75257E-04** at limit **
   5  norm          1.0896        4.5854        .34538E-05    .24393E-03
   6  Prefactor     7.9374        7.2644       -.14580E-06   -.62586E-03
   7  Prefactor     .10000E-03    21.753       -.20751E-06** at limit **
   8  Prefactor     12.772        17.486       -.69549E-07   -.10713E-04
   9  Prefactor     14.069        41.560        .30106E-05   -.29183E-04
  10  Prefactor     .10000E-03    11.099        .52657E-06** at limit **
  11  Prefactor     103.48        69.756       -.10715E-05    .65472E-04
  12  Prefactor     .10001E-03    55.649       -.26727E-05** at limit **
  13  Prefactor     .10000E-03    18.638        .15275E-06** at limit **
  14  norm          1.0574        .97109       -.35180E-07    .95631E-04
  15  Prefactor     .10000E-03    78.373       -.14413E-05** at limit **
  16  norm          16.214        8.0419       -.44639E-06    .48740E-03
  17  Prefactor     .63091        1.9030        .48314E-05   -.74122E-03
  18  norm          .71787        7.3777       -.12048E-06   -.54512E-04
  19  Prefactor     11.051        11.675       -.47316E-07   -.76705E-06
  20  norm          .10000E-03    3.3529        .86881E-07** at limit **
  21  Normalizat    1.0665        .29769       -.17702E-05   -.26154E-03
  22  Prefactor     1.0782        .12583        .91662E-06    .90702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.52579
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100011
  norm       = 1.08959
  Prefactor  = 7.93744
  Prefactor  = 0.000100001
  Prefactor  = 12.7717
  Prefactor  = 14.0689
  Prefactor  = 0.000100004
  Prefactor  = 103.483
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 1.0574
  Prefactor  = 0.000100001
  norm       = 16.2142
  Prefactor  = 0.630912
  norm       = 0.717871
  Prefactor  = 11.0512
  norm       = 0.0001
  Normalizat = 1.06648
  Prefactor  = 1.07822
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.497     FROM HESSE     STATUS=OK           350 CALLS     2762 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5258        9.3176        .14617E-03   -1.5159    
   2  Prefactor     .10000E-03    46.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    9.9663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    179.41        .63324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0896        4.6293        .32918E-03   -1.5499    
   6  Prefactor     7.9374        7.2502        .71157E-03   -1.5144    
   7  Prefactor     .10000E-03    21.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.772        17.484        .11211E-03   -1.4993    
   9  Prefactor     14.069        41.607        .10665E-03   -1.4958    
  10  Prefactor     .10000E-03    11.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     103.48        69.715        .19767E-03   -1.3670    
  12  Prefactor     .10001E-03    56.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0574        .94517        .72891E-04   -1.5502    
  15  Prefactor     .10000E-03    78.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.214        8.6936        .99445E-04   -1.4902    
  17  Prefactor     .63091        11.757        .23567E-02   -1.5549    
  18  norm          .71787        7.5859        .41688E-03   -1.5539    
  19  Prefactor     11.051        11.678        .12052E-03   -1.5043    
  20  norm          .10000E-03    8.2530        .28630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0665        .34241        .41025E-03   -.90835    
  22  Prefactor     1.0782        .14701        .17923E-03   -.90166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22534e-09
Minuit parameter uncertainties:
  1  9.31938
  2  0.000659901
  3  3.30567e-05
  4  0.00278554
  5  4.49218
  6  7.25099
  7  0.000345851
  8  17.4908
  9  41.6931
  10  0.000416564
  11  69.7701
  12  0.00175827
  13  3.55219e-05
  14  0.945186
  15  0.000399553
  16  8.69432
  17  5.44793
  18  4.66765
  19  11.6806
  20  4.20971e-05
  21  0.343123
  22  0.147062
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.758e-03  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.078e+00  1.471e-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.066e+00  3.431e-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.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/617980/likelihoodResults_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.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) = 6435.49659759
delta logL = -8.40477123347e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6435.49650983
delta logL = 3.713096703e-06

Fit tolerance = 1e-08

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

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

 FCN=   6435.490     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      304 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68026        8.4367        .76877E-01    .44429E-03
   2  Index         3.5020        .64002        .50000        .40382E-06
   3  Normalizat    1.0575        .12140E-01    .92963E-01    .81394E-04
   4  Prefactor     1.0799        .53545E-02    .38480E-01    .10919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.680256
  Index      = 3.50201
  Normalizat = 1.05752
  Prefactor  = 1.07986
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.490     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      337 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68026        2214.2        .27034E-02   -1.5543    
   2  Index         3.5020        8.2380        .62612E-02   -.30427    
   3  Normalizat    1.0575        .24655        .41180E-03   -.91128    
   4  Prefactor     1.0799        .10099        .17911E-03   -.90113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.78002e-09
Minuit parameter uncertainties:
  1  80.8114
  2  51.4476
  3  0.246813
  4  0.101007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617980': 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) = 6435.48992798
delta logL = 0.00658556031794

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  6.803e-01  8.081e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.502e+00  5.145e+01  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.080e+00  1.010e-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.058e+00  2.468e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/617980/cmap_HighResolution_323049601_323308801_4FGL_J1225.5-2851_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.30e-07', time_completed='2021-09-05 14:30:56.694815', job_id='617980', GAL2='1.08', fit_tolerance='1e-08', EG2='1.06', EG='1.07', time_epoch_completed='1630877456.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.59e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='323' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 617980: <4FGL_J1225.5-2851_daily_bin323> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin323> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 14:16:46 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:16:48 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:48 2021
Terminated at Sun Sep  5 14:30:57 2021
Results reported at Sun Sep  5 14:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin323 186.392 -28.8625 323049601 323308801 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 :                                   716.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

