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


Performing analysis on: 4FGL_J1259.1-2311_daily_bin1000
RA = 194.78, Dec = -23.1925
tmin = 498528001, tmax = 498787201
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='77448', job_status='RUN', time_executed='2021-09-06 13:48:46.368395', time_epoch_executed='1630961326.37' WHERE source_name='4FGL J1259.1-2311' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77448

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77448/ft1_4FGL_J1259.1-2311_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77448/ft1_4FGL_J1259.1-2311_daily_bin1000.fits outfile=/scratch/kocevski/77448/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin1000.fits ra=194.78 dec=-23.1925 rad=12.0 tmin=498528001.0 tmax=498787201.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.92
user 4.63
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.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/77448/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/77448/ltcube_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.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/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits
.....................!
real 12.15
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/77448/ltcube_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.fits outfile=/scratch/kocevski/77448/expmap_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.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/77448/ltcube_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.fits
.....................!
real 190.28
user 185.05
sys 4.70

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 187 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.1-2311 @ 194.78 -23.1925

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits scfile=/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits outfile=/scratch/kocevski/77448/cmap_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.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.78 yref=-23.1925 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits scfile=/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits outfile=/scratch/kocevski/77448/cmap_HighResolution_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.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.78 yref=-23.1925 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77448/Model_4FGL_J1259.1-2311_daily_bin1000.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/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits.....................!
real 96.75
user 94.92
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits', '/scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits', expMap='/scratch/kocevski/77448/expmap_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.fits', expCube='/scratch/kocevski/77448/ltcube_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77448/Model_4FGL_J1259.1-2311_daily_bin1000.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1259.1-2311'

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  1.169e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77448/ft1_filtered_4FGL_J1259.1-2311_daily_bin1000.fits
Spacecraft file(s): /scratch/kocevski/77448/ft2_4FGL_J1259.1-2311_daily_bin1000.fits
Exposure map: /scratch/kocevski/77448/expmap_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.fits
Exposure cube: /scratch/kocevski/77448/ltcube_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77448/Model_4FGL_J1259.1-2311_daily_bin1000.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) = 5694.12242578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.174       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    88.753       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .37853E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8670       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6060       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7664       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79735       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5694.116     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2564 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.941       -.29536E-06** at limit **
   2  Prefactor     62.882        53.686        .11396E-05    .10363E-03
   3  Prefactor     .10000E-03    9.7377       -.57662E-08** at limit **
   4  Prefactor     .10000E-03    20.235        .93297E-07** at limit **
   5  Prefactor     18.916        20.436       -.93557E-07    .79643E-05
   6  Prefactor     10.174        3.5467        .61603E-08    .22215E-04
   7  Prefactor     .10000E-03    4.3133       -.13741E-06** at limit **
   8  norm          .10000E-03    .58033       -.26700E-06** at limit **
   9  Prefactor     88.623        86.558       -.11402E-05   -.15038E-05
  10  norm          .10000E-03    6.3064       -.56098E-06** at limit **
  11  norm          .10000E-03    18.268       -.31142E-05** at limit **
  12  Prefactor     .10000E-03    9.3575       -.33651E-07** at limit **
  13  norm          .10000E-03    14.699       -.35788E-05** at limit **
  14  norm          4.8664        3.6277       -.24980E-06   -.24324E-03
  15  norm          .10000E-03    2.7312       -.32323E-06** at limit **
  16  Prefactor     .10000E-03    20.451       -.10542E-05** at limit **
  17  Prefactor     .10000E-03    41.257       -.22006E-05** at limit **
  18  Prefactor     .10000E-03    28.335       -.14142E-05** at limit **
  19  Prefactor     .10000E-03    5.5082       -.51809E-06** at limit **
  20  Prefactor     2.6047        11.533       -.34718E-06    .16687E-04
  21  norm          .10000E-03    7.8092       -.14305E-06** at limit **
  22  Normalizat    1.7664        .32196       -.30516E-05    .18991E-03
  23  Prefactor     .79731        .14457        .24755E-05    .41850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.8818
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9158
  Prefactor  = 10.1738
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 88.623
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 4.86636
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.60465
  norm       = 0.0001
  Normalizat = 1.76639
  Prefactor  = 0.797315
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.116     FROM HESSE     STATUS=OK           362 CALLS     2926 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.882        54.029        .50594E-04   -1.4120    
   3  Prefactor     .10000E-03    9.7401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.916        20.437        .46045E-03   -1.4838    
   6  Prefactor     10.174        3.5473        .81847E-04   -1.5070    
   7  Prefactor     .10000E-03    4.3164        .15308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0515        .10975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     88.623        86.793        .21325E-03   -1.3822    
  10  norm          .10000E-03    6.3866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    18.300        .29570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.6307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    15.814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8664        3.6365        .12009E-03   -1.5267    
  15  norm          .10000E-03    2.7473        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5579        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6047        11.372        .25270E-03   -1.5385    
  21  norm          .10000E-03    7.8115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7664        .34682        .31899E-03   -.70544    
  23  Prefactor     .79731        .15609        .20269E-03   -.99827    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42563e-10
