/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 188 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1259.7-3223_daily_bin886
RA = 194.945, Dec = -32.3898
tmin = 468979201, tmax = 469238401
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='86638', job_status='RUN', time_executed='2021-09-06 14:13:54.194579', time_epoch_executed='1630962834.19' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86638/ft1_4FGL_J1259.7-3223_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86638/ft1_4FGL_J1259.7-3223_daily_bin886.fits outfile=/scratch/kocevski/86638/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin886.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=468979201.0 tmax=469238401.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.38
user 3.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.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/86638/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin886.fits evtable="EVENTS" outfile="/scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/86638/ltcube_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.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/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits
.....................!
real 11.71
user 11.39
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/86638/ltcube_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.fits outfile=/scratch/kocevski/86638/expmap_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.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/86638/ltcube_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.fits
.....................!
real 190.35
user 185.20
sys 4.79

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 192 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.7-3223 @ 194.945 -32.3898

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits scfile=/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits outfile=/scratch/kocevski/86638/cmap_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.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.945 yref=-32.3898 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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits scfile=/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits outfile=/scratch/kocevski/86638/cmap_HighResolution_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.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.945 yref=-32.3898 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86638/Model_4FGL_J1259.7-3223_daily_bin886.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/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits.....................!
real 154.02
user 152.58
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits', '/scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits', expMap='/scratch/kocevski/86638/expmap_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.fits', expCube='/scratch/kocevski/86638/ltcube_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/86638/Model_4FGL_J1259.7-3223_daily_bin886.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1259.7-3223'

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.897e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/86638/ft1_filtered_4FGL_J1259.7-3223_daily_bin886.fits
Spacecraft file(s): /scratch/kocevski/86638/ft2_4FGL_J1259.7-3223_daily_bin886.fits
Exposure map: /scratch/kocevski/86638/expmap_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.fits
Exposure cube: /scratch/kocevski/86638/ltcube_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/86638/Model_4FGL_J1259.7-3223_daily_bin886.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) = 9032.06151575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.564       1.0000         .10000E-03   10000.    
     4 'norm      '    .67785       1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.822       1.0000         .10000E-03   10000.    
     6 'norm      '    .14256E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.543       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .51419E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8134       1.0000         .10000E-03   10000.    
    12 'norm      '    .16537E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.137       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3581       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0312       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9032.052     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     2105 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7095        .56999E-07** at limit **
   2  Prefactor     .10000E-03    41.565        .57410E-06** at limit **
   3  Prefactor     19.561        19.328        .42817E-07    .18331E-04
   4  norm          .67667        .87823       -.42299E-06   -.11854E-02
   5  Prefactor     38.700        66.700        .13404E-05    .18576E-04
   6  norm          .10000E-03    3.6890       -.41652E-05** at limit **
   7  Prefactor     .10000E-03    2.3947       -.13348E-05** at limit **
   8  norm          11.543        6.8844       -.28938E-07    .30564E-04
   9  Prefactor     .10000E-03    7.5378        .10154E-06** at limit **
  10  norm          .10001E-03    9.1047       -.15841E-06** at limit **
  11  Prefactor     3.8068        7.7393        .54208E-06    .52525E-04
  12  norm          .10010E-03    1.2343       -.73092E-06** at limit **
  13  norm          11.214        7.1811       -.52837E-07    .12449E-04
  14  Prefactor     .10000E-03    6.9321        .98021E-07** at limit **
  15  Prefactor     .10000E-03    38.717        .74874E-07** at limit **
  16  norm          26.134        35.266        .16582E-06   -.24571E-05
  17  norm          .10000E-03    9.6250        .99308E-07** at limit **
  18  norm          .10000E-03    5.1651        .57570E-07** at limit **
  19  Normalizat    1.3582        .26433        .14093E-05    .14047E-03
  20  Prefactor     1.0312        .10565       -.35261E-06    .42839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.561
  norm       = 0.676669
  Prefactor  = 38.6996
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5426
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 3.8068
  norm       = 0.000100097
  norm       = 11.214
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.1343
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.35817
  Prefactor  = 1.03123
 **********
 **   18 **HESSE 
 **********

 FCN=   9032.052     FROM HESSE     STATUS=OK           301 CALLS     2406 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7140        .17876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.561        19.333        .90551E-04   -1.4823    
   4  norm          .67667        .78738        .99288E-03   -1.5543    
   5  Prefactor     38.700        66.874        .32164E-03   -1.4463    
   6  norm          .10000E-03    3.6046        .34712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3923        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.543        6.8842        .11791E-03   -1.5028    
   9  Prefactor     .10000E-03    7.6461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    70.787        .51231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8068        7.1461        .20669E-03   -1.5318    
  12  norm          .10010E-03    .99556        .35719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.214        7.1817        .11963E-03   -1.5038    
  14  Prefactor     .10000E-03    6.9646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.134        35.270        .78357E-04   -1.4685    
  17  norm          .10000E-03    9.6247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.1696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3582        .31475        .39668E-03   -.81846    
  20  Prefactor     1.0312        .12664        .17962E-03   -.91696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11981e-09
