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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1444
RA = 299.796, Dec = -42.7852
tmin = 613612801, tmax = 613872001
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='470390', job_status='RUN', time_executed='2021-09-24 03:28:18.190082', time_epoch_executed='1632479298.19' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470390

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470390/ft1_4FGL_J1959.1-4247_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470390/ft1_4FGL_J1959.1-4247_daily_bin1444.fits outfile=/scratch/kocevski/470390/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1444.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=613612801.0 tmax=613872001.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.56
user 2.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/470390/ltcube_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.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/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits
.....................!
real 12.85
user 12.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/470390/ltcube_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.fits outfile=/scratch/kocevski/470390/expmap_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.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/470390/ltcube_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.fits
.....................!
real 191.66
user 185.88
sys 5.41

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/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits scfile=/scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits outfile=/scratch/kocevski/470390/cmap_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits scfile=/scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits outfile=/scratch/kocevski/470390/cmap_HighResolution_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470390/Model_4FGL_J1959.1-4247_daily_bin1444.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/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits.....................!
real 38.80
user 37.34
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits', '/scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits', expMap='/scratch/kocevski/470390/expmap_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.fits', expCube='/scratch/kocevski/470390/ltcube_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/470390/Model_4FGL_J1959.1-4247_daily_bin1444.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/470390/ft1_filtered_4FGL_J1959.1-4247_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/470390/ft2_4FGL_J1959.1-4247_daily_bin1444.fits
Exposure map: /scratch/kocevski/470390/expmap_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.fits
Exposure cube: /scratch/kocevski/470390/ltcube_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/470390/Model_4FGL_J1959.1-4247_daily_bin1444.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) = 3821.88241023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11362E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7433       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11550E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.066       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7945       1.0000         .10000E-03   10000.    
     9 'norm      '    .20921       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    25.227       1.0000         .10000E-03   10000.    
    12 'norm      '    .10755       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .53267E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.053       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.530       1.0000         .10000E-03   10000.    
    19 'norm      '    11.854       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5185       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1374       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=   3821.871     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     2608 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.504        .18142E-02** at limit **
   2  norm          1.9834        11.447        .29421E-03   -.83408E-04
   3  Prefactor     .10000E-03    127.68        .18142E-02** at limit **
   4  Prefactor     5.7212        16.304        .16760E-03   -.38902E-04
   5  Prefactor     .10000E-03    295.49        .20665E-02** at limit **
   6  Prefactor     41.065        35.090        .62553E-04    .13066E-03
   7  norm          .10000E-03    20.545        .18142E-02** at limit **
   8  Prefactor     8.7996        15.377        .13516E-03   -.66028E-05
   9  norm          .20917        2.1345        .17000E-03   -.30830E-04
  10  norm          .10000E-03    8.9562        .18045E-02** at limit **
  11  norm          25.242        30.891        .79756E-04   -.59512E-04
  12  norm          .10855        16.360        .16454E-02    .68612E-03
  13  Prefactor     .10000E-03    60.075        .18142E-02** at limit **
  14  norm          .10000E-03    8.2096        .34132E-03** at limit **
  15  norm          .20063E-03    22.152        .85907E-01** at limit **
  16  norm          .10000E-03    13.071        .18142E-02** at limit **
  17  Prefactor     28.988        49.467        .74330E-04   -.14530E-05
  18  Prefactor     11.828        326.56        .11798E-03   -.17171E-04
  19  norm          11.854        4.4852        .75511E-04   -.24187E-03
  20  Normalizat    1.5181        .53303        .43584E-03   -.48335E-04
  21  Prefactor     1.1375        .20825        .19199E-03   -.25983E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.98341
  Prefactor  = 0.000100002
  Prefactor  = 5.72119
  Prefactor  = 0.000100001
  Prefactor  = 41.0646
  norm       = 0.0001
  Prefactor  = 8.79965
  norm       = 0.209166
  norm       = 0.0001
  norm       = 25.2416
  norm       = 0.108551
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.000200626
  norm       = 0.0001
  Prefactor  = 28.9881
  Prefactor  = 11.8278
  norm       = 11.8536
  Normalizat = 1.51811
  Prefactor  = 1.13751
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.871     FROM HESSE     STATUS=OK           307 CALLS     2915 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9834        11.436        .11768E-04   -1.5426    
   3  Prefactor     .10000E-03    127.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7212        16.301        .67040E-05   -1.5230    
   5  Prefactor     .10000E-03    295.73        .41330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.065        35.081        .12511E-04   -1.4425    
   7  norm          .10000E-03    20.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7996        15.373        .54064E-05   -1.5115    
   9  norm          .20917        2.1333        .67998E-05   -1.5617    
  10  norm          .10000E-03    8.9571        .36090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          25.242        30.886        .31902E-05   -1.4703    
  12  norm          .10855        16.413        .65815E-04   -1.5642    
  13  Prefactor     .10000E-03    60.077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.2099        .68264E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .20063E-03    21.641        .87426E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.071        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.988        49.457        .29732E-05   -1.4631    
  18  Prefactor     11.828        326.36        .23596E-04   -1.5020    
  19  norm          11.854        4.4852        .30204E-05   -1.5019    
  20  Normalizat    1.5181        .53340        .17433E-04   -.77271    
  21  Prefactor     1.1375        .20814        .38398E-04   -.88277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14655e-09
