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


Performing analysis on: 4FGL_J1238.3-1959_daily_bin1371
RA = 189.594, Dec = -19.9945
tmin = 594691201, tmax = 594950401
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='854510', job_status='RUN', time_executed='2021-09-06 02:27:03.767122', time_epoch_executed='1630920423.77' WHERE source_name='4FGL J1238.3-1959' and cadence='daily' and bin_id='1371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854510

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854510/ft1_4FGL_J1238.3-1959_daily_bin1371.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854510/ft1_4FGL_J1238.3-1959_daily_bin1371.fits outfile=/scratch/kocevski/854510/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1371.fits ra=189.594 dec=-19.9945 rad=12.0 tmin=594691201.0 tmax=594950401.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 2.97
user 2.78
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.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/854510/ft1_filteredMKT_4FGL_J1238.3-1959_daily_bin1371.fits evtable="EVENTS" outfile="/scratch/kocevski/854510/ft1_filtered_4FGL_J1238.3-1959_daily_bin1371.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 2.75
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854510/ft1_filtered_4FGL_J1238.3-1959_daily_bin1371.fits" evtable="EVENTS" scfile=/scratch/kocevski/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.fits sctable="SC_DATA" outfile=/scratch/kocevski/854510/ltcube_594691201_594950401_4FGL_J1238.3-1959_daily_bin1371.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/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.fits
.....................!
real 14.68
user 14.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854510/ft1_filtered_4FGL_J1238.3-1959_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.fits sctable="SC_DATA" expcube=/scratch/kocevski/854510/ltcube_594691201_594950401_4FGL_J1238.3-1959_daily_bin1371.fits outfile=/scratch/kocevski/854510/expmap_594691201_594950401_4FGL_J1238.3-1959_daily_bin1371.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/854510/ltcube_594691201_594950401_4FGL_J1238.3-1959_daily_bin1371.fits
.....................!
real 192.27
user 186.72
sys 5.12

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/854510/ft1_filtered_4FGL_J1238.3-1959_daily_bin1371.fits scfile=/scratch/kocevski/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.fits outfile=/scratch/kocevski/854510/cmap_594691201_594950401_4FGL_J1238.3-1959_daily_bin1371.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854510/ft1_filtered_4FGL_J1238.3-1959_daily_bin1371.fits scfile=/scratch/kocevski/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.fits outfile=/scratch/kocevski/854510/cmap_HighResolution_594691201_594950401_4FGL_J1238.3-1959_daily_bin1371.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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/854510/ft1_filtered_4FGL_J1238.3-1959_daily_bin1371.fits evtable="EVENTS" scfile=/scratch/kocevski/854510/ft2_4FGL_J1238.3-1959_daily_bin1371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854510/Model_4FGL_J1238.3-1959_daily_bin1371.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/854510/ft1_filtered_4FGL_J1238.3-1959_daily_bin1371.fits.....................!
real 56.22
user 54.84
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.752       1.0000         .10000E-03   10000.    
     3 'norm      '    .17170E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.755       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8369       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.111       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7760       1.0000         .10000E-03   10000.    
    19 'norm      '    .13338E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3209       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0979       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=   6205.159     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2239 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.616       -.82311E-06** at limit **
   2  Prefactor     13.791        15.381        .22127E-05    .14963E-04
   3  norm          .10000E-03    20.206       -.69963E-05** at limit **
   4  Prefactor     12.806        8.3440        .72721E-07    .13544E-03
   5  Prefactor     .10000E-03    17.952        .40203E-06** at limit **
   6  Prefactor     32.576        43.218       -.11251E-05    .24581E-04
   7  Prefactor     14.753        30.560       -.22222E-06   -.96071E-05
   8  Prefactor     46.706        60.994        .10362E-06   -.87633E-05
   9  Prefactor     .10000E-03    18.083        .29150E-06** at limit **
  10  Prefactor     .10000E-03    2.0471       -.46485E-08** at limit **
  11  Prefactor     1.8367        1.9588       -.43341E-07   -.93565E-05
  12  Prefactor     26.835        19.971       -.58205E-07    .27809E-04
  13  Prefactor     17.106        13.558       -.10244E-06    .30499E-04
  14  norm          4.0355        1.9597        .18557E-07    .11089E-03
  15  Prefactor     .10000E-03    31.454        .78137E-06** at limit **
  16  norm          .10000E-03    10.245       -.34163E-07** at limit **
  17  norm          .10000E-03    4.8021       -.61909E-07** at limit **
  18  Prefactor     2.7720        8.9377       -.26015E-05    .44818E-04
  19  norm          .10000E-03    3.3081        .24184E-06** at limit **
  20  Normalizat    1.3213        .30307        .15720E-06    .11719E-03
  21  Prefactor     1.0977        .14980        .49740E-06    .24515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.7912
  norm       = 0.0001
  Prefactor  = 12.8062
  Prefactor  = 0.0001
  Prefactor  = 32.5758
  Prefactor  = 14.7528
  Prefactor  = 46.7059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83672
  Prefactor  = 26.835
  Prefactor  = 17.1065
  norm       = 4.03546
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.77202
  norm       = 0.000100001
  Normalizat = 1.32135
  Prefactor  = 1.09772
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.159     FROM HESSE     STATUS=OK           319 CALLS     2558 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.791        15.462        .10801E-03   -1.4965    
   3  norm          .10000E-03    20.152        .24445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.806        8.3413        .11193E-03   -1.4992    
   5  Prefactor     .10000E-03    17.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.576        43.255        .70183E-04   -1.4566    
   7  Prefactor     14.753        30.567        .10427E-03   -1.4940    
   8  Prefactor     46.706        60.993        .58672E-04   -1.4340    
   9  Prefactor     .10000E-03    18.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0517        .11002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8367        1.9465        .10989E-03   -1.5437    
  12  Prefactor     26.835        20.010        .77325E-04   -1.4671    
  13  Prefactor     17.106        13.602        .96823E-04   -1.4881    
  14  norm          4.0355        1.9598        .72800E-04   -1.5306    
  15  Prefactor     .10000E-03    31.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8402        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7720        8.9592        .12212E-02   -1.5375    
  19  norm          .10000E-03    7.1676        .27611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3213        .35244        .38325E-03   -.82931    
  21  Prefactor     1.0977        .17304        .20579E-03   -.89539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47914e-10
