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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1421
RA = 186.392, Dec = -28.8625
tmin = 607651201, tmax = 607910401
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='627374', job_status='RUN', time_executed='2021-09-05 14:42:36.021764', time_epoch_executed='1630878156.02' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627374

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627374/ft1_4FGL_J1225.5-2851_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627374/ft1_4FGL_J1225.5-2851_daily_bin1421.fits outfile=/scratch/kocevski/627374/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1421.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=607651201.0 tmax=607910401.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.82
user 3.58
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.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/627374/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1421.fits evtable="EVENTS" outfile="/scratch/kocevski/627374/ft1_filtered_4FGL_J1225.5-2851_daily_bin1421.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.59
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627374/ft1_filtered_4FGL_J1225.5-2851_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/627374/ltcube_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.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/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.fits
.....................!
real 11.95
user 11.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627374/ft1_filtered_4FGL_J1225.5-2851_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/627374/ltcube_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.fits outfile=/scratch/kocevski/627374/expmap_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.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/627374/ltcube_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.fits
.....................!
real 190.98
user 185.46
sys 5.08

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/627374/ft1_filtered_4FGL_J1225.5-2851_daily_bin1421.fits scfile=/scratch/kocevski/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.fits outfile=/scratch/kocevski/627374/cmap_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.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.70
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627374/ft1_filtered_4FGL_J1225.5-2851_daily_bin1421.fits scfile=/scratch/kocevski/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.fits outfile=/scratch/kocevski/627374/cmap_HighResolution_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.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.70
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627374/ft1_filtered_4FGL_J1225.5-2851_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/627374/ft2_4FGL_J1225.5-2851_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627374/Model_4FGL_J1225.5-2851_daily_bin1421.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/627374/ft1_filtered_4FGL_J1225.5-2851_daily_bin1421.fits.....................!
real 113.03
user 110.85
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.160       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    35.075       1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.779       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2260       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.849       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4159       1.0000         .10000E-03   10000.    
    14 'norm      '    .81671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .62349       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.1500       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3946       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1543       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0339       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=   6775.429     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2425 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.147        10.538        .38263E-05    .59147E-03
   2  Prefactor     .10001E-03    121.04       -.42086E-05** at limit **
   3  norm          35.064        37.663       -.51217E-05   -.12224E-03
   4  Prefactor     85.775        29.354       -.98636E-06   -.44579E-04
   5  norm          3.2242        4.3235        .79314E-06   -.21231E-02
   6  Prefactor     .10000E-03    3.2452        .14585E-07** at limit **
   7  Prefactor     .10000E-03    54.937        .61531E-05** at limit **
   8  Prefactor     5.4717        12.981       -.26559E-06   -.31436E-04
   9  Prefactor     .10000E-03    16.274       -.59242E-06** at limit **
  10  Prefactor     .10000E-03    8.2815       -.35823E-07** at limit **
  11  Prefactor     19.868        29.100       -.52300E-06   -.16437E-04
  12  Prefactor     39.840        30.149       -.19199E-05   -.93480E-04
  13  Prefactor     8.4086        17.576       -.22934E-06   -.22246E-04
  14  norm          .81657        1.1551        .80465E-07   -.10559E-03
  15  Prefactor     .10000E-03    38.943       -.43822E-05** at limit **
  16  norm          .10000E-03    2.0790        .27392E-07** at limit **
  17  Prefactor     .10000E-03    2.7703        .34792E-07** at limit **
  18  norm          .55203        3.5522        .35186E-06   -.26334E-03
  19  Prefactor     3.1484        20.077       -.95465E-06   -.43869E-04
  20  norm          3.3970        4.7138        .78080E-06   -.20827E-02
  21  Normalizat    1.1546        .29933       -.15761E-05   -.13173E-04
  22  Prefactor     1.0340        .12481        .43893E-06   -.15556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1473
  Prefactor  = 0.000100007
  norm       = 35.0641
  Prefactor  = 85.7747
  norm       = 3.22418
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.47174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.868
  Prefactor  = 39.8399
  Prefactor  = 8.40859
  norm       = 0.816572
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.552032
  Prefactor  = 3.14843
  norm       = 3.39701
  Normalizat = 1.15459
  Prefactor  = 1.03397
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.429     FROM HESSE     STATUS=OK           344 CALLS     2769 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.147        10.622        .96685E-04   -1.4880    
   2  Prefactor     .10001E-03    123.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          35.064        37.780        .67665E-04   -1.4523    
   4  Prefactor     85.775        29.851        .43376E-04   -1.3853    
   5  norm          3.2242        5.2354        .10801E-02   -1.5349    
   6  Prefactor     .10000E-03    3.2729        .14476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    55.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4717        12.978        .17171E-03   -1.5240    
   9  Prefactor     .10000E-03    16.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.868        29.099        .89851E-04   -1.4816    
  12  Prefactor     39.840        30.238        .63497E-04   -1.4445    
  13  Prefactor     8.4086        17.603        .13819E-03   -1.5128    
  14  norm          .81657        1.0540        .99193E-03   -1.5527    
  15  Prefactor     .10000E-03    38.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0902        .11589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7985        .13377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55203        20.885        .28884E-02   -1.5559    
  19  Prefactor     3.1484        20.011        .22839E-03   -1.5353    
  20  norm          3.3970        5.9559        .10980E-02   -1.5339    
  21  Normalizat    1.1546        .34912        .40467E-03   -.88018    
  22  Prefactor     1.0340        .14744        .18428E-03   -.91606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13106e-08
