/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 139 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 = 7478
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1259.7-3223_daily_bin22
RA = 194.945, Dec = -32.3898
tmin = 245030401, tmax = 245289601
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='80980', job_status='RUN', time_executed='2021-09-06 13:58:24.988524', time_epoch_executed='1630961904.99' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80980/ft1_4FGL_J1259.7-3223_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80980/ft2_4FGL_J1259.7-3223_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80980/ft1_4FGL_J1259.7-3223_daily_bin22.fits outfile=/scratch/kocevski/80980/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin22.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=245030401.0 tmax=245289601.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 1.13
user 0.95
sys 0.16

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/80980/ft1_filtered_4FGL_J1259.7-3223_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/80980/ft2_4FGL_J1259.7-3223_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/80980/ltcube_245030401_245289601_4FGL_J1259.7-3223_daily_bin22.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/80980/ft2_4FGL_J1259.7-3223_daily_bin22.fits
.....................!
real 9.53
user 9.01
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80980/ft1_filtered_4FGL_J1259.7-3223_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/80980/ft2_4FGL_J1259.7-3223_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/80980/ltcube_245030401_245289601_4FGL_J1259.7-3223_daily_bin22.fits outfile=/scratch/kocevski/80980/expmap_245030401_245289601_4FGL_J1259.7-3223_daily_bin22.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/80980/ltcube_245030401_245289601_4FGL_J1259.7-3223_daily_bin22.fits
.....................!
real 142.78
user 139.19
sys 3.20

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/80980/ft1_filtered_4FGL_J1259.7-3223_daily_bin22.fits scfile=/scratch/kocevski/80980/ft2_4FGL_J1259.7-3223_daily_bin22.fits outfile=/scratch/kocevski/80980/cmap_245030401_245289601_4FGL_J1259.7-3223_daily_bin22.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.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80980/ft1_filtered_4FGL_J1259.7-3223_daily_bin22.fits scfile=/scratch/kocevski/80980/ft2_4FGL_J1259.7-3223_daily_bin22.fits outfile=/scratch/kocevski/80980/cmap_HighResolution_245030401_245289601_4FGL_J1259.7-3223_daily_bin22.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.50
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/80980/ft1_filtered_4FGL_J1259.7-3223_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/80980/ft2_4FGL_J1259.7-3223_daily_bin22.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/80980/Model_4FGL_J1259.7-3223_daily_bin22.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/80980/ft1_filtered_4FGL_J1259.7-3223_daily_bin22.fits.....................!
real 141.31
user 139.63
sys 0.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8034       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4980       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.240       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6388       1.0000         .10000E-03   10000.    
    10 'norm      '    .10745E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5987       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1446       1.0000         .10000E-03   10000.    
    13 'norm      '    16.390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3443       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6007       1.0000         .10000E-03   10000.    
    18 'norm      '    .39722E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.8918       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85897       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=   10965.19     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1772 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.063        .16396E-05** at limit **
   2  Prefactor     4.8076        47.663        .60126E-06    .81933E-05
   3  Prefactor     .10000E-03    17.531       -.21765E-05** at limit **
   4  norm          2.4979        1.1853        .58061E-07    .18674E-03
   5  Prefactor     .10000E-03    57.735       -.26593E-05** at limit **
   6  norm          .10000E-03    2.7489        .30129E-08** at limit **
   7  Prefactor     .10000E-03    3.3973        .29488E-07** at limit **
   8  norm          16.241        7.3854        .11030E-07   -.40970E-05
   9  Prefactor     3.6381        8.8051        .33414E-05    .62000E-03
  10  norm          .10000E-03    14.666        .39143E-06** at limit **
  11  Prefactor     6.5969        5.9407        .13943E-06    .29288E-04
  12  norm          1.1446        1.5459        .40672E-07    .59808E-04
  13  norm          16.390        7.4145        .14936E-07    .88047E-05
  14  Prefactor     .10000E-03    3.4344        .67319E-08** at limit **
  15  Prefactor     8.3423        53.332        .35509E-06    .46344E-05
  16  norm          .10000E-03    7.8952       -.73043E-07** at limit **
  17  norm          3.5318        63.800        .92716E-05    .63046E-04
  18  norm          .10057E-03    13.429       -.41751E-05** at limit **
  19  Normalizat    1.8915        .24988       -.94327E-06    .63780E-04
  20  Prefactor     .85906        .95613E-01    .12245E-07    .18547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.80763
  Prefactor  = 0.0001
  norm       = 2.49791
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.2409
  Prefactor  = 3.63814
  norm       = 0.0001
  Prefactor  = 6.59691
  norm       = 1.14461
  norm       = 16.3901
  Prefactor  = 0.0001
  Prefactor  = 8.34228
  norm       = 0.0001
  norm       = 3.53175
  norm       = 0.000100573
  Normalizat = 1.89154
  Prefactor  = 0.859062
 **********
 **   18 **HESSE 
 **********

 FCN=   10965.19     FROM HESSE     STATUS=OK           297 CALLS     2069 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8076        47.820        .18356E-03   -1.5269    
   3  Prefactor     .10000E-03    17.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4979        1.1836        .74453E-04   -1.5392    
   5  Prefactor     .10000E-03    57.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7927        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.241        7.3953        .99387E-04   -1.4902    
   9  Prefactor     3.6381        9.0665        .10589E-02   -1.5326    
  10  norm          .10000E-03    14.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5969        5.9394        .15622E-03   -1.5194    
  12  norm          1.1446        1.5127        .14732E-03   -1.5494    
  13  norm          16.390        7.4171        .98931E-04   -1.4898    
  14  Prefactor     .10000E-03    3.4431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.3423        53.341        .13878E-03   -1.5130    
  16  norm          .10000E-03    7.8959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5318        65.178        .21294E-03   -1.5332    
  18  norm          .10057E-03    53.615        .52640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.8915        .30032        .36541E-03   -.67297    
  20  Prefactor     .85906        .11538        .19946E-03   -.97587    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09814e-08
