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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1434
RA = 189.594, Dec = -19.9945
tmin = 611020801, tmax = 611280001
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='854601', job_status='RUN', time_executed='2021-09-06 02:28:22.842661', time_epoch_executed='1630920502.84' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854601/ft1_4FGL_J1238.3-1959_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854601/ft1_4FGL_J1238.3-1959_daily_bin1434.fits outfile=/scratch/kocevski/854601/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1434.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=611020801.0 tmax=611280001.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.64
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.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/854601/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1434.fits evtable="EVENTS" outfile="/scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.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.60
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/854601/ltcube_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.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/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits
.....................!
real 17.42
user 16.91
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/854601/ltcube_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.fits outfile=/scratch/kocevski/854601/expmap_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.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/854601/ltcube_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.fits
.....................!
real 192.21
user 186.54
sys 4.87

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1238.3-1959 @ 189.594 -19.9945

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits scfile=/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits outfile=/scratch/kocevski/854601/cmap_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.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=189.594 yref=-19.9945 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.65
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits scfile=/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits outfile=/scratch/kocevski/854601/cmap_HighResolution_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.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=189.594 yref=-19.9945 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.70
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854601/Model_4FGL_J1238.3-1959_daily_bin1434.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/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits.....................!
real 56.60
user 54.36
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits', '/scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits', expMap='/scratch/kocevski/854601/expmap_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.fits', expCube='/scratch/kocevski/854601/ltcube_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/854601/Model_4FGL_J1238.3-1959_daily_bin1434.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1238.3-1959'

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.073e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/854601/ft1_filtered_4FGL_J1238.3-1959_daily_bin1434.fits
Spacecraft file(s): /scratch/kocevski/854601/ft2_4FGL_J1238.3-1959_daily_bin1434.fits
Exposure map: /scratch/kocevski/854601/expmap_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.fits
Exposure cube: /scratch/kocevski/854601/ltcube_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/854601/Model_4FGL_J1238.3-1959_daily_bin1434.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) = 6542.24811826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.491       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.689       1.0000         .10000E-03   10000.    
     5 'Prefactor '    112.71       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.263       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4481       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11622E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3552       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13701E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2528       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7898       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .68531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6542.238     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2229 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.136       -.43840E-05** at limit **
   2  Prefactor     .10001E-03    47.349        .44890E-04** at limit **
   3  norm          10.470        7.0444        .76073E-06   -.22164E-02
   4  Prefactor     10.687        8.4318       -.25436E-05   -.44007E-03
   5  Prefactor     112.72        76.888        .81898E-05   -.25735E-03
   6  Prefactor     16.277        46.304        .24199E-04   -.15585E-04
   7  Prefactor     .10000E-03    13.064       -.48785E-05** at limit **
   8  Prefactor     .10000E-03    15.969        .65697E-05** at limit **
   9  Prefactor     .10000E-03    25.577       -.10347E-04** at limit **
  10  Prefactor     .10000E-03    9.8513       -.18164E-06** at limit **
  11  Prefactor     9.4490        3.0647        .12398E-07    .20894E-04
  12  Prefactor     .10000E-03    24.979       -.83566E-05** at limit **
  13  Prefactor     .10000E-03    6.0948        .19662E-06** at limit **
  14  norm          1.3552        1.0978       -.23751E-07   -.34758E-03
  15  Prefactor     .10000E-03    67.411       -.44342E-04** at limit **
  16  norm          .10000E-03    14.241        .54444E-05** at limit **
  17  norm          .10000E-03    5.4628        .32781E-06** at limit **
  18  Prefactor     4.2501        4.4175       -.31710E-07    .11889E-03
  19  norm          .10000E-03    1.1438        .24257E-08** at limit **
  20  Normalizat    1.7896        .25832       -.30658E-05   -.15207E-03
  21  Prefactor     .68536        .11961       -.22943E-06   -.31460E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 10.4702
  Prefactor  = 10.6867
  Prefactor  = 112.717
  Prefactor  = 16.2771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.44903
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.35517
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.25009
  norm       = 0.0001
  Normalizat = 1.78962
  Prefactor  = 0.685362
 **********
 **   18 **HESSE 
 **********

 FCN=   6542.238     FROM HESSE     STATUS=OK           311 CALLS     2540 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    46.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.470        6.9739        .12370E-03   -1.5061    
   4  Prefactor     10.687        8.4260        .12255E-03   -1.5054    
   5  Prefactor     112.72        76.803        .37892E-04   -1.3581    
   6  Prefactor     16.277        46.309        .99315E-04   -1.4901    
   7  Prefactor     .10000E-03    13.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.4490        3.0572        .77980E-04   -1.5093    
  12  Prefactor     .10000E-03    25.945        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3552        1.0822        .72826E-04   -1.5475    
  15  Prefactor     .10000E-03    67.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    14.750        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.6081        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2501        4.4059        .16723E-03   -1.5296    
  19  norm          .10000E-03    1.1587        .84457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.7896        .30250        .31030E-03   -.69935    
  21  Prefactor     .68536        .13992        .21892E-03   -1.0410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45321e-09
