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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1118
RA = 69.6099, Dec = -12.9053
tmin = 529113601, tmax = 529372801
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='623385', job_status='RUN', time_executed='2021-08-21 01:22:47.948834', time_epoch_executed='1629534167.95' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623385

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623385/ft1_4FGL_J0438.4-1254_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623385/ft1_4FGL_J0438.4-1254_daily_bin1118.fits outfile=/scratch/kocevski/623385/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1118.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=529113601.0 tmax=529372801.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 9.40
user 3.68
sys 5.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.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/623385/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1118.fits evtable="EVENTS" outfile="/scratch/kocevski/623385/ft1_filtered_4FGL_J0438.4-1254_daily_bin1118.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 6.03
user 0.34
sys 5.67

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623385/ft1_filtered_4FGL_J0438.4-1254_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/623385/ltcube_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.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/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.fits
.....................!
real 18.20
user 11.65
sys 6.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623385/ft1_filtered_4FGL_J0438.4-1254_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/623385/ltcube_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.fits outfile=/scratch/kocevski/623385/expmap_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.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/623385/ltcube_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.fits
.....................!
real 196.48
user 185.15
sys 10.99

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/623385/ft1_filtered_4FGL_J0438.4-1254_daily_bin1118.fits scfile=/scratch/kocevski/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.fits outfile=/scratch/kocevski/623385/cmap_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.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.95
user 0.38
sys 5.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623385/ft1_filtered_4FGL_J0438.4-1254_daily_bin1118.fits scfile=/scratch/kocevski/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.fits outfile=/scratch/kocevski/623385/cmap_HighResolution_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.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.95
user 0.37
sys 5.56

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623385/ft1_filtered_4FGL_J0438.4-1254_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/623385/ft2_4FGL_J0438.4-1254_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623385/Model_4FGL_J0438.4-1254_daily_bin1118.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/623385/ft1_filtered_4FGL_J0438.4-1254_daily_bin1118.fits.....................!
real 122.90
user 114.33
sys 8.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.460       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2613       1.0000         .10000E-03   10000.    
     4 'norm      '    11.674       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.874       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3298       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.014       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0293       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.398       1.0000         .10000E-03   10000.    
    13 'norm      '    .12766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8745       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.736       1.0000         .10000E-03   10000.    
    17 'norm      '    22.221       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93578       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0661       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=   8698.145     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1905 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.458        24.634       -.20281E-06   -.60655E-04
   2  Prefactor     .42962        1.6514        .35071E-06   -.31197E-03
   3  Prefactor     3.2608        6.3826        .81494E-06    .36809E-06
   4  norm          11.675        11.547       -.36765E-07   -.11704E-04
   5  Prefactor     .10000E-03    .70389        .91796E-08** at limit **
   6  norm          12.873        5.4370       -.86578E-07   -.24441E-03
   7  norm          .10000E-03    4.2920        .61130E-07** at limit **
   8  Prefactor     .10000E-03    3.8009        .71953E-07** at limit **
   9  Prefactor     4.3273        12.856        .66790E-07   -.40725E-04
  10  Prefactor     15.013        15.786       -.21630E-06   -.39443E-04
  11  Prefactor     6.0293        4.5538        .20849E-05   -.66024E-03
  12  Prefactor     24.400        29.489        .18677E-06    .28789E-04
  13  norm          .12761        .11917        .31257E-07    .14238E-03
  14  Prefactor     .10000E-03    30.512        .27518E-06** at limit **
  15  Prefactor     3.8568        16.629       -.30899E-05   -.21667E-03
  16  Prefactor     12.731        14.230       -.13191E-06   -.77172E-04
  17  norm          22.205        32.836       -.29436E-05   -.23951E-03
  18  Normalizat    .93587        .17285       -.12688E-05    .19093E-05
  19  Prefactor     1.0661        .10755        .30549E-06   -.11189E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.4584
  Prefactor  = 0.429618
  Prefactor  = 3.26081
  norm       = 11.6747
  Prefactor  = 0.0001
  norm       = 12.8732
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.32732
  Prefactor  = 15.0133
  Prefactor  = 6.02929
  Prefactor  = 24.4001
  norm       = 0.127609
  Prefactor  = 0.0001
  Prefactor  = 3.85685
  Prefactor  = 12.7315
  norm       = 22.2051
  Normalizat = 0.935866
  Prefactor  = 1.0661
 **********
 **   18 **HESSE 
 **********

 FCN=   8698.145     FROM HESSE     STATUS=OK           276 CALLS     2181 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.458        24.644        .55375E-04   -1.4258    
   2  Prefactor     .42962        2.9623        .22285E-02   -1.5577    
   3  Prefactor     3.2608        6.3852        .22425E-03   -1.5347    
   4  norm          11.675        11.550        .11725E-03   -1.5024    
   5  Prefactor     .10000E-03    .70595        .76393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.873        5.4459        .11164E-03   -1.4990    
   7  norm          .10000E-03    4.3289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.8498        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3273        12.874        .19359E-03   -1.5292    
  10  Prefactor     15.013        15.807        .10337E-03   -1.4933    
  11  Prefactor     6.0293        4.6290        .81760E-03   -1.5217    
  12  Prefactor     24.400        29.474        .81097E-04   -1.4720    
  13  norm          .12761        .11128        .29792E-03   -1.5637    
  14  Prefactor     .10000E-03    30.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8568        17.769        .20500E-03   -1.5315    
  16  Prefactor     12.731        14.247        .11224E-03   -1.4994    
  17  norm          22.205        33.743        .84972E-04   -1.4765    
  18  Normalizat    .93587        .19617        .30296E-03   -.95211    
  19  Prefactor     1.0661        .12265        .19041E-03   -.90557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71488e-08
