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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1432
RA = 186.392, Dec = -28.8625
tmin = 610502401, tmax = 610761601
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='627385', job_status='RUN', time_executed='2021-09-05 14:41:15.377065', time_epoch_executed='1630878075.38' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627385

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627385/ft1_4FGL_J1225.5-2851_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627385/ft2_4FGL_J1225.5-2851_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627385/ft1_4FGL_J1225.5-2851_daily_bin1432.fits outfile=/scratch/kocevski/627385/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1432.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=610502401.0 tmax=610761601.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.68
user 3.38
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627385/ft1_filtered_4FGL_J1225.5-2851_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/627385/ft2_4FGL_J1225.5-2851_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/627385/ltcube_610502401_610761601_4FGL_J1225.5-2851_daily_bin1432.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/627385/ft2_4FGL_J1225.5-2851_daily_bin1432.fits
.....................!
real 14.45
user 13.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627385/ft1_filtered_4FGL_J1225.5-2851_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/627385/ft2_4FGL_J1225.5-2851_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/627385/ltcube_610502401_610761601_4FGL_J1225.5-2851_daily_bin1432.fits outfile=/scratch/kocevski/627385/expmap_610502401_610761601_4FGL_J1225.5-2851_daily_bin1432.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/627385/ltcube_610502401_610761601_4FGL_J1225.5-2851_daily_bin1432.fits
.....................!
real 190.51
user 185.25
sys 4.79

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 183 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1225.5-2851 @ 186.392 -28.8625

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/627385/ft1_filtered_4FGL_J1225.5-2851_daily_bin1432.fits scfile=/scratch/kocevski/627385/ft2_4FGL_J1225.5-2851_daily_bin1432.fits outfile=/scratch/kocevski/627385/cmap_610502401_610761601_4FGL_J1225.5-2851_daily_bin1432.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.53
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627385/ft1_filtered_4FGL_J1225.5-2851_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/627385/ft2_4FGL_J1225.5-2851_daily_bin1432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627385/Model_4FGL_J1225.5-2851_daily_bin1432.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/627385/ft1_filtered_4FGL_J1225.5-2851_daily_bin1432.fits.....................!
real 141.66
user 139.75
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48986E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    25.994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.239       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2938       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47481       1.0000         .10000E-03   10000.    
    14 'norm      '    .23678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    126.26       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .39059       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3703       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81870       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=   8462.369     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2438 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.7650        .20086E-05** at limit **
   2  Prefactor     .10000E-03    6.6400        .19538E-07** at limit **
   3  norm          25.992        17.875       -.88149E-07   -.15547E-03
   4  Prefactor     49.232        19.574       -.11299E-05   -.55431E-03
   5  norm          6.1175        5.0878        .15199E-05    .56524E-03
   6  Prefactor     .10000E-03    1.4723        .51278E-06** at limit **
   7  Prefactor     .10000E-03    31.405       -.95319E-06** at limit **
   8  Prefactor     3.2921        9.0960        .56585E-05    .41367E-03
   9  Prefactor     10.665        28.260        .15866E-05    .32347E-03
  10  Prefactor     .10000E-03    5.0938       -.34295E-07** at limit **
  11  Prefactor     .10000E-03    10.004        .31508E-07** at limit **
  12  Prefactor     .31174        12.224       -.45862E-05    .81985E-04
  13  Prefactor     .45413        6.5418       -.39265E-05    .46879E-04
  14  norm          .23672        .68462        .15599E-06   -.16951E-03
  15  Prefactor     126.25        67.732        .87352E-06   -.15272E-03
  16  norm          .10000E-03    2.1615       -.12872E-05** at limit **
  17  Prefactor     .10000E-03    1.2509       -.19366E-06** at limit **
  18  norm          .10000E-03    3.8726       -.64825E-07** at limit **
  19  Prefactor     .10000E-03    3.5696       -.52484E-08** at limit **
  20  norm          .32853        15.622        .86172E-05   -.45630E-03
  21  Normalizat    1.3705        .22171       -.11039E-05    .87661E-04
  22  Prefactor     .81867        .93530E-01    .19602E-06    .26776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 25.9915
  Prefactor  = 49.232
  norm       = 6.1175
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.29205
  Prefactor  = 10.6648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.311738
  Prefactor  = 0.454133
  norm       = 0.236723
  Prefactor  = 126.248
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.328528
  Normalizat = 1.37052
  Prefactor  = 0.818673
 **********
 **   18 **HESSE 
 **********

 FCN=   8462.369     FROM HESSE     STATUS=OK           346 CALLS     2784 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    20.041        .26410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          25.992        17.890        .78572E-04   -1.4688    
   4  Prefactor     49.232        19.841        .57148E-04   -1.4303    
   5  norm          6.1175        5.2652        .81158E-03   -1.5213    
   6  Prefactor     .10000E-03    1.4940        .10950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2921        9.8835        .11154E-02   -1.5345    
   9  Prefactor     10.665        28.654        .12271E-03   -1.5055    
  10  Prefactor     .10000E-03    5.0965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .31174        105.21        .55656E-02   -1.5596    
  13  Prefactor     .45413        34.256        .39869E-02   -1.5573    
  14  norm          .23672        .83970        .12170E-02   -1.5611    
  15  Prefactor     126.25        68.132        .17913E-03   -1.3456    
  16  norm          .10000E-03    4.9182        .25479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.2557        .10055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9241        .17660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5830        .16973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .32853        57.328        .43584E-02   -1.5593    
  21  Normalizat    1.3705        .26033        .32015E-03   -.81485    
  22  Prefactor     .81867        .11263        .17894E-03   -.99044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08427e-08
