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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin243
RA = 69.6099, Dec = -12.9053
tmin = 302313601, tmax = 302572801
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='617539', job_status='RUN', time_executed='2021-08-21 01:02:17.825092', time_epoch_executed='1629532937.83' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617539/ft1_4FGL_J0438.4-1254_daily_bin243.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617539/ft1_4FGL_J0438.4-1254_daily_bin243.fits outfile=/scratch/kocevski/617539/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin243.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=302313601.0 tmax=302572801.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 8.45
user 3.29
sys 5.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.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/617539/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin243.fits evtable="EVENTS" outfile="/scratch/kocevski/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.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 5.39
user 0.31
sys 5.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits" evtable="EVENTS" scfile=/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits sctable="SC_DATA" outfile=/scratch/kocevski/617539/ltcube_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.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/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits
.....................!
real 17.42
user 11.53
sys 5.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits sctable="SC_DATA" expcube=/scratch/kocevski/617539/ltcube_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.fits outfile=/scratch/kocevski/617539/expmap_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.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/617539/ltcube_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.fits
.....................!
real 197.54
user 186.73
sys 10.17

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/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits scfile=/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits outfile=/scratch/kocevski/617539/cmap_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.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 5.34
user 0.38
sys 4.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits scfile=/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits outfile=/scratch/kocevski/617539/cmap_HighResolution_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.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 5.38
user 0.38
sys 4.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits evtable="EVENTS" scfile=/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617539/Model_4FGL_J0438.4-1254_daily_bin243.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/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits.....................!
real 89.92
user 82.12
sys 7.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits', '/scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits', expMap='/scratch/kocevski/617539/expmap_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.fits', expCube='/scratch/kocevski/617539/ltcube_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/617539/Model_4FGL_J0438.4-1254_daily_bin243.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/617539/ft1_filtered_4FGL_J0438.4-1254_daily_bin243.fits
Spacecraft file(s): /scratch/kocevski/617539/ft2_4FGL_J0438.4-1254_daily_bin243.fits
Exposure map: /scratch/kocevski/617539/expmap_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.fits
Exposure cube: /scratch/kocevski/617539/ltcube_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/617539/Model_4FGL_J0438.4-1254_daily_bin243.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) = 5698.84464579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11466E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.388       1.0000         .10000E-03   10000.    
     6 'norm      '    3.8423       1.0000         .10000E-03   10000.    
     7 'norm      '    7.5614       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.577       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    113.05       1.0000         .10000E-03   10000.    
    13 'norm      '    .46040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0497       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94579       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=   5698.822     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1926 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8010        .42192E-07** at limit **
   2  Prefactor     1.0744        3.3080        .78206E-07   -.48503E-04
   3  Prefactor     .10092E-03    5.0252       -.16986E-05** at limit **
   4  norm          .10000E-03    12.369       -.66325E-06** at limit **
   5  Prefactor     17.391        6.7535        .22675E-06    .13656E-03
   6  norm          3.8418        4.0216        .46584E-07    .83688E-05
   7  norm          7.5620        7.3957        .20323E-06    .26324E-04
   8  Prefactor     .10000E-03    3.1466       -.47764E-09** at limit **
   9  Prefactor     5.6844        18.456       -.36711E-06   -.82589E-04
  10  Prefactor     28.587        23.574        .41416E-05    .40467E-04
  11  Prefactor     1.3662        2.4511        .63606E-06   -.13508E-02
  12  Prefactor     113.05        69.103        .36772E-05    .18054E-04
  13  norm          .46036        .25715       -.42692E-07   -.22601E-03
  14  Prefactor     .10000E-03    18.264        .71445E-05** at limit **
  15  Prefactor     .10000E-03    26.237       -.60806E-05** at limit **
  16  Prefactor     .10000E-03    23.692       -.13249E-04** at limit **
  17  norm          .10000E-03    35.820        .28130E-04** at limit **
  18  Normalizat    1.0494        .22976       -.12537E-05    .25948E-03
  19  Prefactor     .94602        .13082       -.13103E-06    .20863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.07443
  Prefactor  = 0.000100919
  norm       = 0.0001
  Prefactor  = 17.3906
  norm       = 3.84184
  norm       = 7.56199
  Prefactor  = 0.0001
  Prefactor  = 5.68444
  Prefactor  = 28.5872
  Prefactor  = 1.36621
  Prefactor  = 113.052
  norm       = 0.460361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.04937
  Prefactor  = 0.946016
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.822     FROM HESSE     STATUS=OK           268 CALLS     2194 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0744        3.2691        .23136E-03   -1.5501    
   3  Prefactor     .10092E-03    52.776        .31950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.391        6.7774        .96049E-04   -1.4874    
   6  norm          3.8418        4.0211        .15065E-03   -1.5316    
   7  norm          7.5620        7.4007        .14584E-03   -1.5158    
   8  Prefactor     .10000E-03    3.1554        .13076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6844        18.471        .84251E-03   -1.5231    
  10  Prefactor     28.587        23.604        .74944E-04   -1.4638    
  11  Prefactor     1.3662        11.179        .18650E-02   -1.5474    
  12  Prefactor     113.05        69.360        .37836E-04   -1.3577    
  13  norm          .46036        .25258        .26874E-04   -1.5572    
  14  Prefactor     .10000E-03    18.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    35.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0494        .26640        .31127E-03   -.91394    
  19  Prefactor     .94602        .15310        .19772E-03   -.94551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50248e-08
