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


Performing analysis on: 4FGL_J1259.1-2311_daily_bin467
RA = 194.78, Dec = -23.1925
tmin = 360374401, tmax = 360633601
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='74159', job_status='RUN', time_executed='2021-09-06 13:38:21.459660', time_epoch_executed='1630960701.46' WHERE source_name='4FGL J1259.1-2311' and cadence='daily' and bin_id='467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/74159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/74159/ft1_4FGL_J1259.1-2311_daily_bin467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/74159/ft1_4FGL_J1259.1-2311_daily_bin467.fits outfile=/scratch/kocevski/74159/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin467.fits ra=194.78 dec=-23.1925 rad=12.0 tmin=360374401.0 tmax=360633601.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.50
user 3.21
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.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/74159/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin467.fits evtable="EVENTS" outfile="/scratch/kocevski/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.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.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits" evtable="EVENTS" scfile=/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits sctable="SC_DATA" outfile=/scratch/kocevski/74159/ltcube_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.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/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits
.....................!
real 19.22
user 18.73
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits sctable="SC_DATA" expcube=/scratch/kocevski/74159/ltcube_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.fits outfile=/scratch/kocevski/74159/expmap_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.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/74159/ltcube_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.fits
.....................!
real 197.20
user 190.11
sys 6.11

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/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits scfile=/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits outfile=/scratch/kocevski/74159/cmap_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.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.77
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits scfile=/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits outfile=/scratch/kocevski/74159/cmap_HighResolution_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.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.74
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/74159/Model_4FGL_J1259.1-2311_daily_bin467.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/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits.....................!
real 116.95
user 108.77
sys 2.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits', '/scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits', expMap='/scratch/kocevski/74159/expmap_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.fits', expCube='/scratch/kocevski/74159/ltcube_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/74159/Model_4FGL_J1259.1-2311_daily_bin467.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/74159/ft1_filtered_4FGL_J1259.1-2311_daily_bin467.fits
Spacecraft file(s): /scratch/kocevski/74159/ft2_4FGL_J1259.1-2311_daily_bin467.fits
Exposure map: /scratch/kocevski/74159/expmap_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.fits
Exposure cube: /scratch/kocevski/74159/ltcube_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/74159/Model_4FGL_J1259.1-2311_daily_bin467.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) = 6649.79722449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.039       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.049       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11582E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.074       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.326       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.876       1.0000         .10000E-03   10000.    
     8 'norm      '    5.1775       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    29.488       1.0000         .10000E-03   10000.    
    11 'norm      '    .10674E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1797       1.0000         .10000E-03   10000.    
    13 'norm      '    .16632E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7273       1.0000         .10000E-03   10000.    
    15 'norm      '    13.864       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9590       1.0000         .10000E-03   10000.    
    21 'norm      '    9.9662       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6438       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68170       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.

 FCN=   6649.790     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2539 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.039        85.627        .11825E-02   -.43670E-03
   2  Prefactor     32.046        53.826        .17695E-02    .89241E-03
   3  Prefactor     3.5374        19.579        .53615E-02   -.21047E-03
   4  Prefactor     .10000E-03    45.393        .90712E-02** at limit **
   5  Prefactor     11.071        30.905        .30098E-02    .25342E-03
   6  Prefactor     10.326        3.3452        .31172E-02   -.85165E-04
   7  Prefactor     14.869        17.012        .25961E-02   -.76413E-03
   8  norm          5.1769        1.6122        .44168E-02   -.21984E-03
   9  Prefactor     .10000E-03    129.83        .90712E-02** at limit **
  10  norm          29.487        11.824        .18445E-02    .85561E-03
  11  norm          .10000E-03    7.6375        .67830E-01** at limit **
  12  Prefactor     4.1851        8.7304        .49283E-02   -.35267E-03
  13  norm          .10000E-03    4.3186        .56937E-01** at limit **
  14  norm          3.7280        3.0275        .52288E-02    .17523E-03
  15  norm          13.864        7.9757        .26893E-02    .98579E-04
  16  Prefactor     7.6999        11.301        .36127E-02    .14374E-03
  17  Prefactor     .10000E-03    10.129        .90712E-02** at limit **
  18  Prefactor     .10000E-03    10.484        .90712E-02** at limit **
  19  Prefactor     .10000E-03    4.4472        .90712E-02** at limit **
  20  Prefactor     5.9610        10.133        .41124E-02   -.53861E-03
  21  norm          9.9658        14.932        .31732E-02   -.23252E-04
  22  Normalizat    1.6439        .27399        .74939E-01   -.48671E-04
  23  Prefactor     .68167        .11777        .42157E-01   -.62463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.039
  Prefactor  = 32.0464
  Prefactor  = 3.53738
  Prefactor  = 0.0001
  Prefactor  = 11.0708
  Prefactor  = 10.3261
  Prefactor  = 14.8687
  norm       = 5.1769
  Prefactor  = 0.0001
  norm       = 29.4868
  norm       = 0.0001
  Prefactor  = 4.18511
  norm       = 0.0001
  norm       = 3.72796
  norm       = 13.8644
  Prefactor  = 7.69985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.96105
  norm       = 9.9658
  Normalizat = 1.64389
  Prefactor  = 0.681674
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.790     FROM HESSE     STATUS=OK           372 CALLS     2911 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.039        85.497        .47300E-04   -1.4008    
   2  Prefactor     32.046        53.780        .70779E-04   -1.4575    
   3  Prefactor     3.5374        19.402        .21446E-03   -1.5332    
   4  Prefactor     .10000E-03    45.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.071        30.864        .12039E-03   -1.5042    
   6  Prefactor     10.326        3.3455        .82630E-04   -1.5065    
   7  Prefactor     14.869        17.039        .10384E-03   -1.4937    
   8  norm          5.1769        1.6110        .54798E-04   -1.5253    
   9  Prefactor     .10000E-03    129.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.487        11.823        .73780E-04   -1.4621    
  11  norm          .10000E-03    17.193        .35622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.1851        7.2996        .19713E-03   -1.5299    
  13  norm          .10000E-03    13.991        .32520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7280        3.0211        .12294E-03   -1.5322    
  15  norm          13.864        7.9606        .10757E-03   -1.4963    
  16  Prefactor     7.6999        11.297        .14451E-03   -1.5153    
  17  Prefactor     .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4601        .16794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9610        10.127        .16449E-03   -1.5220    
  21  norm          9.9658        14.931        .12693E-03   -1.5076    
  22  Normalizat    1.6439        .32299        .33158E-03   -.73811    
  23  Prefactor     .68167        .13832        .21234E-03   -1.0425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19503e-08