Minuit parameter uncertainties:
  1  5.25205e-07
  2  6.12689e-05
  3  19.3396
  4  0.787389
  5  67.0044
  6  2.59227e-05
  7  3.62205e-06
  8  6.88466
  9  1.78465e-05
  10  0.00164495
  11  7.1477
  12  0.000621246
  13  7.18223
  14  5.38247e-06
  15  5.17619e-05
  16  35.2976
  17  2.0892e-05
  18  2.30041e-07
  19  0.3152
  20  0.126673
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.154e+01  6.885e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.031e+00  1.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.358e+00  3.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.41
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 5.36e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.94e-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) = 9032.04839136
delta logL = 0.00373136943745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9032.04779225
delta logL = 0.00433048129889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.352       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3731       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0322       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+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=   9032.048     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.352        7.1972        .11890E-03    .26217E-03
   2  alpha         2.3732        .53771        .15115E-01    .63752E-04
   3  Normalizat    1.3533        .31470        .39725E-03    .22895E-05
   4  Prefactor     1.0322        .12553        .17953E-03   -.19884E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.3518
  alpha      = 2.37315
  Normalizat = 1.35333
  Prefactor  = 1.03224
 **********
 **   18 **HESSE 
 **********

 FCN=   9032.048     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.352        7.0624        .47561E-05   -1.5034    
   2  alpha         2.3732        .52719        .60458E-03   -.50761E-01
   3  Normalizat    1.3533        .31477        .15890E-04   -.81988    
   4  Prefactor     1.0322        .12558        .71813E-05   -.91663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1939e-10
Minuit parameter uncertainties:
  1  7.06292
  2  0.531186
  3  0.315223
  4  0.12562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86638': 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) = 9032.04779222
delta logL = 0.00433051074469

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.135e+01  7.063e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.373e+00  5.312e-01  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  1.032e+00  1.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
633        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
634        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
631   Normalization:  1.353e+00  3.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 2.37 +/- 0.53
Photon Flux (Free Index): 9.42e-08 +/- 7.15e-08
Energy Flux (Free Index): 3.24e-05 +/- 1.91e-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/86638/cmap_HighResolution_468979201_469238401_4FGL_J1259.7-3223_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='3.24e-05', photon_flux_error='5.36e-08', dlogl='4.33e-03', energy_flux='3.26e-05', photon_flux2='9.42e-08', job_status='DONE', time_completed='2021-09-06 14:27:10.237372', photon_index_error2='0.53', photon_index2='2.37', ts='5.41', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.91e-05', EG='1.36', time_epoch_completed='1630963630.24', return_code='0', job_id='86638', GAL2='1.03', EG2='1.35', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='7.15e-08', ts2='5.42', photon_index='2.32' WHERE bin_id='886' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:27:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 86638: <4FGL_J1259.7-3223_daily_bin886> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin886> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:10:32 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:10:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 14:10:34 2021
Terminated at Mon Sep  6 14:27:11 2021
Results reported at Mon Sep  6 14:27:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin886 194.945 -32.3898 468979201 469238401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1259.7-3223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   792.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