Minuit parameter uncertainties:
  1  4.89521e-06
  2  3.26959
  3  0.0139401
  4  1.41067e-06
  5  6.77767
  6  4.02135
  7  7.40157
  8  1.5904e-06
  9  18.4898
  10  23.6114
  11  7.81783
  12  69.4095
  13  0.252578
  14  2.64706e-05
  15  6.76948e-06
  16  3.52566e-05
  17  0.000143591
  18  0.266738
  19  0.153174
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  2.859e+01  2.361e+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:  9.460e-01  1.532e-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:  1.049e+00  2.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 69.610 -12.905
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.76e-08 +/- 4.75e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.49e-05

TS (Fixed Index): 2.61
Ra Dec: 69.610 -12.905
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/617539/likelihoodResults_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5698.82099377
delta logL = 0.000530197231456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5698.82064206
delta logL = 0.000881903537447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.307       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4013       1.0000          .0000       10.000    
     3 'Normalizat'    1.0511       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94535       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=   5698.821     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      272 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.320        30.981        .74007E-04    .64980E-04
   2  Index         2.4011        .78454        .84693E-02    .27910E-03
   3  Normalizat    1.0512        .25142        .31103E-03   -.55632E-04
   4  Prefactor     .94532        .15156        .19779E-03    .21038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.3204
  Index      = 2.40107
  Normalizat = 1.05119
  Prefactor  = 0.945317
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.821     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.320        29.817        .29603E-05   -1.4624    
   2  Index         2.4011        .75453        .16939E-02   -.54660    
   3  Normalizat    1.0512        .25118        .12441E-04   -.91335    
   4  Prefactor     .94532        .15152        .79114E-05   -.94575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17757e-11
Minuit parameter uncertainties:
  1  29.832
  2  0.75851
  3  0.251465
  4  0.151586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617539': 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) = 5698.82064182
delta logL = 0.000882145032847

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  2.932e+01  2.983e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.401e+00  7.585e-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:  9.453e-01  1.516e-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:  1.051e+00  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.61
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 2.40 +/- 0.76
Photon Flux (Free Index): 5.61e-08 +/- 5.83e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.66e-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/617539/cmap_HighResolution_302313601_302572801_4FGL_J0438.4-1254_daily_bin243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='5.76e-08', energy_flux2='1.84e-05', photon_flux_error='4.75e-08', dlogl='8.82e-04', energy_flux='1.81e-05', photon_flux2='5.61e-08', job_status='DONE', time_completed='2021-08-21 01:12:41.998781', photon_index_error2='0.76', photon_index2='2.40', ts='2.61', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.66e-05', EG='1.05', time_epoch_completed='1629533562.0', return_code='0', job_id='617539', GAL2='0.95', EG2='1.05', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.83e-08', ts2='2.61', photon_index='2.43' WHERE bin_id='243' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:12:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 617539: <4FGL_J0438.4-1254_daily_bin243> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin243> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 21 01:00:29 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:00:30 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:00:30 2021
Terminated at Sat Aug 21 01:12:43 2021
Results reported at Sat Aug 21 01:12:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin243 69.6099 -12.9053 302313601 302572801 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 :                                   698.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