Minuit parameter uncertainties:
  1  85.6433
  2  53.8617
  3  16.5772
  4  0.000182378
  5  30.9083
  6  3.34556
  7  17.0449
  8  1.61103
  9  3.62725e-05
  10  11.8237
  11  2.63439e-05
  12  7.30117
  13  1.10932e-06
  14  3.02119
  15  7.96121
  16  11.2997
  17  9.96285e-05
  18  0.000113365
  19  1.69156e-05
  20  10.1294
  21  14.9362
  22  0.323406
  23  0.138387
Done.

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

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  4.185e+00  7.301e+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:  6.817e-01  1.384e-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:  1.644e+00  3.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 194.780 -23.192
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/74159/likelihoodResults_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.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) = 6648.34506415
delta logL = 1.44476003361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6648.28093301
delta logL = 1.50889117425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50189       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5691       1.0000          .0000       10.000    
     3 'Normalizat'    1.4983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71554       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.

 FCN=   6648.281     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      257 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50155        3.7583        .73657E-02    .13322E-02
   2  Index         3.5694        1.6169        .78388E-01    .24191E-03
   3  Normalizat    1.4983        .72606E-01    .77553E-01    .82836E-05
   4  Prefactor     .71549        .31478E-01    .42608E-01    .12403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.501549
  Index      = 3.56941
  Normalizat = 1.49832
  Prefactor  = 0.715493
 **********
 **   18 **HESSE 
 **********

 FCN=   6648.281     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50155        8.3589        .33169E-04   -1.5566    
   2  Index         3.5694        2.8105        .29433E-02   -.29017    
   3  Normalizat    1.4983        .31085        .34322E-03   -.77826    
   4  Prefactor     .71549        .13447        .20730E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73176e-07
Minuit parameter uncertainties:
  1  4.09535
  2  3.00341
  3  0.311242
  4  0.134526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/74159': 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) = 6648.28093282
delta logL = 1.50889136583

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  5.015e-01  4.095e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  3.569e+00  3.003e+00  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:  7.155e-01  1.345e-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:  1.498e+00  3.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.57
Ra Dec: 194.780 -23.192
Photon Index (Free Index): 3.57 +/- 3.00
Photon Flux (Free Index): 1.84e-07 +/- 1.25e-07
Energy Flux (Free Index): 3.01e-05 +/- 2.20e-05

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/74159/cmap_HighResolution_360374401_360633601_4FGL_J1259.1-2311_daily_bin467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='3.01e-05', dlogl='1.51e+00', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-06 13:51:32.976174', photon_index_error2='3.00', photon_index2='3.57', ts='0.42', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.20e-05', EG='1.64', time_epoch_completed='1630961492.98', return_code='0', job_id='74159', GAL2='0.72', EG2='1.50', return_code2='102', photon_flux_error2='1.25e-07', ts2='3.57', photon_index='2.09' WHERE bin_id='467' AND source_name='4FGL J1259.1-2311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:51:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 74159: <4FGL_J1259.1-2311_daily_bin467> in cluster <slac> Done

Job <4FGL_J1259.1-2311_daily_bin467> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 13:35:24 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:35:25 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:35:25 2021
Terminated at Mon Sep  6 13:51:33 2021
Results reported at Mon Sep  6 13:51:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.1-2311_daily_bin467 194.78 -23.1925 360374401 360633601 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 :                                   781.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

