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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1138
RA = 69.6099, Dec = -12.9053
tmin = 534297601, tmax = 534556801
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='623415', job_status='RUN', time_executed='2021-08-21 01:23:51.955897', time_epoch_executed='1629534231.96' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623415

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623415/ft1_4FGL_J0438.4-1254_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623415/ft1_4FGL_J0438.4-1254_daily_bin1138.fits outfile=/scratch/kocevski/623415/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1138.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=534297601.0 tmax=534556801.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 4.17
user 3.27
sys 0.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.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/623415/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.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 1.16
user 0.32
sys 0.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/623415/ltcube_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.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/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits
.....................!
real 12.48
user 11.38
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/623415/ltcube_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.fits outfile=/scratch/kocevski/623415/expmap_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.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/623415/ltcube_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.fits
.....................!
real 191.23
user 185.20
sys 5.72

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 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J0438.4-1254 @ 69.6099 -12.9053

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits scfile=/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits outfile=/scratch/kocevski/623415/cmap_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.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=69.6099 yref=-12.9053 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 1.20
user 0.38
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits scfile=/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits outfile=/scratch/kocevski/623415/cmap_HighResolution_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.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=69.6099 yref=-12.9053 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 1.20
user 0.37
sys 0.82

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623415/Model_4FGL_J0438.4-1254_daily_bin1138.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/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits....................!
real 96.94
user 94.69
sys 2.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits', '/scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits', expMap='/scratch/kocevski/623415/expmap_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.fits', expCube='/scratch/kocevski/623415/ltcube_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/623415/Model_4FGL_J0438.4-1254_daily_bin1138.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0438.4-1254'

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  2.972e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/623415/ft1_filtered_4FGL_J0438.4-1254_daily_bin1138.fits
Spacecraft file(s): /scratch/kocevski/623415/ft2_4FGL_J0438.4-1254_daily_bin1138.fits
Exposure map: /scratch/kocevski/623415/expmap_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.fits
Exposure cube: /scratch/kocevski/623415/ltcube_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/623415/Model_4FGL_J0438.4-1254_daily_bin1138.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) = 6651.05533545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2326       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .51737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.955       1.0000         .10000E-03   10000.    
     4 'norm      '    7.2114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6405       1.0000         .10000E-03   10000.    
     7 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5753       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.311       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .44775E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6808       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.060       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .92735       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6650.916     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1658 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1942        20.645       -.80199E-05   -.34251E-03
   2  Prefactor     .51585        1.6116        .40813E-06    .28994E-04
   3  Prefactor     33.947        11.695        .14318E-06    .31195E-04
   4  norm          7.2118        9.3887        .59769E-08    .24666E-05
   5  Prefactor     .10000E-03    2.1818        .62949E-07** at limit **
   6  norm          2.6409        3.7267       -.14853E-06   -.19185E-03
   7  norm          .10000E-03    4.4055       -.54502E-07** at limit **
   8  Prefactor     4.5733        7.1379        .41842E-05   -.75242E-03
   9  Prefactor     .10000E-03    8.4642        .94653E-07** at limit **
  10  Prefactor     46.304        23.758       -.75611E-06   -.22851E-03
  11  Prefactor     .10000E-03    2.7579        .49227E-07** at limit **
  12  Prefactor     .10000E-03    13.844        .63262E-07** at limit **
  13  norm          .44683E-01    .12926        .84309E-07   -.11514E-02
  14  Prefactor     .10000E-03    43.542        .22947E-05** at limit **
  15  Prefactor     6.6786        35.936       -.75336E-06   -.29342E-04
  16  Prefactor     33.051        27.878       -.13544E-05   -.22234E-03
  17  norm          .10000E-03    29.823       -.10147E-05** at limit **
  18  Normalizat    .92793        .20502        .76154E-06   -.83562E-04
  19  Prefactor     1.0512        .12391       -.62537E-06    .33092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19425
  Prefactor  = 0.515851
  Prefactor  = 33.9472
  norm       = 7.21181
  Prefactor  = 0.0001
  norm       = 2.64092
  norm       = 0.0001
  Prefactor  = 4.57333
  Prefactor  = 0.0001
  Prefactor  = 46.3041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0446829
  Prefactor  = 0.000100002
  Prefactor  = 6.67858
  Prefactor  = 33.0509
  norm       = 0.0001
  Normalizat = 0.927931
  Prefactor  = 1.05116
 **********
 **   18 **HESSE 
 **********

 FCN=   6650.916     FROM HESSE     STATUS=OK           270 CALLS     1928 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1942        23.697        .17572E-03   -1.5252    
   2  Prefactor     .51585        1.5554        .17710E-02   -1.5564    
   3  Prefactor     33.947        11.784        .68769E-04   -1.4542    
   4  norm          7.2118        9.3866        .14937E-03   -1.5171    
   5  Prefactor     .10000E-03    2.2113        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6409        3.7166        .18144E-03   -1.5383    
   7  norm          .10000E-03    4.4367        .16716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5733        7.4985        .94095E-03   -1.5280    
   9  Prefactor     .10000E-03    8.4945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.304        23.909        .58918E-04   -1.4346    
  11  Prefactor     .10000E-03    2.7753        .13224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .44683E-01    .14926        .47794E-03   -1.5666    
  14  Prefactor     .10000E-03    43.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6786        36.071        .15525E-03   -1.5191    
  16  Prefactor     33.051        28.175        .69692E-04   -1.4558    
  17  norm          .10000E-03    29.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .92793        .23316        .31749E-03   -.95486    
  19  Prefactor     1.0512        .14126        .19201E-03   -.91043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75277e-08
