/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 174 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 = 7394
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1259.1-2311_daily_bin447
RA = 194.78, Dec = -23.1925
tmin = 355190401, tmax = 355449601
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='73193', job_status='RUN', time_executed='2021-09-06 13:34:55.782870', time_epoch_executed='1630960495.78' WHERE source_name='4FGL J1259.1-2311' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73193

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73193/ft1_4FGL_J1259.1-2311_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73193/ft2_4FGL_J1259.1-2311_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73193/ft1_4FGL_J1259.1-2311_daily_bin447.fits outfile=/scratch/kocevski/73193/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin447.fits ra=194.78 dec=-23.1925 rad=12.0 tmin=355190401.0 tmax=355449601.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.40
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/73193/ft2_4FGL_J1259.1-2311_daily_bin447.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/73193/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/73193/ft1_filtered_4FGL_J1259.1-2311_daily_bin447.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.52
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73193/ft1_filtered_4FGL_J1259.1-2311_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/73193/ft2_4FGL_J1259.1-2311_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/73193/ltcube_355190401_355449601_4FGL_J1259.1-2311_daily_bin447.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/73193/ft2_4FGL_J1259.1-2311_daily_bin447.fits
.....................!
real 11.97
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73193/ft1_filtered_4FGL_J1259.1-2311_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/73193/ft2_4FGL_J1259.1-2311_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/73193/ltcube_355190401_355449601_4FGL_J1259.1-2311_daily_bin447.fits outfile=/scratch/kocevski/73193/expmap_355190401_355449601_4FGL_J1259.1-2311_daily_bin447.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/73193/ltcube_355190401_355449601_4FGL_J1259.1-2311_daily_bin447.fits
.....................!
real 190.04
user 185.02
sys 4.49

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/73193/ft1_filtered_4FGL_J1259.1-2311_daily_bin447.fits scfile=/scratch/kocevski/73193/ft2_4FGL_J1259.1-2311_daily_bin447.fits outfile=/scratch/kocevski/73193/cmap_355190401_355449601_4FGL_J1259.1-2311_daily_bin447.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73193/ft1_filtered_4FGL_J1259.1-2311_daily_bin447.fits scfile=/scratch/kocevski/73193/ft2_4FGL_J1259.1-2311_daily_bin447.fits outfile=/scratch/kocevski/73193/cmap_HighResolution_355190401_355449601_4FGL_J1259.1-2311_daily_bin447.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.59
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/73193/ft1_filtered_4FGL_J1259.1-2311_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/73193/ft2_4FGL_J1259.1-2311_daily_bin447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/73193/Model_4FGL_J1259.1-2311_daily_bin447.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/73193/ft1_filtered_4FGL_J1259.1-2311_daily_bin447.fits.....................!
real 105.07
user 102.80
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0275       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .62718       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3978       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.0611       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    32.682       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8080       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12812E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.387       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5871       1.0000         .10000E-03   10000.    
    21 'norm      '    9.4094       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80382       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0876       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=   6296.107     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2202 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.930        .90712E-02** at limit **
   2  Prefactor     .10000E-03    26.098        .90712E-02** at limit **
   3  Prefactor     6.0276        13.578        .40886E-02   -.14384E-03
   4  Prefactor     .10000E-03    16.507        .90712E-02** at limit **
   5  Prefactor     .20591        23.419        .13415        .51360E-04
   6  Prefactor     9.3974        3.2739        .32682E-02   -.72861E-03
   7  Prefactor     .10000E-03    6.1369        .90712E-02** at limit **
   8  norm          7.0610        1.9855        .37741E-02   -.14939E-02
   9  Prefactor     .10001E-03    158.15        .90712E-02** at limit **
  10  norm          32.671        14.748        .17523E-02    .67850E-03
  11  norm          .10000E-03    4.9291        .90712E-02** at limit **
  12  Prefactor     5.8027        5.3894        .41662E-02    .10184E-03
  13  norm          .10000E-03    9.7049        .90712E-02** at limit **
  14  norm          .10000E-03    .66497        .90712E-02** at limit **
  15  norm          .10000E-03    2.0068        .90712E-02** at limit **
  16  Prefactor     .10000E-03    5.7615        .90712E-02** at limit **
  17  Prefactor     .10000E-03    17.330        .90712E-02** at limit **
  18  Prefactor     69.375        40.442        .12047E-02    .20005E-02
  19  Prefactor     1.8938        24.679        .75496E-02    .27683E-03
  20  Prefactor     8.5758        14.709        .34198E-02    .66972E-03
  21  norm          9.4076        19.195        .32662E-02    .39696E-03
  22  Normalizat    .80374        .30184        .10243       -.43554E-03
  23  Prefactor     1.0877        .13553        .38079E-01   -.12522E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 6.02755
  Prefactor  = 0.0001
  Prefactor  = 0.205914
  Prefactor  = 9.39744
  Prefactor  = 0.0001
  norm       = 7.06105
  Prefactor  = 0.00010001
  norm       = 32.6709
  norm       = 0.0001
  Prefactor  = 5.80274
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 69.3747
  Prefactor  = 1.89383
  Prefactor  = 8.57583
  norm       = 9.40755
  Normalizat = 0.803736
  Prefactor  = 1.08771
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.107     FROM HESSE     STATUS=OK           370 CALLS     2572 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0276        13.569        .16354E-03   -1.5217    
   4  Prefactor     .10000E-03    16.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20591        32.782        .10789       -1.5617    
   6  Prefactor     9.3974        3.2739        .82469E-04   -1.5095    
   7  Prefactor     .10000E-03    6.1444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0610        1.9834        .55627E-04   -1.5176    
   9  Prefactor     .10001E-03    158.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          32.671        14.749        .70092E-04   -1.4564    
  11  norm          .10000E-03    4.9821        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8027        5.3856        .16665E-03   -1.5226    
  13  norm          .10000E-03    10.048        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .66567        .63189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0094        .10977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.375        40.147        .48188E-04   -1.4040    
  19  Prefactor     1.8938        24.392        .30199E-03   -1.5433    
  20  Prefactor     8.5758        14.666        .13679E-03   -1.5122    
  21  norm          9.4076        19.182        .13065E-03   -1.5094    
  22  Normalizat    .80374        .33772        .45399E-03   -.99930    
  23  Prefactor     1.0877        .15392        .18089E-03   -.89860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34909e-08
