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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1650
RA = 299.796, Dec = -42.7852
tmin = 667008001, tmax = 667267201
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='321682', job_status='RUN', time_executed='2022-02-23 00:48:35.632153', time_epoch_executed='1645606115.63' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/321682

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/321682/ft1_4FGL_J1959.1-4247_daily_bin1650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/321682/ft2_4FGL_J1959.1-4247_daily_bin1650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/321682/ft1_4FGL_J1959.1-4247_daily_bin1650.fits outfile=/scratch/kocevski/321682/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1650.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=667008001.0 tmax=667267201.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.04
user 2.82
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/321682/ft1_filtered_4FGL_J1959.1-4247_daily_bin1650.fits" evtable="EVENTS" scfile=/scratch/kocevski/321682/ft2_4FGL_J1959.1-4247_daily_bin1650.fits sctable="SC_DATA" outfile=/scratch/kocevski/321682/ltcube_667008001_667267201_4FGL_J1959.1-4247_daily_bin1650.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/321682/ft2_4FGL_J1959.1-4247_daily_bin1650.fits
.....................!
real 14.85
user 14.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/321682/ft1_filtered_4FGL_J1959.1-4247_daily_bin1650.fits evtable="EVENTS" scfile=/scratch/kocevski/321682/ft2_4FGL_J1959.1-4247_daily_bin1650.fits sctable="SC_DATA" expcube=/scratch/kocevski/321682/ltcube_667008001_667267201_4FGL_J1959.1-4247_daily_bin1650.fits outfile=/scratch/kocevski/321682/expmap_667008001_667267201_4FGL_J1959.1-4247_daily_bin1650.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/321682/ltcube_667008001_667267201_4FGL_J1959.1-4247_daily_bin1650.fits
.....................!
real 191.15
user 186.53
sys 4.20

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/321682/ft1_filtered_4FGL_J1959.1-4247_daily_bin1650.fits scfile=/scratch/kocevski/321682/ft2_4FGL_J1959.1-4247_daily_bin1650.fits outfile=/scratch/kocevski/321682/cmap_HighResolution_667008001_667267201_4FGL_J1959.1-4247_daily_bin1650.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4599       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.201       1.0000         .10000E-03   10000.    
     7 'norm      '    13.180       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4074       1.0000         .10000E-03   10000.    
     9 'norm      '    8.0004       1.0000         .10000E-03   10000.    
    10 'norm      '    14.471       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8867       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5279       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .25070E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .71559       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0715       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=   7360.365     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     1875 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2859       -.65028E-08** at limit **
   2  norm          .10000E-03    .87967        .67437E-08** at limit **
   3  Prefactor     .10000E-03    89.581        .15456E-06** at limit **
   4  Prefactor     2.4587        7.2133        .64642E-05   -.83240E-04
   5  Prefactor     .10000E-03    5.7921       -.13405E-07** at limit **
   6  Prefactor     26.199        15.238        .66666E-07    .12383E-04
   7  norm          13.180        13.599       -.13680E-08    .17567E-05
   8  Prefactor     5.4066        6.5370        .36669E-06    .59983E-04
   9  norm          8.0003        1.9118        .42914E-07    .44719E-04
  10  norm          14.470        11.436        .76486E-07   -.13860E-04
  11  norm          .10000E-03    4.8736        .96907E-08** at limit **
  12  norm          2.8866        1.9413        .55218E-07   -.17548E-04
  13  Prefactor     .10000E-03    30.737       -.98896E-07** at limit **
  14  norm          4.5279        3.4733        .93972E-08   -.10864E-03
  15  norm          .10000E-03    10.726       -.83776E-06** at limit **
  16  norm          .10000E-03    12.488        .41681E-06** at limit **
  17  Prefactor     .10000E-03    9.9996        .56857E-06** at limit **
  18  Prefactor     .10013E-03    809.50        .31907E-05** at limit **
  19  norm          .10000E-03    1.0157       -.22831E-07** at limit **
  20  Normalizat    .71554        .29083       -.45832E-05   -.16847E-03
  21  Prefactor     1.0716        .99941E-01    .36531E-06   -.34361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.45871
  Prefactor  = 0.0001
  Prefactor  = 26.1992
  norm       = 13.1799
  Prefactor  = 5.40658
  norm       = 8.00026
  norm       = 14.4701
  norm       = 0.0001
  norm       = 2.88656
  Prefactor  = 0.0001
  norm       = 4.52789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100132
  norm       = 0.0001
  Normalizat = 0.715542
  Prefactor  = 1.07158
 **********
 **   18 **HESSE 
 **********

 FCN=   7360.365     FROM HESSE     STATUS=OK           311 CALLS     2186 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3205        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .89037        .78557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    89.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4587        7.2246        .13038E-02   -1.5394    
   5  Prefactor     .10000E-03    5.7927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.199        15.214        .78262E-04   -1.4684    
   7  norm          13.180        13.601        .11033E-03   -1.4982    
   8  Prefactor     5.4066        6.5319        .17281E-03   -1.5243    
   9  norm          8.0003        1.9108        .55268E-04   -1.5142    
  10  norm          14.470        11.425        .10529E-03   -1.4947    
  11  norm          .10000E-03    4.8751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8866        1.9373        .95003E-04   -1.5368    
  13  Prefactor     .10000E-03    30.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5279        3.4720        .13620E-03   -1.5282    
  15  norm          .10000E-03    10.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10013E-03    821.49        .21464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0217        .84434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .71554        .31440        .51034E-03   -1.0328    
  21  Prefactor     1.0716        .10991        .15103E-03   -.90380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22981e-10
