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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1084
RA = 189.594, Dec = -19.9945
tmin = 520300801, tmax = 520560001
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='852804', job_status='RUN', time_executed='2021-09-06 02:21:13.742611', time_epoch_executed='1630920073.74' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/852804

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/852804/ft1_4FGL_J1238.3-1959_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/852804/ft1_4FGL_J1238.3-1959_daily_bin1084.fits outfile=/scratch/kocevski/852804/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1084.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.16
user 5.90
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.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/852804/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/852804/ltcube_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.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/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits
.....................!
real 15.55
user 15.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/852804/ltcube_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.fits outfile=/scratch/kocevski/852804/expmap_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.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/852804/ltcube_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.fits
.....................!
real 193.69
user 187.89
sys 5.21

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/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits scfile=/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits outfile=/scratch/kocevski/852804/cmap_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits scfile=/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits outfile=/scratch/kocevski/852804/cmap_HighResolution_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/852804/Model_4FGL_J1238.3-1959_daily_bin1084.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/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits.....................!
real 47.10
user 45.57
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits', '/scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits', expMap='/scratch/kocevski/852804/expmap_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.fits', expCube='/scratch/kocevski/852804/ltcube_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/852804/Model_4FGL_J1238.3-1959_daily_bin1084.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/852804/ft1_filtered_4FGL_J1238.3-1959_daily_bin1084.fits
Spacecraft file(s): /scratch/kocevski/852804/ft2_4FGL_J1238.3-1959_daily_bin1084.fits
Exposure map: /scratch/kocevski/852804/expmap_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.fits
Exposure cube: /scratch/kocevski/852804/ltcube_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/852804/Model_4FGL_J1238.3-1959_daily_bin1084.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) = 5018.25192674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.525       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20256E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16758E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.235       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3005       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14557E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.341       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .63396       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4687       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=   5018.247     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2247 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.469       -.25344E-05** at limit **
   2  Prefactor     .10000E-03    9.8189       -.11255E-05** at limit **
   3  norm          .10000E-03    2.1004       -.54692E-06** at limit **
   4  Prefactor     .10000E-03    28.480        .66043E-05** at limit **
   5  Prefactor     62.565        66.435       -.69175E-05   -.13114E-04
   6  Prefactor     .10000E-03    35.585        .37011E-06** at limit **
   7  Prefactor     .10000E-03    17.318        .14842E-05** at limit **
   8  Prefactor     11.060        55.164        .52802E-05    .81073E-05
   9  Prefactor     .10000E-03    11.025        .23065E-06** at limit **
  10  Prefactor     .10000E-03    4.8353        .14444E-06** at limit **
  11  Prefactor     5.9561        3.2600       -.83720E-08    .20903E-04
  12  Prefactor     .10000E-03    8.7300        .14283E-06** at limit **
  13  Prefactor     .10000E-03    4.8400        .10984E-06** at limit **
  14  norm          4.3007        1.9921       -.28857E-07   -.34265E-05
  15  Prefactor     .10000E-03    211.64       -.28694E-05** at limit **
  16  norm          .10000E-03    4.5822        .11554E-06** at limit **
  17  norm          13.335        10.521        .72867E-06   -.17809E-04
  18  Prefactor     .10000E-03    17.493        .20023E-05** at limit **
  19  norm          .10000E-03    6.0409        .18221E-06** at limit **
  20  Normalizat    .63420        .35446       -.13214E-05    .39691E-05
  21  Prefactor     1.4686        .17968        .11863E-05   -.10627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.5651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.95606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30067
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 13.3347
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.634196
  Prefactor  = 1.46855
 **********
 **   18 **HESSE 
 **********

 FCN=   5018.247     FROM HESSE     STATUS=OK           311 CALLS     2558 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1055        .10024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.156        .28061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.565        66.777        .25373E-03   -1.4124    
   6  Prefactor     .10000E-03    35.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.060        55.101        .11952E-03   -1.5043    
   9  Prefactor     .10000E-03    11.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.8629        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9561        3.2597        .91846E-04   -1.5220    
  12  Prefactor     .10000E-03    8.7393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8466        .15220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3007        1.9885        .64562E-04   -1.5293    
  15  Prefactor     .10000E-03    212.53        .20494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.5876        .14808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.335        10.451        .10966E-03   -1.4977    
  18  Prefactor     .10000E-03    17.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.1991        .33933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .63420        .36540        .52580E-03   -1.0655    
  21  Prefactor     1.4686        .18767        .18288E-03   -.78424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81757e-11
Minuit parameter uncertainties:
  1  2.6955e-05
  2  8.42278e-07
  3  8.05025e-09
  4  1.60918e-05
  5  66.857
  6  7.69213e-06
  7  7.20535e-06
  8  49.4465
  9  1.81531e-06
  10  1.60218e-06
  11  3.25976
  12  3.40713e-06
  13  1.01759e-07
  14  1.98853
  15  0.000732124
  16  2.3769e-06
  17  10.4524
  18  0.000158674
  19  3.66626e-05
  20  0.366804
  21  0.187758
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  3.407e-06  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:  1.469e+00  1.878e-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:  6.342e-01  3.668e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/852804/likelihoodResults_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.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) = 5018.2471477
delta logL = -0.000542982419574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5018.24660471
delta logL = 1.31603883347e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1352       1.0000          .0000       10.000    
     3 'Normalizat'    .63419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4686       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.

 FCN=   5018.247     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10253E-03    4.8552        .18142E-01** at limit **
   2  Index         2.0280        6.0137        .50000        .11751E-04
   3  Normalizat    .63420        .58877E-02    .52581E-03    .76108E-05
   4  Prefactor     1.4686        .30103E-02    .18288E-03    .18836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102525
  Index      = 2.028
  Normalizat = 0.634195
  Prefactor  = 1.46855
 **********
 **   18 **HESSE 
 **********

 FCN=   5018.247     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10253E-03    155.17        .21186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0280        5.9383        .50000       -.63652    
   3  Normalizat    .63420        .33865E-01    .21032E-04   -1.0655    
   4  Prefactor     1.4686        .17314E-01    .73153E-05   -.78424    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10763e-08
Minuit parameter uncertainties:
  1  0.0396922
  2  735.413
  3  0.0338656
  4  0.0173144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/852804': 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) = 5018.24660445
delta logL = 2.74875674222e-07

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.025e-04  3.969e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.028e+00  7.354e+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:  1.469e+00  1.731e-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:  6.342e-01  3.387e-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/852804/cmap_HighResolution_520300801_520560001_4FGL_J1238.3-1959_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-06 02:31:06.646912', job_id='852804', GAL2='1.47', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630920666.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='2.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1084' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:31:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 852804: <4FGL_J1238.3-1959_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1084> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:20:32 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:20:34 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:20:34 2021
Terminated at Mon Sep  6 02:31:07 2021
Results reported at Mon Sep  6 02:31:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1084 189.594 -19.9945 520300801 520560001 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 :                                   589.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            635 sec.

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

