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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin889
RA = 194.945, Dec = -32.3898
tmin = 469756801, tmax = 470016001
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='86644', job_status='RUN', time_executed='2021-09-06 14:12:40.953991', time_epoch_executed='1630962760.95' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='889'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86644/ft1_4FGL_J1259.7-3223_daily_bin889.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86644/ft2_4FGL_J1259.7-3223_daily_bin889.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86644/ft1_4FGL_J1259.7-3223_daily_bin889.fits outfile=/scratch/kocevski/86644/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin889.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=469756801.0 tmax=470016001.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.45
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86644/ft1_filtered_4FGL_J1259.7-3223_daily_bin889.fits" evtable="EVENTS" scfile=/scratch/kocevski/86644/ft2_4FGL_J1259.7-3223_daily_bin889.fits sctable="SC_DATA" outfile=/scratch/kocevski/86644/ltcube_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.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/86644/ft2_4FGL_J1259.7-3223_daily_bin889.fits
.....................!
real 11.81
user 11.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86644/ft1_filtered_4FGL_J1259.7-3223_daily_bin889.fits evtable="EVENTS" scfile=/scratch/kocevski/86644/ft2_4FGL_J1259.7-3223_daily_bin889.fits sctable="SC_DATA" expcube=/scratch/kocevski/86644/ltcube_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.fits outfile=/scratch/kocevski/86644/expmap_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.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/86644/ltcube_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.fits
.....................!
real 191.32
user 186.31
sys 4.64

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/86644/ft1_filtered_4FGL_J1259.7-3223_daily_bin889.fits scfile=/scratch/kocevski/86644/ft2_4FGL_J1259.7-3223_daily_bin889.fits outfile=/scratch/kocevski/86644/cmap_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86644/ft1_filtered_4FGL_J1259.7-3223_daily_bin889.fits scfile=/scratch/kocevski/86644/ft2_4FGL_J1259.7-3223_daily_bin889.fits outfile=/scratch/kocevski/86644/cmap_HighResolution_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.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.56
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18039       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0782       1.0000         .10000E-03   10000.    
    10 'norm      '    20.023       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8756       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7578       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4853       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8147.871     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     1427 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8966        1.0135       -.18616E-07    .35804E-04
   2  Prefactor     .10000E-03    18.404       -.21983E-06** at limit **
   3  Prefactor     .10002E-03    362.52       -.29181E-04** at limit **
   4  norm          1.8618        1.2138       -.94949E-07    .47614E-05
   5  Prefactor     .10133E-03    20.537        .24474E-06** at limit **
   6  norm          .10000E-03    2.8561        .68280E-06** at limit **
   7  Prefactor     .10000E-03    2.9560       -.85236E-06** at limit **
   8  norm          1.2905        5.5088        .11568E-05   -.29550E-04
   9  Prefactor     2.0751        1.0785       -.91091E-08    .57680E-04
  10  norm          20.021        1.1352       -.27274E-07   -.20109E-03
  11  Prefactor     4.8745        5.8122       -.59905E-06   -.17874E-03
  12  norm          3.7577        2.6922       -.26222E-07    .23502E-05
  13  norm          .10000E-03    2.6156       -.35528E-06** at limit **
  14  Prefactor     .10010E-03    23.236       -.43306E-05** at limit **
  15  Prefactor     .10061E-03    40.314        .17864E-05** at limit **
  16  norm          .10000E-03    11.102        .94559E-06** at limit **
  17  norm          .10055E-03    21.827       -.30768E-05** at limit **
  18  norm          .10000E-03    4.1866        .14451E-05** at limit **
  19  Normalizat    1.4850        .32983        .12415E-05    .12122E-05
  20  Prefactor     .99091        .13097       -.39622E-06    .68946E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89665
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  norm       = 1.86181
  Prefactor  = 0.000101331
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.2905
  Prefactor  = 2.07508
  norm       = 20.0213
  Prefactor  = 4.87452
  norm       = 3.75765
  norm       = 0.0001
  Prefactor  = 0.000100097
  Prefactor  = 0.000100606
  norm       = 0.0001
  norm       = 0.000100546
  norm       = 0.0001
  Normalizat = 1.48503
  Prefactor  = 0.990913
 **********
 **   18 **HESSE 
 **********

 FCN=   8147.871     FROM HESSE     STATUS=OK           335 CALLS     1762 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8966        10.591        .51085E-02   -1.5313    
   2  Prefactor     .10000E-03    18.416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    19.729        .12582       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8618        1.2226        .76343E-02   -1.5435    
   5  Prefactor     .10133E-03    40.071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2905        5.5244        .97432E-02   -1.5481    
   9  Prefactor     2.0751        17.313        .71621E-02   -1.5420    
  10  norm          20.021        16.102        .22377E-02   -1.4813    
  11  Prefactor     4.8745        5.9969        .45543E-02   -1.5266    
  12  norm          3.7577        2.6951        .52068E-02   -1.5320    
  13  norm          .10000E-03    2.6048        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10010E-03    24.059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10061E-03    49.085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    11.101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10055E-03    29.905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4850        .27583        .87910E-01   -.78200    
  20  Prefactor     .99091        .10827        .46152E-01   -.93033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59348e-06
