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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1660
RA = 299.796, Dec = -42.7852
tmin = 669600001, tmax = 669859201
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='993065', job_status='RUN', time_executed='2022-03-25 00:39:08.699770', time_epoch_executed='1648193948.7' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993065/ft1_4FGL_J1959.1-4247_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993065/ft2_4FGL_J1959.1-4247_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993065/ft1_4FGL_J1959.1-4247_daily_bin1660.fits outfile=/scratch/kocevski/993065/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1660.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=669600001.0 tmax=669859201.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.33
sys 0.21

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

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

Number of photons that the gtmktime cut: 794

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993065/ft1_filtered_4FGL_J1959.1-4247_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/993065/ft2_4FGL_J1959.1-4247_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/993065/ltcube_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.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/993065/ft2_4FGL_J1959.1-4247_daily_bin1660.fits
.....................!
real 11.73
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993065/ft1_filtered_4FGL_J1959.1-4247_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993065/ft2_4FGL_J1959.1-4247_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/993065/ltcube_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.fits outfile=/scratch/kocevski/993065/expmap_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.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/993065/ltcube_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.fits
.....................!
real 190.43
user 185.28
sys 4.84

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/993065/ft1_filtered_4FGL_J1959.1-4247_daily_bin1660.fits scfile=/scratch/kocevski/993065/ft2_4FGL_J1959.1-4247_daily_bin1660.fits outfile=/scratch/kocevski/993065/cmap_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993065/ft1_filtered_4FGL_J1959.1-4247_daily_bin1660.fits scfile=/scratch/kocevski/993065/ft2_4FGL_J1959.1-4247_daily_bin1660.fits outfile=/scratch/kocevski/993065/cmap_HighResolution_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/993065/ft1_filtered_4FGL_J1959.1-4247_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993065/ft2_4FGL_J1959.1-4247_daily_bin1660.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/993065/Model_4FGL_J1959.1-4247_daily_bin1660.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/993065/ft1_filtered_4FGL_J1959.1-4247_daily_bin1660.fits.....................!
real 72.10
user 70.78
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12136E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5705       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4447       1.0000         .10000E-03   10000.    
     7 'norm      '    12.549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8306       1.0000         .10000E-03   10000.    
     9 'norm      '    7.0053       1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9108       1.0000         .10000E-03   10000.    
    15 'norm      '    5.8711       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8360       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49474E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7044       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3413       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93992       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=   8475.005     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     1911 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5560        .25821E-07** at limit **
   2  norm          .10000E-03    1.2741        .25629E-07** at limit **
   3  Prefactor     .10000E-03    31.537        .34951E-06** at limit **
   4  Prefactor     7.5744        10.610       -.73437E-07   -.11614E-03
   5  Prefactor     .10000E-03    19.739       -.35972E-07** at limit **
   6  Prefactor     7.4439        8.0593        .27566E-07   -.44426E-04
   7  norm          12.551        12.536       -.29766E-08    .27489E-05
   8  Prefactor     2.8379        6.6030        .44613E-06   -.10618E-03
   9  norm          7.0055        1.7370        .67099E-08   -.37738E-04
  10  norm          .10000E-03    2.7979        .69833E-08** at limit **
  11  norm          .10000E-03    6.9704        .11640E-07** at limit **
  12  norm          1.2338        2.1168        .39486E-06   -.21109E-03
  13  Prefactor     .10000E-03    40.411       -.56170E-06** at limit **
  14  norm          5.9112        3.8039       -.16978E-07   -.78118E-04
  15  norm          5.8787        13.406        .41920E-05   -.31120E-03
  16  norm          3.8082        13.927        .15086E-05    .36063E-04
  17  Prefactor     7.9578        16.891       -.37123E-05   -.35845E-03
  18  Prefactor     .10000E-03    277.52       -.37195E-05** at limit **
  19  norm          3.7042        2.2345        .40026E-07   -.37707E-04
  20  Normalizat    1.3412        .26079       -.28305E-06   -.23613E-04
  21  Prefactor     .93987        .90785E-01   -.22978E-06    .53577E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.5744
  Prefactor  = 0.0001
  Prefactor  = 7.44388
  norm       = 12.551
  Prefactor  = 2.83789
  norm       = 7.00554
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.23384
  Prefactor  = 0.0001
  norm       = 5.91116
  norm       = 5.8787
  norm       = 3.80815
  Prefactor  = 7.95777
  Prefactor  = 0.000100002
  norm       = 3.70419
  Normalizat = 1.34119
  Prefactor  = 0.93987
 **********
 **   18 **HESSE 
 **********

 FCN=   8475.005     FROM HESSE     STATUS=OK           319 CALLS     2230 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5798        .16953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.3118        .20288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5744        10.698        .14575E-03   -1.5157    
   5  Prefactor     .10000E-03    19.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.4439        8.0606        .14699E-03   -1.5162    
   7  norm          12.551        12.539        .11308E-03   -1.4999    
   8  Prefactor     2.8379        6.6092        .24172E-03   -1.5371    
   9  norm          7.0055        1.7375        .57609E-04   -1.5179    
  10  norm          .10000E-03    2.8028        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.9791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2338        2.1060        .16869E-03   -1.5486    
  13  Prefactor     .10000E-03    40.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9112        3.8087        .13927E-03   -1.5222    
  15  norm          5.8787        14.074        .82869E-03   -1.5223    
  16  norm          3.8082        13.991        .20606E-03   -1.5318    
  17  Prefactor     7.9578        18.391        .14222E-03   -1.5144    
  18  Prefactor     .10000E-03    286.76        .38434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7042        2.2378        .10296E-03   -1.5323    
  20  Normalizat    1.3412        .30436        .39977E-03   -.82345    
  21  Prefactor     .93987        .10627        .16891E-03   -.94762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89276e-10
