/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 189 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1259.1-2311_daily_bin177
RA = 194.78, Dec = -23.1925
tmin = 285206401, tmax = 285465601
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='72721', job_status='RUN', time_executed='2021-09-06 13:34:44.411651', time_epoch_executed='1630960484.41' WHERE source_name='4FGL J1259.1-2311' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72721/ft1_4FGL_J1259.1-2311_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72721/ft1_4FGL_J1259.1-2311_daily_bin177.fits outfile=/scratch/kocevski/72721/ft1_filteredMKT_4FGL_J1259.1-2311_daily_bin177.fits ra=194.78 dec=-23.1925 rad=12.0 tmin=285206401.0 tmax=285465601.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.49
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/72721/ltcube_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.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/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits
.....................!
real 12.26
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/72721/ltcube_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.fits outfile=/scratch/kocevski/72721/expmap_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.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/72721/ltcube_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.fits
.....................!
real 190.53
user 185.54
sys 4.33

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/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits scfile=/scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits outfile=/scratch/kocevski/72721/cmap_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits scfile=/scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits outfile=/scratch/kocevski/72721/cmap_HighResolution_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/72721/Model_4FGL_J1259.1-2311_daily_bin177.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/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits....................!
real 104.29
user 101.68
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits', '/scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits', expMap='/scratch/kocevski/72721/expmap_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.fits', expCube='/scratch/kocevski/72721/ltcube_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72721/Model_4FGL_J1259.1-2311_daily_bin177.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/72721/ft1_filtered_4FGL_J1259.1-2311_daily_bin177.fits
Spacecraft file(s): /scratch/kocevski/72721/ft2_4FGL_J1259.1-2311_daily_bin177.fits
Exposure map: /scratch/kocevski/72721/expmap_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.fits
Exposure cube: /scratch/kocevski/72721/ltcube_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72721/Model_4FGL_J1259.1-2311_daily_bin177.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) = 6156.05181956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13911E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3303       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1781       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.637       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4964       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86693       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=   6156.023     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2525 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.664       -.57372E-05** at limit **
   2  Prefactor     25.102        36.248       -.11034E-04   -.68508E-07
   3  Prefactor     21.256        24.711        .51889E-06    .59087E-05
   4  Prefactor     .10000E-03    101.65       -.27667E-06** at limit **
   5  Prefactor     .10000E-03    6.3091       -.34360E-06** at limit **
   6  Prefactor     9.3304        3.2453        .10752E-06    .12152E-02
   7  Prefactor     .10000E-03    9.5507        .30990E-05** at limit **
   8  norm          2.6891        1.5346        .80336E-07   -.20444E-03
   9  Prefactor     .10000E-03    27.309       -.61233E-05** at limit **
  10  norm          .10000E-03    8.0040       -.21559E-05** at limit **
  11  norm          8.1802        6.1295       -.10589E-05   -.19398E-02
  12  Prefactor     .10000E-03    4.8695       -.21448E-05** at limit **
  13  norm          .10000E-03    3.2811        .36413E-06** at limit **
  14  norm          .10000E-03    2.2878       -.21514E-06** at limit **
  15  norm          .10000E-03    4.8116        .22985E-05** at limit **
  16  Prefactor     21.637        16.756       -.19232E-06   -.19273E-05
  17  Prefactor     .10000E-03    14.323        .15494E-05** at limit **
  18  Prefactor     .10000E-03    21.979        .59273E-05** at limit **
  19  Prefactor     .10000E-03    11.861       -.41339E-05** at limit **
  20  Prefactor     .10000E-03    7.1940        .44687E-06** at limit **
  21  norm          .10000E-03    34.096        .96283E-05** at limit **
  22  Normalizat    1.4964        .27585        .11186E-05    .73620E-05
  23  Prefactor     .86697        .12391        .22323E-06    .70684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.1024
  Prefactor  = 21.2557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.33044
  Prefactor  = 0.0001
  norm       = 2.68912
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.18017
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.6374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.49638
  Prefactor  = 0.866966
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.023     FROM HESSE     STATUS=OK           364 CALLS     2889 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.102        35.879        .79930E-04   -1.4706    
   3  Prefactor     21.256        24.683        .86867E-04   -1.4786    
   4  Prefactor     .10000E-03    102.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.3112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3304        3.2559        .40719E-03   -1.5097    
   7  Prefactor     .10000E-03    9.5488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6891        1.5286        .69274E-04   -1.5380    
   9  Prefactor     .10000E-03    27.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.1061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1802        6.4245        .70097E-03   -1.5136    
  12  Prefactor     .10000E-03    4.8526        .16791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3293        .13874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6442        .22908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8282        .16763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.637        16.763        .86109E-04   -1.4777    
  17  Prefactor     .10000E-03    14.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.2126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    33.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4964        .33112        .34126E-03   -.77880    
  23  Prefactor     .86697        .14833        .19415E-03   -.97305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09306e-09
Minuit parameter uncertainties:
  1  2.8374e-06
  2  35.9097
  3  24.6945
  4  2.42311e-06
  5  7.92763e-06
  6  3.25593
  7  8.12867e-06
  8  1.52863
  9  1.76068e-05
  10  3.92389e-06
  11  6.42501
  12  2.52573e-05
  13  5.70062e-06
  14  4.60738e-05
  15  1.06098e-05
  16  16.7667
  17  1.96843e-05
  18  1.84775e-05
  19  8.32415e-06
  20  7.89199e-06
  21  2.23369e-05
  22  0.331597
  23  0.148399
Done.

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

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.526e-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:  8.670e-01  1.484e-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.496e+00  3.316e-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.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72721/likelihoodResults_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.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): 102
logL (Free Index) = 6156.02359104
delta logL = -0.000982319066679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6156.02261019
delta logL = -1.46516413224e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11569E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1408       1.0000          .0000       10.000    
     3 'Normalizat'    1.4959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86718       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=   6156.023     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      211 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    11.745        .90712E-02** at limit **
   2  Index         2.2073        5.9505        .50000       -.12813E-03
   3  Normalizat    1.4964        .94176E-02    .77111E-01   -.18954E-04
   4  Prefactor     .86697        .42437E-02    .44585E-01    .48610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Index      = 2.20732
  Normalizat = 1.49637
  Prefactor  = 0.866966
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.023     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    369.04        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2073        6.0805        .50000       -.59262    
   3  Normalizat    1.4964        .55637E-01    .34126E-03   -.77880    
   4  Prefactor     .86697        .25093E-01    .19415E-03   -.97305    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82894e-06
Minuit parameter uncertainties:
  1  0.00554519
  2  30.6803
  3  0.0556397
  4  0.0250937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72721': 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) = 6156.02260573
delta logL = 2.9968614399e-06

Extracting fit parameters...

4FGL J1259.1-2311
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  5.545e-03  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.207e+00  3.068e+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:  8.670e-01  2.509e-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.496e+00  5.564e-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/72721/cmap_HighResolution_285206401_285465601_4FGL_J1259.1-2311_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-06 13:47:15.939944', job_id='72721', GAL2='0.87', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630961235.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='177' AND source_name='4FGL J1259.1-2311' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 13:47:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 72721: <4FGL_J1259.1-2311_daily_bin177> in cluster <slac> Done

Job <4FGL_J1259.1-2311_daily_bin177> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 13:30:55 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 13:30:56 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:30:56 2021
Terminated at Mon Sep  6 13:47:17 2021
Results reported at Mon Sep  6 13:47:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1259.1-2311_daily_bin177 194.78 -23.1925 285206401 285465601 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