Minuit parameter uncertainties:
  1  0.000754917
  2  6.02496e-06
  3  17.8932
  4  19.8441
  5  5.26556
  6  4.67307e-05
  7  0.0007613
  8  9.88838
  9  28.6914
  10  1.28624e-05
  11  1.44119e-05
  12  11.4724
  13  7.89229
  14  0.839739
  15  68.1745
  16  0.000107647
  17  1.58132e-05
  18  2.08714e-05
  19  5.46757e-07
  20  8.6867
  21  0.260577
  22  0.112665
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.117e-01  1.147e+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.187e-01  1.127e-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.371e+00  2.606e-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: 8.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627385/likelihoodResults_610502401_610761601_4FGL_J1225.5-2851_daily_bin1432.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) = 8462.36865397
delta logL = 1.90859282156e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8462.3685931
delta logL = 6.10663155385e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31189       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3404       1.0000          .0000       10.000    
     3 'Normalizat'    1.3706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81865       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=   8462.369     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      275 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35569        119.02        .59911E-02    .31265E-03
   2  Index         2.3376        5.0538        .96560E-02    .92047E-05
   3  Normalizat    1.3706        .24996        .32014E-03    .25355E-04
   4  Prefactor     .81864        .11197        .17894E-03    .23123E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.355686
  Index      = 2.33762
  Normalizat = 1.37059
  Prefactor  = 0.818642
 **********
 **   18 **HESSE 
 **********

 FCN=   8462.369     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35569        106.65        .23964E-02   -1.5589    
   2  Index         2.3376        5.3330        .38624E-03   -.56152    
   3  Normalizat    1.3706        .25018        .12806E-04   -.81483    
   4  Prefactor     .81864        .11203        .35789E-04   -.99045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02003e-09
Minuit parameter uncertainties:
  1  12.3389
  2  7.83669
  3  0.250408
  4  0.112061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627385': 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) = 8462.36858688
delta logL = 6.72815003782e-05

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  3.557e-01  1.234e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  2.338e+00  7.837e+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.186e-01  1.121e-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.371e+00  2.504e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/627385/cmap_HighResolution_610502401_610761601_4FGL_J1225.5-2851_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-03', job_status='DONE', photon_flux_upper_limit='8.00e-08', time_completed='2021-09-05 14:56:07.732402', job_id='627385', GAL2='0.82', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630878967.73', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.73e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1432' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:56:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 627385: <4FGL_J1225.5-2851_daily_bin1432> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1432> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 14:41:00 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:41:01 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:41:01 2021
Terminated at Sun Sep  5 14:56:08 2021
Results reported at Sun Sep  5 14:56:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1432 186.392 -28.8625 610502401 610761601 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 :                                   870.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             344.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

