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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1501
RA = 299.796, Dec = -42.7852
tmin = 628387201, tmax = 628646401
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='470471', job_status='RUN', time_executed='2021-09-24 03:27:14.749213', time_epoch_executed='1632479234.75' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/470471

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/470471/ft1_4FGL_J1959.1-4247_daily_bin1501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/470471/ft2_4FGL_J1959.1-4247_daily_bin1501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/470471/ft1_4FGL_J1959.1-4247_daily_bin1501.fits outfile=/scratch/kocevski/470471/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1501.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=628387201.0 tmax=628646401.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.57
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/470471/ft1_filtered_4FGL_J1959.1-4247_daily_bin1501.fits" evtable="EVENTS" scfile=/scratch/kocevski/470471/ft2_4FGL_J1959.1-4247_daily_bin1501.fits sctable="SC_DATA" outfile=/scratch/kocevski/470471/ltcube_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.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/470471/ft2_4FGL_J1959.1-4247_daily_bin1501.fits
.....................!
real 11.91
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/470471/ft1_filtered_4FGL_J1959.1-4247_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/470471/ft2_4FGL_J1959.1-4247_daily_bin1501.fits sctable="SC_DATA" expcube=/scratch/kocevski/470471/ltcube_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.fits outfile=/scratch/kocevski/470471/expmap_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.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/470471/ltcube_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.fits
.....................!
real 189.79
user 185.40
sys 4.07

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/470471/ft1_filtered_4FGL_J1959.1-4247_daily_bin1501.fits scfile=/scratch/kocevski/470471/ft2_4FGL_J1959.1-4247_daily_bin1501.fits outfile=/scratch/kocevski/470471/cmap_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.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/470471/ft1_filtered_4FGL_J1959.1-4247_daily_bin1501.fits scfile=/scratch/kocevski/470471/ft2_4FGL_J1959.1-4247_daily_bin1501.fits outfile=/scratch/kocevski/470471/cmap_HighResolution_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/470471/ft1_filtered_4FGL_J1959.1-4247_daily_bin1501.fits evtable="EVENTS" scfile=/scratch/kocevski/470471/ft2_4FGL_J1959.1-4247_daily_bin1501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/470471/Model_4FGL_J1959.1-4247_daily_bin1501.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/470471/ft1_filtered_4FGL_J1959.1-4247_daily_bin1501.fits.....................!
real 69.18
user 67.90
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7259       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.291       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7565       1.0000         .10000E-03   10000.    
     7 'norm      '    14.653       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7289       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    34.810       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.913       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.0803       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4360       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95893       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=   8087.369     FROM MIGRAD    STATUS=CONVERGED    434 CALLS     1848 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7215        9.2185       -.98173E-06   -.95201E-04
   2  norm          .10000E-03    .74464       -.86941E-08** at limit **
   3  Prefactor     .10000E-03    58.408       -.26220E-07** at limit **
   4  Prefactor     .10000E-03    6.6715        .16027E-06** at limit **
   5  Prefactor     14.275        22.408       -.10730E-04   -.12154E-04
   6  Prefactor     1.7206        42.456        .46193E-05   -.13236E-03
   7  norm          14.652        15.567        .12640E-05   -.13197E-05
   8  Prefactor     .10000E-03    3.0469       -.10278E-07** at limit **
   9  norm          4.7288        1.5586       -.55705E-07   -.18636E-03
  10  norm          .10000E-03    3.2109       -.62719E-08** at limit **
  11  norm          34.812        20.291       -.18097E-07   -.78365E-05
  12  norm          2.6884        1.6796        .17800E-07    .12919E-03
  13  Prefactor     .10000E-03    23.475       -.52135E-06** at limit **
  14  norm          .10000E-03    1.1039       -.17136E-09** at limit **
  15  norm          12.913        12.178       -.17550E-06   -.17227E-04
  16  norm          5.6685        14.929       -.11956E-05   -.43086E-04
  17  Prefactor     .10000E-03    14.153        .75707E-07** at limit **
  18  Prefactor     .10000E-03    23.529        .28751E-06** at limit **
  19  norm          8.0809        3.0354       -.12217E-07   -.75377E-04
  20  Normalizat    1.4355        .27866       -.35137E-06   -.25592E-04
  21  Prefactor     .95908        .98875E-01    .36110E-06   -.12855E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.72148
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.275
  Prefactor  = 1.72056
  norm       = 14.6516
  Prefactor  = 0.0001
  norm       = 4.72877
  norm       = 0.0001
  norm       = 34.8118
  norm       = 2.68843
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.9127
  norm       = 5.6685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.08095
  Normalizat = 1.43549
  Prefactor  = 0.959084
 **********
 **   18 **HESSE 
 **********

 FCN=   8087.369     FROM HESSE     STATUS=OK           317 CALLS     2165 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7215        9.2806        .14427E-03   -1.5152    
   2  norm          .10000E-03    .74780        .75776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.7838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.275        22.534        .10595E-03   -1.4952    
   6  Prefactor     1.7206        40.640        .31624E-03   -1.5446    
   7  norm          14.652        15.580        .10463E-03   -1.4942    
   8  Prefactor     .10000E-03    3.0747        .15328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7288        1.5563        .61637E-04   -1.5273    
  10  norm          .10000E-03    3.2152        .15736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          34.812        20.323        .67922E-04   -1.4527    
  12  norm          2.6884        1.6817        .89591E-04   -1.5380    
  13  Prefactor     .10000E-03    23.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1079        .92264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.913        12.181        .11147E-03   -1.4989    
  16  norm          5.6685        14.942        .16873E-03   -1.5232    
  17  Prefactor     .10000E-03    14.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.0809        3.0437        .92372E-04   -1.5139    
  20  Normalizat    1.4355        .32908        .40733E-03   -.79608    
  21  Prefactor     .95908        .11774        .17359E-03   -.94106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02289e-10
