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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin159
RA = 186.392, Dec = -28.8625
tmin = 280540801, tmax = 280800001
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='617581', job_status='RUN', time_executed='2021-09-05 14:17:20.693112', time_epoch_executed='1630876640.69' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617581/ft1_4FGL_J1225.5-2851_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617581/ft2_4FGL_J1225.5-2851_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617581/ft1_4FGL_J1225.5-2851_daily_bin159.fits outfile=/scratch/kocevski/617581/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin159.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=280540801.0 tmax=280800001.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.37
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617581/ft2_4FGL_J1225.5-2851_daily_bin159.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/617581/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/617581/ft1_filtered_4FGL_J1225.5-2851_daily_bin159.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.37
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617581/ft1_filtered_4FGL_J1225.5-2851_daily_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/617581/ft2_4FGL_J1225.5-2851_daily_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/617581/ltcube_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.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/617581/ft2_4FGL_J1225.5-2851_daily_bin159.fits
.....................!
real 13.44
user 11.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617581/ft1_filtered_4FGL_J1225.5-2851_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/617581/ft2_4FGL_J1225.5-2851_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/617581/ltcube_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.fits outfile=/scratch/kocevski/617581/expmap_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.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/617581/ltcube_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.fits
.....................!
real 200.93
user 186.17
sys 4.79

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/617581/ft1_filtered_4FGL_J1225.5-2851_daily_bin159.fits scfile=/scratch/kocevski/617581/ft2_4FGL_J1225.5-2851_daily_bin159.fits outfile=/scratch/kocevski/617581/cmap_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.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.98
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617581/ft1_filtered_4FGL_J1225.5-2851_daily_bin159.fits scfile=/scratch/kocevski/617581/ft2_4FGL_J1225.5-2851_daily_bin159.fits outfile=/scratch/kocevski/617581/cmap_HighResolution_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.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.96
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617581/ft1_filtered_4FGL_J1225.5-2851_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/617581/ft2_4FGL_J1225.5-2851_daily_bin159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617581/Model_4FGL_J1225.5-2851_daily_bin159.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/617581/ft1_filtered_4FGL_J1225.5-2851_daily_bin159.fits.....................!
real 138.36
user 134.37
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.982       1.0000         .10000E-03   10000.    
     3 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2371       1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4942       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3839       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8036       1.0000         .10000E-03   10000.    
    14 'norm      '    5.6910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15712E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    10.680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56866E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8081       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5382       1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1350       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0111       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=   8102.420     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2349 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2840        4.8732        .16197E-06    .40861E-04
   2  Prefactor     17.958        18.265       -.16796E-06   -.12601E-04
   3  norm          .10000E-03    8.0973        .43622E-08** at limit **
   4  Prefactor     3.2393        7.9292        .23101E-07    .37331E-05
   5  norm          .10000E-03    1.2341       -.84062E-08** at limit **
   6  Prefactor     8.4960        5.7784        .74309E-07    .24894E-04
   7  Prefactor     15.899        41.054       -.73846E-07   -.17734E-05
   8  Prefactor     .10000E-03    4.0816       -.23526E-08** at limit **
   9  Prefactor     .10000E-03    12.055        .54653E-08** at limit **
  10  Prefactor     .10000E-03    17.590       -.45327E-07** at limit **
  11  Prefactor     26.734        42.935       -.21104E-06   -.58252E-05
  12  Prefactor     6.4088        19.210        .91051E-07    .48835E-05
  13  Prefactor     8.8038        10.236        .64961E-07   -.64571E-05
  14  norm          5.6905        1.5807        .29743E-07    .30489E-03
  15  Prefactor     .10001E-03    1260.6        .16528E-04** at limit **
  16  norm          10.659        6.9824        .11589E-05    .19943E-03
  17  Prefactor     .10000E-03    5.1101       -.16944E-05** at limit **
  18  norm          2.8085        6.1862        .81106E-06    .70222E-04
  19  Prefactor     2.5434        9.0397        .93116E-06    .31825E-04
  20  norm          .10000E-03    6.9571        .14596E-07** at limit **
  21  Normalizat    1.1350        .24190        .55801E-07    .50480E-04
  22  Prefactor     1.0110        .10700       -.63670E-07    .14541E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28405
  Prefactor  = 17.9578
  norm       = 0.0001
  Prefactor  = 3.23931
  norm       = 0.0001
  Prefactor  = 8.49597
  Prefactor  = 15.899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7344
  Prefactor  = 6.40882
  Prefactor  = 8.80383
  norm       = 5.69051
  Prefactor  = 0.000100007
  norm       = 10.6595
  Prefactor  = 0.000100003
  norm       = 2.80847
  Prefactor  = 2.54345
  norm       = 0.0001
  Normalizat = 1.13497
  Prefactor  = 1.01103
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.420     FROM HESSE     STATUS=OK           348 CALLS     2697 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2840        4.8754        .87456E-03   -1.5248    
   2  Prefactor     17.958        18.270        .94451E-04   -1.4860    
   3  norm          .10000E-03    8.1055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2393        7.9023        .22513E-03   -1.5348    
   5  norm          .10000E-03    1.2373        .97585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.4960        5.7800        .68772E-03   -1.5125    
   7  Prefactor     15.899        40.993        .10045E-03   -1.4910    
   8  Prefactor     .10000E-03    4.0926        .17760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.734        42.902        .77486E-04   -1.4673    
  12  Prefactor     6.4088        19.201        .15886E-03   -1.5202    
  13  Prefactor     8.8038        10.234        .13509E-03   -1.5114    
  14  norm          5.6905        1.5801        .56761E-04   -1.5231    
  15  Prefactor     .10001E-03    1264.1        .40868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.659        7.1890        .12260E-03   -1.5055    
  17  Prefactor     .10000E-03    16.128        .35656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8085        6.1903        .12137E-02   -1.5373    
  19  Prefactor     2.5434        9.0341        .12817E-02   -1.5389    
  20  norm          .10000E-03    7.0532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1350        .28280        .37987E-03   -.88637    
  22  Prefactor     1.0110        .12563        .17942E-03   -.92363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14205e-10
