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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1349
RA = 299.796, Dec = -42.7852
tmin = 588988801, tmax = 589248001
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='469319', job_status='RUN', time_executed='2021-09-24 03:25:02.116258', time_epoch_executed='1632479102.12' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469319/ft1_4FGL_J1959.1-4247_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469319/ft1_4FGL_J1959.1-4247_daily_bin1349.fits outfile=/scratch/kocevski/469319/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1349.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=588988801.0 tmax=589248001.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.12
user 2.93
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.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/469319/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/469319/ft1_filtered_4FGL_J1959.1-4247_daily_bin1349.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469319/ft1_filtered_4FGL_J1959.1-4247_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/469319/ltcube_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.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/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.fits
.....................!
real 12.15
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469319/ft1_filtered_4FGL_J1959.1-4247_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/469319/ltcube_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.fits outfile=/scratch/kocevski/469319/expmap_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.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/469319/ltcube_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.fits
.....................!
real 191.19
user 186.41
sys 4.43

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/469319/ft1_filtered_4FGL_J1959.1-4247_daily_bin1349.fits scfile=/scratch/kocevski/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.fits outfile=/scratch/kocevski/469319/cmap_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469319/ft1_filtered_4FGL_J1959.1-4247_daily_bin1349.fits scfile=/scratch/kocevski/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.fits outfile=/scratch/kocevski/469319/cmap_HighResolution_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469319/ft1_filtered_4FGL_J1959.1-4247_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/469319/ft2_4FGL_J1959.1-4247_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469319/Model_4FGL_J1959.1-4247_daily_bin1349.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/469319/ft1_filtered_4FGL_J1959.1-4247_daily_bin1349.fits.....................!
real 49.92
user 48.60
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6293       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    330.41       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1782       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9917       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .96994       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2919       1.0000         .10000E-03   10000.    
    10 'norm      '    14.740       1.0000         .10000E-03   10000.    
    11 'norm      '    62.153       1.0000         .10000E-03   10000.    
    12 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    163.82       1.0000         .10000E-03   10000.    
    14 'norm      '    .56197       1.0000         .10000E-03   10000.    
    15 'norm      '    55.653       1.0000         .10000E-03   10000.    
    16 'norm      '    .30844E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    91.083       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    25.915       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.9670       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71402       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=   4925.683     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2275 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6297        8.0304        .13065E-06   -.37581E-05
   2  norm          1.4035        3.4180        .15416E-05    .56819E-03
   3  Prefactor     330.37        151.05        .79541E-08   -.44076E-04
   4  Prefactor     9.1782        9.3115       -.19003E-06   -.42239E-04
   5  Prefactor     23.282        33.227       -.50724E-06   -.69091E-04
   6  Prefactor     5.9870        16.286       -.29553E-06   -.87562E-05
   7  norm          .10000E-03    10.361        .38015E-07** at limit **
   8  Prefactor     1.0165        6.8213       -.64449E-07   -.12418E-04
   9  norm          1.2910        1.6685        .68696E-07    .90067E-05
  10  norm          14.739        17.345       -.11660E-06   -.17785E-04
  11  norm          62.146        43.739        .11878E-06   -.19420E-04
  12  norm          .10000E-03    1.8005        .25861E-06** at limit **
  13  Prefactor     163.79        132.26       -.81124E-06   -.37747E-04
  14  norm          .55029        11.966        .51838E-05   -.44762E-03
  15  norm          55.650        34.272       -.15121E-06   -.41725E-04
  16  norm          .10002E-03    40.807       -.67590E-05** at limit **
  17  Prefactor     90.982        83.619       -.68184E-06   -.87344E-04
  18  Prefactor     .10000E-03    85.680       -.10630E-05** at limit **
  19  norm          25.913        8.5090       -.95620E-07    .28536E-05
  20  Normalizat    1.9679        .44002        .78430E-05   -.67044E-04
  21  Prefactor     .71373        .13824       -.41999E-05   -.17938E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.6297
  norm       = 1.40348
  Prefactor  = 330.371
  Prefactor  = 9.17816
  Prefactor  = 23.282
  Prefactor  = 5.98702
  norm       = 0.0001
  Prefactor  = 1.01646
  norm       = 1.29098
  norm       = 14.7392
  norm       = 62.1456
  norm       = 0.0001
  Prefactor  = 163.789
  norm       = 0.55029
  norm       = 55.6499
  norm       = 0.000100018
  Prefactor  = 90.9819
  Prefactor  = 0.0001
  norm       = 25.9129
  Normalizat = 1.96793
  Prefactor  = 0.713727
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.683     FROM HESSE     STATUS=OK           319 CALLS     2594 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6297        8.0359        .13646E-03   -1.5120    
   2  norm          1.4035        3.4717        .19401E-03   -1.5471    
   3  Prefactor     330.37        151.14        .11189E-03   -1.2052    
   4  Prefactor     9.1782        9.3172        .13229E-03   -1.5102    
   5  Prefactor     23.282        33.264        .82958E-04   -1.4743    
   6  Prefactor     5.9870        16.278        .16404E-03   -1.5219    
   7  norm          .10000E-03    10.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0165        27.824        .34676E-02   -1.5506    
   9  norm          1.2910        1.6339        .97667E-04   -1.5481    
  10  norm          14.739        17.325        .10432E-03   -1.4940    
  11  norm          62.146        43.397        .50898E-04   -1.4130    
  12  norm          .10000E-03    1.8632        .18386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     163.79        132.26        .15755E-03   -1.3141    
  14  norm          .55029        18.014        .35029E-02   -1.5560    
  15  norm          55.650        34.264        .26885E-03   -1.4215    
  16  norm          .10002E-03    43.392        .21378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     90.982        83.679        .21053E-03   -1.3797    
  18  Prefactor     .10000E-03    85.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.913        8.5275        .39346E-03   -1.4689    
  20  Normalizat    1.9679        .48752        .39203E-03   -.65357    
  21  Prefactor     .71373        .15290        .19434E-03   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45163e-08
