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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin1122
RA = 194.945, Dec = -32.3898
tmin = 530150401, tmax = 530409601
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='88322', job_status='RUN', time_executed='2021-09-06 14:16:17.724509', time_epoch_executed='1630962977.72' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88322/ft1_4FGL_J1259.7-3223_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88322/ft1_4FGL_J1259.7-3223_daily_bin1122.fits outfile=/scratch/kocevski/88322/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1122.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=530150401.0 tmax=530409601.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.58
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.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/88322/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1122.fits evtable="EVENTS" outfile="/scratch/kocevski/88322/ft1_filtered_4FGL_J1259.7-3223_daily_bin1122.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88322/ft1_filtered_4FGL_J1259.7-3223_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/88322/ltcube_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.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/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.fits
.....................!
real 17.24
user 16.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88322/ft1_filtered_4FGL_J1259.7-3223_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/88322/ltcube_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.fits outfile=/scratch/kocevski/88322/expmap_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.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/88322/ltcube_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.fits
.....................!
real 191.41
user 186.03
sys 4.74

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/88322/ft1_filtered_4FGL_J1259.7-3223_daily_bin1122.fits scfile=/scratch/kocevski/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.fits outfile=/scratch/kocevski/88322/cmap_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.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.63
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88322/ft1_filtered_4FGL_J1259.7-3223_daily_bin1122.fits scfile=/scratch/kocevski/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.fits outfile=/scratch/kocevski/88322/cmap_HighResolution_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.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.61
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88322/ft1_filtered_4FGL_J1259.7-3223_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/88322/ft2_4FGL_J1259.7-3223_daily_bin1122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88322/Model_4FGL_J1259.7-3223_daily_bin1122.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/88322/ft1_filtered_4FGL_J1259.7-3223_daily_bin1122.fits....................!
real 145.47
user 142.71
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46864       1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.600       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7555       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1886       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9060       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3463       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8326       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0708       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 '    81.575       1.0000         .10000E-03   10000.    
    16 'norm      '    22.169       1.0000         .10000E-03   10000.    
    17 'norm      '    20.082       1.0000         .10000E-03   10000.    
    18 'norm      '    17.075       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.8467       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82370       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=   8341.288     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2017 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20697        14.932       -.17283E-05   -.68528E-05
   2  Prefactor     77.594        43.826       -.75458E-05    .11611E-04
   3  Prefactor     .10000E-03    16.979       -.68814E-06** at limit **
   4  norm          .10000E-03    .27364        .56232E-07** at limit **
   5  Prefactor     .10000E-03    31.918        .30196E-06** at limit **
   6  norm          5.7543        5.1803       -.49579E-06   -.77533E-03
   7  Prefactor     4.1881        4.3017        .10432E-07    .62152E-04
   8  norm          6.9043        5.3259       -.32047E-06   -.16530E-03
   9  Prefactor     .10000E-03    4.2186       -.14692E-06** at limit **
  10  norm          2.3400        19.157        .21022E-05   -.14020E-03
  11  Prefactor     5.8312        5.2370       -.46196E-06    .18552E-04
  12  norm          6.0701        3.3311       -.13716E-06   -.68920E-05
  13  norm          .10000E-03    2.2577       -.11483E-06** at limit **
  14  Prefactor     .10000E-03    4.5910       -.18270E-07** at limit **
  15  Prefactor     81.554        67.615       -.22414E-04    .15429E-05
  16  norm          22.167        33.560       -.45106E-05   -.24344E-05
  17  norm          20.071        26.533       -.37265E-05   -.96434E-06
  18  norm          17.073        13.900        .31132E-06   -.13410E-05
  19  Normalizat    1.8470        .27920        .26895E-05    .39426E-04
  20  Prefactor     .82374        .10751        .27774E-06    .25430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.206966
  Prefactor  = 77.5942
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75428
  Prefactor  = 4.18806
  norm       = 6.90427
  Prefactor  = 0.0001
  norm       = 2.34002
  Prefactor  = 5.8312
  norm       = 6.07015
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.5536
  norm       = 22.1665
  norm       = 20.0707
  norm       = 17.0729
  Normalizat = 1.84699
  Prefactor  = 0.823738
 **********
 **   18 **HESSE 
 **********

 FCN=   8341.288     FROM HESSE     STATUS=OK           303 CALLS     2320 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20697        17.824        .99276E-01   -1.5617    
   2  Prefactor     77.594        43.835        .45586E-04   -1.3944    
   3  Prefactor     .10000E-03    17.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .27717        .46628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7543        5.1986        .83709E-03   -1.5228    
   7  Prefactor     4.1881        4.2982        .18329E-03   -1.5299    
   8  norm          6.9043        5.3276        .15267E-03   -1.5182    
   9  Prefactor     .10000E-03    4.2468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3400        19.086        .26763E-03   -1.5402    
  11  Prefactor     5.8312        5.2196        .16629E-03   -1.5225    
  12  norm          6.0701        3.3312        .11980E-03   -1.5215    
  13  norm          .10000E-03    2.2686        .13400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.6017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     81.554        67.623        .22235E-03   -1.3899    
  16  norm          22.167        33.589        .85071E-04   -1.4766    
  17  norm          20.071        26.547        .89379E-04   -1.4812    
  18  norm          17.073        13.901        .96924E-04   -1.4881    
  19  Normalizat    1.8470        .34140        .36063E-03   -.68443    
  20  Prefactor     .82374        .13167        .19679E-03   -.98859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97593e-10
