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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1577
RA = 186.392, Dec = -28.8625
tmin = 648086401, tmax = 648345601
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='628886', job_status='RUN', time_executed='2021-09-05 14:47:02.995890', time_epoch_executed='1630878423.0' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628886/ft1_4FGL_J1225.5-2851_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628886/ft2_4FGL_J1225.5-2851_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628886/ft1_4FGL_J1225.5-2851_daily_bin1577.fits outfile=/scratch/kocevski/628886/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1577.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=648086401.0 tmax=648345601.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.22
user 3.98
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628886/ft1_filtered_4FGL_J1225.5-2851_daily_bin1577.fits" evtable="EVENTS" scfile=/scratch/kocevski/628886/ft2_4FGL_J1225.5-2851_daily_bin1577.fits sctable="SC_DATA" outfile=/scratch/kocevski/628886/ltcube_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.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/628886/ft2_4FGL_J1225.5-2851_daily_bin1577.fits
.....................!
real 12.22
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628886/ft1_filtered_4FGL_J1225.5-2851_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/628886/ft2_4FGL_J1225.5-2851_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/628886/ltcube_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.fits outfile=/scratch/kocevski/628886/expmap_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.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/628886/ltcube_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.fits
.....................!
real 195.85
user 189.80
sys 5.41

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/628886/ft1_filtered_4FGL_J1225.5-2851_daily_bin1577.fits scfile=/scratch/kocevski/628886/ft2_4FGL_J1225.5-2851_daily_bin1577.fits outfile=/scratch/kocevski/628886/cmap_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628886/ft1_filtered_4FGL_J1225.5-2851_daily_bin1577.fits scfile=/scratch/kocevski/628886/ft2_4FGL_J1225.5-2851_daily_bin1577.fits outfile=/scratch/kocevski/628886/cmap_HighResolution_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628886/ft1_filtered_4FGL_J1225.5-2851_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/628886/ft2_4FGL_J1225.5-2851_daily_bin1577.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628886/Model_4FGL_J1225.5-2851_daily_bin1577.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/628886/ft1_filtered_4FGL_J1225.5-2851_daily_bin1577.fits....................!
real 106.95
user 105.49
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4414       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    32.453       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7424       1.0000         .10000E-03   10000.    
     5 'norm      '    .68542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18780E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    140.49       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7755       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0460       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65958E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3856       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7329       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8709       1.0000         .10000E-03   10000.    
    20 'norm      '    12.412       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3958       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85928       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=   6098.461     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2426 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4471        7.7445        .14638E-05    .11220E-03
   2  Prefactor     .10000E-03    15.526        .86422E-06** at limit **
   3  norm          32.432        29.131        .22402E-05    .93069E-04
   4  Prefactor     3.7408        19.238        .34508E-05    .15992E-03
   5  norm          .68521        5.1892       -.10978E-05    .19815E-03
   6  Prefactor     .10000E-03    23.544        .16153E-04** at limit **
   7  Prefactor     .10000E-03    20.136        .18032E-06** at limit **
   8  Prefactor     .10000E-03    8.0247       -.10919E-06** at limit **
   9  Prefactor     140.52        55.376        .20899E-05   -.17487E-03
  10  Prefactor     .10000E-03    17.476        .13666E-05** at limit **
  11  Prefactor     .10000E-03    38.097        .29781E-05** at limit **
  12  Prefactor     .10000E-03    13.830       -.13259E-05** at limit **
  13  Prefactor     9.7691        16.656        .19268E-06    .46443E-04
  14  norm          1.0459        .80362       -.36222E-07   -.13034E-03
  15  Prefactor     .10000E-03    31.013       -.22164E-05** at limit **
  16  norm          .10000E-03    4.4661        .29010E-05** at limit **
  17  Prefactor     6.3928        6.4631       -.16385E-06    .91108E-04
  18  norm          7.7312        7.4738       -.13934E-06    .89578E-04
  19  Prefactor     8.8682        11.326       -.17851E-06    .29368E-04
  20  norm          12.411        10.825       -.84363E-07    .35622E-04
  21  Normalizat    1.3954        .29086       -.16254E-05   -.40852E-04
  22  Prefactor     .85950        .12218        .17534E-05    .44745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.44709
  Prefactor  = 0.0001
  norm       = 32.4318
  Prefactor  = 3.74082
  norm       = 0.685212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 140.52
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.76909
  norm       = 1.04588
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 6.39279
  norm       = 7.73121
  Prefactor  = 8.86823
  norm       = 12.4106
  Normalizat = 1.39543
  Prefactor  = 0.859502
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.461     FROM HESSE     STATUS=OK           344 CALLS     2770 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4471        7.7449        .21803E-03   -1.5337    
   2  Prefactor     .10000E-03    15.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          32.432        29.200        .70338E-04   -1.4568    
   4  Prefactor     3.7408        18.036        .20871E-03   -1.5321    
   5  norm          .68521        4.7537        .29641E-03   -1.5542    
   6  Prefactor     .10000E-03    24.183        .36173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     140.52        54.045        .16994E-03   -1.3332    
  10  Prefactor     .10000E-03    17.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.7691        16.678        .12817E-03   -1.5083    
  14  norm          1.0459        .78766        .59517E-04   -1.5503    
  15  Prefactor     .10000E-03    31.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.076        .26599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.3928        5.7806        .15883E-03   -1.5202    
  18  norm          7.7312        7.4672        .14420E-03   -1.5152    
  19  Prefactor     8.8682        11.327        .13458E-03   -1.5112    
  20  norm          12.411        10.818        .11370E-03   -1.5003    
  21  Normalizat    1.3954        .35084        .35129E-03   -.80761    
  22  Prefactor     .85950        .14834        .18871E-03   -.97571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2786e-09
