/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 120 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 = 7665
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1238.3-1959_daily_bin300
RA = 189.594, Dec = -19.9945
tmin = 317088001, tmax = 317347201
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='846769', job_status='RUN', time_executed='2021-09-06 02:03:29.075934', time_epoch_executed='1630919009.08' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846769

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846769/ft1_4FGL_J1238.3-1959_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846769/ft2_4FGL_J1238.3-1959_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846769/ft1_4FGL_J1238.3-1959_daily_bin300.fits outfile=/scratch/kocevski/846769/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin300.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=317088001.0 tmax=317347201.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.91
user 3.64
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846769/ft1_filtered_4FGL_J1238.3-1959_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/846769/ft2_4FGL_J1238.3-1959_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/846769/ltcube_317088001_317347201_4FGL_J1238.3-1959_daily_bin300.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/846769/ft2_4FGL_J1238.3-1959_daily_bin300.fits
.....................!
real 15.78
user 15.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846769/ft1_filtered_4FGL_J1238.3-1959_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/846769/ft2_4FGL_J1238.3-1959_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/846769/ltcube_317088001_317347201_4FGL_J1238.3-1959_daily_bin300.fits outfile=/scratch/kocevski/846769/expmap_317088001_317347201_4FGL_J1238.3-1959_daily_bin300.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/846769/ltcube_317088001_317347201_4FGL_J1238.3-1959_daily_bin300.fits
.....................!
real 193.79
user 187.19
sys 4.70

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/846769/ft1_filtered_4FGL_J1238.3-1959_daily_bin300.fits scfile=/scratch/kocevski/846769/ft2_4FGL_J1238.3-1959_daily_bin300.fits outfile=/scratch/kocevski/846769/cmap_317088001_317347201_4FGL_J1238.3-1959_daily_bin300.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846769/ft1_filtered_4FGL_J1238.3-1959_daily_bin300.fits scfile=/scratch/kocevski/846769/ft2_4FGL_J1238.3-1959_daily_bin300.fits outfile=/scratch/kocevski/846769/cmap_HighResolution_317088001_317347201_4FGL_J1238.3-1959_daily_bin300.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846769/ft1_filtered_4FGL_J1238.3-1959_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/846769/ft2_4FGL_J1238.3-1959_daily_bin300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846769/Model_4FGL_J1238.3-1959_daily_bin300.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/846769/ft1_filtered_4FGL_J1238.3-1959_daily_bin300.fits.....................!
real 67.54
user 65.20
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.409       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9432       1.0000         .10000E-03   10000.    
     3 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.841       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.252       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.596       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.531       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.2560       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92478       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1140       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=   8285.706     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2211 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.396        35.442       -.32852E-05   -.19158E-03
   2  Prefactor     6.9576        10.265       -.95785E-06   -.52516E-03
   3  norm          .10000E-03    2.8845        .20125E-05** at limit **
   4  Prefactor     11.717        5.3711       -.11528E-07   -.24058E-03
   5  Prefactor     37.842        38.744       -.32828E-06   -.10304E-03
   6  Prefactor     .10000E-03    10.621       -.84640E-06** at limit **
   7  Prefactor     12.252        15.876        .84824E-07   -.49178E-04
   8  Prefactor     .10000E-03    11.870        .80071E-06** at limit **
   9  Prefactor     5.0787        20.870       -.86108E-06   -.41578E-04
  10  Prefactor     .10000E-03    1.6065       -.69730E-08** at limit **
  11  Prefactor     4.8639        2.2726        .14016E-07   -.12732E-04
  12  Prefactor     31.592        18.126       -.45079E-06   -.14128E-03
  13  Prefactor     .10000E-03    4.1512        .22901E-07** at limit **
  14  norm          2.9645        1.2040        .22534E-07   -.82564E-04
  15  Prefactor     .10000E-03    39.269        .11260E-05** at limit **
  16  norm          .10000E-03    5.5035        .44369E-08** at limit **
  17  norm          11.531        6.6824        .24895E-06    .37814E-04
  18  Prefactor     .10000E-03    9.1196        .37661E-06** at limit **
  19  norm          1.2557        1.6110        .38552E-07   -.17254E-04
  20  Normalizat    .92484        .23825       -.53885E-06   -.20313E-03
  21  Prefactor     1.1141        .11676        .29951E-07   -.39746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.3961
  Prefactor  = 6.95764
  norm       = 0.000100004
  Prefactor  = 11.7175
  Prefactor  = 37.8423
  Prefactor  = 0.0001
  Prefactor  = 12.2524
  Prefactor  = 0.0001
  Prefactor  = 5.07869
  Prefactor  = 0.0001
  Prefactor  = 4.8639
  Prefactor  = 31.5919
  Prefactor  = 0.0001
  norm       = 2.96447
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.5307
  Prefactor  = 0.0001
  norm       = 1.25571
  Normalizat = 0.924836
  Prefactor  = 1.1141
 **********
 **   18 **HESSE 
 **********

 FCN=   8285.706     FROM HESSE     STATUS=OK           317 CALLS     2528 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.396        36.221        .75165E-04   -1.4642    
   2  Prefactor     6.9576        10.915        .15225E-03   -1.5180    
   3  norm          .10000E-03    4.2434        .25565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.717        5.3685        .11704E-03   -1.5023    
   5  Prefactor     37.842        38.742        .65154E-04   -1.4477    
   6  Prefactor     .10000E-03    10.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.252        15.870        .11444E-03   -1.5008    
   8  Prefactor     .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0787        20.913        .17657E-03   -1.5257    
  10  Prefactor     .10000E-03    1.6124        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8639        2.2728        .90886E-04   -1.5267    
  12  Prefactor     31.592        18.190        .71283E-04   -1.4583    
  13  Prefactor     .10000E-03    4.1658        .18109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9645        1.2005        .60465E-04   -1.5364    
  15  Prefactor     .10000E-03    39.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.531        6.6125        .11797E-03   -1.5029    
  18  Prefactor     .10000E-03    9.2701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.2557        1.5872        .12723E-03   -1.5484    
  20  Normalizat    .92484        .26992        .39591E-03   -.95593    
  21  Prefactor     1.1141        .13346        .18383E-03   -.89017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44059e-09