Minuit parameter uncertainties:
  1  10.5958
  2  0.000264938
  3  0.00131804
  4  1.22263
  5  0.0146141
  6  2.40667e-06
  7  1.92116e-06
  8  5.34076
  9  11.992
  10  16.1052
  11  5.99763
  12  2.69518
  13  7.28072e-07
  14  0.00305982
  15  0.0109159
  16  6.17272e-07
  17  0.00808717
  18  4.08345e-06
  19  0.27611
  20  0.108295
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.291e+00  5.341e+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:  9.909e-01  1.083e-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.485e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 194.945 -32.390
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86644/likelihoodResults_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.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) = 8147.82566165
delta logL = 0.0450587437626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8147.82507086
delta logL = 0.0456495344952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2654       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99270       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8147.825     FROM MIGRAD    STATUS=FAILED        95 CALLS      275 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2637        5.5204        .25831E-03   -.43571E-05
   2  alpha         2.8602        1.9546        .39287E-01    .20410E-03
   3  Normalizat    1.4740        .33032        .39043E-03   -.44259E-05
   4  Prefactor     .99280        .13045        .18306E-03   -.29809E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8147.825     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      357 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2637        5.5204        .21064E-03   -1.5483    
   2  alpha         2.8602        1.9546        .32687E-02    .14459    
   3  Normalizat    1.4740        .33032        .46221E-03   -.78511    
   4  Prefactor     .99280        .13045        .17898E-03   -.92970    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8147.825     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      388 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2637        4.2765        .10332E-04   -.66017E-05
   2  alpha         2.8602        1.6647        .78573E-02    .76896E-05
   3  Normalizat    1.4740        .33062        .15617E-04   -.43677E-05
   4  Prefactor     .99280        .13042        .73225E-05   -.31051E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26372
  alpha      = 2.86023
  Normalizat = 1.47401
  Prefactor  = 0.992799
 **********
 **   18 **HESSE 
 **********

 FCN=   8147.825     FROM HESSE     STATUS=OK            25 CALLS      413 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2637        4.1729        .20665E-05   -1.5483    
   2  alpha         2.8602        1.6313        .15715E-02    .14459    
   3  Normalizat    1.4740        .33097        .31235E-05   -.78511    
   4  Prefactor     .99280        .13056        .14645E-05   -.92970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41734e-13
Minuit parameter uncertainties:
  1  4.17386
  2  1.78132
  3  0.331459
  4  0.130599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86644': 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) = 8147.82506913
delta logL = 0.0456512666387

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.264e+00  4.174e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.860e+00  1.781e+00  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:  9.928e-01  1.306e-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.474e+00  3.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 194.945 -32.390

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/86644/cmap_HighResolution_469756801_470016001_4FGL_J1259.7-3223_daily_bin889.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-05', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-06 14:25:13.711858', job_id='86644', GAL2='0.99', fit_tolerance='1e-08', EG2='1.47', EG='1.49', time_epoch_completed='1630963513.71', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.57e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='889' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:25:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 86644: <4FGL_J1259.7-3223_daily_bin889> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin889> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:10:33 2021
Job was executed on host(s) <bullet0111>, 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:25:14 2021
Results reported at Mon Sep  6 14:25:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin889 194.945 -32.3898 469756801 470016001 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 :                                   752.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

