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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1454
RA = 299.796, Dec = -42.7852
tmin = 616204801, tmax = 616464001
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='470405', job_status='RUN', time_executed='2021-09-24 03:30:38.109224', time_epoch_executed='1632479438.11' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470405

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470405/ft1_4FGL_J1959.1-4247_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470405/ft2_4FGL_J1959.1-4247_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470405/ft1_4FGL_J1959.1-4247_daily_bin1454.fits outfile=/scratch/kocevski/470405/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1454.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=616204801.0 tmax=616464001.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.02
user 3.75
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470405/ft1_filtered_4FGL_J1959.1-4247_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/470405/ft2_4FGL_J1959.1-4247_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/470405/ltcube_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.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/470405/ft2_4FGL_J1959.1-4247_daily_bin1454.fits
.....................!
real 12.03
user 11.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470405/ft1_filtered_4FGL_J1959.1-4247_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/470405/ft2_4FGL_J1959.1-4247_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/470405/ltcube_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.fits outfile=/scratch/kocevski/470405/expmap_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.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/470405/ltcube_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.fits
.....................!
real 190.46
user 185.35
sys 4.80

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/470405/ft1_filtered_4FGL_J1959.1-4247_daily_bin1454.fits scfile=/scratch/kocevski/470405/ft2_4FGL_J1959.1-4247_daily_bin1454.fits outfile=/scratch/kocevski/470405/cmap_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/470405/ft1_filtered_4FGL_J1959.1-4247_daily_bin1454.fits scfile=/scratch/kocevski/470405/ft2_4FGL_J1959.1-4247_daily_bin1454.fits outfile=/scratch/kocevski/470405/cmap_HighResolution_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=299.796 yref=-42.7852 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470405/ft1_filtered_4FGL_J1959.1-4247_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/470405/ft2_4FGL_J1959.1-4247_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470405/Model_4FGL_J1959.1-4247_daily_bin1454.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/470405/ft1_filtered_4FGL_J1959.1-4247_daily_bin1454.fits.....................!
real 53.02
user 51.70
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.463       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    230.35       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.499       1.0000         .10000E-03   10000.    
     9 'norm      '    10.310       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8132       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6750       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.850       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7854       1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .22618E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.7311       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79371       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96846       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=   5868.278     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2206 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.461        10.259       -.48301E-05   -.46069E-04
   2  norm          .10000E-03    1.5166        .28299E-07** at limit **
   3  Prefactor     230.37        121.93        .15437E-04    .53975E-05
   4  Prefactor     .10000E-03    7.0398       -.41387E-06** at limit **
   5  Prefactor     .10000E-03    59.368        .19450E-04** at limit **
   6  Prefactor     .10000E-03    4.6159        .15842E-07** at limit **
   7  norm          .10000E-03    7.7071       -.13087E-05** at limit **
   8  Prefactor     17.492        8.4927        .42905E-06   -.27313E-04
   9  norm          10.310        2.2321       -.16755E-06    .20374E-03
  10  norm          2.8100        8.4415        .17948E-05   -.21140E-03
  11  norm          2.6677        24.638       -.44780E-05   -.64997E-04
  12  norm          .10000E-03    .66139        .19381E-07** at limit **
  13  Prefactor     63.879        65.368        .24942E-04    .40781E-04
  14  norm          5.7847        3.9728        .18042E-06    .22842E-03
  15  norm          .10000E-03    7.4896        .17017E-05** at limit **
  16  norm          17.443        24.022        .88833E-05    .86327E-03
  17  Prefactor     .10004E-03    37.514       -.10188E-04** at limit **
  18  Prefactor     .10000E-03    58.568       -.17774E-04** at limit **
  19  norm          7.7311        2.9903        .13193E-06    .13465E-03
  20  Normalizat    .79372        .29287       -.45991E-05    .19020E-03
  21  Prefactor     .96847        .10945        .85268E-07    .31319E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4606
  norm       = 0.0001
  Prefactor  = 230.374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4921
  norm       = 10.31
  norm       = 2.81003
  norm       = 2.66771
  norm       = 0.0001
  Prefactor  = 63.8795
  norm       = 5.78466
  norm       = 0.0001
  norm       = 17.4428
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  norm       = 7.73112
  Normalizat = 0.793723
  Prefactor  = 0.968475
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.278     FROM HESSE     STATUS=OK           315 CALLS     2521 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.461        10.282        .12387E-03   -1.5061    
   2  norm          .10000E-03    1.5480        .92102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     230.37        121.36        .13332E-03   -1.2661    
   4  Prefactor     .10000E-03    7.1537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6291        .16072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.492        8.4942        .95745E-04   -1.4871    
   9  norm          10.310        2.2305        .50611E-04   -1.5066    
  10  norm          2.8100        8.3915        .24251E-03   -1.5373    
  11  norm          2.6677        24.512        .24916E-03   -1.5381    
  12  norm          .10000E-03    .66652        .60831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.879        64.780        .50221E-04   -1.4108    
  14  norm          5.7847        3.9705        .12204E-03   -1.5227    
  15  norm          .10000E-03    7.5119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.443        22.159        .95869E-04   -1.4872    
  17  Prefactor     .10004E-03    240.13        .80185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    58.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.7311        2.9972        .78884E-04   -1.5152    
  20  Normalizat    .79372        .32767        .45498E-03   -1.0030    
  21  Prefactor     .96847        .12543        .15919E-03   -.93788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4369e-09
