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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin693
RA = 189.594, Dec = -19.9945
tmin = 418953601, tmax = 419212801
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='849754', job_status='RUN', time_executed='2021-09-06 02:13:57.799212', time_epoch_executed='1630919637.8' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849754/ft1_4FGL_J1238.3-1959_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849754/ft2_4FGL_J1238.3-1959_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849754/ft1_4FGL_J1238.3-1959_daily_bin693.fits outfile=/scratch/kocevski/849754/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin693.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.89
user 5.27
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/849754/ft2_4FGL_J1238.3-1959_daily_bin693.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/849754/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin693.fits evtable="EVENTS" outfile="/scratch/kocevski/849754/ft1_filtered_4FGL_J1238.3-1959_daily_bin693.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849754/ft1_filtered_4FGL_J1238.3-1959_daily_bin693.fits" evtable="EVENTS" scfile=/scratch/kocevski/849754/ft2_4FGL_J1238.3-1959_daily_bin693.fits sctable="SC_DATA" outfile=/scratch/kocevski/849754/ltcube_418953601_419212801_4FGL_J1238.3-1959_daily_bin693.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/849754/ft2_4FGL_J1238.3-1959_daily_bin693.fits
.....................!
real 15.21
user 14.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849754/ft1_filtered_4FGL_J1238.3-1959_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/849754/ft2_4FGL_J1238.3-1959_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/849754/ltcube_418953601_419212801_4FGL_J1238.3-1959_daily_bin693.fits outfile=/scratch/kocevski/849754/expmap_418953601_419212801_4FGL_J1238.3-1959_daily_bin693.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/849754/ltcube_418953601_419212801_4FGL_J1238.3-1959_daily_bin693.fits
.....................!
real 192.46
user 186.38
sys 5.23

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/849754/ft1_filtered_4FGL_J1238.3-1959_daily_bin693.fits scfile=/scratch/kocevski/849754/ft2_4FGL_J1238.3-1959_daily_bin693.fits outfile=/scratch/kocevski/849754/cmap_418953601_419212801_4FGL_J1238.3-1959_daily_bin693.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.57
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/849754/ft1_filtered_4FGL_J1238.3-1959_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/849754/ft2_4FGL_J1238.3-1959_daily_bin693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/849754/Model_4FGL_J1238.3-1959_daily_bin693.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/849754/ft1_filtered_4FGL_J1238.3-1959_daily_bin693.fits.....................!
real 61.00
user 59.56
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7061       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    101.65       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0227       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4330       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8188       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7771       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0577       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4658       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95071       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=   7231.402     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2209 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7071        40.267        .99198E-06   -.57887E-06
   2  Prefactor     .10000E-03    8.5037       -.11369E-06** at limit **
   3  norm          .10000E-03    3.2759       -.12233E-06** at limit **
   4  Prefactor     .10000E-03    4.9255       -.32333E-07** at limit **
   5  Prefactor     101.65        70.256        .69120E-05    .14586E-04
   6  Prefactor     .10000E-03    23.454       -.83382E-06** at limit **
   7  Prefactor     .10000E-03    16.773       -.28073E-05** at limit **
   8  Prefactor     .10000E-03    33.908        .43875E-06** at limit **
   9  Prefactor     26.328        34.096       -.40618E-05    .25616E-05
  10  Prefactor     1.0242        10.900       -.29387E-05   -.71550E-04
  11  Prefactor     7.2151        2.9256        .21822E-06    .24353E-03
  12  Prefactor     11.479        18.866        .97851E-07    .23735E-05
  13  Prefactor     .10000E-03    17.055        .30757E-05** at limit **
  14  norm          2.4330        1.1820        .10820E-07    .30636E-04
  15  Prefactor     .10000E-03    82.694       -.22298E-06** at limit **
  16  norm          1.8187        .93550        .26089E-06   -.64871E-03
  17  norm          1.7772        5.8873       -.12226E-06   -.33103E-04
  18  Prefactor     .10000E-03    4.1446        .83879E-09** at limit **
  19  norm          1.0580        2.1714       -.31482E-08   -.36141E-04
  20  Normalizat    1.4660        .25644        .59426E-07    .24282E-04
  21  Prefactor     .95069        .12051        .36183E-07    .45032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70714
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3284
  Prefactor  = 1.02417
  Prefactor  = 7.21514
  Prefactor  = 11.4793
  Prefactor  = 0.0001
  norm       = 2.43296
  Prefactor  = 0.0001
  norm       = 1.81868
  norm       = 1.77719
  Prefactor  = 0.0001
  norm       = 1.05804
  Normalizat = 1.46595
  Prefactor  = 0.950691
 **********
 **   18 **HESSE 
 **********

 FCN=   7231.402     FROM HESSE     STATUS=OK           317 CALLS     2526 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7071        40.269        .18549E-03   -1.5274    
   2  Prefactor     .10000E-03    8.5246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.3098        .15033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     101.65        70.293        .39878E-04   -1.3688    
   6  Prefactor     .10000E-03    23.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.328        34.088        .78065E-04   -1.4681    
  10  Prefactor     1.0242        11.054        .50873E-03   -1.5506    
  11  Prefactor     7.2151        2.8794        .84040E-04   -1.5171    
  12  Prefactor     11.479        18.882        .11823E-03   -1.5030    
  13  Prefactor     .10000E-03    17.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4330        1.1790        .61510E-04   -1.5396    
  15  Prefactor     .10000E-03    82.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8187        5.4638        .15483E-02   -1.5438    
  17  norm          1.7772        5.8240        .31401E-03   -1.5441    
  18  Prefactor     .10000E-03    4.1792        .16827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0580        2.1131        .17227E-03   -1.5502    
  20  Normalizat    1.4660        .30000        .35335E-03   -.78740    
  21  Prefactor     .95069        .14157        .20072E-03   -.94392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03704e-10