Minuit parameter uncertainties:
  1  0.000105242
  2  30.3563
  3  0.000151684
  4  1.18358
  5  0.000368091
  6  3.0581e-06
  7  4.70879e-06
  8  7.39572
  9  9.0699
  10  1.22661e-05
  11  5.93997
  12  1.51276
  13  7.41748
  14  2.38725e-06
  15  42.2443
  16  3.37133e-06
  17  30.3821
  18  0.0110949
  19  0.300617
  20  0.115413
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.624e+01  7.396e+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.591e-01  1.154e-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.892e+00  3.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.97
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.75e-08
Energy Flux (Fixed Index): 4.58e-05 +/- 2.09e-05

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) = 10962.7452989
delta logL = 2.44778518526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10962.7434466
delta logL = 2.44963741656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7737       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3105       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90162       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=   10962.74     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      284 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7739        6.8519        .91308E-04   -.40839E-03
   2  alpha         3.3108        .58059        .86023E-02   -.27338E-04
   3  Normalizat    1.7206        .30558        .37811E-03    .65065E-04
   4  Prefactor     .90174        .11684        .19499E-03    .21636E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77392
  alpha      = 3.31079
  Normalizat = 1.72061
  Prefactor  = 0.901742
 **********
 **   18 **HESSE 
 **********

 FCN=   10962.74     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7739        5.6658        .36523E-05   -1.5150    
   2  alpha         3.3108        .48113        .34409E-03    .33029    
   3  Normalizat    1.7206        .30445        .15124E-04   -.71754    
   4  Prefactor     .90174        .11642        .38997E-04   -.96080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36183e-11
Minuit parameter uncertainties:
  1  5.66614
  2  0.484509
  3  0.304782
  4  0.11645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80980': 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) = 10962.7434439
delta logL = 2.44964013528

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  7.774e+00  5.666e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  3.311e+00  4.845e-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:  9.017e-01  1.164e-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.721e+00  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.31
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 3.31 +/- 0.48
Photon Flux (Free Index): 2.59e-07 +/- 9.46e-08
Energy Flux (Free Index): 4.97e-05 +/- 1.68e-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/80980/cmap_HighResolution_245030401_245289601_4FGL_J1259.7-3223_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='4.97e-05', photon_flux_error='5.75e-08', dlogl='2.45e+00', energy_flux='4.58e-05', photon_flux2='2.59e-07', job_status='DONE', time_completed='2021-09-06 14:09:19.107908', photon_index_error2='0.48', photon_index2='3.31', ts='8.97', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.89', time_epoch_completed='1630962559.11', return_code='0', job_id='80980', GAL2='0.90', EG2='1.72', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='9.46e-08', ts2='14.31', photon_index='2.32' WHERE bin_id='22' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:09:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 80980: <4FGL_J1259.7-3223_daily_bin22> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin22> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 13:55:53 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:55:54 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:55:54 2021
Terminated at Mon Sep  6 14:09:19 2021
Results reported at Mon Sep  6 14:09:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin22 194.945 -32.3898 245030401 245289601 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 :                                   652.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             344.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            806 sec.

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

