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


Performing analysis on: 4FGL_J1259.7-3223_daily_bin1192
RA = 194.945, Dec = -32.3898
tmin = 548294401, tmax = 548553601
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='88470', job_status='RUN', time_executed='2021-09-06 14:16:21.845674', time_epoch_executed='1630962981.85' WHERE source_name='4FGL J1259.7-3223' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88470/ft1_4FGL_J1259.7-3223_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88470/ft1_4FGL_J1259.7-3223_daily_bin1192.fits outfile=/scratch/kocevski/88470/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1192.fits ra=194.945 dec=-32.3898 rad=12.0 tmin=548294401.0 tmax=548553601.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.14
user 2.89
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.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/88470/ft1_filteredMKT_4FGL_J1259.7-3223_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/88470/ft1_filtered_4FGL_J1259.7-3223_daily_bin1192.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.42
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88470/ft1_filtered_4FGL_J1259.7-3223_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/88470/ltcube_548294401_548553601_4FGL_J1259.7-3223_daily_bin1192.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/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.fits
.....................!
real 9.41
user 9.12
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88470/ft1_filtered_4FGL_J1259.7-3223_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/88470/ltcube_548294401_548553601_4FGL_J1259.7-3223_daily_bin1192.fits outfile=/scratch/kocevski/88470/expmap_548294401_548553601_4FGL_J1259.7-3223_daily_bin1192.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/88470/ltcube_548294401_548553601_4FGL_J1259.7-3223_daily_bin1192.fits
.....................!
real 150.09
user 146.41
sys 3.35

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/88470/ft1_filtered_4FGL_J1259.7-3223_daily_bin1192.fits scfile=/scratch/kocevski/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.fits outfile=/scratch/kocevski/88470/cmap_548294401_548553601_4FGL_J1259.7-3223_daily_bin1192.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.46
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88470/ft1_filtered_4FGL_J1259.7-3223_daily_bin1192.fits scfile=/scratch/kocevski/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.fits outfile=/scratch/kocevski/88470/cmap_HighResolution_548294401_548553601_4FGL_J1259.7-3223_daily_bin1192.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88470/ft1_filtered_4FGL_J1259.7-3223_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/88470/ft2_4FGL_J1259.7-3223_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88470/Model_4FGL_J1259.7-3223_daily_bin1192.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/88470/ft1_filtered_4FGL_J1259.7-3223_daily_bin1192.fits.....................!
real 168.66
user 167.32
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.341       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.7850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3285       1.0000         .10000E-03   10000.    
    10 'norm      '    5.1378       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7282       1.0000         .10000E-03   10000.    
    13 'norm      '    .88874E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22542E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8439       1.0000         .10000E-03   10000.    
    16 'norm      '    10.095       1.0000         .10000E-03   10000.    
    17 'norm      '    16.757       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4359       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4638       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97486       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=   12949.68     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2135 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0624       -.31515E-08** at limit **
   2  Prefactor     11.329        39.306       -.17741E-04    .10442E-03
   3  Prefactor     .10000E-03    8.9612        .12892E-06** at limit **
   4  norm          .10000E-03    .32761        .51503E-08** at limit **
   5  Prefactor     .10000E-03    25.918       -.94299E-07** at limit **
   6  norm          .10000E-03    2.0820       -.34833E-08** at limit **
   7  Prefactor     .10000E-03    1.4328       -.26787E-08** at limit **
   8  norm          8.7859        5.2939        .59560E-07   -.23946E-03
   9  Prefactor     6.3277        8.5029        .84583E-06   -.20627E-03
  10  norm          5.1361        8.0114        .12576E-05   -.24597E-03
  11  Prefactor     .10000E-03    1.5739       -.36820E-07** at limit **
  12  norm          2.7281        2.3896       -.14959E-06   -.57136E-03
  13  norm          .10000E-03    2.7309       -.95477E-07** at limit **
  14  Prefactor     .10000E-03    5.4095        .70710E-07** at limit **
  15  Prefactor     8.8336        43.944       -.16471E-04    .72476E-04
  16  norm          10.094        14.271       -.17792E-07   -.96338E-06
  17  norm          16.743        20.269        .30253E-05   -.10497E-03
  18  norm          1.4362        9.2017       -.35593E-05   -.47051E-03
  19  Normalizat    1.4637        .21359       -.53966E-06   -.45167E-03
  20  Prefactor     .97491        .82483E-01    .68783E-06   -.61293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.78587
  Prefactor  = 6.32771
  norm       = 5.1361
  Prefactor  = 0.0001
  norm       = 2.72808
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8336
  norm       = 10.0942
  norm       = 16.7432
  norm       = 1.43622
  Normalizat = 1.46368
  Prefactor  = 0.974915
 **********
 **   18 **HESSE 
 **********

 FCN=   12949.68     FROM HESSE     STATUS=OK           307 CALLS     2442 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.329        38.507        .11896E-03   -1.5035    
   3  Prefactor     .10000E-03    8.9765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5684        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1035        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4389        .13301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.7859        5.2900        .13524E-03   -1.5115    
   9  Prefactor     6.3277        8.4740        .15956E-03   -1.5205    
  10  norm          5.1361        7.9784        .17737E-03   -1.5255    
  11  Prefactor     .10000E-03    1.5833        .13936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7281        2.3884        .16054E-03   -1.5378    
  13  norm          .10000E-03    3.6117        .53150E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.646        .50996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8336        42.777        .13478E-03   -1.5113    
  16  norm          10.094        14.257        .12611E-03   -1.5072    
  17  norm          16.743        20.209        .97842E-04   -1.4889    
  18  norm          1.4362        10.040        .36025E-03   -1.5468    
  19  Normalizat    1.4637        .25805        .19200E-02   -.78804    
  20  Prefactor     .97491        .10154        .17966E-03   -.93570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46999e-09