Minuit parameter uncertainties:
  1  0.000721165
  2  0.000136107
  3  13.5764
  4  0.000178563
  5  5.19791
  6  3.27397
  7  5.10654e-05
  8  1.98341
  9  0.0025294
  10  14.7504
  11  4.0708e-05
  12  5.38607
  13  2.78727e-05
  14  1.06064e-05
  15  2.4972e-07
  16  9.23748e-05
  17  0.000216224
  18  40.163
  19  13.5997
  20  14.6722
  21  19.1949
  22  0.338611
  23  0.153987
Done.

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

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  5.803e+00  5.386e+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:  1.088e+00  1.540e-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:  8.037e-01  3.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 194.780 -23.192
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.34e-08 +/- 4.02e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.26e-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) = 6295.70863623
delta logL = 0.39880389165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6295.70465594
delta logL = 0.402784184233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5574       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3460       1.0000          .0000       10.000    
     3 'Normalizat'    .82096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0888       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=   6295.705     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5577        4.3507        .13566E-05   -.23386E-02
   2  Index         1.3460        .48364       -.86500E-05   -.34513E-03
   3  Normalizat    .82093        .29323        .74108E-06    .17206E-03
   4  Prefactor     1.0888        .13436       -.74092E-07    .35473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55769
  Index      = 1.34604
  Normalizat = 0.820928
  Prefactor  = 1.08884
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.705     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5577        6.3062        .17042E-03   -1.5236    
   2  Index         1.3460        .75366        .12677E-01   -.81948    
   3  Normalizat    .82093        .33061        .44982E-03   -.99297    
   4  Prefactor     1.0888        .15267        .18090E-03   -.89824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47871e-08
Minuit parameter uncertainties:
  1  6.30697
  2  0.759928
  3  0.33142
  4  0.152727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73193': 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) = 6295.70465591
delta logL = 0.402784219829

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  5.558e+00  6.307e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.346e+00  7.599e-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:  1.089e+00  1.527e-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:  8.209e-01  3.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.64
Ra Dec: 194.780 -23.192
Photon Index (Free Index): 1.35 +/- 0.76
Photon Flux (Free Index): 1.10e-08 +/- 1.80e-08
Energy Flux (Free Index): 5.78e-05 +/- 8.97e-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/73193/cmap_HighResolution_355190401_355449601_4FGL_J1259.1-2311_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.34e-08', energy_flux2='5.78e-05', photon_flux_error='4.02e-08', dlogl='4.03e-01', energy_flux='2.44e-05', photon_flux2='1.10e-08', job_status='DONE', time_completed='2021-09-06 13:45:51.946084', photon_index_error2='0.76', photon_index2='1.35', ts='5.83', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='8.97e-05', EG='0.80', time_epoch_completed='1630961151.95', return_code='0', job_id='73193', GAL2='1.09', EG2='0.82', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='1.80e-08', ts2='6.64', photon_index='2.09' WHERE bin_id='447' AND source_name='4FGL J1259.1-2311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 73193: <4FGL_J1259.1-2311_daily_bin447> in cluster <slac> Done

Job <4FGL_J1259.1-2311_daily_bin447> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 13:31:39 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:31:40 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:40 2021
Terminated at Mon Sep  6 13:45:52 2021
Results reported at Mon Sep  6 13:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.1-2311_daily_bin447 194.78 -23.1925 355190401 355449601 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 :                                   631.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            853 sec.

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

