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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin805
RA = 194.945, Dec = -32.3898
tmin = 447984001, tmax = 448243201
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='86520', job_status='RUN', time_executed='2021-09-06 14:13:03.816948', time_epoch_executed='1630962783.82' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/86520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/86520/ft1_4FGL_J1259.7-3223_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/86520/ft2_4FGL_J1259.7-3223_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/86520/ft1_4FGL_J1259.7-3223_daily_bin805.fits outfile=/scratch/kocevski/86520/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin805.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=447984001.0 tmax=448243201.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 4.11
user 3.85
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/86520/ft2_4FGL_J1259.7-3223_daily_bin805.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/86520/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin805.fits evtable="EVENTS" outfile="/scratch/kocevski/86520/ft1_filtered_4FGL_J1259.7-3223_daily_bin805.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/86520/ft1_filtered_4FGL_J1259.7-3223_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/86520/ft2_4FGL_J1259.7-3223_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/86520/ltcube_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.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/86520/ft2_4FGL_J1259.7-3223_daily_bin805.fits
.....................!
real 11.83
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/86520/ft1_filtered_4FGL_J1259.7-3223_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/86520/ft2_4FGL_J1259.7-3223_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/86520/ltcube_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.fits outfile=/scratch/kocevski/86520/expmap_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.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/86520/ltcube_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.fits
.....................!
real 193.34
user 188.18
sys 4.75

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/86520/ft1_filtered_4FGL_J1259.7-3223_daily_bin805.fits scfile=/scratch/kocevski/86520/ft2_4FGL_J1259.7-3223_daily_bin805.fits outfile=/scratch/kocevski/86520/cmap_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/86520/ft1_filtered_4FGL_J1259.7-3223_daily_bin805.fits scfile=/scratch/kocevski/86520/ft2_4FGL_J1259.7-3223_daily_bin805.fits outfile=/scratch/kocevski/86520/cmap_HighResolution_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=194.945 yref=-32.3898 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/86520/ft1_filtered_4FGL_J1259.7-3223_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/86520/ft2_4FGL_J1259.7-3223_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/86520/Model_4FGL_J1259.7-3223_daily_bin805.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/86520/ft1_filtered_4FGL_J1259.7-3223_daily_bin805.fits.....................!
real 142.56
user 140.98
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2473       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.959       1.0000         .10000E-03   10000.    
    10 'norm      '    12.121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2302       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0383       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.779       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1636       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2818       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90829       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0821       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=   8164.959     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1993 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.656        .20190E-06** at limit **
   2  Prefactor     6.4891        42.303        .30399E-06    .12472E-05
   3  Prefactor     6.2429        30.529       -.60792E-06   -.21558E-04
   4  norm          3.2882        1.3002        .14093E-07   -.11715E-04
   5  Prefactor     .10000E-03    50.250        .11447E-06** at limit **
   6  norm          .10000E-03    3.0433        .53925E-07** at limit **
   7  Prefactor     .10000E-03    3.0621        .57607E-07** at limit **
   8  norm          .10000E-03    2.6233        .53427E-07** at limit **
   9  Prefactor     11.959        8.9293        .58590E-06   -.92677E-04
  10  norm          12.122        11.776       -.11010E-06   -.94414E-05
  11  Prefactor     4.2293        7.5737        .22329E-06   -.36982E-04
  12  norm          .10000E-03    .72456        .12934E-07** at limit **
  13  norm          .10000E-03    1.6632        .15415E-07** at limit **
  14  Prefactor     8.0382        8.8504        .15376E-05   -.16518E-03
  15  Prefactor     33.753        66.745       -.41897E-05   -.72633E-04
  16  norm          .10000E-03    9.2477       -.10963E-08** at limit **
  17  norm          4.1636        25.097        .37302E-06   -.29595E-05
  18  norm          3.2796        12.792        .57429E-06   -.44413E-05
  19  Normalizat    .90838        .26811       -.14635E-06   -.96779E-05
  20  Prefactor     1.0821        .10768       -.41514E-07   -.12064E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.48905
  Prefactor  = 6.24289
  norm       = 3.28823
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9592
  norm       = 12.1219
  Prefactor  = 4.22935
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.03822
  Prefactor  = 33.7533
  norm       = 0.0001
  norm       = 4.16356
  norm       = 3.27958
  Normalizat = 0.90838
  Prefactor  = 1.08211
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.959     FROM HESSE     STATUS=OK           293 CALLS     2286 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4891        41.995        .15756E-03   -1.5198    
   3  Prefactor     6.2429        30.682        .16060E-03   -1.5208    
   4  norm          3.2882        1.2984        .61959E-04   -1.5345    
   5  Prefactor     .10000E-03    50.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0717        .15390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0987        .15437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6548        .14288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.959        8.9734        .57919E-03   -1.5016    
  10  norm          12.122        11.763        .11506E-03   -1.5011    
  11  Prefactor     4.2293        7.5761        .19592E-03   -1.5297    
  12  norm          .10000E-03    .72637        .75112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6692        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0382        9.0237        .70708E-03   -1.5141    
  15  Prefactor     33.753        70.544        .68947E-04   -1.4545    
  16  norm          .10000E-03    9.2478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1636        25.094        .19753E-03   -1.5300    
  18  norm          3.2796        12.787        .22351E-03   -1.5346    
  19  Normalizat    .90838        .30893        .43929E-03   -.96166    
  20  Prefactor     1.0821        .12536        .16551E-03   -.90040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22553e-10
