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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin805
RA = 186.392, Dec = -28.8625
tmin = 447984001, tmax = 448243201
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='623402', job_status='RUN', time_executed='2021-09-05 14:31:46.429487', time_epoch_executed='1630877506.43' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623402/ft1_4FGL_J1225.5-2851_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623402/ft2_4FGL_J1225.5-2851_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623402/ft1_4FGL_J1225.5-2851_daily_bin805.fits outfile=/scratch/kocevski/623402/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin805.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=447984001.0 tmax=448243201.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.01
user 3.76
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623402/ft2_4FGL_J1225.5-2851_daily_bin805.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/623402/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin805.fits evtable="EVENTS" outfile="/scratch/kocevski/623402/ft1_filtered_4FGL_J1225.5-2851_daily_bin805.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.52
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623402/ft1_filtered_4FGL_J1225.5-2851_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/623402/ft2_4FGL_J1225.5-2851_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/623402/ltcube_447984001_448243201_4FGL_J1225.5-2851_daily_bin805.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/623402/ft2_4FGL_J1225.5-2851_daily_bin805.fits
.....................!
real 12.06
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623402/ft1_filtered_4FGL_J1225.5-2851_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/623402/ft2_4FGL_J1225.5-2851_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/623402/ltcube_447984001_448243201_4FGL_J1225.5-2851_daily_bin805.fits outfile=/scratch/kocevski/623402/expmap_447984001_448243201_4FGL_J1225.5-2851_daily_bin805.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/623402/ltcube_447984001_448243201_4FGL_J1225.5-2851_daily_bin805.fits
.....................!
real 190.19
user 185.23
sys 4.14

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/623402/ft1_filtered_4FGL_J1225.5-2851_daily_bin805.fits scfile=/scratch/kocevski/623402/ft2_4FGL_J1225.5-2851_daily_bin805.fits outfile=/scratch/kocevski/623402/cmap_447984001_448243201_4FGL_J1225.5-2851_daily_bin805.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623402/ft1_filtered_4FGL_J1225.5-2851_daily_bin805.fits scfile=/scratch/kocevski/623402/ft2_4FGL_J1225.5-2851_daily_bin805.fits outfile=/scratch/kocevski/623402/cmap_HighResolution_447984001_448243201_4FGL_J1225.5-2851_daily_bin805.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/623402/ft1_filtered_4FGL_J1225.5-2851_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/623402/ft2_4FGL_J1225.5-2851_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623402/Model_4FGL_J1225.5-2851_daily_bin805.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/623402/ft1_filtered_4FGL_J1225.5-2851_daily_bin805.fits.....................!
real 117.78
user 116.30
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9265       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.919       1.0000         .10000E-03   10000.    
     3 'norm      '    47.504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    15.119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12416E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.442       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21395E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    58.780       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6211       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.354       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1840       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85552       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=   6784.959     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2363 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9256        7.2575       -.10904E-05   -.25697E-03
   2  Prefactor     21.919        23.211        .74382E-06    .21227E-04
   3  norm          47.502        36.622       -.30145E-05    .20292E-04
   4  Prefactor     .10000E-03    8.9784       -.59087E-06** at limit **
   5  norm          15.120        6.6173        .10591E-05   -.52759E-04
   6  Prefactor     .10000E-03    3.9629       -.11055E-05** at limit **
   7  Prefactor     .10000E-03    54.809        .20053E-04** at limit **
   8  Prefactor     .10000E-03    8.0792        .50105E-06** at limit **
   9  Prefactor     10.433        30.942       -.11046E-04    .33401E-04
  10  Prefactor     .10003E-03    23.878        .34063E-05** at limit **
  11  Prefactor     58.735        53.044       -.47357E-04   -.48471E-04
  12  Prefactor     13.222        29.228       -.11322E-04    .25626E-04
  13  Prefactor     .10000E-03    3.5600       -.22372E-05** at limit **
  14  norm          3.6208        1.3426       -.10274E-06    .13682E-04
  15  Prefactor     .10000E-03    58.084       -.14989E-04** at limit **
  16  norm          .10000E-03    3.5208       -.23527E-05** at limit **
  17  Prefactor     .10000E-03    3.7789        .41348E-05** at limit **
  18  norm          .10000E-03    3.4323        .22365E-05** at limit **
  19  Prefactor     13.354        9.7610       -.91199E-06   -.50964E-03
  20  norm          .10000E-03    2.7997       -.64138E-06** at limit **
  21  Normalizat    1.1844        .25532        .62962E-05   -.83644E-04
  22  Prefactor     .85536        .10725        .11289E-05    .63377E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92562
  Prefactor  = 21.9193
  norm       = 47.5018
  Prefactor  = 0.0001
  norm       = 15.1203
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 10.4326
  Prefactor  = 0.000100032
  Prefactor  = 58.7347
  Prefactor  = 13.2218
  Prefactor  = 0.0001
  norm       = 3.62081
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3543
  norm       = 0.0001
  Normalizat = 1.18437
  Prefactor  = 0.855361
 **********
 **   18 **HESSE 
 **********

 FCN=   6784.959     FROM HESSE     STATUS=OK           342 CALLS     2705 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9256        7.2634        .20359E-03   -1.5312    
   2  Prefactor     21.919        23.194        .85554E-04   -1.4771    
   3  norm          47.502        36.635        .58177E-04   -1.4328    
   4  Prefactor     .10000E-03    8.9871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.120        6.6234        .10301E-03   -1.4930    
   6  Prefactor     .10000E-03    3.9972        .15984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    55.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.433        30.854        .12399E-03   -1.5062    
  10  Prefactor     .10003E-03    24.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     58.735        53.140        .26165E-03   -1.4174    
  12  Prefactor     13.222        29.215        .11012E-03   -1.4981    
  13  Prefactor     .10000E-03    3.5632        .15178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6208        1.3418        .55378E-04   -1.5327    
  15  Prefactor     .10000E-03    58.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.5654        .15093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.8331        .15615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4878        .14887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.354        9.7716        .54804E-03   -1.4977    
  20  norm          .10000E-03    2.8120        .13460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1844        .30397        .35341E-03   -.87087    
  22  Prefactor     .85536        .12816        .17842E-03   -.97719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08627e-09
