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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1259
RA = 186.392, Dec = -28.8625
tmin = 565660801, tmax = 565920001
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='627134', job_status='RUN', time_executed='2021-09-05 14:41:16.377228', time_epoch_executed='1630878076.38' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627134

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627134/ft1_4FGL_J1225.5-2851_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627134/ft2_4FGL_J1225.5-2851_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627134/ft1_4FGL_J1225.5-2851_daily_bin1259.fits outfile=/scratch/kocevski/627134/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1259.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=565660801.0 tmax=565920001.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.58
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627134/ft1_filtered_4FGL_J1225.5-2851_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/627134/ft2_4FGL_J1225.5-2851_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/627134/ltcube_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.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/627134/ft2_4FGL_J1225.5-2851_daily_bin1259.fits
.....................!
real 12.08
user 11.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627134/ft1_filtered_4FGL_J1225.5-2851_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/627134/ft2_4FGL_J1225.5-2851_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/627134/ltcube_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.fits outfile=/scratch/kocevski/627134/expmap_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.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/627134/ltcube_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.fits
.....................!
real 190.18
user 185.20
sys 3.95

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/627134/ft1_filtered_4FGL_J1225.5-2851_daily_bin1259.fits scfile=/scratch/kocevski/627134/ft2_4FGL_J1225.5-2851_daily_bin1259.fits outfile=/scratch/kocevski/627134/cmap_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627134/ft1_filtered_4FGL_J1225.5-2851_daily_bin1259.fits scfile=/scratch/kocevski/627134/ft2_4FGL_J1225.5-2851_daily_bin1259.fits outfile=/scratch/kocevski/627134/cmap_HighResolution_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627134/ft1_filtered_4FGL_J1225.5-2851_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/627134/ft2_4FGL_J1225.5-2851_daily_bin1259.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627134/Model_4FGL_J1225.5-2851_daily_bin1259.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/627134/ft1_filtered_4FGL_J1225.5-2851_daily_bin1259.fits.....................!
real 126.87
user 125.34
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.452       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4738       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9255       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.749       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .97655       1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.613       1.0000         .10000E-03   10000.    
    16 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7010       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.188       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6300       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1063       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0279       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=   7689.210     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2369 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.453        8.2370       -.10561E-06   -.11526E-03
   2  Prefactor     .10000E-03    17.689       -.90099E-07** at limit **
   3  norm          .10000E-03    6.5485       -.59729E-07** at limit **
   4  Prefactor     2.4119        96.477        .12248E-04    .11932E-03
   5  norm          5.9417        8.0889       -.15855E-05   -.49278E-03
   6  Prefactor     .10000E-03    2.8043       -.98257E-07** at limit **
   7  Prefactor     54.766        55.046       -.29591E-05   -.60172E-05
   8  Prefactor     14.224        14.113        .13563E-06    .16726E-04
   9  Prefactor     .10000E-03    27.649        .18531E-05** at limit **
  10  Prefactor     28.910        24.632       -.65109E-07    .66771E-04
  11  Prefactor     .10000E-03    29.104       -.15420E-05** at limit **
  12  Prefactor     7.8385        8.9572       -.58491E-08   -.15166E-04
  13  Prefactor     .10000E-03    7.1672        .16698E-06** at limit **
  14  norm          .97658        .87281        .12031E-06    .47551E-03
  15  Prefactor     59.676        74.611       -.59702E-05    .18716E-04
  16  norm          .10001E-03    5.6485        .28245E-05** at limit **
  17  Prefactor     8.6972        5.8834        .24999E-06   -.35047E-03
  18  norm          2.3544        6.0489       -.28432E-06   -.41226E-04
  19  Prefactor     14.188        11.612       -.57371E-07    .10211E-04
  20  norm          1.6289        6.5778        .11833E-04   -.34343E-03
  21  Normalizat    1.1065        .26242       -.15575E-05   -.15099E-03
  22  Prefactor     1.0279        .11313        .99849E-08   -.32720E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.41191
  norm       = 5.94172
  Prefactor  = 0.0001
  Prefactor  = 54.7658
  Prefactor  = 14.2243
  Prefactor  = 0.000100001
  Prefactor  = 28.9098
  Prefactor  = 0.000100001
  Prefactor  = 7.8385
  Prefactor  = 0.0001
  norm       = 0.976576
  Prefactor  = 59.6757
  norm       = 0.000100006
  Prefactor  = 8.69721
  norm       = 2.35443
  Prefactor  = 14.1879
  norm       = 1.62889
  Normalizat = 1.10649
  Prefactor  = 1.02785
 **********
 **   18 **HESSE 
 **********

 FCN=   7689.210     FROM HESSE     STATUS=OK           348 CALLS     2717 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.453        8.2338        .11838E-03   -1.5031    
   2  Prefactor     .10000E-03    17.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.5510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4119        81.280        .25996E-03   -1.5397    
   5  norm          5.9417        7.4200        .16497E-03   -1.5220    
   6  Prefactor     .10000E-03    2.8250        .14332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.766        54.708        .54210E-04   -1.4227    
   8  Prefactor     14.224        14.114        .10619E-03   -1.4953    
   9  Prefactor     .10000E-03    27.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.910        24.593        .74516E-04   -1.4632    
  11  Prefactor     .10000E-03    29.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8385        8.9578        .14322E-03   -1.5148    
  13  Prefactor     .10000E-03    7.1993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .97658        .84592        .74381E-03   -1.5510    
  15  Prefactor     59.676        74.357        .25982E-03   -1.4161    
  16  norm          .10001E-03    5.8913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6972        5.8409        .13589E-03   -1.5118    
  18  norm          2.3544        6.0290        .26705E-03   -1.5401    
  19  Prefactor     14.188        11.619        .10634E-03   -1.4954    
  20  norm          1.6289        6.5367        .16562E-02   -1.5453    
  21  Normalizat    1.1065        .30724        .38880E-03   -.89544    
  22  Prefactor     1.0279        .13398        .17932E-03   -.91807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70792e-09