Minuit parameter uncertainties:
  1  5.54549e-05
  2  54.071
  3  3.76627e-06
  4  2.88529e-05
  5  20.4441
  6  3.54735
  7  4.12212e-06
  8  1.60883e-05
  9  86.9179
  10  2.00614e-05
  11  9.6777e-05
  12  2.88065e-05
  13  0.000246102
  14  3.63666
  15  9.21476e-06
  16  4.81536e-05
  17  0.000182499
  18  0.00015798
  19  2.19038e-05
  20  10.8882
  21  1.52829e-05
  22  0.347303
  23  0.156173
Done.

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

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.881e-05  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  7.973e-01  1.562e-01  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.766e+00  3.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 194.780 -23.192
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77448/likelihoodResults_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.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) = 5694.11692631
delta logL = -0.000495576415233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5694.11643102
delta logL = -2.8796512197e-07

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 'Index     '    2.1167       1.0000          .0000       10.000    
     3 'Normalizat'    1.7661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5694.116     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.287        .90712E-02** at limit **
   2  Index         2.1568        5.8096        .50000       -.50286E-04
   3  Normalizat    1.7664        .10559E-01    .72103E-01   -.12686E-03
   4  Prefactor     .79732        .47823E-02    .43684E-01   -.25914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.15684
  Normalizat = 1.76638
  Prefactor  = 0.797316
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.116     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      240 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    271.79        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1568        7.9244        .50000       -.60484    
   3  Normalizat    1.7664        .37957E-01    .31898E-03   -.70544    
   4  Prefactor     .79732        .17198E-01    .20270E-03   -.99827    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.54279e-08
Minuit parameter uncertainties:
  1  0.000853148
  2  20.7024
  3  0.0379576
  4  0.0171981
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77448': 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): 102
logL (Free Index) = 5694.11643014
delta logL = 5.93087861489e-07

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  8.531e-04  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.157e+00  2.070e+01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  2.474e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
613    Prefactor:  7.973e-01  1.720e-02  0.000e+00  1.000e+01 ( 1.000e+00)
614        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
615        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
612   Normalization:  1.766e+00  3.796e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 194.780 -23.192

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/77448/cmap_HighResolution_498528001_498787201_4FGL_J1259.1-2311_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-06 14:00:40.282779', job_id='77448', GAL2='0.80', fit_tolerance='1e-08', EG2='1.77', EG='1.77', time_epoch_completed='1630962040.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1000' AND source_name='4FGL J1259.1-2311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 14:00:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 77448: <4FGL_J1259.1-2311_daily_bin1000> in cluster <slac> Done

Job <4FGL_J1259.1-2311_daily_bin1000> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Sep  6 13:45:29 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:45:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 13:45:30 2021
Terminated at Mon Sep  6 14:00:41 2021
Results reported at Mon Sep  6 14:00:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.1-2311_daily_bin1000 194.78 -23.1925 498528001 498787201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1259.1-2311 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   709.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