Minuit parameter uncertainties:
  1  7.26505
  2  23.2031
  3  36.652
  4  5.50306e-05
  5  6.62369
  6  0.000111028
  7  0.000957471
  8  4.29774e-05
  9  30.9014
  10  0.00176062
  11  53.1829
  12  29.2462
  13  1.2369e-06
  14  1.34178
  15  0.000122915
  16  2.75447e-05
  17  3.47289e-05
  18  4.04424e-05
  19  9.77275
  20  1.06994e-05
  21  0.304423
  22  0.128202
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.322e+01  2.925e+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:  8.554e-01  1.282e-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.184e+00  3.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/623402/likelihoodResults_447984001_448243201_4FGL_J1225.5-2851_daily_bin805.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) = 6784.50696478
delta logL = 0.451740663697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6784.45444004
delta logL = 0.504265409982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0483       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8185       1.0000          .0000       10.000    
     3 'Normalizat'    1.1195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87310       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=   6784.454     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      263 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0334        74.465        .58095E-02    .53743E-03
   2  Index         3.8222        3.6050        .11963        .16893E-03
   3  Normalizat    1.1196        .78767E-01    .81762E-01    .27915E-05
   4  Prefactor     .87308        .33403E-01    .44661E-01   -.32062E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03342
  Index      = 3.8222
  Normalizat = 1.11955
  Prefactor  = 0.873079
 **********
 **   18 **HESSE 
 **********

 FCN=   6784.454     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0334        143.53        .13520E-03   -1.5360    
   2  Index         3.8222        6.8987        .65299E-02   -.23779    
   3  Normalizat    1.1196        .26477        .36198E-03   -.89126    
   4  Prefactor     .87308        .11648        .17671E-03   -.97088    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96156e-09
Minuit parameter uncertainties:
  1  41.8385
  2  6.96076
  3  0.265087
  4  0.116512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623402': 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) = 6784.45443493
delta logL = 0.504270515988

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.033e+00  4.184e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.822e+00  6.961e+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:  8.731e-01  1.165e-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.120e+00  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 3.82 +/- 6.96
Photon Flux (Free Index): 7.97e-08 +/- 7.82e-08
Energy Flux (Free Index): 1.23e-05 +/- 2.06e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='5.04e-01', photon_flux2='7.97e-08', job_status='DONE', time_completed='2021-09-05 14:44:05.110184', photon_index_error2='6.96', photon_index2='3.82', ts='0.24', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='2.06e-05', EG='1.18', time_epoch_completed='1630878245.11', return_code='0', job_id='623402', GAL2='0.87', EG2='1.12', return_code2='102', photon_flux_error2='7.82e-08', ts2='1.31', photon_index='2.43' WHERE bin_id='805' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:44:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 623402: <4FGL_J1225.5-2851_daily_bin805> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin805> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 14:30:25 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:30:26 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:26 2021
Terminated at Sun Sep  5 14:44:05 2021
Results reported at Sun Sep  5 14:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin805 186.392 -28.8625 447984001 448243201 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 :                                   736.40 sec.
    Max Memory :                                 1191 MB
    Average Memory :                             347.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