Minuit parameter uncertainties:
  1  2.51187e-06
  2  38.5914
  3  3.37095e-05
  4  6.65264e-07
  5  2.29716e-06
  6  5.98412e-07
  7  3.10041e-07
  8  5.29032
  9  8.47558
  10  7.98004
  11  4.87625e-06
  12  2.38848
  13  3.08116e-06
  14  3.32941e-05
  15  38.9226
  16  14.2621
  17  20.2173
  18  7.59618
  19  0.25828
  20  0.101557
Done.

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

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  8.786e+00  5.290e+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:  9.749e-01  1.016e-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.464e+00  2.583e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.11
Ra Dec: 194.945 -32.390
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 6.84e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.49e-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) = 12949.6705042
delta logL = 0.00760623891802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12949.6688396
delta logL = 0.00927085395961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0966       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2470       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97373       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=   12949.67     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      241 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0960        5.9491        .13289E-03    .17877E-02
   2  alpha         2.2472        .56358        .17294E-01    .19299E-03
   3  Normalizat    1.4696        .25788        .38337E-03   -.23077E-03
   4  Prefactor     .97342        .10078        .17978E-03   -.70206E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.09602
  alpha      = 2.24723
  Normalizat = 1.46958
  Prefactor  = 0.973415
 **********
 **   18 **HESSE 
 **********

 FCN=   12949.67     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0960        5.8337        .53154E-05   -1.5105    
   2  alpha         2.2472        .55226        .69174E-03   -.10128    
   3  Normalizat    1.4696        .25785        .15335E-04   -.78637    
   4  Prefactor     .97342        .10080        .35957E-04   -.93621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25148e-09
Minuit parameter uncertainties:
  1  5.83406
  2  0.556897
  3  0.258077
  4  0.100821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88470': 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) = 12949.6688343
delta logL = 0.00927609005339

Extracting fit parameters...

4FGL J1259.7-3223
   Spectrum: LogParabola
297         norm:  9.096e+00  5.834e+00  1.000e-04  1.000e+04 ( 1.000e-12)
298        alpha:  2.247e+00  5.569e-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.734e-01  1.008e-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.470e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 194.945 -32.390
Photon Index (Free Index): 2.25 +/- 0.56
Photon Flux (Free Index): 6.44e-08 +/- 4.90e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.60e-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/88470/cmap_HighResolution_548294401_548553601_4FGL_J1259.7-3223_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.84e-08', energy_flux2='2.54e-05', photon_flux_error='4.12e-08', dlogl='9.28e-03', energy_flux='2.48e-05', photon_flux2='6.44e-08', job_status='DONE', time_completed='2021-09-06 14:30:16.002311', photon_index_error2='0.56', photon_index2='2.25', ts='4.11', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.46', time_epoch_completed='1630963816.0', return_code='0', job_id='88470', GAL2='0.97', EG2='1.47', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.90e-08', ts2='4.12', photon_index='2.32' WHERE bin_id='1192' AND source_name='4FGL J1259.7-3223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:30:16 PDT 2021


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

Job <4FGL_J1259.7-3223_daily_bin1192> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 14:15:48 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 14:15:49 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:49 2021
Terminated at Mon Sep  6 14:30:16 2021
Results reported at Mon Sep  6 14:30:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.7-3223_daily_bin1192 194.945 -32.3898 548294401 548553601 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 :                                   799.36 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             346.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            868 sec.

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

