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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1063
RA = 189.594, Dec = -19.9945
tmin = 514857601, tmax = 515116801
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='851499', job_status='RUN', time_executed='2021-09-06 02:18:05.004927', time_epoch_executed='1630919885.0' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/851499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/851499/ft1_4FGL_J1238.3-1959_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/851499/ft2_4FGL_J1238.3-1959_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/851499/ft1_4FGL_J1238.3-1959_daily_bin1063.fits outfile=/scratch/kocevski/851499/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1063.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=514857601.0 tmax=515116801.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.60
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/851499/ft1_filtered_4FGL_J1238.3-1959_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/851499/ft2_4FGL_J1238.3-1959_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/851499/ltcube_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.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/851499/ft2_4FGL_J1238.3-1959_daily_bin1063.fits
.....................!
real 14.36
user 13.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/851499/ft1_filtered_4FGL_J1238.3-1959_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/851499/ft2_4FGL_J1238.3-1959_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/851499/ltcube_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.fits outfile=/scratch/kocevski/851499/expmap_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.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/851499/ltcube_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.fits
.....................!
real 192.80
user 187.57
sys 4.57

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/851499/ft1_filtered_4FGL_J1238.3-1959_daily_bin1063.fits scfile=/scratch/kocevski/851499/ft2_4FGL_J1238.3-1959_daily_bin1063.fits outfile=/scratch/kocevski/851499/cmap_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/851499/ft1_filtered_4FGL_J1238.3-1959_daily_bin1063.fits scfile=/scratch/kocevski/851499/ft2_4FGL_J1238.3-1959_daily_bin1063.fits outfile=/scratch/kocevski/851499/cmap_HighResolution_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/851499/ft1_filtered_4FGL_J1238.3-1959_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/851499/ft2_4FGL_J1238.3-1959_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/851499/Model_4FGL_J1238.3-1959_daily_bin1063.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/851499/ft1_filtered_4FGL_J1238.3-1959_daily_bin1063.fits.....................!
real 57.83
user 55.92
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.9019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7785       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.346       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9822       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19379E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2067       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4102       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .55171       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2962       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=   6898.463     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2265 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.214       -.95664E-06** at limit **
   2  Prefactor     .10000E-03    9.3511       -.93163E-06** at limit **
   3  norm          5.9023        4.4980       -.19887E-06   -.12768E-04
   4  Prefactor     1.7699        5.8062        .17770E-05   -.90123E-05
   5  Prefactor     .10000E-03    26.285        .52765E-06** at limit **
   6  Prefactor     39.381        38.910        .12914E-05    .27148E-04
   7  Prefactor     .10000E-03    6.6856        .62060E-06** at limit **
   8  Prefactor     .10000E-03    46.339       -.16693E-05** at limit **
   9  Prefactor     .10000E-03    17.698       -.79102E-06** at limit **
  10  Prefactor     .39182        3.4030        .29194E-06   -.13620E-03
  11  Prefactor     3.2919        2.0285       -.11368E-07   -.13063E-03
  12  Prefactor     .10000E-03    6.4727       -.50018E-06** at limit **
  13  Prefactor     .10000E-03    3.8450       -.14058E-07** at limit **
  14  norm          2.9822        1.3163        .35912E-07   -.11555E-03
  15  Prefactor     .10000E-03    39.251        .21920E-05** at limit **
  16  norm          .10000E-03    12.014        .92557E-06** at limit **
  17  norm          .10000E-03    3.8883        .32261E-06** at limit **
  18  Prefactor     2.2088        3.4425        .21111E-06   -.70715E-04
  19  norm          2.4103        2.1920        .41657E-07   -.33209E-04
  20  Normalizat    .55175        .27257       -.14242E-06   -.67788E-04
  21  Prefactor     1.2962        .13817       -.42162E-06   -.12475E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.90231
  Prefactor  = 1.76988
  Prefactor  = 0.0001
  Prefactor  = 39.3815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.391816
  Prefactor  = 3.29194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98223
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 2.20879
  norm       = 2.41033
  Normalizat = 0.551754
  Prefactor  = 1.29623
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.463     FROM HESSE     STATUS=OK           319 CALLS     2584 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.9023        4.4785        .14759E-03   -1.5222    
   4  Prefactor     1.7699        5.9444        .31386E-03   -1.5442    
   5  Prefactor     .10000E-03    26.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.381        39.685        .63900E-04   -1.4452    
   7  Prefactor     .10000E-03    6.6973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39182        20.706        .27847E-02   -1.5583    
  11  Prefactor     3.2919        2.0979        .86403E-04   -1.5345    
  12  Prefactor     .10000E-03    6.4988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8543        .15903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9822        1.3109        .60234E-04   -1.5363    
  15  Prefactor     .10000E-03    39.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.711        .30838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2088        3.3658        .18346E-03   -1.5411    
  19  norm          2.4103        2.1871        .11391E-03   -1.5397    
  20  Normalizat    .55175        .28315        .48990E-03   -1.1007    
  21  Prefactor     1.2962        .14583        .16899E-03   -.83419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29745e-10
Minuit parameter uncertainties:
  1  6.51125e-05
  2  4.94088e-06
  3  4.47876
  4  5.94641
  5  2.19128e-05
  6  39.7118
  7  9.27246e-06
  8  7.02106e-05
  9  3.78204e-05
  10  5.69795
  11  2.09796
  12  4.80132e-06
  13  1.3101e-06
  14  1.31095
  15  8.4113e-05
  16  2.6646e-05
  17  0.000182563
  18  3.36607
  19  2.18714
  20  0.283892
  21  0.145879
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.000e-04  4.801e-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.296e+00  1.459e-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:  5.518e-01  2.839e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/851499/likelihoodResults_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.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) = 6898.46329497
delta logL = -0.000732454512217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6898.4625625
delta logL = 2.24099494517e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1378       1.0000          .0000       10.000    
     3 'Normalizat'    .55176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2962       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=   6898.463     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    52.599        .18142E-02** at limit **
   2  Index         2.1077        5.7491        .50000        .13787E-04
   3  Normalizat    .55176        .17274E-01    .48991E-03    .13320E-04
   4  Prefactor     1.2962        .88782E-02    .16899E-03    .32157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100383
  Index      = 2.10767
  Normalizat = 0.551755
  Prefactor  = 1.29623
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.463     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10038E-03    236.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1077        6.0212        .50000       -.61685    
   3  Normalizat    .55176        .37930E-01    .19596E-04   -1.1007    
   4  Prefactor     1.2962        .19495E-01    .67597E-05   -.83419    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.98411e-09
Minuit parameter uncertainties:
  1  0.0191245
  2  440.195
  3  0.0379316
  4  0.0194951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/851499': 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) = 6898.46256238
delta logL = 1.36078597279e-07

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.004e-04  1.912e-02  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  2.108e+00  4.402e+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.296e+00  1.950e-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:  5.518e-01  3.793e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/851499/cmap_HighResolution_514857601_515116801_4FGL_J1238.3-1959_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.54e-03', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-06 02:29:24.111731', job_id='851499', GAL2='1.30', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1630920564.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1063' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:29:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 851499: <4FGL_J1238.3-1959_daily_bin1063> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin1063> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 02:15:41 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:16: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:16:27 2021
Terminated at Mon Sep  6 02:29:24 2021
Results reported at Mon Sep  6 02:29:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1063 189.594 -19.9945 514857601 515116801 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 :                                   674.56 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            823 sec.

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

