/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 238 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7474
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1150
RA = 299.796, Dec = -42.7852
tmin = 537408001, tmax = 537667201
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='467930', job_status='RUN', time_executed='2021-09-24 03:21:36.170279', time_epoch_executed='1632478896.17' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467930

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467930/ft1_4FGL_J1959.1-4247_daily_bin1150.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467930/ft2_4FGL_J1959.1-4247_daily_bin1150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467930/ft1_4FGL_J1959.1-4247_daily_bin1150.fits outfile=/scratch/kocevski/467930/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1150.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=537408001.0 tmax=537667201.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 4.56
user 4.29
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467930/ft1_filtered_4FGL_J1959.1-4247_daily_bin1150.fits" evtable="EVENTS" scfile=/scratch/kocevski/467930/ft2_4FGL_J1959.1-4247_daily_bin1150.fits sctable="SC_DATA" outfile=/scratch/kocevski/467930/ltcube_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.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/467930/ft2_4FGL_J1959.1-4247_daily_bin1150.fits
.....................!
real 11.80
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467930/ft1_filtered_4FGL_J1959.1-4247_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/467930/ft2_4FGL_J1959.1-4247_daily_bin1150.fits sctable="SC_DATA" expcube=/scratch/kocevski/467930/ltcube_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.fits outfile=/scratch/kocevski/467930/expmap_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.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/467930/ltcube_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.fits
.....................!
real 190.45
user 184.76
sys 5.33

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/467930/ft1_filtered_4FGL_J1959.1-4247_daily_bin1150.fits scfile=/scratch/kocevski/467930/ft2_4FGL_J1959.1-4247_daily_bin1150.fits outfile=/scratch/kocevski/467930/cmap_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467930/ft1_filtered_4FGL_J1959.1-4247_daily_bin1150.fits scfile=/scratch/kocevski/467930/ft2_4FGL_J1959.1-4247_daily_bin1150.fits outfile=/scratch/kocevski/467930/cmap_HighResolution_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.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/467930/ft1_filtered_4FGL_J1959.1-4247_daily_bin1150.fits evtable="EVENTS" scfile=/scratch/kocevski/467930/ft2_4FGL_J1959.1-4247_daily_bin1150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467930/Model_4FGL_J1959.1-4247_daily_bin1150.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/467930/ft1_filtered_4FGL_J1959.1-4247_daily_bin1150.fits.....................!
real 67.31
user 65.92
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .63411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    166.54       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.486       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.913       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.3912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.763       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.4981       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8651       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16544E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    32.921       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7630       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74773E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.7914       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83652       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2636       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=   7893.038     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2215 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9956       -.61427E-07** at limit **
   2  norm          .63410        2.4700        .19481E-05   -.52893E-04
   3  Prefactor     166.47        132.07       -.14673E-06   -.27557E-04
   4  Prefactor     11.486        9.8558        .84369E-07   -.33138E-04
   5  Prefactor     13.908        22.123        .37548E-07   -.69118E-05
   6  Prefactor     .10000E-03    7.4729        .39678E-07** at limit **
   7  norm          6.3890        18.710        .97962E-08   -.10273E-04
   8  Prefactor     11.762        9.4057        .12839E-06   -.23286E-04
   9  norm          .10000E-03    .51187        .24165E-06** at limit **
  10  norm          7.4986        12.171        .45632E-07   -.31788E-04
  11  norm          6.8569        20.917        .56245E-06   -.13427E-04
  12  norm          .10000E-03    .36403        .22583E-07** at limit **
  13  Prefactor     .10000E-03    57.639        .18029E-06** at limit **
  14  norm          .10000E-03    2.4119        .96330E-07** at limit **
  15  norm          32.923        20.724        .13347E-06   -.83968E-06
  16  norm          7.6945        25.669        .10061E-05   -.18398E-04
  17  Prefactor     .10000E-03    74.715       -.12862E-04** at limit **
  18  Prefactor     .10000E-03    57.845        .31194E-07** at limit **
  19  norm          5.7922        3.1345        .12901E-06    .45024E-06
  20  Normalizat    .83592        .31993       -.23885E-05   -.39525E-04
  21  Prefactor     1.2638        .11531        .27557E-06   -.22406E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.6341
  Prefactor  = 166.466
  Prefactor  = 11.4865
  Prefactor  = 13.9083
  Prefactor  = 0.0001
  norm       = 6.38897
  Prefactor  = 11.7621
  norm       = 0.0001
  norm       = 7.49861
  norm       = 6.8569
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.9234
  norm       = 7.69455
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.79215
  Normalizat = 0.835922
  Prefactor  = 1.2638
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.038     FROM HESSE     STATUS=OK           323 CALLS     2538 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0020        .15016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .63410        2.4829        .26621E-03   -1.5549    
   3  Prefactor     166.47        132.07        .15629E-03   -1.3120    
   4  Prefactor     11.486        9.8385        .11821E-03   -1.5030    
   5  Prefactor     13.908        22.115        .10738E-03   -1.4962    
   6  Prefactor     .10000E-03    7.5027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.3890        18.712        .15876E-03   -1.5202    
   8  Prefactor     11.762        9.3977        .11680E-03   -1.5022    
   9  norm          .10000E-03    .82582        .12157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4986        12.112        .14646E-03   -1.5160    
  11  norm          6.8569        20.788        .15313E-03   -1.5184    
  12  norm          .10000E-03    .36424        .52348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    6.4985        .26642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          32.923        20.709        .69838E-04   -1.4560    
  16  norm          7.6945        25.680        .14392E-03   -1.5153    
  17  Prefactor     .10000E-03    74.609        .20942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    57.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.7922        3.1372        .10863E-03   -1.5227    
  20  Normalizat    .83592        .34034        .52817E-03   -.98750    
  21  Prefactor     1.2638        .12497        .16472E-03   -.84390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00526e-11