Minuit parameter uncertainties:
  1  0.000132176
  2  15.4664
  3  3.37213e-05
  4  8.34206
  5  3.90783e-05
  6  43.2971
  7  30.5994
  8  61.0746
  9  0.00010567
  10  6.6808e-06
  11  1.94655
  12  20.0149
  13  13.6046
  14  1.95981
  15  0.000117332
  16  4.69677e-05
  17  1.08907e-05
  18  8.96355
  19  0.000122544
  20  0.35308
  21  0.173128
Done.

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

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  2.683e+01  2.001e+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.098e+00  1.731e-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.321e+00  3.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 189.594 -19.994
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.94e-08 +/- 5.92e-08
Energy Flux (Fixed Index): 3.92e-05 +/- 2.92e-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) = 6204.95395539
delta logL = 0.2052456196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6204.93862259
delta logL = 0.220578421503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.655       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5201       1.0000          .0000       10.000    
     3 'Normalizat'    1.3766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0861       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=   6204.939     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      252 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.663        23.068        .80674E-04    .22717E-04
   2  Index         1.5204        .66881        .97630E-02   -.21122E-04
   3  Normalizat    1.3766        .34123        .37658E-03   -.30189E-05
   4  Prefactor     1.0861        .16963        .20675E-03    .20384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6631
  Index      = 1.52043
  Normalizat = 1.37662
  Prefactor  = 1.08608
 **********
 **   18 **HESSE 
 **********

 FCN=   6204.939     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.663        23.587        .16135E-04   -1.4714    
   2  Index         1.5204        .68364        .39052E-03   -.76969    
   3  Normalizat    1.3766        .34151        .15063E-04   -.81307    
   4  Prefactor     1.0861        .16978        .41351E-04   -.89913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30814e-10
Minuit parameter uncertainties:
  1  23.5958
  2  0.687836
  3  0.342079
  4  0.169862
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854510': 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): 0
logL (Free Index) = 6204.93862247
delta logL = 0.220578544438

Extracting fit parameters...

4FGL J1238.3-1959
   Spectrum: PowerLaw
307    Prefactor:  2.466e+01  2.360e+01  1.000e-04  1.000e+04 ( 1.000e-13)
308        Index:  1.520e+00  6.878e-01  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.086e+00  1.699e-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.377e+00  3.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 189.594 -19.994
Photon Index (Free Index): 1.52 +/- 0.69
Photon Flux (Free Index): 2.84e-08 +/- 4.09e-08
Energy Flux (Free Index): 8.38e-05 +/- 1.15e-04

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/854510/cmap_HighResolution_594691201_594950401_4FGL_J1238.3-1959_daily_bin1371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.94e-08', energy_flux2='8.38e-05', photon_flux_error='5.92e-08', dlogl='2.21e-01', energy_flux='3.92e-05', photon_flux2='2.84e-08', job_status='DONE', time_completed='2021-09-06 02:36:54.731860', photon_index_error2='0.69', photon_index2='1.52', ts='5.53', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.15e-04', EG='1.32', time_epoch_completed='1630921014.73', return_code='0', job_id='854510', GAL2='1.09', EG2='1.38', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='4.09e-08', ts2='5.96', photon_index='2.15' WHERE bin_id='1371' AND source_name='4FGL J1238.3-1959' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 02:36:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 854510: <4FGL_J1238.3-1959_daily_bin1371> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1238.3-1959_daily_bin1371 189.594 -19.9945 594691201 594950401 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 :                                   582.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            692 sec.

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

