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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin306
RA = 194.945, Dec = -32.3898
tmin = 318643201, tmax = 318902401
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='82884', job_status='RUN', time_executed='2021-09-06 14:03:25.309916', time_epoch_executed='1630962205.31' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82884

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82884/ft1_4FGL_J1259.7-3223_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82884/ft2_4FGL_J1259.7-3223_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82884/ft1_4FGL_J1259.7-3223_daily_bin306.fits outfile=/scratch/kocevski/82884/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin306.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=318643201.0 tmax=318902401.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.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82884/ft2_4FGL_J1259.7-3223_daily_bin306.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/82884/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin306.fits evtable="EVENTS" outfile="/scratch/kocevski/82884/ft1_filtered_4FGL_J1259.7-3223_daily_bin306.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/82884/ft1_filtered_4FGL_J1259.7-3223_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/82884/ft2_4FGL_J1259.7-3223_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/82884/ltcube_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.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/82884/ft2_4FGL_J1259.7-3223_daily_bin306.fits
.....................!
real 11.55
user 11.19
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82884/ft1_filtered_4FGL_J1259.7-3223_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/82884/ft2_4FGL_J1259.7-3223_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/82884/ltcube_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.fits outfile=/scratch/kocevski/82884/expmap_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.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/82884/ltcube_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.fits
.....................!
real 189.87
user 185.12
sys 4.23

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/82884/ft1_filtered_4FGL_J1259.7-3223_daily_bin306.fits scfile=/scratch/kocevski/82884/ft2_4FGL_J1259.7-3223_daily_bin306.fits outfile=/scratch/kocevski/82884/cmap_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/82884/ft1_filtered_4FGL_J1259.7-3223_daily_bin306.fits scfile=/scratch/kocevski/82884/ft2_4FGL_J1259.7-3223_daily_bin306.fits outfile=/scratch/kocevski/82884/cmap_HighResolution_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82884/ft1_filtered_4FGL_J1259.7-3223_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/82884/ft2_4FGL_J1259.7-3223_daily_bin306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82884/Model_4FGL_J1259.7-3223_daily_bin306.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/82884/ft1_filtered_4FGL_J1259.7-3223_daily_bin306.fits.....................!
real 127.76
user 125.44
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .87958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.801       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8637       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .95504E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    17.912       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9137       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    17.095       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    27.785       1.0000         .10000E-03   10000.    
    17 'norm      '    .17714E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4805       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0130       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=   7557.195     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2372 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.779        .45570E-07** at limit **
   2  Prefactor     47.561        60.267       -.29439E-06   -.83668E-04
   3  Prefactor     .10000E-03    19.804       -.48701E-07** at limit **
   4  norm          .87777        1.2161        .25763E-06    .17840E-03
   5  Prefactor     45.817        88.462        .46607E-06    .21024E-04
   6  norm          .10000E-03    4.0137        .11151E-06** at limit **
   7  Prefactor     .10000E-03    2.5821        .50372E-07** at limit **
   8  norm          2.8636        5.3814        .45183E-06   -.10467E-03
   9  Prefactor     .10000E-03    10.624        .16486E-06** at limit **
  10  norm          17.910        15.903       -.20154E-05   -.70395E-03
  11  Prefactor     6.9160        8.8082        .32339E-05   -.61018E-03
  12  norm          .10000E-03    1.8137        .40073E-07** at limit **
  13  norm          17.095        8.9297        .86467E-07    .56532E-04
  14  Prefactor     .10000E-03    3.3146        .38305E-08** at limit **
  15  Prefactor     .10000E-03    31.018        .45066E-07** at limit **
  16  norm          27.789        34.620       -.84076E-06   -.20162E-03
  17  norm          .10286E-03    31.936       -.66199E-06** at limit **
  18  norm          .10000E-03    5.1317        .17549E-08** at limit **
  19  Normalizat    1.4807        .31049       -.91995E-06   -.21518E-04
  20  Prefactor     1.0130        .11899       -.95640E-07   -.62170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 47.5607
  Prefactor  = 0.0001
  norm       = 0.877768
  Prefactor  = 45.8168
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86361
  Prefactor  = 0.000100005
  norm       = 17.9104
  Prefactor  = 6.91601
  norm       = 0.0001
  norm       = 17.0953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.7891
  norm       = 0.000102865
  norm       = 0.0001
  Normalizat = 1.48066
  Prefactor  = 1.01296
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.195     FROM HESSE     STATUS=OK           303 CALLS     2675 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     47.561        60.683        .58150E-04   -1.4328    
   3  Prefactor     .10000E-03    19.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .87777        1.0902        .10763E-02   -1.5521    
   5  Prefactor     45.817        88.183        .59244E-04   -1.4353    
   6  norm          .10000E-03    4.0352        .16968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5924        .13632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8636        5.3657        .24022E-03   -1.5370    
   9  Prefactor     .10000E-03    13.161        .78507E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.910        16.482        .94634E-04   -1.4861    
  11  Prefactor     6.9160        8.8441        .76291E-03   -1.5182    
  12  norm          .10000E-03    1.8797        .22862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          17.095        8.9316        .96869E-04   -1.4881    
  14  Prefactor     .10000E-03    3.3162        .15457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          27.789        35.086        .76003E-04   -1.4653    
  17  norm          .10286E-03    31.326        .15079       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.1369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4807        .37517        .40872E-03   -.78323    
  20  Prefactor     1.0130        .14507        .18719E-03   -.92299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18315e-09