Minuit parameter uncertainties:
  1  22.2031
  2  1.55555
  3  11.7847
  4  9.38851
  5  2.72658e-07
  6  3.71695
  7  1.29743e-05
  8  7.50005
  9  5.23958e-06
  10  23.9142
  11  1.89726e-06
  12  3.43866e-06
  13  0.149257
  14  0.000614069
  15  31.071
  16  28.1864
  17  0.000196132
  18  0.233417
  19  0.141311
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  4.630e+01  2.391e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.051e+00  1.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.279e-01  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.21
Ra Dec: 69.610 -12.905
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.33e-08 +/- 4.81e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.51e-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) = 6650.66296188
delta logL = 0.252982462581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6650.66198431
delta logL = 0.253960034908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.506       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1049       1.0000          .0000       10.000    
     3 'Normalizat'    .95272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   6650.662     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      305 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.511        31.913        .53365E-04    .70728E-05
   2  Index         2.1048        .45988        .71715E-02    .25221E-03
   3  Normalizat    .95281        .21833        .31386E-03    .16300E-04
   4  Prefactor     1.0433        .13878        .19266E-03   -.25256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.5114
  Index      = 2.10478
  Normalizat = 0.952809
  Prefactor  = 1.0433
 **********
 **   18 **HESSE 
 **********

 FCN=   6650.662     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.511        31.699        .10673E-04   -1.4203    
   2  Index         2.1048        .45653        .14343E-02   -.61756    
   3  Normalizat    .95281        .21838        .12554E-04   -.94629    
   4  Prefactor     1.0433        .13885        .38531E-04   -.91300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31175e-12
Minuit parameter uncertainties:
  1  31.7085
  2  0.457491
  3  0.218587
  4  0.138897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623415': 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) = 6650.66198419
delta logL = 0.253960157958

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  5.651e+01  3.171e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.105e+00  4.575e-01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.043e+00  1.389e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.528e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.70
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 2.10 +/- 0.46
Photon Flux (Free Index): 6.87e-08 +/- 5.30e-08
Energy Flux (Free Index): 3.73e-05 +/- 2.62e-05

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/623415/cmap_HighResolution_534297601_534556801_4FGL_J0438.4-1254_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.33e-08', energy_flux2='3.73e-05', photon_flux_error='4.81e-08', dlogl='2.54e-01', energy_flux='2.93e-05', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-08-21 01:33:00.421226', photon_index_error2='0.46', photon_index2='2.10', ts='8.21', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.62e-05', EG='0.93', time_epoch_completed='1629534780.42', return_code='0', job_id='623415', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.30e-08', ts2='8.70', photon_index='2.43' WHERE bin_id='1138' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:33:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 623415: <4FGL_J0438.4-1254_daily_bin1138> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1138> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 21 01:20:49 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:20:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 01:20:51 2021
Terminated at Sat Aug 21 01:33:01 2021
Results reported at Sat Aug 21 01:33:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1138 69.6099 -12.9053 534297601 534556801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0438.4-1254 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   555.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            732 sec.

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