Minuit parameter uncertainties:
  1  27.5604
  2  2.7744e-05
  3  2.04107e-05
  4  6.11854e-06
  5  70.3508
  6  1.91977e-05
  7  7.23913e-05
  8  9.31134e-05
  9  34.1127
  10  6.73071
  11  2.87945
  12  18.8913
  13  1.59137e-05
  14  1.17905
  15  7.71324e-06
  16  5.4653
  17  5.82588
  18  1.69884e-06
  19  2.11322
  20  0.300366
  21  0.141627
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.148e+01  1.889e+01  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:  9.507e-01  1.416e-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.466e+00  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 189.594 -19.994
Photon Flux Upper Limit: 1.57e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849754/likelihoodResults_418953601_419212801_4FGL_J1238.3-1959_daily_bin693.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) = 7230.39053407
delta logL = 1.01160832527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7230.0940564
delta logL = 1.30808599858

Fit tolerance = 1e-08

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

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

 FCN=   7230.094     FROM MIGRAD    STATUS=CONVERGED    331 CALLS      820 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20422E-02    .32519E-03** at limit **
   2  Index         7.7088        1.9089        .10949        .23729E-03
   3  Normalizat    1.3056        .70174E-01    .83699E-01    .23619E-03
   4  Prefactor     1.0082        .32417E-01    .43649E-01    .42239E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.70878
  Normalizat = 1.3056
  Prefactor  = 1.00818
 **********
 **   18 **HESSE 
 **********

 FCN=   7230.094     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      859 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .18912E-01    .13481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.7088        3.0671        .42793E-02    .57253    
   3  Normalizat    1.3056        .16961        .37057E-03   -.83399    
   4  Prefactor     1.0082        .79004E-01    .19555E-03   -.92457    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.42193e-09
Minuit parameter uncertainties:
  1  2.98678e-07
  2  3.43793
  3  0.169682
  4  0.0790135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849754': 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) = 7230.09403879
delta logL = 1.30810360221

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  2.987e-07  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  7.709e+00  3.438e+00  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.008e+00  7.901e-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.306e+00  1.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 7.71 +/- 3.44
Photon Flux (Free Index): 1.80e-07 +/- 1.55e-06
Energy Flux (Free Index): 2.10e-05 +/- 1.81e-04

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/849754/cmap_HighResolution_418953601_419212801_4FGL_J1238.3-1959_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='2.10e-05', dlogl='1.31e+00', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-06 02:26:24.990499', photon_index_error2='3.44', photon_index2='7.71', ts='0.44', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.81e-04', EG='1.47', time_epoch_completed='1630920384.99', return_code='0', job_id='849754', GAL2='1.01', EG2='1.31', return_code2='102', photon_flux_error2='1.55e-06', ts2='3.36', photon_index='2.15' WHERE bin_id='693' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:26:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 849754: <4FGL_J1238.3-1959_daily_bin693> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Sep  6 02:10:31 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:11:27 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:11:27 2021
Terminated at Mon Sep  6 02:26:25 2021
Results reported at Mon Sep  6 02:26:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin693 189.594 -19.9945 418953601 419212801 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 :                                   745.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            954 sec.

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

