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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin218
RA = 194.945, Dec = -32.3898
tmin = 295833601, tmax = 296092801
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='81310', job_status='RUN', time_executed='2021-09-06 13:58:41.629299', time_epoch_executed='1630961921.63' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81310/ft1_4FGL_J1259.7-3223_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81310/ft2_4FGL_J1259.7-3223_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81310/ft1_4FGL_J1259.7-3223_daily_bin218.fits outfile=/scratch/kocevski/81310/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin218.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=295833601.0 tmax=296092801.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 2.37
user 2.18
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81310/ft1_filtered_4FGL_J1259.7-3223_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/81310/ft2_4FGL_J1259.7-3223_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/81310/ltcube_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.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/81310/ft2_4FGL_J1259.7-3223_daily_bin218.fits
.....................!
real 11.99
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81310/ft1_filtered_4FGL_J1259.7-3223_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/81310/ft2_4FGL_J1259.7-3223_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/81310/ltcube_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.fits outfile=/scratch/kocevski/81310/expmap_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.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/81310/ltcube_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.fits
.....................!
real 191.68
user 185.86
sys 5.34

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/81310/ft1_filtered_4FGL_J1259.7-3223_daily_bin218.fits scfile=/scratch/kocevski/81310/ft2_4FGL_J1259.7-3223_daily_bin218.fits outfile=/scratch/kocevski/81310/cmap_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81310/ft1_filtered_4FGL_J1259.7-3223_daily_bin218.fits scfile=/scratch/kocevski/81310/ft2_4FGL_J1259.7-3223_daily_bin218.fits outfile=/scratch/kocevski/81310/cmap_HighResolution_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/81310/ft1_filtered_4FGL_J1259.7-3223_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/81310/ft2_4FGL_J1259.7-3223_daily_bin218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/81310/Model_4FGL_J1259.7-3223_daily_bin218.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/81310/ft1_filtered_4FGL_J1259.7-3223_daily_bin218.fits.....................!
real 143.31
user 141.63
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.728       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.073       1.0000         .10000E-03   10000.    
     4 'norm      '    .15132       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.5794       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.703       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5504       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.629       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    2.0594       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .60193       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=   8323.872     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2023 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8430        13.268       -.67336E-06   -.22819E-04
   2  Prefactor     41.731        40.826        .28438E-05    .20260E-04
   3  Prefactor     25.072        22.857       -.15459E-05    .42785E-04
   4  norm          .15094        .59294       -.88283E-06   -.11203E-02
   5  Prefactor     .10000E-03    42.643        .13880E-05** at limit **
   6  norm          4.5786        4.7117        .69318E-08   -.15087E-03
   7  Prefactor     .10000E-03    2.7315       -.10454E-06** at limit **
   8  norm          .10000E-03    1.1901       -.41384E-07** at limit **
   9  Prefactor     .10000E-03    4.7279        .10265E-05** at limit **
  10  norm          13.702        12.407        .21587E-06    .11987E-04
  11  Prefactor     2.5501        5.5175       -.12357E-05   -.63396E-03
  12  norm          .10000E-03    .53606       -.50332E-07** at limit **
  13  norm          .10000E-03    2.7782       -.70189E-07** at limit **
  14  Prefactor     .10000E-03    4.7988       -.12060E-05** at limit **
  15  Prefactor     28.581        53.265       -.77826E-04    .80221E-05
  16  norm          .10000E-03    8.0020        .19045E-07** at limit **
  17  norm          .10000E-03    13.565       -.34357E-07** at limit **
  18  norm          .10000E-03    5.4410        .11232E-06** at limit **
  19  Normalizat    2.0591        .24994        .13206E-05    .23088E-03
  20  Prefactor     .60206        .94736E-01    .19350E-05    .23177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.84296
  Prefactor  = 41.7307
  Prefactor  = 25.072
  norm       = 0.150936
  Prefactor  = 0.0001
  norm       = 4.57862
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7021
  Prefactor  = 2.55012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5811
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 2.0591
  Prefactor  = 0.602056
 **********
 **   18 **HESSE 
 **********

 FCN=   8323.872     FROM HESSE     STATUS=OK           291 CALLS     2314 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8430        13.266        .12772E-03   -1.5080    
   2  Prefactor     41.731        40.887        .62056E-04   -1.4415    
   3  Prefactor     25.072        22.868        .80000E-04   -1.4706    
   4  norm          .15094        1.1146        .13208E-02   -1.5630    
   5  Prefactor     .10000E-03    42.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.5786        4.6938        .18810E-03   -1.5280    
   7  Prefactor     .10000E-03    2.7516        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1926        .97196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.702        12.406        .10821E-03   -1.4967    
  11  Prefactor     2.5501        5.5099        .25568E-03   -1.5389    
  12  norm          .10000E-03    .53692        .65233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8259        .14847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.581        53.253        .74876E-04   -1.4638    
  16  norm          .10000E-03    8.0021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.4526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    2.0591        .30048        .31150E-03   -.63077    
  20  Prefactor     .60206        .11379        .20095E-03   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25199e-10
Minuit parameter uncertainties:
  1  13.2704
  2  40.9149
  3  22.8765
  4  0.820088
  5  3.67554e-05
  6  4.69422
  7  7.11885e-06
  8  2.65736e-06
  9  1.95447e-05
  10  12.4086
  11  5.51101
  12  8.02806e-07
  13  6.48518e-06
  14  6.05475e-06
  15  53.3421
  16  4.2916e-07
  17  2.39795e-05
  18  1.03726e-05
  19  0.300758
  20  0.11383
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  2.657e-06  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:  6.021e-01  1.138e-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:  2.059e+00  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.945 -32.390
Photon Flux Upper Limit: 5.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81310/likelihoodResults_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.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): 102
logL (Free Index) = 8323.87596745
delta logL = -0.00388542636028

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8323.87208177
delta logL = 2.52861354966e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3091       1.0000          .0000       5.0000    
     3 'Normalizat'    2.0591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60207       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=   8323.872     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      237 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    73.878        .98043E-02** at limit **
   2  alpha         1.8381        3.1518        .16522        .42387E-07
   3  Normalizat    2.0591        .48896E-01    .31150E-03   -.98425E-04
   4  Prefactor     .60206        .18602E-01    .20095E-03   -.14381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.83809
  Normalizat = 2.0591
  Prefactor  = 0.602056
 **********
 **   18 **HESSE 
 **********

 FCN=   8323.872     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3937        .10504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8381        3.2528        .66087E-02   -.26796    
   3  Normalizat    2.0591        .29647        .62299E-04   -.63077    
   4  Prefactor     .60206        .11284        .80381E-05   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00936e-11
Minuit parameter uncertainties:
  1  4.05201e-06
  2  140.725
  3  0.296733
  4  0.112886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81310': 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) = 8323.87207602
delta logL = 6.00028215558e-06

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  4.052e-06  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.838e+00  1.407e+02  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:  6.021e-01  1.129e-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:  2.059e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/81310/cmap_HighResolution_295833601_296092801_4FGL_J1259.7-3223_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.83e-05', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2021-09-06 14:12:07.579502', job_id='81310', GAL2='0.60', fit_tolerance='1e-08', EG2='2.06', EG='2.06', time_epoch_completed='1630962727.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='6.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='218' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 81310: <4FGL_J1259.7-3223_daily_bin218> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin218> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 13:56:30 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:56:31 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:56:31 2021
Terminated at Mon Sep  6 14:12:08 2021
Results reported at Mon Sep  6 14:12:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin218 194.945 -32.3898 295833601 296092801 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 :                                   801.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             321.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