Minuit parameter uncertainties:
  1  7.74715
  2  4.23377e-05
  3  29.2133
  4  16.4357
  5  3.60974
  6  0.000217532
  7  3.31359e-05
  8  3.77022e-05
  9  54.0642
  10  2.20795e-05
  11  4.54056e-05
  12  4.37285e-05
  13  16.6863
  14  0.78767
  15  0.000146711
  16  0.000492815
  17  5.78111
  18  7.46807
  19  11.3301
  20  10.8198
  21  0.351449
  22  0.148405
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.000e-04  4.373e-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:  8.595e-01  1.484e-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.395e+00  3.514e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628886/likelihoodResults_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.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) = 6098.46153941
delta logL = -0.00034387746382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6098.46119595
delta logL = -4.21917320637e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4105       1.0000          .0000       10.000    
     3 'Normalizat'    1.3957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85938       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=   6098.461     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      239 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10208E-03    147.04        .18142E-02** at limit **
   2  Index         2.3391        6.1499        .50000        .11589E-04
   3  Normalizat    1.3954        .22443E-01    .35129E-03    .15923E-04
   4  Prefactor     .85950        .97983E-02    .18871E-03    .27411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102077
  Index      = 2.33905
  Normalizat = 1.39544
  Prefactor  = 0.859498
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.461     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10208E-03    605.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3391        5.0391        .50000       -.56118    
   3  Normalizat    1.3954        .47558E-01    .14052E-04   -.80761    
   4  Prefactor     .85950        .20764E-01    .75483E-05   -.97571    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30737e-08
Minuit parameter uncertainties:
  1  0.0716377
  2  877.797
  3  0.0475596
  4  0.0207638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628886': 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) = 6098.46119531
delta logL = 2.19029061554e-07

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.021e-04  7.164e-02  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.339e+00  8.778e+02  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.595e-01  2.076e-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.395e+00  4.756e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/628886/cmap_HighResolution_648086401_648345601_4FGL_J1225.5-2851_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-05 14:58:55.066485', job_id='628886', GAL2='0.86', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630879135.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1577' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:58:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 628886: <4FGL_J1225.5-2851_daily_bin1577> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1577> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 14:45:27 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:45:29 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:45:29 2021
Terminated at Sun Sep  5 14:58:55 2021
Results reported at Sun Sep  5 14:58:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1577 186.392 -28.8625 648086401 648345601 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 :                                   706.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            808 sec.

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

