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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1236
RA = 299.796, Dec = -42.7852
tmin = 559699201, tmax = 559958401
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='468055', job_status='RUN', time_executed='2021-09-24 03:18:07.155113', time_epoch_executed='1632478687.16' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468055

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468055/ft1_4FGL_J1959.1-4247_daily_bin1236.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468055/ft2_4FGL_J1959.1-4247_daily_bin1236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468055/ft1_4FGL_J1959.1-4247_daily_bin1236.fits outfile=/scratch/kocevski/468055/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1236.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=559699201.0 tmax=559958401.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.63
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/468055/ft1_filtered_4FGL_J1959.1-4247_daily_bin1236.fits" evtable="EVENTS" scfile=/scratch/kocevski/468055/ft2_4FGL_J1959.1-4247_daily_bin1236.fits sctable="SC_DATA" outfile=/scratch/kocevski/468055/ltcube_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.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/468055/ft2_4FGL_J1959.1-4247_daily_bin1236.fits
.....................!
real 11.52
user 11.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468055/ft1_filtered_4FGL_J1959.1-4247_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/468055/ft2_4FGL_J1959.1-4247_daily_bin1236.fits sctable="SC_DATA" expcube=/scratch/kocevski/468055/ltcube_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.fits outfile=/scratch/kocevski/468055/expmap_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.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/468055/ltcube_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.fits
.....................!
real 190.74
user 184.55
sys 5.82

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/468055/ft1_filtered_4FGL_J1959.1-4247_daily_bin1236.fits scfile=/scratch/kocevski/468055/ft2_4FGL_J1959.1-4247_daily_bin1236.fits outfile=/scratch/kocevski/468055/cmap_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=299.796 yref=-42.7852 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468055/ft1_filtered_4FGL_J1959.1-4247_daily_bin1236.fits scfile=/scratch/kocevski/468055/ft2_4FGL_J1959.1-4247_daily_bin1236.fits outfile=/scratch/kocevski/468055/cmap_HighResolution_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/468055/ft1_filtered_4FGL_J1959.1-4247_daily_bin1236.fits evtable="EVENTS" scfile=/scratch/kocevski/468055/ft2_4FGL_J1959.1-4247_daily_bin1236.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/468055/Model_4FGL_J1959.1-4247_daily_bin1236.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/468055/ft1_filtered_4FGL_J1959.1-4247_daily_bin1236.fits.....................!
real 28.96
user 27.66
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.941       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    554.82       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.160       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    49.552       1.0000         .10000E-03   10000.    
    11 'norm      '    17.057       1.0000         .10000E-03   10000.    
    12 'norm      '    15.099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    91.019       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10606E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    38.069       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1731       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0338       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=   1970.788     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2189 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.945        24.755       -.19312E-05   -.27057E-04
   2  norm          .10000E-03    3.2651        .24288E-07** at limit **
   3  Prefactor     554.92        274.23        .39865E-04   -.14445E-04
   4  Prefactor     .10000E-03    22.082       -.18519E-06** at limit **
   5  Prefactor     .10000E-03    107.45       -.65830E-08** at limit **
   6  Prefactor     .10000E-03    16.982       -.16333E-06** at limit **
   7  norm          28.212        67.668        .61004E-05   -.54317E-05
   8  Prefactor     .10000E-03    9.5152        .72922E-06** at limit **
   9  norm          .10000E-03    1.1574        .19182E-07** at limit **
  10  norm          49.549        62.805       -.19619E-04   -.29530E-04
  11  norm          17.096        247.77        .59807E-04    .47474E-05
  12  norm          15.099        17.806       -.32579E-06   -.20041E-05
  13  Prefactor     91.039        131.11        .15391E-04   -.12283E-04
  14  norm          .10000E-03    8.7133       -.30584E-06** at limit **
  15  norm          .10000E-03    11.302        .11339E-07** at limit **
  16  norm          .10000E-03    45.367        .57810E-07** at limit **
  17  Prefactor     .10000E-03    68.534       -.13263E-05** at limit **
  18  Prefactor     .10000E-03    873.02        .11533E-05** at limit **
  19  norm          38.064        23.508        .69628E-06   -.78611E-05
  20  Normalizat    1.1735        .72988       -.55800E-05   -.76271E-04
  21  Prefactor     1.0336        .22630       -.33805E-05   -.36275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9446
  norm       = 0.0001
  Prefactor  = 554.922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.2115
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 49.5492
  norm       = 17.0962
  norm       = 15.0986
  Prefactor  = 91.0385
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.0639
  Normalizat = 1.1735
  Prefactor  = 1.03356
 **********
 **   18 **HESSE 
 **********

 FCN=   1970.788     FROM HESSE     STATUS=OK           307 CALLS     2496 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.945        24.947        .89693E-04   -1.4814    
   2  norm          .10000E-03    3.2681        .78349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     554.92        274.25        .87367E-04   -1.0952    
   4  Prefactor     .10000E-03    22.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.989        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.212        68.035        .75497E-04   -1.4645    
   8  Prefactor     .10000E-03    68.002        .25086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1628        .46619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          49.549        62.669        .56968E-04   -1.4299    
  11  norm          17.096        246.16        .96975E-04   -1.4881    
  12  norm          15.099        17.803        .10308E-03   -1.4931    
  13  Prefactor     91.039        131.13        .42120E-04   -1.3797    
  14  norm          .10000E-03    8.7158        .12800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.315        .14577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    45.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    68.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    873.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          38.064        23.517        .64959E-04   -1.4473    
  20  Normalizat    1.1735        .81973        .55583E-03   -.87426    
  21  Prefactor     1.0336        .26250        .18032E-03   -.91619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2948e-10