Minuit parameter uncertainties:
  1  3.84159
  2  43.8529
  3  2.10415e-05
  4  8.8192e-07
  5  4.77955e-06
  6  5.19898
  7  4.29848
  8  5.32798
  9  7.81342e-06
  10  13.3714
  11  5.22
  12  3.33134
  13  1.5119e-06
  14  2.98409e-06
  15  67.6873
  16  33.6177
  17  26.563
  18  13.9032
  19  0.341842
  20  0.131716
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  6.904e+00  5.328e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.324e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.237e-01  1.317e-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.847e+00  3.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/88322/likelihoodResults_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.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) = 8339.64547782
delta logL = 1.64298752343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8339.56667026
delta logL = 1.72179508724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1810       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4019       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81305       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=   8339.567     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1908        5.8329        .33068E-02    .19560E-03
   2  alpha         1.4020        .37005        .35923       -.81224E-04
   3  Normalizat    1.8822        .27408        .80865E-01   -.15224E-05
   4  Prefactor     .81300        .10633        .43887E-01   -.12471E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.19079
  alpha      = 1.40196
  Normalizat = 1.88224
  Prefactor  = 0.813001
 **********
 **   18 **HESSE 
 **********

 FCN=   8339.567     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1908        6.4436        .13227E-03   -1.5102    
   2  alpha         1.4020        .44343        .14612E-01   -.45472    
   3  Normalizat    1.8822        .33392        .35785E-03   -.67536    
   4  Prefactor     .81300        .12977        .19776E-03   -.99251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20744e-10
Minuit parameter uncertainties:
  1  6.4441
  2  0.446359
  3  0.334331
  4  0.129814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88322': 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) = 8339.56666892
delta logL = 1.72179642101

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  9.191e+00  6.444e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  1.402e+00  4.464e-01  0.000e+00  5.000e+00 ( 1.000e+00)
299         beta:  1.281e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
300           Eb:  8.345e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
632    Prefactor:  8.130e-01  1.298e-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.882e+00  3.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.27
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 1.40 +/- 0.45
Photon Flux (Free Index): 3.17e-08 +/- 2.47e-08
Energy Flux (Free Index): 5.61e-05 +/- 4.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/88322/cmap_HighResolution_530150401_530409601_4FGL_J1259.7-3223_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-05', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='5.61e-05', photon_flux_error='4.15e-08', dlogl='1.72e+00', energy_flux='1.95e-05', photon_flux2='3.17e-08', job_status='DONE', time_completed='2021-09-06 14:31:32.754670', photon_index_error2='0.45', photon_index2='1.40', ts='2.81', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='4.80e-05', EG='1.85', time_epoch_completed='1630963892.75', return_code='0', job_id='88322', GAL2='0.81', EG2='1.88', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='2.47e-08', ts2='6.27', photon_index='2.32' WHERE bin_id='1122' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 88322: <4FGL_J1259.7-3223_daily_bin1122> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin1122> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:15:39 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:15:41 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:15:41 2021
Terminated at Mon Sep  6 14:31:33 2021
Results reported at Mon Sep  6 14:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin1122 194.945 -32.3898 530150401 530409601 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 :                                   839.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             315.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