Minuit parameter uncertainties:
  1  9.28234
  2  7.44876e-07
  3  9.45199e-06
  4  4.22161e-05
  5  22.5478
  6  16.7363
  7  15.5844
  8  1.70198e-06
  9  1.55628
  10  1.18403e-06
  11  20.3272
  12  1.68169
  13  1.43557e-06
  14  2.26169e-09
  15  12.1834
  16  14.9518
  17  4.86422e-06
  18  1.29078e-07
  19  3.04371
  20  0.329565
  21  0.11777
Done.

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

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.184e-06  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.591e-01  1.178e-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.435e+00  3.296e-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: 7.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/470471/likelihoodResults_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.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) = 8087.3708081
delta logL = -0.00147831538561

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8087.3693299
delta logL = -1.11910594569e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2698       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95905       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=   8087.369     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      194 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    109.40        .90712E-02** at limit **
   2  alpha         2.2698        3.3506        .41374       -.10920E-06
   3  Normalizat    1.4355        .43955E-01    .91973E-01    .70959E-05
   4  Prefactor     .95908        .15786E-01    .45753E-01   -.16784E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.26983
  Normalizat = 1.43549
  Prefactor  = 0.959084
 **********
 **   18 **HESSE 
 **********

 FCN=   8087.369     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.564        .15736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2698        3.5895        .16550       -.92198E-01
   3  Normalizat    1.4355        .31807        .40733E-03   -.79608    
   4  Prefactor     .95908        .11458        .17359E-03   -.94106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02577e-09
Minuit parameter uncertainties:
  1  9.08049e-07
  2  739.492
  3  0.318513
  4  0.114604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/470471': 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) = 8087.36932978
delta logL = 1.00044417195e-11

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  9.080e-07  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.270e+00  7.395e+02  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.591e-01  1.146e-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.435e+00  3.185e-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/470471/cmap_HighResolution_628387201_628646401_4FGL_J1959.1-4247_daily_bin1501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-05', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-09-24 03:40:52.908663', job_id='470471', GAL2='0.96', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1632480052.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.00e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1501' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:40:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 470471: <4FGL_J1959.1-4247_daily_bin1501> in cluster <slac> Done

Job <4FGL_J1959.1-4247_daily_bin1501> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 24 03:26:35 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 03:26:38 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:38 2021
Terminated at Fri Sep 24 03:40:53 2021
Results reported at Fri Sep 24 03:40:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1501 299.796 -42.7852 628387201 628646401 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 :                                 1146 MB
    Average Memory :                             335.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            858 sec.

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