Minuit parameter uncertainties:
  1  4.87579
  2  18.276
  3  7.79599e-07
  4  7.90481
  5  1.96376e-07
  6  5.78037
  7  41.0655
  8  1.02241e-06
  9  1.61635e-06
  10  1.26882e-05
  11  42.9513
  12  19.2193
  13  10.2358
  14  1.58008
  15  0.00629078
  16  7.18955
  17  0.000430083
  18  6.19174
  19  9.03895
  20  4.02924e-06
  21  0.283184
  22  0.125669
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  6.409e+00  1.922e+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.011e+00  1.257e-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.135e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 186.392 -28.863
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/617581/likelihoodResults_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.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) = 8102.38457315
delta logL = 0.0355658498775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8102.37957283
delta logL = 0.0405661751511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8676       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9129       1.0000          .0000       10.000    
     3 'Normalizat'    1.1246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0133       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=   8102.380     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      216 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8355        408.67        .45581E-02   -.40497E-03
   2  Index         2.9193        6.4399        .22314       -.67310E-04
   3  Normalizat    1.1248        .56959E-01    .86121E-01    .39275E-04
   4  Prefactor     1.0133        .24409E-01    .42885E-01    .31605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.83548
  Index      = 2.91928
  Normalizat = 1.12478
  Prefactor  = 1.01328
 **********
 **   18 **HESSE 
 **********

 FCN=   8102.380     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8355        23.605        .18232E-03   -1.5268    
   2  Index         2.9193        2.3233        .13660E-01   -.42920    
   3  Normalizat    1.1248        .28024        .38135E-03   -.88960    
   4  Prefactor     1.0133        .12518        .17923E-03   -.92288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47891e-09
Minuit parameter uncertainties:
  1  21.381
  2  2.4386
  3  0.280616
  4  0.125215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617581': 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) = 8102.3795646
delta logL = 0.0405744083364

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  4.835e+00  2.138e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.919e+00  2.439e+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.013e+00  1.252e-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.125e+00  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/617581/cmap_HighResolution_280540801_280800001_4FGL_J1225.5-2851_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-05 14:31:27.388158', job_id='617581', GAL2='1.01', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1630877487.39', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.06e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='159' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:31:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 617581: <4FGL_J1225.5-2851_daily_bin159> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin159 186.392 -28.8625 280540801 280800001 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 :                                   822.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             370.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

