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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1320
RA = 299.796, Dec = -42.7852
tmin = 581472001, tmax = 581731201
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='469277', job_status='RUN', time_executed='2021-09-24 03:23:57.511841', time_epoch_executed='1632479037.51' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469277

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469277/ft1_4FGL_J1959.1-4247_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469277/ft2_4FGL_J1959.1-4247_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469277/ft1_4FGL_J1959.1-4247_daily_bin1320.fits outfile=/scratch/kocevski/469277/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1320.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=581472001.0 tmax=581731201.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 2.78
user 2.59
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469277/ft1_filtered_4FGL_J1959.1-4247_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/469277/ft2_4FGL_J1959.1-4247_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/469277/ltcube_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.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/469277/ft2_4FGL_J1959.1-4247_daily_bin1320.fits
.....................!
real 12.20
user 11.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469277/ft1_filtered_4FGL_J1959.1-4247_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/469277/ft2_4FGL_J1959.1-4247_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/469277/ltcube_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.fits outfile=/scratch/kocevski/469277/expmap_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.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/469277/ltcube_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.fits
.....................!
real 190.93
user 186.05
sys 4.52

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/469277/ft1_filtered_4FGL_J1959.1-4247_daily_bin1320.fits scfile=/scratch/kocevski/469277/ft2_4FGL_J1959.1-4247_daily_bin1320.fits outfile=/scratch/kocevski/469277/cmap_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469277/ft1_filtered_4FGL_J1959.1-4247_daily_bin1320.fits scfile=/scratch/kocevski/469277/ft2_4FGL_J1959.1-4247_daily_bin1320.fits outfile=/scratch/kocevski/469277/cmap_HighResolution_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469277/ft1_filtered_4FGL_J1959.1-4247_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/469277/ft2_4FGL_J1959.1-4247_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469277/Model_4FGL_J1959.1-4247_daily_bin1320.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/469277/ft1_filtered_4FGL_J1959.1-4247_daily_bin1320.fits....................!
real 54.93
user 53.58
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .54754E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    4.7637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    89.581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.673       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23503E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0807       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.403       1.0000         .10000E-03   10000.    
    11 'norm      '    .78459       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1818       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.3792       1.0000         .10000E-03   10000.    
    16 'norm      '    11.369       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.901       1.0000         .10000E-03   10000.    
    19 'norm      '    21.572       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.9623       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .76598       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5900.530     FROM MIGRAD    STATUS=FAILED       801 CALLS     2719 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    79.851        .52025E-02** at limit **
   2  norm          4.7627        5.4774        .18338E-03   -.33229E-04
   3  Prefactor     89.325        202.99        .21227E-03    .58829E-04
   4  Prefactor     25.673        17.152        .79061E-04   -.79663E-04
   5  Prefactor     .10000E-03    40.354        .14379    ** at limit **
   6  Prefactor     .10000E-03    25.873        .18142E-02** at limit **
   7  norm          .10000E-03    12.712        .18142E-02** at limit **
   8  Prefactor     9.0803        9.4635        .13300E-03    .16753E-04
   9  norm          .10000E-03    .36587        .89349E-04** at limit **
  10  norm          12.433        15.942        .11374E-03   -.88757E-04
  11  norm          .66959        397.22        .76813E-02    .56794E-03
  12  norm          3.1821        2.3701        .98508E-04    .10387E-05
  13  Prefactor     .10000E-03    81.322        .18142E-02** at limit **
  14  norm          .10000E-03    1.1868        .81681E-03** at limit **
  15  norm          6.3774        16.298        .79458E-03    .42280E-04
  16  norm          11.365        14.320        .11881E-03    .41451E-04
  17  Prefactor     .10000E-03    8.9338        .18142E-02** at limit **
  18  Prefactor     47.965        60.221        .28968E-03   -.80923E-04
  19  norm          21.572        4.4083        .68564E-04   -.30344E-04
  20  Normalizat    1.9620        .41072        .36755E-03   -.45128E-04
  21  Prefactor     .76612        .14439        .20220E-03   -.15704E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5900.530     FROM SIMPLEX   STATUS=UNCHANGED   1087 CALLS     3806 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    79.851        .10454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7627        5.4774        .60422E-06   -1.5271    
   3  Prefactor     89.325        202.99        .56237E-06   -1.3815    
   4  Prefactor     25.673        17.152        .58177E-06   -1.4694    
   5  Prefactor     .10000E-03    40.354        .28621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.873        .46679E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.712        .65460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0803        9.4635        .59590E-06   -1.5105    
   9  norm          .10000E-03    .36587        .72081E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.433        15.942        .62215E-06   -1.5003    
  11  norm          .66959        397.22        .33168E-05   -1.5544    
  12  norm          3.1821        2.3701        .59338E-06   -1.5351    
  13  Prefactor     .10000E-03    81.322        .85648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1868        .11090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3774        16.298        .60657E-06   -1.5203    
  16  norm          11.365        14.320        .57894E-06   -1.5034    
  17  Prefactor     .10000E-03    8.9338        .46250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.965        60.221        .55809E-06   -1.4322    
  19  norm          21.572        4.4083        .58234E-06   -1.4779    
  20  Normalizat    1.9620        .41072        .27190E-06   -.65506    
  21  Prefactor     .76612        .14439        .39712E-06   -1.0099    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5900.530     FROM MIGRAD    STATUS=CONVERGED    312 CALLS     4118 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    82.151        .20810E-03** at limit **
   2  norm          4.7627        5.4771        .73354E-05    .61994E-06
   3  Prefactor     89.323        202.88        .42453E-04   -.21423E-06
   4  Prefactor     25.673        17.153        .31624E-05    .20131E-04
   5  Prefactor     .10000E-03    40.017        .14475    ** at limit **
   6  Prefactor     .10000E-03    25.885        .36285E-03** at limit **
   7  norm          .10000E-03    12.712        .36285E-03** at limit **
   8  Prefactor     9.0803        9.4596        .53201E-05    .42739E-06
   9  norm          .10000E-03    .36587        .17870E-04** at limit **
  10  norm          12.433        15.694        .45497E-05    .44978E-05
  11  norm          .66953        384.84        .15363E-02    .21930E-04
  12  norm          3.1821        2.3698        .39403E-05    .46164E-05
  13  Prefactor     .10000E-03    81.345        .36285E-03** at limit **
  14  norm          .10000E-03    1.1868        .16336E-03** at limit **
  15  norm          6.3774        16.288        .31783E-04    .71539E-07
  16  norm          11.365        14.320        .23763E-04    .95685E-07
  17  Prefactor     .10000E-03    8.9339        .36285E-03** at limit **
  18  Prefactor     47.965        60.218        .11587E-04    .19623E-06
  19  norm          21.572        4.4062        .27425E-05    .24872E-05
  20  Normalizat    1.9620        .40605        .14702E-04    .83513E-05
  21  Prefactor     .76612        .14422        .80880E-05    .14900E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.76273
  Prefactor  = 89.3225
  Prefactor  = 25.6728
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.08029
  norm       = 0.0001
  norm       = 12.4327
  norm       = 0.669533
  norm       = 3.18206
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.37735
  norm       = 11.3648
  Prefactor  = 0.0001
  Prefactor  = 47.9649
  norm       = 21.5724
  Normalizat = 1.96202
  Prefactor  = 0.766119
 **********
 **   18 **HESSE 
 **********

 FCN=   5900.530     FROM HESSE     STATUS=OK           307 CALLS     4425 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    82.154        .41620E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7627        5.4775        .14671E-05   -1.5271    
   3  Prefactor     89.323        202.89        .84907E-05   -1.3815    
   4  Prefactor     25.673        17.163        .63249E-06   -1.4694    
   5  Prefactor     .10000E-03    40.085        .14456       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.885        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.712        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0803        9.4574        .10640E-05   -1.5105    
   9  norm          .10000E-03    .36588        .35740E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.433        15.629        .90993E-06   -1.5003    
  11  norm          .66953        379.33        .30725E-03   -1.5544    
  12  norm          3.1821        2.3696        .78806E-06   -1.5351    
  13  Prefactor     .10000E-03    81.346        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1868        .32672E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3774        16.286        .63566E-05   -1.5203    
  16  norm          11.365        14.321        .47525E-05   -1.5034    
  17  Prefactor     .10000E-03    8.9339        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.965        60.310        .23175E-05   -1.4322    
  19  norm          21.572        4.4061        .54851E-06   -1.4779    
  20  Normalizat    1.9620        .40502        .29404E-05   -.65506    
  21  Prefactor     .76612        .14426        .16176E-05   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00676e-12
