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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1256
RA = 186.392, Dec = -28.8625
tmin = 564883201, tmax = 565142401
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='627130', job_status='RUN', time_executed='2021-09-05 14:42:30.549046', time_epoch_executed='1630878150.55' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627130/ft1_4FGL_J1225.5-2851_daily_bin1256.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627130/ft2_4FGL_J1225.5-2851_daily_bin1256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627130/ft1_4FGL_J1225.5-2851_daily_bin1256.fits outfile=/scratch/kocevski/627130/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1256.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=564883201.0 tmax=565142401.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.65
user 3.34
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627130/ft1_filtered_4FGL_J1225.5-2851_daily_bin1256.fits" evtable="EVENTS" scfile=/scratch/kocevski/627130/ft2_4FGL_J1225.5-2851_daily_bin1256.fits sctable="SC_DATA" outfile=/scratch/kocevski/627130/ltcube_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.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/627130/ft2_4FGL_J1225.5-2851_daily_bin1256.fits
.....................!
real 11.69
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627130/ft1_filtered_4FGL_J1225.5-2851_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/627130/ft2_4FGL_J1225.5-2851_daily_bin1256.fits sctable="SC_DATA" expcube=/scratch/kocevski/627130/ltcube_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.fits outfile=/scratch/kocevski/627130/expmap_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.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/627130/ltcube_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.fits
.....................!
real 190.14
user 185.55
sys 3.66

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/627130/ft1_filtered_4FGL_J1225.5-2851_daily_bin1256.fits scfile=/scratch/kocevski/627130/ft2_4FGL_J1225.5-2851_daily_bin1256.fits outfile=/scratch/kocevski/627130/cmap_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627130/ft1_filtered_4FGL_J1225.5-2851_daily_bin1256.fits scfile=/scratch/kocevski/627130/ft2_4FGL_J1225.5-2851_daily_bin1256.fits outfile=/scratch/kocevski/627130/cmap_HighResolution_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=186.392 yref=-28.8625 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627130/ft1_filtered_4FGL_J1225.5-2851_daily_bin1256.fits evtable="EVENTS" scfile=/scratch/kocevski/627130/ft2_4FGL_J1225.5-2851_daily_bin1256.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627130/Model_4FGL_J1225.5-2851_daily_bin1256.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/627130/ft1_filtered_4FGL_J1225.5-2851_daily_bin1256.fits.....................!
real 116.18
user 114.79
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.028       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.314       1.0000         .10000E-03   10000.    
     5 'norm      '    3.7132       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7978       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5619       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .23765       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.000       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6842       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2509       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.8535       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .71661       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0917       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=   6919.128     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2345 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2281        4.7149        .88384E-07   -.24743E-04
   2  Prefactor     .10000E-03    13.758       -.40610E-07** at limit **
   3  norm          16.020        25.626       -.57182E-07   -.57645E-04
   4  Prefactor     11.314        13.365       -.32049E-05   -.31962E-04
   5  norm          3.7126        4.4395        .41932E-05   -.44333E-03
   6  Prefactor     .10000E-03    2.1082       -.13300E-06** at limit **
   7  Prefactor     29.695        35.035       -.52040E-06   -.15778E-04
   8  Prefactor     .10000E-03    13.694        .27061E-06** at limit **
   9  Prefactor     13.718        27.707       -.24349E-06   -.46537E-04
  10  Prefactor     5.7966        14.987        .89267E-07   -.12571E-04
  11  Prefactor     .10000E-03    14.578        .30908E-07** at limit **
  12  Prefactor     1.5573        31.795        .20348E-05   -.16940E-04
  13  Prefactor     .10000E-03    6.0651       -.11801E-07** at limit **
  14  norm          .23764        .49814        .56088E-07    .11035E-04
  15  Prefactor     15.925        51.196       -.20657E-05   -.18105E-03
  16  norm          2.6834        4.7789        .17044E-06    .64066E-04
  17  Prefactor     .10000E-03    4.0313       -.54580E-07** at limit **
  18  norm          5.2504        7.2009        .40231E-06   -.16954E-04
  19  Prefactor     .10000E-03    15.492        .54646E-06** at limit **
  20  norm          6.8533        7.3638        .65147E-07   -.79232E-05
  21  Normalizat    .71664        .23876       -.15760E-05   -.21088E-04
  22  Prefactor     1.0917        .10943        .17196E-06   -.90440E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.22809
  Prefactor  = 0.0001
  norm       = 16.0196
  Prefactor  = 11.3141
  norm       = 3.71258
  Prefactor  = 0.0001
  Prefactor  = 29.6949
  Prefactor  = 0.0001
  Prefactor  = 13.718
  Prefactor  = 5.79655
  Prefactor  = 0.0001
  Prefactor  = 1.55732
  Prefactor  = 0.0001
  norm       = 0.237636
  Prefactor  = 15.9253
  norm       = 2.68337
  Prefactor  = 0.0001
  norm       = 5.25043
  Prefactor  = 0.0001
  norm       = 6.85334
  Normalizat = 0.716642
  Prefactor  = 1.09168
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.128     FROM HESSE     STATUS=OK           348 CALLS     2693 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2281        4.7134        .16444E-03   -1.5251    
   2  Prefactor     .10000E-03    13.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.020        25.632        .10004E-03   -1.4907    
   4  Prefactor     11.314        13.367        .11911E-03   -1.5035    
   5  norm          3.7126        4.4430        .82886E-03   -1.5323    
   6  Prefactor     .10000E-03    2.1216        .11782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.695        35.011        .73522E-04   -1.4618    
   8  Prefactor     .10000E-03    13.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.718        27.650        .10811E-03   -1.4967    
  10  Prefactor     5.7966        14.972        .16680E-03   -1.5226    
  11  Prefactor     .10000E-03    14.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5573        31.870        .34044E-03   -1.5458    
  13  Prefactor     .10000E-03    6.0985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .23764        .49768        .40593E-04   -1.5610    
  15  Prefactor     15.925        50.870        .10013E-03   -1.4910    
  16  norm          2.6834        4.7236        .21833E-03   -1.5380    
  17  Prefactor     .10000E-03    4.0690        .16246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2504        7.1832        .17541E-03   -1.5250    
  19  Prefactor     .10000E-03    15.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.8533        7.3552        .15326E-03   -1.5184    
  21  Normalizat    .71664        .26716        .41091E-03   -1.0324    
  22  Prefactor     1.0917        .12426        .15890E-03   -.89733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93816e-10
