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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin765
RA = 186.392, Dec = -28.8625
tmin = 437616001, tmax = 437875201
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='623308', job_status='RUN', time_executed='2021-09-05 14:33:29.915261', time_epoch_executed='1630877609.92' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623308/ft1_4FGL_J1225.5-2851_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623308/ft2_4FGL_J1225.5-2851_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623308/ft1_4FGL_J1225.5-2851_daily_bin765.fits outfile=/scratch/kocevski/623308/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin765.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=437616001.0 tmax=437875201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.60
user 5.29
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623308/ft1_filtered_4FGL_J1225.5-2851_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/623308/ft2_4FGL_J1225.5-2851_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/623308/ltcube_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.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/623308/ft2_4FGL_J1225.5-2851_daily_bin765.fits
.....................!
real 12.64
user 12.25
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623308/ft1_filtered_4FGL_J1225.5-2851_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/623308/ft2_4FGL_J1225.5-2851_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/623308/ltcube_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.fits outfile=/scratch/kocevski/623308/expmap_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.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/623308/ltcube_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.fits
.....................!
real 191.81
user 186.81
sys 4.45

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/623308/ft1_filtered_4FGL_J1225.5-2851_daily_bin765.fits scfile=/scratch/kocevski/623308/ft2_4FGL_J1225.5-2851_daily_bin765.fits outfile=/scratch/kocevski/623308/cmap_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623308/ft1_filtered_4FGL_J1225.5-2851_daily_bin765.fits scfile=/scratch/kocevski/623308/ft2_4FGL_J1225.5-2851_daily_bin765.fits outfile=/scratch/kocevski/623308/cmap_HighResolution_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    40.342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7883       1.0000         .10000E-03   10000.    
     5 'norm      '    13.836       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0844       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11894E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .23872E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.355       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.0280       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0978       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0058       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=   6903.123     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2377 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5385       -.35495E-07** at limit **
   2  Prefactor     .10000E-03    14.099       -.41640E-07** at limit **
   3  norm          40.340        30.538        .28795E-07    .21270E-06
   4  Prefactor     9.7843        35.069        .60316E-05   -.15081E-04
   5  norm          13.834        11.134       -.11352E-05    .14957E-05
   6  Prefactor     .10000E-03    5.6986       -.46611E-06** at limit **
   7  Prefactor     40.151        58.959       -.17562E-06    .38146E-04
   8  Prefactor     .10000E-03    6.1653        .45756E-07** at limit **
   9  Prefactor     66.171        47.982       -.11463E-06   -.23281E-04
  10  Prefactor     .10000E-03    22.546       -.14218E-05** at limit **
  11  Prefactor     31.408        55.795       -.37697E-06   -.40064E-04
  12  Prefactor     .10000E-03    38.964       -.22813E-06** at limit **
  13  Prefactor     .10000E-03    10.969        .60431E-07** at limit **
  14  norm          2.0847        1.2004        .29004E-07   -.16691E-04
  15  Prefactor     .10000E-03    199.46        .54686E-06** at limit **
  16  norm          .10000E-03    5.6883        .15037E-06** at limit **
  17  Prefactor     .10000E-03    3.4026        .78932E-07** at limit **
  18  norm          10.353        7.3794       -.11407E-07   -.33888E-04
  19  Prefactor     .10000E-03    19.280        .17474E-06** at limit **
  20  norm          2.0271        7.7315        .13235E-05   -.22844E-04
  21  Normalizat    1.0980        .27840       -.63048E-06   -.59391E-05
  22  Prefactor     1.0058        .11667        .12916E-07   -.40277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.3404
  Prefactor  = 9.78434
  norm       = 13.8338
  Prefactor  = 0.0001
  Prefactor  = 40.1512
  Prefactor  = 0.0001
  Prefactor  = 66.1709
  Prefactor  = 0.0001
  Prefactor  = 31.4078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08472
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3531
  Prefactor  = 0.0001
  norm       = 2.0271
  Normalizat = 1.09802
  Prefactor  = 1.0058
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.123     FROM HESSE     STATUS=OK           332 CALLS     2709 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5436        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          40.340        30.547        .63109E-04   -1.4437    
   4  Prefactor     9.7843        35.215        .64041E-03   -1.5082    
   5  norm          13.834        11.153        .10768E-03   -1.4964    
   6  Prefactor     .10000E-03    5.7455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.151        58.784        .63283E-04   -1.4440    
   8  Prefactor     .10000E-03    6.1766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     66.171        47.968        .49331E-04   -1.4079    
  10  Prefactor     .10000E-03    22.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.408        55.560        .71447E-04   -1.4587    
  12  Prefactor     .10000E-03    39.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0847        1.1977        .65740E-04   -1.5419    
  15  Prefactor     .10000E-03    200.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4491        .14960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.353        7.3651        .12451E-03   -1.5064    
  19  Prefactor     .10000E-03    19.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.0271        7.7186        .29052E-03   -1.5423    
  21  Normalizat    1.0980        .32609        .40390E-03   -.89816    
  22  Prefactor     1.0058        .13785        .18037E-03   -.92537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22709e-11
Minuit parameter uncertainties:
  1  1.3346e-06
  2  3.25178e-06
  3  30.5586
  4  35.2895
  5  11.1543
  6  1.31265e-06
  7  58.8693
  8  1.20453e-06
  9  47.9964
  10  3.55632e-05
  11  55.6521
  12  1.62912e-05
  13  2.93132e-06
  14  1.19772
  15  0.000194845
  16  6.70291e-07
  17  4.4118e-07
  18  7.3657
  19  3.10457e-06
  20  7.72241
  21  0.326687
  22  0.137901
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  1.629e-05  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.006e+00  1.379e-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.098e+00  3.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/623308/likelihoodResults_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.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) = 6903.12295472
delta logL = -0.000121268331895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6903.12283349
delta logL = -3.80769051844e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3659       1.0000          .0000       10.000    
     3 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0058       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=   6903.123     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6860.1        .90712E-02** at limit **
   2  Index         2.3742        8.7499        .50000       -.18106E-05
   3  Normalizat    1.0980        .86763E-01    .91188E-01    .18007E-03
   4  Prefactor     1.0058        .37449E-01    .44029E-01    .38775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.37419
  Normalizat = 1.09802
  Prefactor  = 1.0058
 **********
 **   18 **HESSE 
 **********

 FCN=   6903.123     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8286.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3742        6.7198        .50000       -.55291    
   3  Normalizat    1.0980        .22578        .40390E-03   -.89816    
   4  Prefactor     1.0058        .97804E-01    .18037E-03   -.92537    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.29354e-09
Minuit parameter uncertainties:
  1  0.00720932
  2  65.1805
  3  0.225977
  4  0.0978215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623308': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6903.12283347
delta logL = -2.09902282222e-08

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  7.209e-03  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.374e+00  6.518e+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.006e+00  9.782e-02  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.098e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/623308/cmap_HighResolution_437616001_437875201_4FGL_J1225.5-2851_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-05 14:45:53.875515', job_id='623308', GAL2='1.01', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630878353.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-2.10e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='765' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:45:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 623308: <4FGL_J1225.5-2851_daily_bin765> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin765> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 14:30:20 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:30:21 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:30:21 2021
Terminated at Sun Sep  5 14:45:54 2021
Results reported at Sun Sep  5 14:45:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin765 186.392 -28.8625 437616001 437875201 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 :                                   741.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