Minuit parameter uncertainties:
  1  1.86874e-06
  2  33.0493
  3  27.7027
  4  1.29842
  5  5.26162e-06
  6  7.03087e-07
  7  6.52886e-07
  8  5.86701e-07
  9  8.97444
  10  11.7651
  11  7.57785
  12  6.11243e-08
  13  1.55268e-07
  14  9.02518
  15  70.7189
  16  1.4467e-06
  17  20.4558
  18  12.7978
  19  0.309539
  20  0.125398
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  5.867e-07  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.082e+00  1.254e-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:  9.084e-01  3.095e-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: 7.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/86520/likelihoodResults_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.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) = 8164.96097209
delta logL = -0.00179494463646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8164.95917677
delta logL = 3.82741745852e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3462       1.0000          .0000       5.0000    
     3 'Normalizat'    .90837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0821       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=   8164.959     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6730        .90712E-02** at limit **
   2  alpha         2.3697        3.6572        .41250       -.44483E-04
   3  Normalizat    .90837        .25941        .99145E-01   -.16916E-03
   4  Prefactor     1.0821        .10644        .38309E-01   -.69858E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 2.36974
  Normalizat = 0.908374
  Prefactor  = 1.08211
 **********
 **   18 **HESSE 
 **********

 FCN=   8164.959     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8347        .14587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3697        3.5275        .50000       -.52129E-01
   3  Normalizat    .90837        .29931        .43929E-03   -.96166    
   4  Prefactor     1.0821        .12326        .16551E-03   -.90040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77726e-09
Minuit parameter uncertainties:
  1  0.000236724
  2  2.5253
  3  0.299858
  4  0.123293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/86520': 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) = 8164.95917634
delta logL = 8.06992829894e-07

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  1.000e-04  2.367e-04  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.370e+00  2.525e+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.082e+00  1.233e-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:  9.084e-01  2.999e-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/86520/cmap_HighResolution_447984001_448243201_4FGL_J1259.7-3223_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='7.42e-08', time_completed='2021-09-06 14:26:29.376778', job_id='86520', GAL2='1.08', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630963589.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='8.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='805' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 86520: <4FGL_J1259.7-3223_daily_bin805> in cluster <slac> Done

Job <4FGL_J1259.7-3223_daily_bin805> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 14:10:24 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:10:25 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:10:25 2021
Terminated at Mon Sep  6 14:26:30 2021
Results reported at Mon Sep  6 14:26:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin805 194.945 -32.3898 447984001 448243201 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 :                                   803.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