Minuit parameter uncertainties:
  1  8.50833e-07
  2  3.33683e-07
  3  6.97213e-06
  4  7.22712
  5  9.94101e-07
  6  15.2159
  7  13.6046
  8  6.5328
  9  1.91086
  10  11.4271
  11  7.07382e-07
  12  1.93732
  13  1.07404e-05
  14  3.47215
  15  6.01096e-05
  16  1.85481e-05
  17  2.1498e-05
  18  0.0210864
  19  1.45794e-06
  20  0.315193
  21  0.109936
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.447e+01  1.143e+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.072e+00  1.099e-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.155e-01  3.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 299.796 -42.785
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 4.92e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/321682/likelihoodResults_667008001_667267201_4FGL_J1959.1-4247_daily_bin1650.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) = 7357.88897593
delta logL = 2.47580917409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7357.88460471
delta logL = 2.48018038926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1593       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4805       1.0000          .0000       5.0000    
     3 'Normalizat'    .54773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1099       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=   7357.885     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      306 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1608        17.160        .70082E-02    .41651E-03
   2  alpha         4.4806        4.7187        .35943        .16931E-04
   3  Normalizat    .54756        .12171        .12985        .53297E-04
   4  Prefactor     1.1101        .43650E-01    .37222E-01   -.85246E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16077
  alpha      = 4.48056
  Normalizat = 0.54756
  Prefactor  = 1.1101
 **********
 **   18 **HESSE 
 **********

 FCN=   7357.885     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1608        22.599        .54958E-04   -1.5414    
   2  alpha         4.4806        4.6934        .17725E-01    .91445    
   3  Normalizat    .54756        .30621        .57594E-03   -1.1026    
   4  Prefactor     1.1101        .10972        .14841E-03   -.89144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.554e-08
Minuit parameter uncertainties:
  1  13.9822
  2  4.21045
  3  0.307162
  4  0.109743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/321682': 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): 102
logL (Free Index) = 7357.88459921
delta logL = 2.4801858934

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  2.161e+00  1.398e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  4.481e+00  4.210e+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:  1.110e+00  1.097e-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:  5.476e-01  3.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.73
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 4.48 +/- 4.21
Photon Flux (Free Index): 1.91e-07 +/- 9.00e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.84e-05

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/321682/cmap_HighResolution_667008001_667267201_4FGL_J1959.1-4247_daily_bin1650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-05', comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='2.81e-05', photon_flux_error='4.92e-08', dlogl='2.48e+00', energy_flux='2.24e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2022-02-23 01:00:18.577661', photon_index_error2='4.21', photon_index2='4.48', ts='2.30', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.84e-05', EG='0.72', time_epoch_completed='1645606818.58', return_code='0', job_id='321682', GAL2='1.11', EG2='0.55', return_code2='102', energy_flux_error='1.77e-05', photon_flux_error2='9.00e-08', ts2='7.73', photon_index='2.27' WHERE bin_id='1650' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 23 01:00:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 321682: <4FGL_J1959.1-4247_daily_bin1650> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1650> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Feb 23 00:45:33 2022
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 23 00:47:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 23 00:47:11 2022
Terminated at Wed Feb 23 01:00:19 2022
Results reported at Wed Feb 23 01:00:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1650 299.796 -42.7852 667008001 667267201 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 :                                   705.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            886 sec.

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