Minuit parameter uncertainties:
  1  5.03986e-06
  2  0.00151163
  3  6.97442
  4  8.42694
  5  76.8712
  6  46.4117
  7  7.85133e-05
  8  4.14457e-05
  9  0.000121792
  10  5.85073e-05
  11  3.0573
  12  0.000333424
  13  1.77419e-05
  14  1.08219
  15  0.000156533
  16  1.79893e-05
  17  4.93078e-05
  18  4.40621
  19  3.26229e-06
  20  0.302816
  21  0.139997
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  3.334e-04  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  6.854e-01  1.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.790e+00  3.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/854601/likelihoodResults_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.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): 102
logL (Free Index) = 6542.23773577
delta logL = -0.000182561977454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6542.23755587
delta logL = -2.65942162514e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2621       1.0000          .0000       10.000    
     3 'Normalizat'    1.7896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+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=   6542.238     FROM MIGRAD    STATUS=FAILED        98 CALLS      289 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12493E-03    55.194        .36285E-02** at limit **
   2  Index         2.0963        8.7845        .50000        .48216E-04
   3  Normalizat    1.7896        .82697E-02    .31030E-03    .37962E-03
   4  Prefactor     .68536        .38573E-02    .21892E-03    .47592E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6542.238     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      401 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12493E-03    55.194        .10647E-02** at limit **
   2  Index         2.0963        8.7845        .14229E-02    .48216E-04
   3  Normalizat    1.7896        .82697E-02    .49531E-05    .37962E-03
   4  Prefactor     .68536        .38573E-02    .24253E-05    .47592E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6542.238     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      439 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11116E-03    23.682        .72569E-02** at limit **
   2  Index         2.1115        5.4700        .50000        .44576E-04
   3  Normalizat    1.7896        .57767E-02    .62061E-04    .37388E-03
   4  Prefactor     .68536        .26945E-02    .43784E-04    .46624E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111158
  Index      = 2.11154
  Normalizat = 1.78962
  Prefactor  = 0.685363
 **********
 **   18 **HESSE 
 **********

 FCN=   6542.238     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      468 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11116E-03    429.50        .29028E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1115        5.4681        .50000       -.61590    
   3  Normalizat    1.7896        .24596E-01    .12412E-04   -.69935    
   4  Prefactor     .68536        .11473E-01    .87567E-05   -1.0410    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.73081e-08
Minuit parameter uncertainties:
  1  0.139462
  2  211.901
  3  0.0245964
  4  0.0114728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854601': 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) = 6542.23755297
delta logL = 2.38765096583e-07

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.112e-04  1.395e-01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.112e+00  2.119e+02  0.000e+00  1.000e+01 (-1.000e+00)
309        Scale:  1.503e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  6.854e-01  1.147e-02  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  1.790e+00  2.460e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 189.594 -19.994

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/854601/cmap_HighResolution_611020801_611280001_4FGL_J1238.3-1959_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-06 02:39:44.655637', job_id='854601', GAL2='0.69', fit_tolerance='1e-08', EG2='1.79', EG='1.79', time_epoch_completed='1630921184.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='2.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1434' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 854601: <4FGL_J1238.3-1959_daily_bin1434> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1434> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 02:25:28 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:25:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 02:25:56 2021
Terminated at Mon Sep  6 02:39:45 2021
Results reported at Mon Sep  6 02:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1434 189.594 -19.9945 611020801 611280001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1238.3-1959 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            857 sec.

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

