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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1644
RA = 299.796, Dec = -42.7852
tmin = 665452801, tmax = 665712001
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='574613', job_status='RUN', time_executed='2022-02-05 00:52:37.658397', time_epoch_executed='1644051157.66' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574613/ft1_4FGL_J1959.1-4247_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574613/ft2_4FGL_J1959.1-4247_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574613/ft1_4FGL_J1959.1-4247_daily_bin1644.fits outfile=/scratch/kocevski/574613/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1644.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=665452801.0 tmax=665712001.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.69
user 3.47
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574613/ft1_filtered_4FGL_J1959.1-4247_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/574613/ft2_4FGL_J1959.1-4247_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/574613/ltcube_665452801_665712001_4FGL_J1959.1-4247_daily_bin1644.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/574613/ft2_4FGL_J1959.1-4247_daily_bin1644.fits
.....................!
real 13.45
user 13.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574613/ft1_filtered_4FGL_J1959.1-4247_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574613/ft2_4FGL_J1959.1-4247_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/574613/ltcube_665452801_665712001_4FGL_J1959.1-4247_daily_bin1644.fits outfile=/scratch/kocevski/574613/expmap_665452801_665712001_4FGL_J1959.1-4247_daily_bin1644.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/574613/ltcube_665452801_665712001_4FGL_J1959.1-4247_daily_bin1644.fits
.....................!
real 190.97
user 185.76
sys 4.83

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/574613/ft1_filtered_4FGL_J1959.1-4247_daily_bin1644.fits scfile=/scratch/kocevski/574613/ft2_4FGL_J1959.1-4247_daily_bin1644.fits outfile=/scratch/kocevski/574613/cmap_665452801_665712001_4FGL_J1959.1-4247_daily_bin1644.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/574613/ft1_filtered_4FGL_J1959.1-4247_daily_bin1644.fits scfile=/scratch/kocevski/574613/ft2_4FGL_J1959.1-4247_daily_bin1644.fits outfile=/scratch/kocevski/574613/cmap_HighResolution_665452801_665712001_4FGL_J1959.1-4247_daily_bin1644.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.86
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574613/ft1_filtered_4FGL_J1959.1-4247_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574613/ft2_4FGL_J1959.1-4247_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574613/Model_4FGL_J1959.1-4247_daily_bin1644.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/574613/ft1_filtered_4FGL_J1959.1-4247_daily_bin1644.fits.....................!
real 77.16
user 73.80
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8022       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7669       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.081       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11056E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11804E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18253E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.292       1.0000         .10000E-03   10000.    
    10 'norm      '    15.092       1.0000         .10000E-03   10000.    
    11 'norm      '    .10629E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14373E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5552       1.0000         .10000E-03   10000.    
    15 'norm      '    .10434E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .19767E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    123.97       1.0000         .10000E-03   10000.    
    19 'norm      '    .23865       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1925       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94573       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=   8601.239     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2221 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8061        6.9610        .17539E-05   -.23701E-03
   2  norm          1.7665        1.6641        .81924E-07    .13877E-03
   3  Prefactor     12.361        154.61        .63244E-04   -.44172E-05
   4  Prefactor     .10000E-03    3.6045        .37287E-07** at limit **
   5  Prefactor     .10000E-03    10.671        .11627E-04** at limit **
   6  Prefactor     .10000E-03    3.7140       -.38698E-08** at limit **
   7  norm          .10000E-03    5.5693       -.18624E-07** at limit **
   8  Prefactor     .10000E-03    2.9149        .71607E-07** at limit **
   9  norm          13.291        2.1276       -.30782E-07   -.15798E-03
  10  norm          15.078        9.8163        .57512E-05   -.13917E-04
  11  norm          .10000E-03    12.468       -.19325E-05** at limit **
  12  norm          1.4196        1.3475        .83584E-07    .34089E-05
  13  Prefactor     .10000E-03    31.265       -.37273E-05** at limit **
  14  norm          5.5558        3.8114       -.67454E-06   -.26148E-02
  15  norm          .10000E-03    6.9593        .66594E-06** at limit **
  16  norm          .10000E-03    8.3290        .80492E-07** at limit **
  17  Prefactor     .10000E-03    10.528       -.10317E-04** at limit **
  18  Prefactor     123.50        80.858        .85373E-05    .12343E-04
  19  norm          .23822        1.0564       -.25218E-06   -.51471E-03
  20  Normalizat    1.1927        .25974       -.15496E-05   -.10176E-03
  21  Prefactor     .94566        .92778E-01   -.12680E-05    .55719E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.80613
  norm       = 1.76646
  Prefactor  = 12.3606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2909
  norm       = 15.078
  norm       = 0.0001
  norm       = 1.41958
  Prefactor  = 0.0001
  norm       = 5.5558
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.502
  norm       = 0.23822
  Normalizat = 1.19271
  Prefactor  = 0.945655
 **********
 **   18 **HESSE 
 **********

 FCN=   8601.239     FROM HESSE     STATUS=OK           319 CALLS     2540 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8061        6.9599        .18359E-03   -1.5269    
   2  norm          1.7665        1.6752        .11301E-03   -1.5442    
   3  Prefactor     12.361        153.19        .11525E-03   -1.5005    
   4  Prefactor     .10000E-03    3.6237        .17192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7239        .17454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.5699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9330        .15460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.291        2.1278        .51711E-04   -1.4979    
  10  norm          15.078        9.7966        .10310E-03   -1.4931    
  11  norm          .10000E-03    12.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4196        1.3519        .10196E-03   -1.5470    
  13  Prefactor     .10000E-03    31.307        .20504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5558        3.8645        .73450E-03   -1.5237    
  15  norm          .10000E-03    58.499        .47142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.3320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     123.50        81.003        .18075E-03   -1.3481    
  19  norm          .23822        3.6036        .18020E-02   -1.5610    
  20  Normalizat    1.1927        .30205        .42150E-03   -.86828    
  21  Prefactor     .94566        .10925        .16963E-03   -.94564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09382e-09
