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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin199
RA = 194.945, Dec = -32.3898
tmin = 290908801, tmax = 291168001
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='81281', job_status='RUN', time_executed='2021-09-06 13:59:31.625599', time_epoch_executed='1630961971.63' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81281/ft1_4FGL_J1259.7-3223_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81281/ft2_4FGL_J1259.7-3223_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81281/ft1_4FGL_J1259.7-3223_daily_bin199.fits outfile=/scratch/kocevski/81281/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin199.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=290908801.0 tmax=291168001.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.47
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/81281/ft2_4FGL_J1259.7-3223_daily_bin199.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/81281/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/81281/ft1_filtered_4FGL_J1259.7-3223_daily_bin199.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81281/ft1_filtered_4FGL_J1259.7-3223_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/81281/ft2_4FGL_J1259.7-3223_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/81281/ltcube_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.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/81281/ft2_4FGL_J1259.7-3223_daily_bin199.fits
.....................!
real 12.18
user 11.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81281/ft1_filtered_4FGL_J1259.7-3223_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/81281/ft2_4FGL_J1259.7-3223_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/81281/ltcube_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.fits outfile=/scratch/kocevski/81281/expmap_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.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/81281/ltcube_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.fits
.....................!
real 193.59
user 187.55
sys 5.53

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/81281/ft1_filtered_4FGL_J1259.7-3223_daily_bin199.fits scfile=/scratch/kocevski/81281/ft2_4FGL_J1259.7-3223_daily_bin199.fits outfile=/scratch/kocevski/81281/cmap_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.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.60
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81281/ft1_filtered_4FGL_J1259.7-3223_daily_bin199.fits scfile=/scratch/kocevski/81281/ft2_4FGL_J1259.7-3223_daily_bin199.fits outfile=/scratch/kocevski/81281/cmap_HighResolution_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/81281/ft1_filtered_4FGL_J1259.7-3223_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/81281/ft2_4FGL_J1259.7-3223_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/81281/Model_4FGL_J1259.7-3223_daily_bin199.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/81281/ft1_filtered_4FGL_J1259.7-3223_daily_bin199.fits.....................!
real 126.58
user 124.64
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .37702E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.3668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14110E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.014       1.0000         .10000E-03   10000.    
    10 'norm      '    9.2005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1127       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11132E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11333E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.548       1.0000         .10000E-03   10000.    
    18 'norm      '    1.8806       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5594       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96136       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=   7419.504     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1784 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.531       -.23584E-05** at limit **
   2  Prefactor     .10000E-03    177.99        .19619E-04** at limit **
   3  Prefactor     .10000E-03    8.3931        .11724E-07** at limit **
   4  norm          6.3666        1.8325        .15414E-07   -.16775E-03
   5  Prefactor     .10000E-03    28.755       -.41931E-06** at limit **
   6  norm          2.7561        4.4930       -.17773E-06   -.35836E-03
   7  Prefactor     .10000E-03    2.7674        .10994E-07** at limit **
   8  norm          .10000E-03    6.7020        .60149E-07** at limit **
   9  Prefactor     21.016        13.375        .33782E-07   -.20505E-04
  10  norm          9.2028        13.708       -.40685E-06   -.22746E-04
  11  Prefactor     .10000E-03    3.9461        .40872E-07** at limit **
  12  norm          2.1127        2.2072       -.79424E-08   -.14771E-03
  13  norm          .10000E-03    3.8156        .25272E-07** at limit **
  14  Prefactor     .10000E-03    13.269        .11071E-05** at limit **
  15  Prefactor     .10000E-03    16.119        .14037E-05** at limit **
  16  norm          .10000E-03    20.937        .10486E-06** at limit **
  17  norm          20.604        31.929        .14723E-04   -.32986E-05
  18  norm          1.8778        19.932       -.13046E-05   -.18015E-03
  19  Normalizat    1.5594        .29608       -.69442E-07   -.69928E-04
  20  Prefactor     .96138        .11474       -.45080E-06   -.40977E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.36659
  Prefactor  = 0.0001
  norm       = 2.7561
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.0159
  norm       = 9.2028
  Prefactor  = 0.0001
  norm       = 2.1127
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.6036
  norm       = 1.87784
  Normalizat = 1.55936
  Prefactor  = 0.961376
 **********
 **   18 **HESSE 
 **********

 FCN=   7419.504     FROM HESSE     STATUS=OK           289 CALLS     2073 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    182.20        .39134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.3666        1.8339        .59698E-04   -1.5203    
   5  Prefactor     .10000E-03    28.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7561        4.4844        .22642E-03   -1.5376    
   7  Prefactor     .10000E-03    2.7787        .13989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.8447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.016        13.381        .87374E-04   -1.4791    
  10  norm          9.2028        13.717        .13213E-03   -1.5101    
  11  Prefactor     .10000E-03    3.9642        .16703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1127        2.1990        .12744E-03   -1.5417    
  13  norm          .10000E-03    3.8441        .16428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    20.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.604        31.758        .88359E-04   -1.4800    
  18  norm          1.8778        20.285        .30357E-03   -1.5434    
  19  Normalizat    1.5594        .35522        .39763E-03   -.76124    
  20  Prefactor     .96138        .13803        .18931E-03   -.94028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83509e-10
Minuit parameter uncertainties:
  1  1.00612e-05
  2  0.000637875
  3  8.74587e-07
  4  1.83393
  5  4.64079e-06
  6  4.48494
  7  2.372e-06
  8  8.10449e-06
  9  13.3825
  10  13.7217
  11  4.25752e-06
  12  2.19906
  13  1.88234e-06
  14  6.39401e-06
  15  2.54984e-06
  16  1.91701e-06
  17  31.7841
  18  12.3487
  19  0.355795
  20  0.138079
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  8.104e-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:  9.614e-01  1.381e-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.559e+00  3.558e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81281/likelihoodResults_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.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) = 7419.50497471
delta logL = -0.000696447928021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7419.43613601
delta logL = 0.0681422436473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .63412E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5112       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97256       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7419.436     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      433 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63327E-01    .19656        .47933E-03    .75181E-03
   2  alpha         5.0000        4.8464        .50000    ** at limit **
   3  Normalizat    1.5106        .37984        .40286E-03   -.29462E-04
   4  Prefactor     .97273        .14103        .18832E-03   -.33400E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0633268
  alpha      = 5
  Normalizat = 1.51063
  Prefactor  = 0.972735
 **********
 **   18 **HESSE 
 **********

 FCN=   7419.436     FROM HESSE     STATUS=OK            31 CALLS      464 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63327E-01    .18469        .19173E-04   -1.5658    
   2  alpha         5.0000        4.7484        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5106        .38134        .16114E-04   -.77480    
   4  Prefactor     .97273        .14137        .37664E-04   -.93644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74802e-10
Minuit parameter uncertainties:
  1  0.184689
  2  5.31992e-06
  3  0.38207
  4  0.141423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81281': 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) = 7419.43613408
delta logL = 0.0681441767811

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  6.333e-02  1.847e-01  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  5.000e+00  5.320e-06  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.727e-01  1.414e-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.511e+00  3.821e-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/81281/cmap_HighResolution_290908801_291168001_4FGL_J1259.7-3223_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-05', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-06 14:12:03.500790', job_id='81281', GAL2='0.97', fit_tolerance='1e-08', EG2='1.51', EG='1.56', time_epoch_completed='1630962723.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.81e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='199' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:12:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 81281: <4FGL_J1259.7-3223_daily_bin199> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin199 194.945 -32.3898 290908801 291168001 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 :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

