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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1226
RA = 299.796, Dec = -42.7852
tmin = 557107201, tmax = 557366401
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='468041', job_status='RUN', time_executed='2021-09-24 03:21:18.993742', time_epoch_executed='1632478878.99' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468041/ft1_4FGL_J1959.1-4247_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468041/ft2_4FGL_J1959.1-4247_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468041/ft1_4FGL_J1959.1-4247_daily_bin1226.fits outfile=/scratch/kocevski/468041/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1226.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=557107201.0 tmax=557366401.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.68
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468041/ft1_filtered_4FGL_J1959.1-4247_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/468041/ft2_4FGL_J1959.1-4247_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/468041/ltcube_557107201_557366401_4FGL_J1959.1-4247_daily_bin1226.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/468041/ft2_4FGL_J1959.1-4247_daily_bin1226.fits
.....................!
real 11.97
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468041/ft1_filtered_4FGL_J1959.1-4247_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/468041/ft2_4FGL_J1959.1-4247_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/468041/ltcube_557107201_557366401_4FGL_J1959.1-4247_daily_bin1226.fits outfile=/scratch/kocevski/468041/expmap_557107201_557366401_4FGL_J1959.1-4247_daily_bin1226.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/468041/ltcube_557107201_557366401_4FGL_J1959.1-4247_daily_bin1226.fits
.....................!
real 191.86
user 186.99
sys 4.56

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/468041/ft1_filtered_4FGL_J1959.1-4247_daily_bin1226.fits scfile=/scratch/kocevski/468041/ft2_4FGL_J1959.1-4247_daily_bin1226.fits outfile=/scratch/kocevski/468041/cmap_557107201_557366401_4FGL_J1959.1-4247_daily_bin1226.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468041/ft1_filtered_4FGL_J1959.1-4247_daily_bin1226.fits scfile=/scratch/kocevski/468041/ft2_4FGL_J1959.1-4247_daily_bin1226.fits outfile=/scratch/kocevski/468041/cmap_HighResolution_557107201_557366401_4FGL_J1959.1-4247_daily_bin1226.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468041/ft1_filtered_4FGL_J1959.1-4247_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/468041/ft2_4FGL_J1959.1-4247_daily_bin1226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468041/Model_4FGL_J1959.1-4247_daily_bin1226.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/468041/ft1_filtered_4FGL_J1959.1-4247_daily_bin1226.fits.....................!
real 51.07
user 49.82
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    168.93       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.646       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1484       1.0000         .10000E-03   10000.    
     7 'norm      '    18.484       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12415E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.776       1.0000         .10000E-03   10000.    
    11 'norm      '    27.834       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5177       1.0000         .10000E-03   10000.    
    13 'Prefactor '    209.92       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.705       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12810E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10438E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3498       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79715       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=   5330.993     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2213 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5869       -.16466E-07** at limit **
   2  norm          .10000E-03    .81199        .11820E-07** at limit **
   3  Prefactor     168.95        118.78        .85915E-05    .13930E-05
   4  Prefactor     .10000E-03    5.8838        .69330E-07** at limit **
   5  Prefactor     33.650        27.378       -.13790E-05   -.13759E-05
   6  Prefactor     5.1509        12.105       -.29066E-05   -.99197E-04
   7  norm          18.485        18.652       -.12821E-05    .91772E-05
   8  Prefactor     .10000E-03    3.9494       -.22929E-07** at limit **
   9  norm          .10000E-03    .57985       -.47473E-07** at limit **
  10  norm          18.778        12.512       -.18873E-05   -.89233E-05
  11  norm          27.836        22.242       -.16380E-05   -.33049E-06
  12  norm          2.5178        1.9441        .35971E-07   -.81524E-05
  13  Prefactor     209.94        108.17        .14629E-04    .12940E-05
  14  norm          .10000E-03    1.5508        .12934E-07** at limit **
  15  norm          12.707        22.162       -.32201E-05   -.16142E-04
  16  norm          .10000E-03    11.513       -.26802E-08** at limit **
  17  Prefactor     .10000E-03    24.705       -.15742E-06** at limit **
  18  Prefactor     .10000E-03    220.79       -.10661E-05** at limit **
  19  norm          .10000E-03    4.0957        .23807E-07** at limit **
  20  Normalizat    1.3496        .30400       -.96296E-06    .10019E-04
  21  Prefactor     .79719        .10222        .51188E-07   -.11357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 168.946
  Prefactor  = 0.0001
  Prefactor  = 33.6498
  Prefactor  = 5.15092
  norm       = 18.485
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.7782
  norm       = 27.836
  norm       = 2.51783
  Prefactor  = 209.94
  norm       = 0.0001
  norm       = 12.7066
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.34963
  Prefactor  = 0.797192
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.993     FROM HESSE     STATUS=OK           317 CALLS     2530 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5911        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .81511        .64243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     168.95        118.90        .31039E-04   -1.3101    
   4  Prefactor     .10000E-03    6.0242        .17290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.650        27.383        .69083E-04   -1.4547    
   6  Prefactor     5.1509        12.152        .17718E-03   -1.5254    
   7  norm          18.485        18.646        .93158E-04   -1.4848    
   8  Prefactor     .10000E-03    3.9860        .14169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7869        .10814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.778        12.510        .92432E-04   -1.4841    
  11  norm          27.836        22.286        .75936E-04   -1.4652    
  12  norm          2.5178        1.9426        .86970E-04   -1.5391    
  13  Prefactor     209.94        108.04        .13951E-03   -1.2800    
  14  norm          .10000E-03    1.5523        .88792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.707        22.184        .11238E-03   -1.4995    
  16  norm          .10000E-03    11.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    221.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.2781        .28838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3496        .35423        .37984E-03   -.82097    
  21  Prefactor     .79719        .11975        .16272E-03   -.99832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90766e-11