Minuit parameter uncertainties:
  1  24.6486
  2  2.25612
  3  6.38651
  4  11.5519
  5  2.31779e-07
  6  5.44614
  7  1.80461e-06
  8  6.21807e-06
  9  12.8827
  10  15.811
  11  4.62925
  12  29.4913
  13  0.111285
  14  5.02853e-05
  15  16.5645
  16  14.2509
  17  33.7715
  18  0.19632
  19  0.122685
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.501e+01  1.581e+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.066e+00  1.227e-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.359e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 69.610 -12.905
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 3.18e-08
Energy Flux (Fixed Index): 9.50e-06 +/- 1.00e-05

TS (Fixed Index): 1.63
Ra Dec: 69.610 -12.905
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623385/likelihoodResults_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.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) = 8698.12460286
delta logL = 0.0201197152273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8698.11177023
delta logL = 0.0329523453147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.058       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6918       1.0000          .0000       10.000    
     3 'Normalizat'    .92716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0690       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=   8698.112     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      275 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.054        21.305        .11536E-03   -.38335E-03
   2  Index         2.6911        1.2103        .94327E-02   -.13029E-03
   3  Normalizat    .92699        .18498        .30426E-03   -.78769E-03
   4  Prefactor     1.0693        .12137        .19016E-03   -.15094E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0542
  Index      = 2.69115
  Normalizat = 0.926989
  Prefactor  = 1.06926
 **********
 **   18 **HESSE 
 **********

 FCN=   8698.112     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.054        17.986        .46145E-05   -1.5013    
   2  Index         2.6911        1.0234        .37731E-03   -.47999    
   3  Normalizat    .92699        .18394        .60853E-04   -.95518    
   4  Prefactor     1.0693        .12103        .38032E-04   -.90455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35847e-09
Minuit parameter uncertainties:
  1  17.9942
  2  1.03275
  3  0.184065
  4  0.121066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623385': 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) = 8698.11176672
delta logL = 0.032955853605

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.205e+01  1.799e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.691e+00  1.033e+00  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.069e+00  1.211e-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.270e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 2.69 +/- 1.03
Photon Flux (Free Index): 3.75e-08 +/- 4.50e-08
Energy Flux (Free Index): 9.10e-06 +/- 9.11e-06

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/623385/cmap_HighResolution_529113601_529372801_4FGL_J0438.4-1254_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='9.10e-06', photon_flux_error='3.18e-08', dlogl='3.30e-02', energy_flux='9.50e-06', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-08-21 01:35:41.756395', photon_index_error2='1.03', photon_index2='2.69', ts='1.63', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.11e-06', EG='0.94', time_epoch_completed='1629534941.76', return_code='0', job_id='623385', GAL2='1.07', EG2='0.93', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='4.50e-08', ts2='1.69', photon_index='2.43' WHERE bin_id='1118' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:35:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 623385: <4FGL_J0438.4-1254_daily_bin1118> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1118> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 21 01:20:47 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:20:50 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:50 2021
Terminated at Sat Aug 21 01:35:43 2021
Results reported at Sat Aug 21 01:35:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1118 69.6099 -12.9053 529113601 529372801 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 :                                   853.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            896 sec.

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

