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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1049
RA = 299.796, Dec = -42.7852
tmin = 511228801, tmax = 511488001
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='467781', job_status='RUN', time_executed='2021-09-24 03:18:20.691409', time_epoch_executed='1632478700.69' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467781/ft1_4FGL_J1959.1-4247_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467781/ft2_4FGL_J1959.1-4247_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467781/ft1_4FGL_J1959.1-4247_daily_bin1049.fits outfile=/scratch/kocevski/467781/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1049.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=511228801.0 tmax=511488001.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.50
user 3.27
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467781/ft1_filtered_4FGL_J1959.1-4247_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/467781/ft2_4FGL_J1959.1-4247_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/467781/ltcube_511228801_511488001_4FGL_J1959.1-4247_daily_bin1049.fits outfile=/scratch/kocevski/467781/expmap_511228801_511488001_4FGL_J1959.1-4247_daily_bin1049.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/467781/ltcube_511228801_511488001_4FGL_J1959.1-4247_daily_bin1049.fits
.....................!
real 190.60
user 185.16
sys 5.07

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/467781/ft1_filtered_4FGL_J1959.1-4247_daily_bin1049.fits scfile=/scratch/kocevski/467781/ft2_4FGL_J1959.1-4247_daily_bin1049.fits outfile=/scratch/kocevski/467781/cmap_511228801_511488001_4FGL_J1959.1-4247_daily_bin1049.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467781/ft1_filtered_4FGL_J1959.1-4247_daily_bin1049.fits scfile=/scratch/kocevski/467781/ft2_4FGL_J1959.1-4247_daily_bin1049.fits outfile=/scratch/kocevski/467781/cmap_HighResolution_511228801_511488001_4FGL_J1959.1-4247_daily_bin1049.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.55
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5484       1.0000         .10000E-03   10000.    
     2 'norm      '    .50016       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.267       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.5260       1.0000         .10000E-03   10000.    
     7 'norm      '    12.905       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .67284       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .16587       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3147       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0169       1.0000         .10000E-03   10000.    
    16 'norm      '    .68843       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91317       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96572       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10900.71     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2237 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5484        6.6165         .0000       -.34070E-03
   2  norm          .50050        1.5470         .0000        .24052E-02
   3  Prefactor     .10000E-03    30.261         .0000    ** at limit **
   4  Prefactor     12.040        6.4994         .0000       -.15681E-02
   5  Prefactor     11.267        13.124         .0000       -.93417E-04
   6  Prefactor     2.5261        6.0939         .0000        .12772E-01
   7  norm          12.905        13.103         .0000       -.26020E-04
   8  Prefactor     .10000E-03    2.9982         .0000    ** at limit **
   9  norm          .67305        .69969         .0000        .16574E-02
  10  norm          .10000E-03    1.7168         .0000    ** at limit **
  11  norm          .10000E-03    7.4412         .0000    ** at limit **
  12  norm          .16599        1.0873         .0000        .49070E-02
  13  Prefactor     .10000E-03    14.140         .0000    ** at limit **
  14  norm          2.3146        2.2600         .0000        .35701E-02
  15  norm          5.0174        6.4671         .0000        .69258E-03
  16  norm          .69701        8.4085         .0000        .14273E-01
  17  Prefactor     10.256        20.023         .0000        .17150E-02
  18  Prefactor     .10000E-03    47.836         .0000    ** at limit **
  19  norm          .10000E-03    .53142         .0000    ** at limit **
  20  Normalizat    .91317        .19486         .0000       -.15304E-03
  21  Prefactor     .96570        .75431E-01     .0000       -.50760E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.54838
  norm       = 0.500501
  Prefactor  = 0.0001
  Prefactor  = 12.0395
  Prefactor  = 11.2673
  Prefactor  = 2.52612
  norm       = 12.9051
  Prefactor  = 0.0001
  norm       = 0.673046
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.165986
  Prefactor  = 0.0001
  norm       = 2.31459
  norm       = 5.01743
  norm       = 0.697012
  Prefactor  = 10.2559
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 0.913174
  Prefactor  = 0.965704
 **********
 **   18 **HESSE 
 **********

 FCN=   10900.71     FROM HESSE     STATUS=OK           327 CALLS     2564 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5484        6.6379        .15682E-03   -1.5196    
   2  norm          .50050        1.5126        .22014E-03   -1.5566    
   3  Prefactor     .10000E-03    30.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.040        6.4947        .11545E-03   -1.5014    
   5  Prefactor     11.267        13.120        .11935E-03   -1.5037    
   6  Prefactor     2.5261        6.0746        .12851E-02   -1.5390    
   7  norm          12.905        13.106        .11150E-03   -1.4989    
   8  Prefactor     .10000E-03    3.0787        .35285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .67305        .61990        .85205E-03   -1.5544    
  10  norm          .10000E-03    1.7198        .13359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.4733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .16599        1.1275        .21086E-03   -1.5627    
  13  Prefactor     .10000E-03    14.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3146        2.2595        .75094E-03   -1.5404    
  15  norm          5.0174        6.4596        .17953E-03   -1.5260    
  16  norm          .69701        10.120        .99406E-01   -1.5541    
  17  Prefactor     10.256        20.235        .12505E-03   -1.5067    
  18  Prefactor     .10000E-03    48.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .81793        .14760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91317        .22043        .39081E-03   -.95999    
  21  Prefactor     .96570        .86441E-01    .14722E-03   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30708e-08