Minuit parameter uncertainties:
  1  2.19976e-06
  2  1.16327e-06
  3  119.065
  4  1.8395e-05
  5  27.3937
  6  12.158
  7  18.6516
  8  4.2026e-06
  9  5.85808e-06
  10  12.5116
  11  22.2923
  12  1.94262
  13  108.141
  14  1.45248e-06
  15  22.198
  16  2.64371e-06
  17  1.15951e-05
  18  2.92541e-05
  19  4.59663e-06
  20  0.354877
  21  0.119793
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.878e+01  1.251e+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.972e-01  1.198e-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.350e+00  3.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.62
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 8.09e-08 +/- 5.39e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.94e-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) = 5330.88704462
delta logL = 0.105566058183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5330.88420108
delta logL = 0.108409596032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.193       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9378       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79253       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=   5330.884     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      223 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.193        23.321        .22856E-02    .29747E-03
   2  alpha         1.9379        1.0259        .42550       -.80392E-05
   3  Normalizat    1.3736        .30464        .85193E-01    .99333E-05
   4  Prefactor     .79255        .10218        .43620E-01    .27121E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 19.1932
  alpha      = 1.93789
  Normalizat = 1.37356
  Prefactor  = 0.792549
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.884     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.193        13.153        .91422E-04   -1.4831    
   2  alpha         1.9379        .68692        .16917E-01   -.22678    
   3  Normalizat    1.3736        .34876        .37718E-03   -.81396    
   4  Prefactor     .79255        .11821        .16315E-03   -1.0000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38604e-10
Minuit parameter uncertainties:
  1  13.1554
  2  0.696367
  3  0.349362
  4  0.118251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468041': 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) = 5330.88420106
delta logL = 0.108409624459

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.919e+01  1.316e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.938e+00  6.964e-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:  7.925e-01  1.183e-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.374e+00  3.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.84
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 1.94 +/- 0.70
Photon Flux (Free Index): 6.11e-08 +/- 5.73e-08
Energy Flux (Free Index): 3.23e-05 +/- 2.40e-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/468041/cmap_HighResolution_557107201_557366401_4FGL_J1959.1-4247_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.09e-08', energy_flux2='3.23e-05', photon_flux_error='5.39e-08', dlogl='1.08e-01', energy_flux='2.91e-05', photon_flux2='6.11e-08', job_status='DONE', time_completed='2021-09-24 03:30:31.500807', photon_index_error2='0.70', photon_index2='1.94', ts='4.62', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='1.35', time_epoch_completed='1632479431.5', return_code='0', job_id='468041', GAL2='0.79', EG2='1.37', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='5.73e-08', ts2='4.84', photon_index='2.27' WHERE bin_id='1226' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:30:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 468041: <4FGL_J1959.1-4247_daily_bin1226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1226 299.796 -42.7852 557107201 557366401 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 :                                   550.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            780 sec.

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

