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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1443
RA = 299.796, Dec = -42.7852
tmin = 613353601, tmax = 613612801
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='470389', job_status='RUN', time_executed='2021-09-24 03:28:57.557112', time_epoch_executed='1632479337.56' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470389/ft1_4FGL_J1959.1-4247_daily_bin1443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470389/ft1_4FGL_J1959.1-4247_daily_bin1443.fits outfile=/scratch/kocevski/470389/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1443.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=613353601.0 tmax=613612801.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 2.73
user 2.54
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.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/470389/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1443.fits evtable="EVENTS" outfile="/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits" evtable="EVENTS" scfile=/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits sctable="SC_DATA" outfile=/scratch/kocevski/470389/ltcube_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.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/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits
.....................!
real 12.58
user 12.25
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits sctable="SC_DATA" expcube=/scratch/kocevski/470389/ltcube_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.fits outfile=/scratch/kocevski/470389/expmap_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.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/470389/ltcube_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.fits
.....................!
real 190.06
user 185.48
sys 4.20

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1959.1-4247 @ 299.796 -42.7852

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits scfile=/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits outfile=/scratch/kocevski/470389/cmap_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.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=299.796 yref=-42.7852 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits scfile=/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits outfile=/scratch/kocevski/470389/cmap_HighResolution_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.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=299.796 yref=-42.7852 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits evtable="EVENTS" scfile=/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470389/Model_4FGL_J1959.1-4247_daily_bin1443.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits.....................!
real 41.60
user 40.32
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits', '/scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits', expMap='/scratch/kocevski/470389/expmap_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.fits', expCube='/scratch/kocevski/470389/ltcube_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/470389/Model_4FGL_J1959.1-4247_daily_bin1443.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1959.1-4247'

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  3.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/470389/ft1_filtered_4FGL_J1959.1-4247_daily_bin1443.fits
Spacecraft file(s): /scratch/kocevski/470389/ft2_4FGL_J1959.1-4247_daily_bin1443.fits
Exposure map: /scratch/kocevski/470389/expmap_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.fits
Exposure cube: /scratch/kocevski/470389/ltcube_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/470389/Model_4FGL_J1959.1-4247_daily_bin1443.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) = 4161.39893677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2502       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2381       1.0000         .10000E-03   10000.    
     7 'norm      '    12.266       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.259       1.0000         .10000E-03   10000.    
     9 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.2689       1.0000         .10000E-03   10000.    
    12 'norm      '    .66085       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.3838       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.832       1.0000         .10000E-03   10000.    
    19 'norm      '    4.4016       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3464       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4161.384     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2257 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.228        .15837E-06** at limit **
   2  norm          3.2496        5.5778       -.37546E-05   -.26473E-03
   3  Prefactor     .10000E-03    268.32       -.11618E-03** at limit **
   4  Prefactor     .10000E-03    5.8067        .53800E-07** at limit **
   5  Prefactor     .10000E-03    16.866       -.39329E-06** at limit **
   6  Prefactor     8.2264        36.217        .47614E-05   -.33847E-05
   7  norm          12.263        37.693        .12978E-05   -.54403E-05
   8  Prefactor     26.261        17.727       -.52926E-06   -.31766E-04
   9  norm          .10000E-03    1.6113        .17241E-07** at limit **
  10  norm          .10000E-03    7.8062        .95435E-07** at limit **
  11  norm          7.2721        27.941       -.21433E-05   -.28189E-04
  12  norm          .66067        1.5967       -.16499E-06   -.76889E-03
  13  Prefactor     .10000E-03    226.77        .93465E-04** at limit **
  14  norm          5.3844        4.8626        .95600E-07   -.11973E-03
  15  norm          .10000E-03    18.831        .35199E-06** at limit **
  16  norm          .10000E-03    31.571        .85653E-05** at limit **
  17  Prefactor     .10000E-03    30.887       -.87513E-05** at limit **
  18  Prefactor     26.874        117.98        .68950E-04   -.21635E-05
  19  norm          4.4020        2.8371       -.55774E-06   -.23740E-02
  20  Normalizat    1.3459        .39903       -.64524E-05   -.13357E-04
  21  Prefactor     1.1107        .15518        .75741E-06   -.25798E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.24958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.22644
  norm       = 12.2634
  Prefactor  = 26.2607
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.27213
  norm       = 0.660673
  Prefactor  = 0.0001
  norm       = 5.38443
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8735
  norm       = 4.40198
  Normalizat = 1.34589
  Prefactor  = 1.11074
 **********
 **   18 **HESSE 
 **********

 FCN=   4161.384     FROM HESSE     STATUS=OK           319 CALLS     2576 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2496        5.5844        .19287E-03   -1.5347    
   3  Prefactor     .10000E-03    267.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8129        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2264        35.322        .13968E-03   -1.5134    
   7  norm          12.263        37.751        .11437E-03   -1.5007    
   8  Prefactor     26.261        17.737        .78176E-04   -1.4683    
   9  norm          .10000E-03    2.4294        .15483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.8236        .17601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.2721        27.970        .14877E-03   -1.5169    
  12  norm          .66067        1.2811        .12312E-02   -1.5545    
  13  Prefactor     .10000E-03    226.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3844        4.8550        .12994E-03   -1.5244    
  15  norm          .10000E-03    18.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    31.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.874        118.24        .77338E-04   -1.4671    
  19  norm          4.4020        2.8560        .41858E-03   -1.5288    
  20  Normalizat    1.3459        .45698        .41833E-03   -.82207    
  21  Prefactor     1.1107        .17945        .18158E-03   -.89124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4417e-09