Minuit parameter uncertainties:
  1  6.6386
  2  1.51276
  3  0.000159797
  4  6.49504
  5  13.1232
  6  6.07608
  7  13.1086
  8  6.15279e-06
  9  0.619905
  10  7.58815e-06
  11  1.24397e-05
  12  0.864993
  13  3.09654e-05
  14  2.25962
  15  6.46051
  16  5.31249
  17  20.2487
  18  0.00048781
  19  2.84878e-06
  20  0.220647
  21  0.0864532
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  7.588e-06  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.657e-01  8.645e-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:  9.132e-01  2.206e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467781/likelihoodResults_511228801_511488001_4FGL_J1959.1-4247_daily_bin1049.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) = 10900.711693
delta logL = -0.00276662604483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10900.7089264
delta logL = 1.02918420453e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2667       1.0000          .0000       5.0000    
     3 'Normalizat'    .91317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96570       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=   10900.71     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.8533        .13364E-02** at limit **
   2  alpha         2.1053        3.5316        .16552        .45332E-08
   3  Normalizat    .91317        .21574        .39081E-03    .47009E-04
   4  Prefactor     .96570        .84072E-01    .14722E-03    .14036E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.10527
  Normalizat = 0.913175
  Prefactor  = 0.965705
 **********
 **   18 **HESSE 
 **********

 FCN=   10900.71     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7373        .26728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1053        3.9281        .66208E-02   -.15856    
   3  Normalizat    .91317        .21586        .15632E-04   -.95999    
   4  Prefactor     .96570        .84120E-01    .29443E-04   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90375e-12
Minuit parameter uncertainties:
  1  2.44555e-06
  2  212.45
  3  0.216067
  4  0.0841318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467781': 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) = 10900.7089261
delta logL = 2.90548996418e-07

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  2.446e-06  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.105e+00  2.125e+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:  9.657e-01  8.413e-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:  9.132e-01  2.161e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/467781/cmap_HighResolution_511228801_511488001_4FGL_J1959.1-4247_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-05', job_status='DONE', photon_flux_upper_limit='3.95e-08', time_completed='2021-09-24 03:33:36.568496', job_id='467781', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632479616.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1049' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:33:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 467781: <4FGL_J1959.1-4247_daily_bin1049> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1049 299.796 -42.7852 511228801 511488001 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 :                                   915.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