Minuit parameter uncertainties:
  1  8.00589e-06
  2  5.47803
  3  204.5
  4  17.1664
  5  0.000630863
  6  1.86519e-07
  7  2.04015e-07
  8  9.45899
  9  1.48978e-09
  10  15.6342
  11  32.0767
  12  2.3697
  13  2.30109e-06
  14  1.9557e-09
  15  16.2973
  16  14.325
  17  7.3424e-08
  18  60.3866
  19  4.40618
  20  0.405732
  21  0.144331
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.243e+01  1.563e+01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.642e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  6.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  7.661e-01  1.443e-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.962e+00  4.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/469277/likelihoodResults_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.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) = 5899.59185505
delta logL = 0.938275786134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5899.52990632
delta logL = 1.00022452298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1015       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7443       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82038       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=   5899.530     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      281 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1020        18.971        .10904E-01   -.75346E-03
   2  alpha         5.0000        4.8949        .46267    ** at limit **
   3  Normalizat    1.7445        .19309        .86804E-01   -.51317E-04
   4  Prefactor     .82028        .68322E-01    .43982E-01   -.78672E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10205
  alpha      = 5
  Normalizat = 1.74452
  Prefactor  = 0.820277
 **********
 **   18 **HESSE 
 **********

 FCN=   5899.530     FROM HESSE     STATUS=OK            35 CALLS      316 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1020        .87093        .49111E-04   -1.5498    
   2  alpha         5.0000        .99037        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.7445        .40468        .38426E-03   -.71121    
   4  Prefactor     .82028        .14221        .19604E-03   -.98985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53114e-10