Minuit parameter uncertainties:
  1  1.85137e-07
  2  2.4833
  3  132.308
  4  9.8399
  5  22.1278
  6  2.9331e-06
  7  18.7296
  8  9.39885
  9  1.03868e-05
  10  12.1157
  11  20.8104
  12  8.23096e-08
  13  5.8425e-05
  14  3.68923e-06
  15  20.7139
  16  25.7166
  17  0.000436234
  18  5.34507e-05
  19  3.13727
  20  0.341211
  21  0.124998
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  7.499e+00  1.212e+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:  1.264e+00  1.250e-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:  8.359e-01  3.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/467930/likelihoodResults_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.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) = 7892.63184513
delta logL = 0.40608454974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7892.59284457
delta logL = 0.44508511264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96623       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5804       1.0000          .0000       5.0000    
     3 'Normalizat'    .74132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2874       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.

 FCN=   7892.593     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      300 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97339        22.553        .13046E-01   -.15019E-02
   2  alpha         4.5759        2.6999        .50000       -.36171E-04
   3  Normalizat    .74145        .95078E-01    .12580       -.37737E-04
   4  Prefactor     1.2873        .35130E-01    .32833E-01   -.43294E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.97339
  alpha      = 4.57594
  Normalizat = 0.741449
  Prefactor  = 1.28731
 **********
 **   18 **HESSE 
 **********

 FCN=   7892.593     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      331 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97339        40.344        .79396E-04   -1.5511    
   2  alpha         4.5759        2.6976        .46485E-01    .97978    
   3  Normalizat    .74145        .26333        .55812E-03   -1.0228    
   4  Prefactor     1.2873        .99441E-01    .16339E-03   -.83685    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.31354e-10
Minuit parameter uncertainties:
  1  12.5417
  2  8.1413
  3  0.26378
  4  0.0994554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467930': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7892.59284376
delta logL = 0.445085916762

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  9.734e-01  1.254e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  4.576e+00  8.141e+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:  1.287e+00  9.946e-02  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:  7.414e-01  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 4.58 +/- 8.14
Photon Flux (Free Index): 9.98e-08 +/- 9.02e-08
Energy Flux (Free Index): 1.45e-05 +/- 2.10e-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/467930/cmap_HighResolution_537408001_537667201_4FGL_J1959.1-4247_daily_bin1150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.35e-05', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='4.45e-01', photon_flux2='9.98e-08', job_status='DONE', time_completed='2021-09-24 03:33:57.610618', photon_index_error2='8.14', photon_index2='4.58', ts='0.49', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='2.10e-05', EG='0.84', time_epoch_completed='1632479637.61', return_code='0', job_id='467930', GAL2='1.29', EG2='0.74', return_code2='102', photon_flux_error2='9.02e-08', ts2='1.48', photon_index='2.27' WHERE bin_id='1150' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 467930: <4FGL_J1959.1-4247_daily_bin1150> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1150> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 24 03:17:26 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:17:29 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:17:29 2021
Terminated at Fri Sep 24 03:33:58 2021
Results reported at Fri Sep 24 03:33:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1150 299.796 -42.7852 537408001 537667201 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 :                                   740.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            992 sec.

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