Minuit parameter uncertainties:
  1  6.96112
  2  1.67528
  3  87.3069
  4  3.59266e-06
  5  2.46593e-06
  6  3.98219e-06
  7  2.45783e-07
  8  3.41676e-06
  9  2.12785
  10  9.79766
  11  5.72627e-05
  12  1.35189
  13  2.67085e-05
  14  3.86465
  15  7.53137e-05
  16  1.6592e-06
  17  3.51469e-06
  18  81.0762
  19  1.8528
  20  0.302495
  21  0.109277
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.508e+01  9.798e+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

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.457e-01  1.093e-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.193e+00  3.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.50e-08 +/- 4.22e-08
Energy Flux (Fixed Index): 2.34e-05 +/- 1.52e-05

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) = 8600.37442992
delta logL = 0.864516676524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8600.30288619
delta logL = 0.936060410768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.765       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3282       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93990       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=   8600.303     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 19.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.761        11.154       -.56671E-05   -.47423E-03
   2  alpha         1.3280        .70223       -.73625E-04    .40318E-04
   3  Normalizat    1.2304        .24862        .13446E-05    .17566E-03
   4  Prefactor     .93992        .90594E-01    .28068E-07    .36931E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7611
  alpha      = 1.32797
  Normalizat = 1.23045
  Prefactor  = 0.939923
 **********
 **   18 **HESSE 
 **********

 FCN=   8600.303     FROM HESSE     STATUS=OK            29 CALLS      244 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.761        10.623        .12211E-03   -1.5052    
   2  alpha         1.3280        .67036        .17541E-01   -.48794    
   3  Normalizat    1.2304        .29017        .41621E-03   -.85667    
   4  Prefactor     .93992        .10607        .17013E-03   -.94760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9152e-10
Minuit parameter uncertainties:
  1  10.6249
  2  0.68111
  3  0.290552
  4  0.106089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574613': 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) = 8600.30288611
delta logL = 0.936060484039

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.076e+01  1.062e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.328e+00  6.811e-01  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:  9.399e-01  1.061e-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.230e+00  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.87
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 1.33 +/- 0.68
Photon Flux (Free Index): 2.54e-08 +/- 2.66e-08
Energy Flux (Free Index): 3.84e-05 +/- 3.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/574613/cmap_HighResolution_665452801_665712001_4FGL_J1959.1-4247_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.50e-08', energy_flux2='3.84e-05', photon_flux_error='4.22e-08', dlogl='9.36e-01', energy_flux='2.34e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2022-02-05 01:04:19.181372', photon_index_error2='0.68', photon_index2='1.33', ts='4.99', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.51e-05', EG='1.19', time_epoch_completed='1644051859.18', return_code='0', job_id='574613', GAL2='0.94', EG2='1.23', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.66e-08', ts2='6.87', photon_index='2.27' WHERE bin_id='1644' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:04:19 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 574613: <4FGL_J1959.1-4247_daily_bin1644> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1644> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Feb  5 00:51:13 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:51:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:51:30 2022
Terminated at Sat Feb  5 01:04:19 2022
Results reported at Sat Feb  5 01:04:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1644 299.796 -42.7852 665452801 665712001 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 :                                   701.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             314.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            786 sec.

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