Minuit parameter uncertainties:
  1  24.9601
  2  3.04517e-06
  3  274.907
  4  3.06139e-06
  5  8.52846e-06
  6  8.41239e-06
  7  68.2232
  8  0.000454204
  9  1.69635e-06
  10  62.7523
  11  130.395
  12  17.8094
  13  131.548
  14  8.0064e-06
  15  2.40018e-05
  16  2.82174e-05
  17  3.95934e-05
  18  0.00113678
  19  23.523
  20  0.82894
  21  0.262822
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  4.955e+01  6.275e+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.034e+00  2.628e-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.173e+00  8.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.59
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.13e-07 +/- 2.70e-07
Energy Flux (Fixed Index): 7.67e-05 +/- 9.72e-05

TS (Fixed Index): 1.59
Ra Dec: 299.796 -42.785
Photon Flux Upper Limit: 7.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.67e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/468055/likelihoodResults_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.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) = 1970.47470984
delta logL = 0.313588023943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1970.47149767
delta logL = 0.316800193538

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    47.594       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5924       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0228       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=   1970.471     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      196 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          47.576        53.094       -.56323E-05    .48826E-04
   2  alpha         1.5923        .81639       -.58092E-04   -.34212E-05
   3  Normalizat    1.2270        .69132        .21859E-05    .31599E-04
   4  Prefactor     1.0229        .21429        .79477E-07    .74574E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 47.5761
  alpha      = 1.5923
  Normalizat = 1.22703
  Prefactor  = 1.02289
 **********
 **   18 **HESSE 
 **********

 FCN=   1970.471     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          47.576        52.403        .58123E-04   -1.4327    
   2  alpha         1.5923        .80586        .12901E-01   -.37157    
   3  Normalizat    1.2270        .78778        .54536E-03   -.85772    
   4  Prefactor     1.0229        .24577        .18106E-03   -.91970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45044e-11
Minuit parameter uncertainties:
  1  52.4536
  2  0.822872
  3  0.795623
  4  0.246042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468055': 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) = 1970.47149754
delta logL = 0.316800323825

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  4.758e+01  5.245e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.592e+00  8.229e-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:  1.023e+00  2.460e-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.227e+00  7.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 1.59 +/- 0.82
Photon Flux (Free Index): 1.21e-07 +/- 1.61e-07
Energy Flux (Free Index): 1.11e-04 +/- 1.26e-04

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/468055/cmap_HighResolution_559699201_559958401_4FGL_J1959.1-4247_daily_bin1236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.67e-04', comment='SUCCESS', photon_flux='2.13e-07', energy_flux2='1.11e-04', photon_flux_error='2.70e-07', dlogl='3.17e-01', energy_flux='7.67e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-24 03:25:04.883747', photon_index_error2='0.82', photon_index2='1.59', ts='1.59', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='7.43e-07', energy_flux_error2='1.26e-04', EG='1.17', time_epoch_completed='1632479104.88', return_code='0', job_id='468055', GAL2='1.02', EG2='1.23', return_code2='0', energy_flux_error='9.72e-05', photon_flux_error2='1.61e-07', ts2='2.23', photon_index='2.27' WHERE bin_id='1236' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 468055: <4FGL_J1959.1-4247_daily_bin1236> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1236 299.796 -42.7852 559699201 559958401 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 :                                   415.32 sec.
    Max Memory :                                 1152 MB
    Average Memory :                             339.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   445 sec.
    Turnaround time :                            449 sec.

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