Minuit parameter uncertainties:
  1  10.2839
  2  3.65427e-06
  3  121.497
  4  2.35874e-05
  5  3.09072e-07
  6  2.37856e-06
  7  9.02554e-07
  8  8.49476
  9  2.2305
  10  8.39499
  11  16.1814
  12  1.91878e-06
  13  64.852
  14  3.97066
  15  8.86068e-06
  16  22.169
  17  0.00655041
  18  0.000107662
  19  2.99724
  20  0.328489
  21  0.125464
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  2.810e+00  8.395e+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

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  9.685e-01  1.255e-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:  7.937e-01  3.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/470405/likelihoodResults_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.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) = 5868.24199985
delta logL = 0.0359602664766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5868.23846799
delta logL = 0.0394921306533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4991       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8623       1.0000          .0000       5.0000    
     3 'Normalizat'    .79741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96720       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=   5868.238     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      251 TOTAL
                     EDM=   .95E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4977        8.5790        .21614E-03    .42604E-05
   2  alpha         1.8624        1.2961        .37067E-01   -.11962E-05
   3  Normalizat    .79742        .31497        .45401E-03   -.48579E-05
   4  Prefactor     .96720        .12208        .15927E-03   -.26267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4977
  alpha      = 1.86237
  Normalizat = 0.797416
  Prefactor  = 0.967197
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.238     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .54E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4977        8.6386        .86457E-05   -1.5334    
   2  alpha         1.8624        1.3052        .14827E-02   -.25790    
   3  Normalizat    .79742        .31511        .18160E-04   -1.0016    
   4  Prefactor     .96720        .12214        .63709E-05   -.93831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40227e-13
Minuit parameter uncertainties:
  1  8.64163
  2  1.37878
  3  0.31583
  4  0.12217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470405': 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) = 5868.23846797
delta logL = 0.039492149258

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  3.498e+00  8.642e+00  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  1.862e+00  1.379e+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.672e-01  1.222e-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:  7.974e-01  3.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 299.796 -42.785

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/470405/cmap_HighResolution_616204801_616464001_4FGL_J1959.1-4247_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-24 03:41:50.227810', job_id='470405', GAL2='0.97', fit_tolerance='1e-08', EG2='0.80', EG='0.79', time_epoch_completed='1632480110.23', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.95e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1454' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 470405: <4FGL_J1959.1-4247_daily_bin1454> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1454> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 24 03:26:31 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:26:34 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:26:34 2021
Terminated at Fri Sep 24 03:41:51 2021
Results reported at Fri Sep 24 03:41:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1454 299.796 -42.7852 616204801 616464001 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 :                                   643.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             218.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            920 sec.

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