Minuit parameter uncertainties:
  1  1.18063e-06
  2  8.74972e-07
  3  7.59248e-05
  4  10.7002
  5  5.15016e-06
  6  8.06174
  7  12.542
  8  6.61093
  9  1.73756
  10  6.673e-07
  11  2.14074e-06
  12  2.10608
  13  0.000146511
  14  3.80883
  15  14.0823
  16  14.0031
  17  18.4041
  18  0.00155053
  19  2.2378
  20  0.304766
  21  0.106293
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  6.673e-07  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.399e-01  1.063e-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.341e+00  3.048e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993065/likelihoodResults_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.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) = 8475.00715033
delta logL = -0.00169501225901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8475.00545526
delta logL = 5.83495420869e-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.2787       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3412       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93987       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=   8475.005     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9426        .90712E-02** at limit **
   2  alpha         2.2878        3.5123        .41357       -.16294E-04
   3  Normalizat    1.3412        .24663        .90270E-01    .12934E-04
   4  Prefactor     .93987        .89698E-01    .45511E-01   -.59337E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.2878
  Normalizat = 1.34119
  Prefactor  = 0.93987
 **********
 **   18 **HESSE 
 **********

 FCN=   8475.005     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8241        .15087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2878        3.4999        .50000       -.84982E-01
   3  Normalizat    1.3412        .28702        .39977E-03   -.82345    
   4  Prefactor     .93987        .10462        .16891E-03   -.94762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69611e-10
Minuit parameter uncertainties:
  1  6.82067e-06
  2  2.49351
  3  0.287364
  4  0.104639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993065': 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) = 8475.0054552
delta logL = 1.1829615687e-07

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  6.821e-06  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.288e+00  2.494e+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:  9.399e-01  1.046e-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.341e+00  2.874e-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/993065/cmap_HighResolution_669600001_669859201_4FGL_J1959.1-4247_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2022-03-25 00:51:21.850706', job_id='993065', GAL2='0.94', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1648194681.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1660' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:51:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 993065: <4FGL_J1959.1-4247_daily_bin1660> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 25 00:35:23 2022
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:35:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:35:25 2022
Terminated at Fri Mar 25 00:51:22 2022
Results reported at Fri Mar 25 00:51:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1660 299.796 -42.7852 669600001 669859201 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 :                                   735.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

