/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 38 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 = 7450
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1259.1-2311_daily_bin345
RA = 194.78, Dec = -23.1925
tmin = 328752001, tmax = 329011201
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='73011', job_status='RUN', time_executed='2021-09-06 13:32:50.872835', time_epoch_executed='1630960370.87' WHERE source_name='4FGL J1259.1-2311' and cadence='daily' and bin_id='345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73011/ft1_4FGL_J1259.1-2311_daily_bin345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73011/ft1_4FGL_J1259.1-2311_daily_bin345.fits outfile=/scratch/kocevski/73011/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin345.fits ra=194.78 dec=-23.1925 rad=12.0 tmin=328752001.0 tmax=329011201.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.64
user 3.36
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.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/73011/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin345.fits evtable="EVENTS" outfile="/scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.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.92
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits" evtable="EVENTS" scfile=/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits sctable="SC_DATA" outfile=/scratch/kocevski/73011/ltcube_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.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/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits
.....................!
real 19.26
user 18.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits sctable="SC_DATA" expcube=/scratch/kocevski/73011/ltcube_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.fits outfile=/scratch/kocevski/73011/expmap_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.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/73011/ltcube_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.fits
.....................!
real 196.12
user 188.81
sys 4.84

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 187 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 J1259.1-2311 @ 194.78 -23.1925

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits scfile=/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits outfile=/scratch/kocevski/73011/cmap_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.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=194.78 yref=-23.1925 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.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits scfile=/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits outfile=/scratch/kocevski/73011/cmap_HighResolution_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.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=194.78 yref=-23.1925 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.61
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits evtable="EVENTS" scfile=/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73011/Model_4FGL_J1259.1-2311_daily_bin345.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/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits.....................!
real 137.74
user 134.65
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits', '/scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits', expMap='/scratch/kocevski/73011/expmap_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.fits', expCube='/scratch/kocevski/73011/ltcube_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/73011/Model_4FGL_J1259.1-2311_daily_bin345.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1259.1-2311'

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  1.169e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/73011/ft1_filtered_4FGL_J1259.1-2311_daily_bin345.fits
Spacecraft file(s): /scratch/kocevski/73011/ft2_4FGL_J1259.1-2311_daily_bin345.fits
Exposure map: /scratch/kocevski/73011/expmap_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.fits
Exposure cube: /scratch/kocevski/73011/ltcube_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/73011/Model_4FGL_J1259.1-2311_daily_bin345.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) = 8284.90643004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13181E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9750       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12361E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2995       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.625       1.0000         .10000E-03   10000.    
    10 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0789       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.821       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6626       1.0000         .10000E-03   10000.    
    21 'norm      '    16.243       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97479       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8284.895     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2499 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.215       -.10372E-04** at limit **
   2  Prefactor     14.603        29.566       -.73011E-05    .38181E-04
   3  Prefactor     5.9381        20.220       -.20156E-04   -.12519E-03
   4  Prefactor     .10000E-03    28.915        .33915E-04** at limit **
   5  Prefactor     .10000E-03    23.301       -.24655E-04** at limit **
   6  Prefactor     5.7245        2.6218       -.43650E-07   -.12559E-04
   7  Prefactor     .10000E-03    4.1797        .41622E-07** at limit **
   8  norm          3.2995        1.1084       -.36088E-07    .32846E-04
   9  Prefactor     39.617        68.767       -.11488E-04   -.94808E-05
  10  norm          .10000E-03    11.926        .37766E-05** at limit **
  11  norm          10.439        5.5500        .76409E-06   -.79324E-04
  12  Prefactor     5.0787        3.7493        .14971E-05    .93148E-04
  13  norm          .10000E-03    2.4370       -.40697E-07** at limit **
  14  norm          .10000E-03    .86266       -.26900E-07** at limit **
  15  norm          .10000E-03    2.8298       -.37392E-07** at limit **
  16  Prefactor     .10000E-03    8.4940       -.21126E-05** at limit **
  17  Prefactor     .10000E-03    4.4779       -.10149E-06** at limit **
  18  Prefactor     .10000E-03    6.9796        .75459E-06** at limit **
  19  Prefactor     10.822        8.7302       -.28510E-06   -.51713E-04
  20  Prefactor     3.6640        7.0038       -.79244E-06   -.26310E-03
  21  norm          16.243        16.612       -.10752E-06   -.19259E-05
  22  Normalizat    .97492        .21503        .93763E-06    .31230E-04
  23  Prefactor     .97545        .10050        .65685E-06    .64045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 14.603
  Prefactor  = 5.93811
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.72452
  Prefactor  = 0.0001
  norm       = 3.29949
  Prefactor  = 39.6166
  norm       = 0.0001
  norm       = 10.4389
  Prefactor  = 5.07869
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8217
  Prefactor  = 3.66396
  norm       = 16.2435
  Normalizat = 0.97492
  Prefactor  = 0.975446
 **********
 **   18 **HESSE 
 **********

 FCN=   8284.895     FROM HESSE     STATUS=OK           366 CALLS     2865 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.603        29.532        .10479E-03   -1.4944    
   3  Prefactor     5.9381        20.402        .16427E-03   -1.5221    
   4  Prefactor     .10000E-03    29.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.7245        2.6220        .96924E-04   -1.5229    
   7  Prefactor     .10000E-03    4.1865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2995        1.1073        .53229E-04   -1.5345    
   9  Prefactor     39.617        68.756        .63676E-04   -1.4448    
  10  norm          .10000E-03    12.391        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.439        5.5459        .12401E-03   -1.5062    
  12  Prefactor     5.0787        3.7483        .14403E-03   -1.5257    
  13  norm          .10000E-03    2.4674        .13872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .87004        .82542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9026        .29900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.9862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.822        8.7322        .12179E-03   -1.5050    
  20  Prefactor     3.6640        6.9958        .21106E-03   -1.5325    
  21  norm          16.243        16.616        .99377E-04   -1.4902    
  22  Normalizat    .97492        .25347        .36811E-03   -.93875    
  23  Prefactor     .97545        .11923        .17321E-03   -.93553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64537e-10