Minuit parameter uncertainties:
  1  8.03691
  2  3.47219
  3  151.324
  4  9.31869
  5  33.2906
  6  16.2904
  7  7.02796e-06
  8  10.6412
  9  1.63397
  10  17.3313
  11  43.419
  12  8.42262e-06
  13  132.496
  14  6.29845
  15  34.276
  16  0.00176116
  17  83.7879
  18  0.000381209
  19  8.52791
  20  0.488759
  21  0.152991
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.474e+01  1.733e+01  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:  7.137e-01  1.530e-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.968e+00  4.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.35e-08 +/- 7.46e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 2.68e-05

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

Saving results to:
/scratch/kocevski/469319/likelihoodResults_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.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) = 4925.38394957
delta logL = 0.299048013186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4925.36523266
delta logL = 0.317764924187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.800       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1136       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73161       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=   4925.365     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.805        17.357        .11662E-03   -.50244E-03
   2  alpha         3.1141        1.1767        .15629E-01   -.58502E-04
   3  Normalizat    1.8754        .47423        .39883E-03    .65240E-03
   4  Prefactor     .73155        .14865        .19210E-03    .15221E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8053
  alpha      = 3.11414
  Normalizat = 1.87539
  Prefactor  = 0.731549
 **********
 **   18 **HESSE 
 **********

 FCN=   4925.365     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.805        15.455        .46647E-05   -1.5021    
   2  alpha         3.1141        1.0552        .62516E-03    .24820    
   3  Normalizat    1.8754        .47361        .79765E-04   -.67712    
   4  Prefactor     .73155        .14843        .38420E-04   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63048e-09
Minuit parameter uncertainties:
  1  15.4602
  2  1.09174
  3  0.47479
  4  0.148512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469319': 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) = 4925.3652308
delta logL = 0.317766779738

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.181e+01  1.546e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  3.114e+00  1.092e+00  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:  7.315e-01  1.485e-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.875e+00  4.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 3.11 +/- 1.09
Photon Flux (Free Index): 1.40e-07 +/- 1.40e-07
Energy Flux (Free Index): 2.88e-05 +/- 2.52e-05

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/469319/cmap_HighResolution_588988801_589248001_4FGL_J1959.1-4247_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-05', comment='SUCCESS', photon_flux='6.35e-08', energy_flux2='2.88e-05', photon_flux_error='7.46e-08', dlogl='3.18e-01', energy_flux='2.28e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-24 03:36:20.532323', photon_index_error2='1.09', photon_index2='3.11', ts='1.03', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='2.30e-07', energy_flux_error2='2.52e-05', EG='1.97', time_epoch_completed='1632479780.53', return_code='0', job_id='469319', GAL2='0.73', EG2='1.88', return_code2='0', energy_flux_error='2.68e-05', photon_flux_error2='1.40e-07', ts2='1.72', photon_index='2.27' WHERE bin_id='1349' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 469319: <4FGL_J1959.1-4247_daily_bin1349> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1349> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 03:22:27 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:22:30 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:22:30 2021
Terminated at Fri Sep 24 03:36:21 2021
Results reported at Fri Sep 24 03:36:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1349 299.796 -42.7852 588988801 589248001 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 :                                   591.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             207.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            834 sec.

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

