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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin739
RA = 194.945, Dec = -32.3898
tmin = 430876801, tmax = 431136001
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='85247', job_status='RUN', time_executed='2021-09-06 14:08:52.666654', time_epoch_executed='1630962532.67' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='739'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85247/ft1_4FGL_J1259.7-3223_daily_bin739.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85247/ft1_4FGL_J1259.7-3223_daily_bin739.fits outfile=/scratch/kocevski/85247/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin739.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=430876801.0 tmax=431136001.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.16
user 3.89
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits" evtable="EVENTS" scfile=/scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits sctable="SC_DATA" outfile=/scratch/kocevski/85247/ltcube_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.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/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits
.....................!
real 9.42
user 9.11
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits sctable="SC_DATA" expcube=/scratch/kocevski/85247/ltcube_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.fits outfile=/scratch/kocevski/85247/expmap_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.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/85247/ltcube_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.fits
.....................!
real 145.34
user 141.47
sys 3.58

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/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits scfile=/scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits outfile=/scratch/kocevski/85247/cmap_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.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.44
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits scfile=/scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits outfile=/scratch/kocevski/85247/cmap_HighResolution_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.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.45
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits evtable="EVENTS" scfile=/scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85247/Model_4FGL_J1259.7-3223_daily_bin739.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/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits.....................!
real 106.90
user 105.54
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits', '/scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits', expMap='/scratch/kocevski/85247/expmap_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.fits', expCube='/scratch/kocevski/85247/ltcube_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/85247/Model_4FGL_J1259.7-3223_daily_bin739.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/85247/ft1_filtered_4FGL_J1259.7-3223_daily_bin739.fits
Spacecraft file(s): /scratch/kocevski/85247/ft2_4FGL_J1259.7-3223_daily_bin739.fits
Exposure map: /scratch/kocevski/85247/expmap_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.fits
Exposure cube: /scratch/kocevski/85247/ltcube_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/85247/Model_4FGL_J1259.7-3223_daily_bin739.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) = 8250.70919576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.001       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .80355       1.0000         .10000E-03   10000.    
     5 'Prefactor '    85.873       1.0000         .10000E-03   10000.    
     6 'norm      '    .36662E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14783E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4411       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3379       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.293       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3436       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7038       1.0000         .10000E-03   10000.    
    18 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1386       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88404       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=   8250.688     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     2421 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5436        .18142E-02** at limit **
   2  Prefactor     40.990        29.694        .62602E-04    .18160E-05
   3  Prefactor     .10000E-03    22.174        .18142E-02** at limit **
   4  norm          .80347        .79812        .83802E-03    .88451E-03
   5  Prefactor     85.911        70.136        .21676E-03   -.24755E-04
   6  norm          .10004E-03    6.2250        .46598E-01** at limit **
   7  Prefactor     .10082E-03    5.0129        .50649E-01** at limit **
   8  norm          5.5620        4.4956        .16641E-03   -.37027E-04
   9  Prefactor     9.4403        7.8264        .13043E-03   -.17782E-04
  10  norm          3.3371        10.120        .22154E-03   -.21553E-04
  11  Prefactor     10.291        6.9197        .12489E-03   -.73732E-04
  12  norm          3.3440        2.4374        .11757E-03    .24368E-04
  13  norm          .10000E-03    1.2356        .98470E-03** at limit **
  14  Prefactor     .10000E-03    12.531        .18142E-02** at limit **
  15  Prefactor     .10000E-03    12.918        .18142E-02** at limit **
  16  norm          .10000E-03    14.878        .18142E-02** at limit **
  17  norm          5.6866        58.173        .16819E-03    .12573E-04
  18  norm          .10000E-03    18.728        .18142E-02** at limit **
  19  Normalizat    1.1384        .26686        .35606E-03   -.14158E-03
  20  Prefactor     .88416        .11161        .16574E-03    .35942E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.9898
  Prefactor  = 0.0001
  norm       = 0.803474
  Prefactor  = 85.9114
  norm       = 0.000100036
  Prefactor  = 0.000100823
  norm       = 5.56195
  Prefactor  = 9.44032
  norm       = 3.33713
  Prefactor  = 10.2911
  norm       = 3.34396
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.6866
  norm       = 0.0001
  Normalizat = 1.13836
  Prefactor  = 0.884164
 **********
 **   18 **HESSE 
 **********

 FCN=   8250.688     FROM HESSE     STATUS=OK           293 CALLS     2714 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.990        29.710        .25041E-05   -1.4427    
   3  Prefactor     .10000E-03    22.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .80347        .79769        .33521E-04   -1.5529    
   5  Prefactor     85.911        69.830        .86705E-05   -1.3852    
   6  norm          .10004E-03    5.1466        .52802E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10082E-03    4.7920        .52114E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5620        4.4955        .66565E-05   -1.5236    
   9  Prefactor     9.4403        7.8264        .52171E-05   -1.5093    
  10  norm          3.3371        10.119        .88615E-05   -1.5343    
  11  Prefactor     10.291        6.9194        .49957E-05   -1.5066    
  12  norm          3.3440        2.4375        .47027E-05   -1.5342    
  13  norm          .10000E-03    1.2357        .19694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.878        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6866        58.254        .67275E-05   -1.5231    
  18  norm          .10000E-03    18.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1384        .26710        .14242E-04   -.88530    
  20  Prefactor     .88416        .11172        .66298E-05   -.96697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65922e-10