Minuit parameter uncertainties:
  1  8.2346
  2  1.36783e-06
  3  3.86231e-06
  4  28.0438
  5  7.42114
  6  9.31985e-06
  7  54.7581
  8  14.117
  9  0.000256573
  10  24.6017
  11  0.000349036
  12  8.95931
  13  2.25832e-05
  14  0.845932
  15  74.4733
  16  0.000378865
  17  5.84128
  18  6.03051
  19  11.6206
  20  6.52715
  21  0.307737
  22  0.134022
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  7.839e+00  8.959e+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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.028e+00  1.340e-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.106e+00  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 186.392 -28.863
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 4.99e-06 +/- 5.70e-06

TS (Fixed Index): 2.33
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627134/likelihoodResults_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.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) = 7687.61065478
delta logL = 1.59889961988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7687.58496876
delta logL = 1.62458564132

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8072       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1941       1.0000          .0000       10.000    
     3 'Normalizat'    1.1163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0252       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=   7687.585     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8170        10.016        .31990E-02   -.38144E-04
   2  Index         1.1941        .40963        .27920       -.62404E-04
   3  Normalizat    1.1162        .24779        .87441E-01    .23378E-04
   4  Prefactor     1.0253        .11121        .41654E-01    .91983E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.81697
  Index      = 1.1941
  Normalizat = 1.1162
  Prefactor  = 1.02529
 **********
 **   18 **HESSE 
 **********

 FCN=   7687.585     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8170        12.184        .12796E-03   -1.5081    
   2  Index         1.1941        .56670        .10845E-01   -.86513    
   3  Normalizat    1.1162        .29150        .38723E-03   -.89233    
   4  Prefactor     1.0253        .13115        .17946E-03   -.91891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92678e-09
Minuit parameter uncertainties:
  1  12.1868
  2  0.569629
  3  0.291919
  4  0.131187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627134': 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) = 7687.58496815
delta logL = 1.62458625164

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  9.817e+00  1.219e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  1.194e+00  5.696e-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.025e+00  1.312e-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.116e+00  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 1.19 +/- 0.57
Photon Flux (Free Index): 6.04e-09 +/- 6.85e-09
Energy Flux (Free Index): 5.13e-05 +/- 8.12e-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/627134/cmap_HighResolution_565660801_565920001_4FGL_J1225.5-2851_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='5.13e-05', photon_flux_error='1.82e-08', dlogl='1.62e+00', energy_flux='4.99e-06', photon_flux2='6.04e-09', job_status='DONE', time_completed='2021-09-05 14:54:38.898720', photon_index_error2='0.57', photon_index2='1.19', ts='2.33', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='8.08e-08', energy_flux_error2='8.12e-05', EG='1.11', time_epoch_completed='1630878878.9', return_code='0', job_id='627134', GAL2='1.03', EG2='1.12', return_code2='0', energy_flux_error='5.70e-06', photon_flux_error2='6.85e-09', ts2='5.58', photon_index='2.43' WHERE bin_id='1259' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:54:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 627134: <4FGL_J1225.5-2851_daily_bin1259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1259 186.392 -28.8625 565660801 565920001 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