Minuit parameter uncertainties:
  1  4.64598e-06
  2  5.58531
  3  0.000112268
  4  1.00381e-05
  5  8.49563e-06
  6  34.1265
  7  37.825
  8  17.7405
  9  1.3607e-05
  10  1.07831e-05
  11  28.0206
  12  1.28113
  13  0.000231487
  14  4.85534
  15  2.37702e-05
  16  9.22573e-05
  17  0.000164279
  18  113.117
  19  2.85612
  20  0.458368
  21  0.17955
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.078e-05  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  1.111e+00  1.795e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
666   Normalization:  1.346e+00  4.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 299.796 -42.785
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470389/likelihoodResults_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.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) = 4161.38451997
delta logL = -0.000607531927017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4161.38391244
delta logL = -2.39560904447e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2714       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6700E+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=   4161.384     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      227 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    40.423        .17603E-02** at limit **
   2  alpha         2.3167        3.5870        .16548       -.45039E-06
   3  Normalizat    1.3459        .43137        .41834E-03   -.13968E-03
   4  Prefactor     1.1107        .17382        .18158E-03   -.40344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100043
  alpha      = 2.31669
  Normalizat = 1.34589
  Prefactor  = 1.11075
 **********
 **   18 **HESSE 
 **********

 FCN=   4161.384     FROM HESSE     STATUS=OK            23 CALLS      250 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    7.8484        .35205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3167        3.8010        .66194E-02   -.73388E-01
   3  Normalizat    1.3459        .43167        .16734E-04   -.82207    
   4  Prefactor     1.1107        .17394        .36317E-04   -.89124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21294e-08
Minuit parameter uncertainties:
  1  0.00116657
  2  433.902
  3  0.43284
  4  0.174032
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470389': 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) = 4161.38391243
delta logL = 1.16651790449e-08

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.167e-03  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.317e+00  4.339e+02  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  1.111e+00  1.740e-01  0.000e+00  1.000e+01 ( 1.000e+00)
668        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
669        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
666   Normalization:  1.346e+00  4.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 299.796 -42.785

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/470389/cmap_HighResolution_613353601_613612801_4FGL_J1959.1-4247_daily_bin1443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-05', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-24 03:38:51.717055', job_id='470389', GAL2='1.11', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632479931.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.17e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1443' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:38:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 470389: <4FGL_J1959.1-4247_daily_bin1443> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1443> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 24 03:26:30 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:26:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 03:26:32 2021
Terminated at Fri Sep 24 03:38:52 2021
Results reported at Fri Sep 24 03:38:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1443 299.796 -42.7852 613353601 613612801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1959.1-4247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   530.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

