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


Performing analysis on: 4FGL_J1959.1-4247_daily_bin1267
RA = 299.796, Dec = -42.7852
tmin = 567734401, tmax = 567993601
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='469197', job_status='RUN', time_executed='2021-09-24 03:25:17.634821', time_epoch_executed='1632479117.63' WHERE source_name='4FGL J1959.1-4247' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469197/ft1_4FGL_J1959.1-4247_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469197/ft1_4FGL_J1959.1-4247_daily_bin1267.fits outfile=/scratch/kocevski/469197/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1267.fits ra=299.796 dec=-42.7852 rad=12.0 tmin=567734401.0 tmax=567993601.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.68
user 2.49
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.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/469197/ft1_filteredMKT_4FGL_J1959.1-4247_daily_bin1267.fits evtable="EVENTS" outfile="/scratch/kocevski/469197/ft1_filtered_4FGL_J1959.1-4247_daily_bin1267.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.54
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469197/ft1_filtered_4FGL_J1959.1-4247_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/469197/ltcube_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.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/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.fits
.....................!
real 14.96
user 14.55
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469197/ft1_filtered_4FGL_J1959.1-4247_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/469197/ltcube_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.fits outfile=/scratch/kocevski/469197/expmap_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.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/469197/ltcube_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.fits
.....................!
real 223.54
user 216.70
sys 6.28

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/469197/ft1_filtered_4FGL_J1959.1-4247_daily_bin1267.fits scfile=/scratch/kocevski/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.fits outfile=/scratch/kocevski/469197/cmap_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469197/ft1_filtered_4FGL_J1959.1-4247_daily_bin1267.fits scfile=/scratch/kocevski/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.fits outfile=/scratch/kocevski/469197/cmap_HighResolution_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469197/ft1_filtered_4FGL_J1959.1-4247_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/469197/ft2_4FGL_J1959.1-4247_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469197/Model_4FGL_J1959.1-4247_daily_bin1267.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/469197/ft1_filtered_4FGL_J1959.1-4247_daily_bin1267.fits.....................!
real 39.39
user 37.90
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10837E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28388E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.147       1.0000         .10000E-03   10000.    
     7 'norm      '    29.229       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.049       1.0000         .10000E-03   10000.    
     9 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3589       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4932       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81294       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=   3040.911     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2207 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    204.98       -.39862E-04** at limit **
   2  norm          .10000E-03    4.0717        .67162E-08** at limit **
   3  Prefactor     .10000E-03    1278.5       -.16951E-03** at limit **
   4  Prefactor     22.397        21.205       -.20198E-06    .12976E-04
   5  Prefactor     .10000E-03    24.918        .10744E-05** at limit **
   6  Prefactor     15.146        29.313        .11203E-06    .28025E-04
   7  norm          29.230        31.060        .78584E-08    .44356E-05
   8  Prefactor     24.049        16.597       -.14354E-06    .94009E-05
   9  norm          .10000E-03    1.0244       -.35135E-07** at limit **
  10  norm          .10000E-03    8.1240       -.18058E-07** at limit **
  11  norm          .10000E-03    31.835       -.13107E-04** at limit **
  12  norm          2.1547        2.6209       -.86427E-07   -.15941E-03
  13  Prefactor     .10000E-03    99.847        .37407E-04** at limit **
  14  norm          .10000E-03    1.7669       -.46901E-07** at limit **
  15  norm          .10000E-03    10.215       -.27353E-07** at limit **
  16  norm          2.3749        55.306       -.15710E-05    .57294E-04
  17  Prefactor     .10000E-03    49.231       -.36670E-04** at limit **
  18  Prefactor     .10000E-03    39.409        .36308E-04** at limit **
  19  norm          .10000E-03    .99985        .59940E-07** at limit **
  20  Normalizat    1.4933        .38057        .74056E-07    .97618E-04
  21  Prefactor     .81287        .15113        .35415E-06    .24200E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.3968
  Prefactor  = 0.0001
  Prefactor  = 15.1464
  norm       = 29.2301
  Prefactor  = 24.0491
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.15469
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.37486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.49332
  Prefactor  = 0.812867
 **********
 **   18 **HESSE 
 **********

 FCN=   3040.911     FROM HESSE     STATUS=OK           309 CALLS     2516 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    209.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.0775        .10867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1281.0        .21413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.397        21.218        .84637E-04   -1.4761    
   5  Prefactor     .10000E-03    24.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.146        29.283        .10291E-03   -1.4929    
   7  norm          29.230        31.061        .74106E-04   -1.4626    
   8  Prefactor     24.049        16.607        .81683E-04   -1.4727    
   9  norm          .10000E-03    1.7630        .10794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.1407        .15351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    32.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1547        2.6078        .95195E-04   -1.5414    
  13  Prefactor     .10000E-03    100.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.7702        .71584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.235        .17215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3749        55.330        .26684E-03   -1.5400    
  17  Prefactor     .10000E-03    49.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.0086        .53821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4933        .44800        .34513E-03   -.77966    
  21  Prefactor     .81287        .17864        .17736E-03   -.99256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58303e-10
Minuit parameter uncertainties:
  1  0.0016441
  2  1.98305e-08
  3  0.00211729
  4  21.2251
  5  2.90633e-07
  6  29.3105
  7  31.0779
  8  16.6099
  9  1.29235e-06
  10  2.5916e-07
  11  5.15983e-05
  12  2.60792
  13  7.22545e-05
  14  5.6485e-07
  15  2.43243e-06
  16  22.9495
  17  0.000170508
  18  1.50558e-06
  19  5.15434e-07
  20  0.449194
  21  0.178766
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
667    Prefactor:  8.129e-01  1.788e-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.493e+00  4.492e-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: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469197/likelihoodResults_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.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) = 3040.91122272
delta logL = -0.000584308313137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3040.91063842
delta logL = -2.68119038083e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2701       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81287       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=   3040.911     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      225 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1822.0        .15351E-02** at limit **
   2  alpha         2.2843        3.0056        .16549       -.47434E-07
   3  Normalizat    1.4933        .34866        .34513E-03   -.15588E-03
   4  Prefactor     .81286        .13814        .17736E-03   -.42569E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28432
  Normalizat = 1.49333
  Prefactor  = 0.812865
 **********
 **   18 **HESSE 
 **********

 FCN=   3040.911     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1428        .30702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2843        2.6559        .66198E-02   -.86379E-01
   3  Normalizat    1.4933        .44508        .69027E-04   -.77966    
   4  Prefactor     .81286        .17647        .35471E-04   -.99256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22041e-10
Minuit parameter uncertainties:
  1  0.000118335
  2  398.315
  3  0.446257
  4  0.17659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469197': 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) = 3040.91063841
delta logL = 8.5174178821e-10

Extracting fit parameters...

4FGL J1959.1-4247
   Spectrum: LogParabola
375         norm:  1.000e-04  1.183e-04  1.000e-04  1.000e+04 ( 1.000e-12)
376        alpha:  2.284e+00  3.983e+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:  8.129e-01  1.766e-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.493e+00  4.463e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/469197/cmap_HighResolution_567734401_567993601_4FGL_J1959.1-4247_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-05', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-24 03:35:51.089823', job_id='469197', GAL2='0.81', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1632479751.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='8.52e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1267' AND source_name='4FGL J1959.1-4247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 03:35:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 469197: <4FGL_J1959.1-4247_daily_bin1267> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1959.1-4247_daily_bin1267 299.796 -42.7852 567734401 567993601 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 :                                   538.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             237.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            813 sec.

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

