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


Performing analysis on: 4FGL_J1225.5-2851_daily_bin1030
RA = 186.392, Dec = -28.8625
tmin = 506304001, tmax = 506563201
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='625376', job_status='RUN', time_executed='2021-09-05 14:38:55.708254', time_epoch_executed='1630877935.71' WHERE source_name='4FGL J1225.5-2851' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625376

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625376/ft1_4FGL_J1225.5-2851_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625376/ft2_4FGL_J1225.5-2851_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625376/ft1_4FGL_J1225.5-2851_daily_bin1030.fits outfile=/scratch/kocevski/625376/ft1_filteredMKT_4FGL_J1225.5-2851_daily_bin1030.fits ra=186.392 dec=-28.8625 rad=12.0 tmin=506304001.0 tmax=506563201.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.49
user 3.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625376/ft1_filtered_4FGL_J1225.5-2851_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/625376/ft2_4FGL_J1225.5-2851_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/625376/ltcube_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.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/625376/ft2_4FGL_J1225.5-2851_daily_bin1030.fits
.....................!
real 11.99
user 11.48
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625376/ft1_filtered_4FGL_J1225.5-2851_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/625376/ft2_4FGL_J1225.5-2851_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/625376/ltcube_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.fits outfile=/scratch/kocevski/625376/expmap_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.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/625376/ltcube_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.fits
.....................!
real 195.10
user 187.96
sys 6.54

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/625376/ft1_filtered_4FGL_J1225.5-2851_daily_bin1030.fits scfile=/scratch/kocevski/625376/ft2_4FGL_J1225.5-2851_daily_bin1030.fits outfile=/scratch/kocevski/625376/cmap_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625376/ft1_filtered_4FGL_J1225.5-2851_daily_bin1030.fits scfile=/scratch/kocevski/625376/ft2_4FGL_J1225.5-2851_daily_bin1030.fits outfile=/scratch/kocevski/625376/cmap_HighResolution_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625376/ft1_filtered_4FGL_J1225.5-2851_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/625376/ft2_4FGL_J1225.5-2851_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625376/Model_4FGL_J1225.5-2851_daily_bin1030.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/625376/ft1_filtered_4FGL_J1225.5-2851_daily_bin1030.fits.....................!
real 120.41
user 118.48
sys 1.48

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13759E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13954E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18772E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.9365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0550       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.276       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.679       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.405       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8697       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1208       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6928       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    38.462       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3581       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93363       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=   6808.743     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2446 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1743        .16165E-06** at limit **
   2  Prefactor     .10000E-03    117.03        .31471E-05** at limit **
   3  norm          .10000E-03    166.11       -.49797E-05** at limit **
   4  Prefactor     .10000E-03    69.026        .81848E-06** at limit **
   5  norm          9.9445        6.9649       -.35764E-07   -.42065E-04
   6  Prefactor     5.0569        6.3226        .30048E-06    .38377E-04
   7  Prefactor     .10000E-03    30.074        .21333E-07** at limit **
   8  Prefactor     17.274        15.253        .10766E-06   -.73320E-05
   9  Prefactor     .10000E-03    23.996       -.70541E-07** at limit **
  10  Prefactor     19.677        18.994       -.36800E-07   -.37862E-05
  11  Prefactor     .10000E-03    30.437       -.63625E-07** at limit **
  12  Prefactor     54.396        39.964       -.13102E-06   -.28091E-04
  13  Prefactor     7.8689        13.057        .17835E-06   -.62194E-05
  14  norm          3.1209        1.5607        .55696E-06    .22567E-04
  15  Prefactor     .10000E-03    25.872        .29007E-06** at limit **
  16  norm          .10000E-03    2.9699       -.21605E-08** at limit **
  17  Prefactor     6.6937        5.8196       -.56695E-07   -.15171E-04
  18  norm          .10000E-03    2.8737       -.30428E-08** at limit **
  19  Prefactor     .10000E-03    9.9358        .30052E-07** at limit **
  20  norm          38.460        16.265        .91537E-07   -.12436E-04
  21  Normalizat    1.3579        .29484       -.87235E-06   -.14704E-04
  22  Prefactor     .93377        .12249       -.19898E-06   -.36252E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.94454
  Prefactor  = 5.05687
  Prefactor  = 0.0001
  Prefactor  = 17.274
  Prefactor  = 0.0001
  Prefactor  = 19.6768
  Prefactor  = 0.0001
  Prefactor  = 54.3959
  Prefactor  = 7.86895
  norm       = 3.12085
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.6937
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 38.4597
  Normalizat = 1.35787
  Prefactor  = 0.933774
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.743     FROM HESSE     STATUS=OK           342 CALLS     2788 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    121.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    173.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    69.893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.9445        6.9043        .12712E-03   -1.5077    
   6  Prefactor     5.0569        6.3128        .17884E-03   -1.5258    
   7  Prefactor     .10000E-03    30.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.274        15.260        .96360E-04   -1.4876    
   9  Prefactor     .10000E-03    24.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.677        18.990        .90288E-04   -1.4821    
  11  Prefactor     .10000E-03    30.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     54.396        40.082        .54381E-04   -1.4232    
  13  Prefactor     7.8689        13.054        .14293E-03   -1.5147    
  14  norm          3.1209        1.5652        .34635E-03   -1.5355    
  15  Prefactor     .10000E-03    26.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9842        .13874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.6937        5.8143        .15510E-03   -1.5190    
  18  norm          .10000E-03    2.8858        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          38.460        16.282        .64628E-04   -1.4467    
  21  Normalizat    1.3579        .35355        .38111E-03   -.81855    
  22  Prefactor     .93377        .14739        .19260E-03   -.94971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3598e-11