Minuit parameter uncertainties:
  1  36.2486
  2  10.9179
  3  0.000251073
  4  5.36877
  5  38.7679
  6  5.50588e-05
  7  15.8754
  8  6.2896e-05
  9  20.6242
  10  2.35553e-07
  11  2.27284
  12  18.1934
  13  2.55884e-06
  14  1.20048
  15  0.000151549
  16  1.87733e-06
  17  6.61294
  18  1.29164e-05
  19  1.58723
  20  0.270313
  21  0.133496
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  3.159e+01  1.819e+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:  1.114e+00  1.335e-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:  9.248e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 189.594 -19.994
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.34e-08 +/- 5.38e-08
Energy Flux (Fixed Index): 4.61e-05 +/- 2.65e-05

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) = 8283.07220068
delta logL = 2.63373691974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8283.04940741
delta logL = 2.65653019025

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2277       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0443       1.0000          .0000       10.000    
     3 'Normalizat'    .70695       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1937       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=   8283.049     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      273 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2257        5.3245        .83434E-02    .29367E-03
   2  Index         4.0450        1.5926        .64374E-01    .23062E-03
   3  Normalizat    .70697        .80096E-01    .10086        .26938E-04
   4  Prefactor     1.1938        .39530E-01    .34781E-01   -.42341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2257
  Index      = 4.045
  Normalizat = 0.706971
  Prefactor  = 1.19375
 **********
 **   18 **HESSE 
 **********

 FCN=   8283.049     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2257        8.4953        .37241E-04   -1.5487    
   2  Index         4.0450        2.1550        .26622E-02   -.19218    
   3  Normalizat    .70697        .25653        .44698E-03   -1.0362    
   4  Prefactor     1.1938        .12814        .17831E-03   -.86524    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.64905e-07
Minuit parameter uncertainties:
  1  6.45479
  2  2.23105
  3  0.256971
  4  0.128178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846769': 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) = 8283.04940707
delta logL = 2.65653052459

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  1.226e+00  6.455e+00  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  4.045e+00  2.231e+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.194e+00  1.282e-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:  7.070e-01  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.76
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 4.05 +/- 2.23
Photon Flux (Free Index): 2.33e-07 +/- 9.32e-08
Energy Flux (Free Index): 3.46e-05 +/- 1.71e-05

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/846769/cmap_HighResolution_317088001_317347201_4FGL_J1238.3-1959_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.34e-08', energy_flux2='3.46e-05', photon_flux_error='5.38e-08', dlogl='2.66e+00', energy_flux='4.61e-05', photon_flux2='2.33e-07', job_status='DONE', time_completed='2021-09-06 02:14:58.721030', photon_index_error2='2.23', photon_index2='4.05', ts='4.42', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.92', time_epoch_completed='1630919698.72', return_code='0', job_id='846769', GAL2='1.19', EG2='0.71', return_code2='102', energy_flux_error='2.65e-05', photon_flux_error2='9.32e-08', ts2='10.76', photon_index='2.15' WHERE bin_id='300' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:14:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 846769: <4FGL_J1238.3-1959_daily_bin300> in cluster <slac> Done

Job <4FGL_J1238.3-1959_daily_bin300> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 02:00:37 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 02:01:19 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:01:19 2021
Terminated at Mon Sep  6 02:14:59 2021
Results reported at Mon Sep  6 02:14:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin300 189.594 -19.9945 317088001 317347201 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 :                                   679.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            862 sec.

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

