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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1439
RA = 69.6099, Dec = -12.9053
tmin = 612316801, tmax = 612576001
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='626154', job_status='RUN', time_executed='2021-08-21 01:32:45.267471', time_epoch_executed='1629534765.27' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/626154

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/626154/ft1_4FGL_J0438.4-1254_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/626154/ft1_4FGL_J0438.4-1254_daily_bin1439.fits outfile=/scratch/kocevski/626154/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1439.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=612316801.0 tmax=612576001.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.30
user 3.19
sys 0.50

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.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/626154/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1439.fits evtable="EVENTS" outfile="/scratch/kocevski/626154/ft1_filtered_4FGL_J0438.4-1254_daily_bin1439.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.80
user 0.34
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/626154/ft1_filtered_4FGL_J0438.4-1254_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/626154/ltcube_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.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/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.fits
.....................!
real 14.67
user 13.95
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/626154/ft1_filtered_4FGL_J0438.4-1254_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/626154/ltcube_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.fits outfile=/scratch/kocevski/626154/expmap_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.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/626154/ltcube_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.fits
.....................!
real 193.59
user 188.49
sys 4.66

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/626154/ft1_filtered_4FGL_J0438.4-1254_daily_bin1439.fits scfile=/scratch/kocevski/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.fits outfile=/scratch/kocevski/626154/cmap_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.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 0.84
user 0.38
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/626154/ft1_filtered_4FGL_J0438.4-1254_daily_bin1439.fits scfile=/scratch/kocevski/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.fits outfile=/scratch/kocevski/626154/cmap_HighResolution_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.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 0.84
user 0.38
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/626154/ft1_filtered_4FGL_J0438.4-1254_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/626154/ft2_4FGL_J0438.4-1254_daily_bin1439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/626154/Model_4FGL_J0438.4-1254_daily_bin1439.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/626154/ft1_filtered_4FGL_J0438.4-1254_daily_bin1439.fits.....................!
real 111.54
user 109.57
sys 1.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9077       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.064       1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9167       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .95196E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1305       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6322       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8873       1.0000         .10000E-03   10000.    
    17 'norm      '    80.095       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2693       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0040       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=   7859.376     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1993 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9068        32.872       -.12015E-05   -.98146E-04
   2  Prefactor     .10000E-03    1.5867        .16169E-06** at limit **
   3  Prefactor     15.064        8.7069       -.35202E-05   -.75676E-04
   4  norm          .10000E-03    21.517       -.87954E-05** at limit **
   5  Prefactor     .10000E-03    1.2495        .70163E-10** at limit **
   6  norm          .10000E-03    3.1794        .59876E-07** at limit **
   7  norm          2.9101        9.5098        .10225E-04   -.82572E-04
   8  Prefactor     .10127E-03    8.0933       -.24077E-05** at limit **
   9  Prefactor     5.5468        14.837        .57641E-06   -.35829E-04
  10  Prefactor     .10000E-03    9.0570        .24640E-06** at limit **
  11  Prefactor     1.1308        3.3473       -.13119E-05   -.12022E-02
  12  Prefactor     .10000E-03    35.077       -.21436E-04** at limit **
  13  norm          1.6323        .28646       -.19877E-07    .87575E-03
  14  Prefactor     .10000E-03    43.583        .15453E-04** at limit **
  15  Prefactor     .10000E-03    24.959        .16036E-04** at limit **
  16  Prefactor     4.8737        33.667        .32295E-04    .31866E-05
  17  norm          80.058        88.358       -.30718E-04   -.41867E-04
  18  Normalizat    1.2693        .20001       -.86125E-06    .20419E-03
  19  Prefactor     1.0041        .12101        .64720E-06    .72409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90678
  Prefactor  = 0.0001
  Prefactor  = 15.0637
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.91012
  Prefactor  = 0.000101274
  Prefactor  = 5.54681
  Prefactor  = 0.0001
  Prefactor  = 1.13075
  Prefactor  = 0.0001
  norm       = 1.63228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.87367
  norm       = 80.0584
  Normalizat = 1.26927
  Prefactor  = 1.00407
 **********
 **   18 **HESSE 
 **********

 FCN=   7859.376     FROM HESSE     STATUS=OK           278 CALLS     2271 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9068        33.040        .30102E-03   -1.5432    
   2  Prefactor     .10000E-03    3.5297        .21588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.064        8.7750        .10320E-03   -1.4932    
   4  norm          .10000E-03    22.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2564        .96723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2037        .15431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9101        9.4154        .23788E-03   -1.5367    
   8  Prefactor     .10127E-03    11.499        .71348E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5468        14.883        .17062E-03   -1.5237    
  10  Prefactor     .10000E-03    9.0752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1308        3.3074        .27242E-03   -1.5495    
  12  Prefactor     .10000E-03    35.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6323        .28731        .19177E-04   -1.5452    
  14  Prefactor     .10000E-03    43.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8737        33.319        .18195E-03   -1.5266    
  17  norm          80.058        88.470        .44876E-04   -1.3916    
  18  Normalizat    1.2693        .23063        .30040E-03   -.84488    
  19  Prefactor     1.0041        .13970        .21400E-03   -.92594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97358e-09
Minuit parameter uncertainties:
  1  15.8843
  2  9.59791e-06
  3  8.77574
  4  7.53345e-05
  5  2.85089e-06
  6  9.63824e-06
  7  9.42017
  8  0.0076562
  9  14.8927
  10  2.44474e-06
  11  3.30796
  12  5.48796e-06
  13  0.28731
  14  0.00019817
  15  3.41017e-05
  16  25.5062
  17  88.6162
  18  0.230812
  19  0.139753
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  2.445e-06  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.004e+00  1.398e-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.269e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 69.610 -12.905
Photon Flux Upper Limit: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/626154/likelihoodResults_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.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): 102
logL (Free Index) = 7859.37663455
delta logL = -0.000525071921402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7859.37611079
delta logL = -1.31532488012e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11807E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4139       1.0000          .0000       10.000    
     3 'Normalizat'    1.2691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0042       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=   7859.376     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10141E-03    108.10        .18142E-02** at limit **
   2  Index         2.3508        8.5499        .50000        .13283E-04
   3  Normalizat    1.2693        .17471E-01    .30040E-03    .32282E-04
   4  Prefactor     1.0041        .11291E-01    .21400E-03    .44040E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101407
  Index      = 2.35083
  Normalizat = 1.26926
  Prefactor  = 1.00407
 **********
 **   18 **HESSE 
 **********

 FCN=   7859.376     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10141E-03    451.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3508        5.5958        .50000       -.55840    
   3  Normalizat    1.2693        .37490E-01    .12016E-04   -.84489    
   4  Prefactor     1.0041        .24228E-01    .85601E-05   -.92594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62989e-08
Minuit parameter uncertainties:
  1  0.0508157
  2  853.952
  3  0.0374905
  4  0.0242281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/626154': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7859.37610926
delta logL = 2.19844878302e-07

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.014e-04  5.082e-02  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.351e+00  8.540e+02  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.004e+00  2.423e-02  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.269e+00  3.749e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 69.610 -12.905

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/626154/cmap_HighResolution_612316801_612576001_4FGL_J0438.4-1254_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-08-21 01:44:13.689175', job_id='626154', GAL2='1.00', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1629535453.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1439' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:44:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 626154: <4FGL_J0438.4-1254_daily_bin1439> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1439> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 01:30:37 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:30:39 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:30:39 2021
Terminated at Sat Aug 21 01:44:14 2021
Results reported at Sat Aug 21 01:44:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1439 69.6099 -12.9053 612316801 612576001 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 :                                   672.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