Minuit parameter uncertainties:
  1  4.71378
  2  2.25337e-05
  3  25.6499
  4  13.3707
  5  4.44337
  6  2.18113e-06
  7  35.0355
  8  1.04285e-05
  9  27.6762
  10  14.9813
  11  1.37109e-05
  12  14.0982
  13  5.23276e-06
  14  0.497689
  15  51.009
  16  4.72424
  17  5.25956e-06
  18  7.18436
  19  3.58865e-05
  20  7.35617
  21  0.267645
  22  0.12429
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.557e+00  1.410e+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.092e+00  1.243e-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:  7.166e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/627130/likelihoodResults_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.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) = 6919.08238662
delta logL = 0.0455181031502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6919.07775256
delta logL = 0.0501521587812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94180       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6828       1.0000          .0000       10.000    
     3 'Normalizat'    .69871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0958       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=   6919.078     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      267 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93425        403.90        .23105E-03   -.13236E-04
   2  Index         3.6868        8.0975        .13165E-01    .12847E-04
   3  Normalizat    .69879        .21453        .41580E-03    .36693E-04
   4  Prefactor     1.0958        .94556E-01    .15863E-03    .11169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.934245
  Index      = 3.68678
  Normalizat = 0.698789
  Prefactor  = 1.09578
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.078     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93425        17.193        .92420E-05   -1.5515    
   2  Index         3.6868        3.9527        .52662E-03   -.26576    
   3  Normalizat    .69879        .26908        .16632E-04   -1.0394    
   4  Prefactor     1.0958        .12429        .31726E-04   -.89601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26856e-11
Minuit parameter uncertainties:
  1  8.01787
  2  4.63235
  3  0.269594
  4  0.124325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627130': 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) = 6919.07775195
delta logL = 0.0501527687793

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  9.342e-01  8.018e+00  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.687e+00  4.632e+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.096e+00  1.243e-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:  6.988e-01  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/627130/cmap_HighResolution_564883201_565142401_4FGL_J1225.5-2851_daily_bin1256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.38e-08', time_completed='2021-09-05 14:55:54.701075', job_id='627130', GAL2='1.10', fit_tolerance='1e-08', EG2='0.70', EG='0.72', time_epoch_completed='1630878954.7', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.02e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1256' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 627130: <4FGL_J1225.5-2851_daily_bin1256> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1256> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:40:39 2021
Job was executed on host(s) <bullet0093>, 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:55:55 2021
Results reported at Sun Sep  5 14:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1256 186.392 -28.8625 564883201 565142401 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 :                                   739.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