Minuit parameter uncertainties:
  1  5.71796e-06
  2  0.00120106
  3  0.00118468
  4  2.8065e-05
  5  6.90485
  6  6.3136
  7  1.37066e-05
  8  15.2639
  9  7.86232e-05
  10  18.9963
  11  5.64403e-05
  12  40.1022
  13  13.0588
  14  1.56519
  15  0.000149698
  16  1.25918e-06
  17  5.8148
  18  8.78186e-07
  19  6.44836e-06
  20  16.2834
  21  0.35419
  22  0.147457
Done.

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

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  5.440e+01  4.010e+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:  9.338e-01  1.475e-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.358e+00  3.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 186.392 -28.863
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 8.12e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 2.55e-05

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

Saving results to:
/scratch/kocevski/625376/likelihoodResults_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.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) = 6808.06304921
delta logL = 0.679610111963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6808.03254115
delta logL = 0.710118166273

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.294       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4077       1.0000          .0000       10.000    
     3 'Normalizat'    1.2422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97100       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=   6808.033     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      287 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.290        243.70        .99222E-04   -.15699E-02
   2  Index         3.4079        3.7251        .43266E-02   -.54738E-03
   3  Normalizat    1.2421        .42511        .39561E-03   -.27737E-03
   4  Prefactor     .97105        .18441        .18923E-03   -.69190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.29
  Index      = 3.40791
  Normalizat = 1.2421
  Prefactor  = 0.971048
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.033     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.290        33.046        .19844E-04   -1.4901    
   2  Index         3.4079        1.1083        .17306E-03   -.32406    
   3  Normalizat    1.2421        .36163        .15824E-04   -.85311    
   4  Prefactor     .97105        .15196        .37847E-04   -.93701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60048e-09
Minuit parameter uncertainties:
  1  33.0828
  2  1.11869
  3  0.362363
  4  0.152028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625376': 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) = 6808.03254105
delta logL = 0.710118275775

Extracting fit parameters...

4FGL J1225.5-2851
   Spectrum: PowerLaw
293    Prefactor:  1.629e+01  3.308e+01  1.000e-04  1.000e+04 ( 1.000e-13)
294        Index:  3.408e+00  1.119e+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:  9.710e-01  1.520e-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.242e+00  3.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 186.392 -28.863
Photon Index (Free Index): 3.41 +/- 1.12
Photon Flux (Free Index): 1.91e-07 +/- 1.20e-07
Energy Flux (Free Index): 3.26e-05 +/- 1.99e-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/625376/cmap_HighResolution_506304001_506563201_4FGL_J1225.5-2851_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.06e-02', comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.26e-05', photon_flux_error='8.12e-08', dlogl='7.10e-01', energy_flux='3.46e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2021-09-05 14:51:35.397755', photon_index_error2='1.12', photon_index2='3.41', ts='2.42', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.66e-07', energy_flux_error2='1.99e-05', EG='1.36', time_epoch_completed='1630878695.4', return_code='0', job_id='625376', GAL2='0.97', EG2='1.24', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='1.20e-07', ts2='4.02', photon_index='2.43' WHERE bin_id='1030' AND source_name='4FGL J1225.5-2851' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 625376: <4FGL_J1225.5-2851_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1225.5-2851_daily_bin1030> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 14:35:38 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 14:35:40 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:35:40 2021
Terminated at Sun Sep  5 14:51:36 2021
Results reported at Sun Sep  5 14:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.5-2851_daily_bin1030 186.392 -28.8625 506304001 506563201 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 :                                   751.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            958 sec.

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