Minuit parameter uncertainties:
  1  5.47894e-06
  2  60.7624
  3  1.13995e-05
  4  1.09025
  5  88.435
  6  3.3543e-06
  7  1.22373e-06
  8  5.3666
  9  0.000507535
  10  16.4866
  11  8.84574
  12  7.70972e-07
  13  8.93229
  14  1.26993e-06
  15  1.36159e-05
  16  35.112
  17  0.0189572
  18  1.94163e-06
  19  0.375879
  20  0.145128
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  2.864e+00  5.367e+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.013e+00  1.451e-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.481e+00  3.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/82884/likelihoodResults_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.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) = 7556.95731488
delta logL = 0.2377107609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7556.95448223
delta logL = 0.240543410257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62821       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1811       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0401       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=   7556.954     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      297 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62584        11.888        .11784E-01    .32303E-02
   2  alpha         4.1845        4.4575        .50000        .11184E-03
   3  Normalizat    1.3788        .64655E-01    .95043E-01   -.26214E-03
   4  Prefactor     1.0403        .25259E-01    .40529E-01   -.31343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.625843
  alpha      = 4.18448
  Normalizat = 1.37879
  Prefactor  = 1.04029
 **********
 **   18 **HESSE 
 **********

 FCN=   7556.954     FROM HESSE     STATUS=OK            29 CALLS      326 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62584        8.4544        .74553E-04   -1.5550    
   2  alpha         4.1845        4.5889        .30035E-02    .73933    
   3  Normalizat    1.3788        .39651        .42101E-03   -.81244    
   4  Prefactor     1.0403        .15051        .18499E-03   -.91398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98561e-10
Minuit parameter uncertainties:
  1  4.60091
  2  4.40232
  3  0.397396
  4  0.150571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82884': 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) = 7556.95447982
delta logL = 0.240545820695

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  6.258e-01  4.601e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  4.184e+00  4.402e+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:  1.040e+00  1.506e-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.379e+00  3.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
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/82884/cmap_HighResolution_318643201_318902401_4FGL_J1259.7-3223_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.90e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-06 14:16:29.439171', job_id='82884', GAL2='1.04', fit_tolerance='1e-08', EG2='1.38', EG='1.48', time_epoch_completed='1630962989.44', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.41e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='306' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:16:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 82884: <4FGL_J1259.7-3223_daily_bin306> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin306> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 14:00:37 2021
Job was executed on host(s) <bullet0012>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:00:39 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:00:39 2021
Terminated at Mon Sep  6 14:16:30 2021
Results reported at Mon Sep  6 14:16:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin306 194.945 -32.3898 318643201 318902401 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 :                                   781.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