Minuit parameter uncertainties:
  1  5.11693e-06
  2  29.7204
  3  4.25397e-05
  4  0.797702
  5  69.897
  6  0.000858483
  7  0.00397181
  8  4.49573
  9  7.82722
  10  10.1244
  11  6.91996
  12  2.43756
  13  8.49681e-07
  14  1.37261e-06
  15  2.27246e-05
  16  4.69575e-06
  17  36.447
  18  8.61054e-06
  19  0.267419
  20  0.111747
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  5.562e+00  4.496e+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:  8.842e-01  1.117e-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.138e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.27e-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) = 8250.62279768
delta logL = 0.0650361207245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8250.61115118
delta logL = 0.0766826291074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0471       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7072       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89070       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.

 FCN=   8250.611     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0440        61.622        .44746E-02    .30754E-03
   2  alpha         2.7088        3.8370        .41332        .61749E-04
   3  Normalizat    1.1079        .91176E-01    .81364E-01    .18422E-04
   4  Prefactor     .89075        .29636E-01    .44886E-01   -.13690E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.044
  alpha      = 2.70875
  Normalizat = 1.10787
  Prefactor  = 0.890748
 **********
 **   18 **HESSE 
 **********

 FCN=   8250.611     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0440        4.7363        .13547E-03   -1.5259    
   2  alpha         2.7088        .95931        .15618E-01    .83598E-01
   3  Normalizat    1.1079        .27639        .36020E-03   -.89500    
   4  Prefactor     .89075        .11147        .16516E-03   -.96465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80678e-11
Minuit parameter uncertainties:
  1  4.73662
  2  0.984758
  3  0.276755
  4  0.1115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85247': 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) = 8250.6111496
delta logL = 0.0766842023822

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  5.044e+00  4.737e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.709e+00  9.848e-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:  8.907e-01  1.115e-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.108e+00  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.60
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 2.71 +/- 0.98
Photon Flux (Free Index): 6.64e-08 +/- 7.03e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.22e-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/85247/cmap_HighResolution_430876801_431136001_4FGL_J1259.7-3223_daily_bin739.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='1.73e-05', photon_flux_error='3.50e-08', dlogl='7.67e-02', energy_flux='1.57e-05', photon_flux2='6.64e-08', job_status='DONE', time_completed='2021-09-06 14:19:01.728709', photon_index_error2='0.98', photon_index2='2.71', ts='4.43', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='1.14', time_epoch_completed='1630963141.73', return_code='0', job_id='85247', GAL2='0.89', EG2='1.11', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='7.03e-08', ts2='4.60', photon_index='2.32' WHERE bin_id='739' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:19:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 85247: <4FGL_J1259.7-3223_daily_bin739> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin739> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 14:05:57 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:05:59 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:05:59 2021
Terminated at Mon Sep  6 14:19:02 2021
Results reported at Mon Sep  6 14:19:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin739 194.945 -32.3898 430876801 431136001 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 :                                   605.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             310.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            785 sec.

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