Minuit parameter uncertainties:
  1  0.000677692
  2  29.5613
  3  20.426
  4  0.000436872
  5  0.000201952
  6  2.62207
  7  3.16799e-07
  8  1.10732
  9  68.894
  10  9.52603e-05
  11  5.54618
  12  3.74847
  13  6.53726e-06
  14  2.63919e-06
  15  6.70874e-06
  16  8.00789e-06
  17  2.18249e-06
  18  3.39765e-06
  19  8.73325
  20  6.99739
  21  16.6207
  22  0.253781
  23  0.11926
Done.

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

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  5.079e+00  3.748e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  9.754e-01  1.193e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  9.749e-01  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.12
Ra Dec: 194.780 -23.192
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.57e-05

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) = 8283.86083686
delta logL = 1.03367823697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8283.79770603
delta logL = 1.09680906691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9532       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3465       1.0000          .0000       10.000    
     3 'Normalizat'    .98864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97489       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8283.798     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      252 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9556        5.7697        .76072E-03    .15453E-04
   2  Index         1.3466        .49695        .99081E-02   -.56413E-04
   3  Normalizat    .98855        .25035        .36599E-03    .24229E-05
   4  Prefactor     .97492        .11883        .17335E-03    .44597E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.95555
  Index      = 1.34664
  Normalizat = 0.988552
  Prefactor  = 0.97492
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.798     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9556        5.8196        .30429E-04   -1.5180    
   2  Index         1.3466        .50130        .19816E-02   -.81931    
   3  Normalizat    .98855        .25055        .14639E-04   -.93415    
   4  Prefactor     .97492        .11893        .69339E-05   -.93570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9526e-13
Minuit parameter uncertainties:
  1  5.82005
  2  0.503117
  3  0.250847
  4  0.118963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73011': 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) = 8283.79770587
delta logL = 1.09680922654

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  6.956e+00  5.820e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.347e+00  5.031e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  9.749e-01  1.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  9.886e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.32
Ra Dec: 194.780 -23.192
Photon Index (Free Index): 1.35 +/- 0.50
Photon Flux (Free Index): 1.37e-08 +/- 1.54e-08
Energy Flux (Free Index): 7.23e-05 +/- 8.31e-05

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/73011/cmap_HighResolution_328752001_329011201_4FGL_J1259.1-2311_daily_bin345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='7.23e-05', photon_flux_error='2.80e-08', dlogl='1.10e+00', energy_flux='2.13e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-06 13:46:29.354135', photon_index_error2='0.50', photon_index2='1.35', ts='10.12', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='8.31e-05', EG='0.97', time_epoch_completed='1630961189.35', return_code='0', job_id='73011', GAL2='0.97', EG2='0.99', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='1.54e-08', ts2='12.32', photon_index='2.09' WHERE bin_id='345' AND source_name='4FGL J1259.1-2311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:46:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 73011: <4FGL_J1259.1-2311_daily_bin345> in cluster <slac> Done

Job <4FGL_J1259.1-2311_daily_bin345> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 13:31:25 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:31:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 13:31:27 2021
Terminated at Mon Sep  6 13:46:32 2021
Results reported at Mon Sep  6 13:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.1-2311_daily_bin345 194.78 -23.1925 328752001 329011201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1259.1-2311 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   808.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            907 sec.

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