Minuit parameter uncertainties:
  1  10.623
  2  0.00185869
  3  37.8061
  4  29.856
  5  5.23613
  6  6.7907e-06
  7  0.000447209
  8  12.9846
  9  1.95953e-05
  10  7.46034e-07
  11  29.1201
  12  30.2493
  13  17.6141
  14  1.05407
  15  0.000259252
  16  1.03835e-06
  17  1.22981e-06
  18  6.7928
  19  15.8823
  20  5.95697
  21  0.349826
  22  0.147499
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.984e+01  3.025e+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:  1.034e+00  1.475e-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.155e+00  3.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 186.392 -28.863
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 8.08e-08 +/- 6.13e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.93e-05

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

Saving results to:
/scratch/kocevski/627374/likelihoodResults_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.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) = 6775.42280775
delta logL = 0.0062316263502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6775.41245975
delta logL = 0.0165796281208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.323       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6117       1.0000          .0000       10.000    
     3 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0387       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=   6775.412     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      269 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.326        59.005        .69417E-04    .72224E-04
   2  Index         2.6100        1.2941        .76960E-02    .28767E-04
   3  Normalizat    1.1391        .35038        .40703E-03    .10619E-03
   4  Prefactor     1.0390        .14945        .18389E-03    .54332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3264
  Index      = 2.60997
  Normalizat = 1.13908
  Prefactor  = 1.039
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.326        46.108        .27767E-05   -1.4553    
   2  Index         2.6100        1.0148        .30784E-03   -.49838    
   3  Normalizat    1.1391        .34446        .16281E-04   -.88507    
   4  Prefactor     1.0390        .14760        .36777E-04   -.91441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91907e-10
Minuit parameter uncertainties:
  1  46.1573
  2  1.02402
  3  0.345141
  4  0.147657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627374': 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) = 6775.41245186
delta logL = 0.0165875160392

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.333e+01  4.616e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.610e+00  1.024e+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.039e+00  1.477e-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.139e+00  3.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 2.61 +/- 1.02
Photon Flux (Free Index): 9.08e-08 +/- 8.54e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.94e-05

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/627374/cmap_HighResolution_607651201_607910401_4FGL_J1225.5-2851_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', photon_flux='8.08e-08', energy_flux2='2.36e-05', photon_flux_error='6.13e-08', dlogl='1.66e-02', energy_flux='2.54e-05', photon_flux2='9.08e-08', job_status='DONE', time_completed='2021-09-05 14:56:52.588023', photon_index_error2='1.02', photon_index2='2.61', ts='2.75', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.11e-07', energy_flux_error2='1.94e-05', EG='1.15', time_epoch_completed='1630879012.59', return_code='0', job_id='627374', GAL2='1.04', EG2='1.14', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='8.54e-08', ts2='2.78', photon_index='2.43' WHERE bin_id='1421' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:56:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 627374: <4FGL_J1225.5-2851_daily_bin1421> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1421> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:40:58 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:41:00 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:41:00 2021
Terminated at Sun Sep  5 14:56:53 2021
Results reported at Sun Sep  5 14:56:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1421 186.392 -28.8625 607651201 607910401 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.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            955 sec.

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