Minuit parameter uncertainties:
  1  0.870936
  2  2.12208e-06
  3  0.405453
  4  0.142276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469277': 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) = 5899.52990556
delta logL = 1.00022528339

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.102e+00  8.709e-01  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  5.000e+00  2.122e-06  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:  8.203e-01  1.423e-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.745e+00  4.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.17
Ra Dec: 299.796 -42.785
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.22e-07 +/- 1.74e-07
Energy Flux (Free Index): 3.07e-05 +/- 2.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/469277/cmap_HighResolution_581472001_581731201_4FGL_J1959.1-4247_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-05', comment='SUCCESS', energy_flux2='3.07e-05', dlogl='1.00e+00', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-09-24 03:37:36.645446', photon_index_error2='0.00', photon_index2='5.00', ts='0.87', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='2.42e-05', EG='1.96', time_epoch_completed='1632479856.65', return_code='0', job_id='469277', GAL2='0.82', EG2='1.74', return_code2='0', photon_flux_error2='1.74e-07', ts2='3.17', photon_index='2.27' WHERE bin_id='1320' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:37:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 469277: <4FGL_J1959.1-4247_daily_bin1320> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1320> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 03:22:23 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:22:26 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:22:26 2021
Terminated at Fri Sep 24 03:37:37 2021
Results reported at Fri Sep 24 03:37:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1320 299.796 -42.7852 581472001 581731201 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 :                                   785.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            914 sec.

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