Minuit parameter uncertainties:
  1  5.96915e-05
  2  9.52752
  3  0.00107351
  4  16.314
  5  0.000818465
  6  35.0986
  7  1.28479e-05
  8  15.3795
  9  1.33574
  10  6.19531e-05
  11  30.9052
  12  2.66911
  13  0.000352539
  14  7.47747e-05
  15  0.0933648
  16  3.27942e-05
  17  49.5266
  18  125.021
  19  4.48532
  20  0.535394
  21  0.208287
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  6.195e-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.138e+00  2.083e-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.518e+00  5.354e-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.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470390/likelihoodResults_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.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) = 3821.87184136
delta logL = -0.00052969051967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3821.87131222
delta logL = -5.52236542717e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2737       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1377       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3821.871     FROM MIGRAD    STATUS=FAILED        80 CALLS      217 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10028E-03    39.190        .18056E-02** at limit **
   2  alpha         2.3443        3.7012        .16547       -.11703E-05
   3  Normalizat    1.5181        .49819        .43586E-03    .67034E-05
   4  Prefactor     1.1375        .19577        .19199E-03    .15159E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3821.871     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      338 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10028E-03    39.190        .43465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3443        3.7012        .30148E-03   -.62325E-01
   3  Normalizat    1.5181        .49819        .56511E-04   -.77271    
   4  Prefactor     1.1375        .19577        .32269E-04   -.88277    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3821.871     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      370 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.0986        .36112E-03** at limit **
   2  alpha         2.4232        3.0911        .33093E-01   -.10306E-08
   3  Normalizat    1.5181        .49855        .17434E-04   -.11933E-04
   4  Prefactor     1.1375        .19592        .38397E-04   -.25611E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42316
  Normalizat = 1.51811
  Prefactor  = 1.13751
 **********
 **   18 **HESSE 
 **********

 FCN=   3821.871     FROM HESSE     STATUS=OK            23 CALLS      393 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.0708        .72225E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4232        2.7699        .13237E-02   -.30742E-01
   3  Normalizat    1.5181        .49886        .34869E-05   -.77271    
   4  Prefactor     1.1375        .19602        .76794E-05   -.88277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9462e-13
Minuit parameter uncertainties:
  1  8.4284e-07
  2  408.76
  3  0.500497
  4  0.196143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470390': 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) = 3821.8713116
delta logL = 6.99865267961e-08

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  8.428e-07  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.423e+00  4.088e+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.138e+00  1.961e-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.518e+00  5.005e-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/470390/cmap_HighResolution_613612801_613872001_4FGL_J1959.1-4247_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-05', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-24 03:38:47.852459', job_id='470390', GAL2='1.14', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1632479927.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='7.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1444' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 470390: <4FGL_J1959.1-4247_daily_bin1444> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1444> 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) <bullet0286>, 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:48 2021
Results reported at Fri Sep 24 03:38:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1444 299.796 -42.7852 613612801 613872001 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 :                                   538.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             246.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            738 sec.

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

