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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin790
RA = 69.6099, Dec = -12.9053
tmin = 444096001, tmax = 444355201
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='621796', job_status='RUN', time_executed='2021-08-21 01:16:43.715987', time_epoch_executed='1629533803.72' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='790'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621796/ft1_4FGL_J0438.4-1254_daily_bin790.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621796/ft2_4FGL_J0438.4-1254_daily_bin790.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621796/ft1_4FGL_J0438.4-1254_daily_bin790.fits outfile=/scratch/kocevski/621796/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin790.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=444096001.0 tmax=444355201.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 7.03
user 3.50
sys 3.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621796/ft2_4FGL_J0438.4-1254_daily_bin790.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/621796/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin790.fits evtable="EVENTS" outfile="/scratch/kocevski/621796/ft1_filtered_4FGL_J0438.4-1254_daily_bin790.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 3.81
user 0.35
sys 3.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621796/ft1_filtered_4FGL_J0438.4-1254_daily_bin790.fits" evtable="EVENTS" scfile=/scratch/kocevski/621796/ft2_4FGL_J0438.4-1254_daily_bin790.fits sctable="SC_DATA" outfile=/scratch/kocevski/621796/ltcube_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.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/621796/ft2_4FGL_J0438.4-1254_daily_bin790.fits
.....................!
real 15.80
user 11.83
sys 3.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621796/ft1_filtered_4FGL_J0438.4-1254_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/621796/ft2_4FGL_J0438.4-1254_daily_bin790.fits sctable="SC_DATA" expcube=/scratch/kocevski/621796/ltcube_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.fits outfile=/scratch/kocevski/621796/expmap_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.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/621796/ltcube_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.fits
.....................!
real 193.85
user 185.59
sys 7.88

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/621796/ft1_filtered_4FGL_J0438.4-1254_daily_bin790.fits scfile=/scratch/kocevski/621796/ft2_4FGL_J0438.4-1254_daily_bin790.fits outfile=/scratch/kocevski/621796/cmap_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.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 3.75
user 0.36
sys 3.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621796/ft1_filtered_4FGL_J0438.4-1254_daily_bin790.fits scfile=/scratch/kocevski/621796/ft2_4FGL_J0438.4-1254_daily_bin790.fits outfile=/scratch/kocevski/621796/cmap_HighResolution_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.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 3.76
user 0.37
sys 3.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621796/ft1_filtered_4FGL_J0438.4-1254_daily_bin790.fits evtable="EVENTS" scfile=/scratch/kocevski/621796/ft2_4FGL_J0438.4-1254_daily_bin790.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621796/Model_4FGL_J0438.4-1254_daily_bin790.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/621796/ft1_filtered_4FGL_J0438.4-1254_daily_bin790.fits....................!
real 73.29
user 67.70
sys 5.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3931       1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79738       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9168       1.0000         .10000E-03   10000.    
     7 'norm      '    21.439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18734E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.397       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0056       1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.839       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12502E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    100.72       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90627       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .85889       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=   4502.902     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1891 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.435        .13921E-06** at limit **
   2  Prefactor     .10000E-03    1.5874        .10194E-06** at limit **
   3  Prefactor     7.3947        7.9363        .21753E-05    .11563E-03
   4  norm          .10000E-03    16.916        .23825E-06** at limit **
   5  Prefactor     .79911        4.4216        .33889E-06   -.34805E-04
   6  norm          3.9181        4.4299        .57940E-08   -.11593E-03
   7  norm          21.445        12.817       -.18626E-06   -.21137E-03
   8  Prefactor     .10001E-03    6.6609        .18303E-05** at limit **
   9  Prefactor     .10000E-03    23.362        .36359E-06** at limit **
  10  Prefactor     11.632        24.856        .40498E-07   -.11330E-04
  11  Prefactor     .10000E-03    4.8327       -.15302E-06** at limit **
  12  Prefactor     81.379        65.125        .29332E-06    .17536E-05
  13  norm          1.0054        .34460        .79003E-08    .22002E-03
  14  Prefactor     66.765        55.969        .10440E-05    .15217E-04
  15  Prefactor     .10000E-03    13.140        .38520E-06** at limit **
  16  Prefactor     .10000E-03    128.05       -.24205E-04** at limit **
  17  norm          100.50        106.86        .21990E-05    .20200E-05
  18  Normalizat    .90601        .23244       -.19125E-05   -.51053E-04
  19  Prefactor     .85894        .13388        .17090E-06   -.15832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.39466
  norm       = 0.0001
  Prefactor  = 0.799105
  norm       = 3.9181
  norm       = 21.4446
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 11.6315
  Prefactor  = 0.0001
  Prefactor  = 81.379
  norm       = 1.00545
  Prefactor  = 66.7653
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 100.497
  Normalizat = 0.906009
  Prefactor  = 0.858941
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5921        .82537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3947        7.9633        .73753E-03   -1.5164    
   4  norm          .10000E-03    16.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .79911        7.7590        .26031E-02   -1.5529    
   6  norm          3.9181        4.4193        .14544E-03   -1.5312    
   7  norm          21.445        12.781        .86506E-04   -1.4781    
   8  Prefactor     .10001E-03    16.690        .32125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.632        24.875        .11746E-03   -1.5026    
  11  Prefactor     .10000E-03    4.8700        .14401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     81.379        65.449        .44518E-04   -1.3901    
  13  norm          1.0054        .34533        .21825E-04   -1.5507    
  14  Prefactor     66.765        56.054        .24546E-03   -1.4072    
  15  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    129.35        .41217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          100.50        106.83        .20029E-03   -1.3700    
  18  Normalizat    .90601        .26296        .29983E-03   -.96249    
  19  Prefactor     .85894        .15408        .18992E-03   -.97591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83678e-08
Minuit parameter uncertainties:
  1  1.38299e-06
  2  1.39866e-06
  3  7.96447
  4  1.04281e-05
  5  4.98058
  6  4.41967
  7  12.7824
  8  0.000930989
  9  2.87162e-05
  10  24.8967
  11  3.96437e-06
  12  65.5065
  13  0.345331
  14  56.098
  15  1.30524e-05
  16  0.000590735
  17  107.04
  18  0.263337
  19  0.154157
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.163e+01  2.490e+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:  8.589e-01  1.542e-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.060e-01  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/621796/likelihoodResults_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.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) = 4502.86394245
delta logL = 0.0380528878713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4502.84990657
delta logL = 0.0520887722923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6722       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8642       1.0000          .0000       10.000    
     3 'Normalizat'    .89640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86234       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.

 FCN=   4502.850     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6436        428.70        .36194E-02    .61878E-03
   2  Index         2.8678        6.4189        .22437        .22579E-03
   3  Normalizat    .89618        .56077E-01    .68109E-01   -.17099E-03
   4  Prefactor     .86245        .34301E-01    .44523E-01   -.27973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.64356
  Index      = 2.8678
  Normalizat = 0.896178
  Prefactor  = 0.86245
 **********
 **   18 **HESSE 
 **********

 FCN=   4502.850     FROM HESSE     STATUS=OK            31 CALLS      256 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6436        27.447        .14478E-03   -1.5155    
   2  Index         2.8678        1.7823        .77882E-02   -.44055    
   3  Normalizat    .89618        .24702        .30131E-03   -.96595    
   4  Prefactor     .86245        .15272        .18956E-03   -.97466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70674e-09
Minuit parameter uncertainties:
  1  27.4923
  2  1.83201
  3  0.247332
  4  0.152795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621796': 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) = 4502.84990309
delta logL = 0.0520922498254

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  7.644e+00  2.749e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.868e+00  1.832e+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:  8.624e-01  1.528e-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:  8.962e-01  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/621796/cmap_HighResolution_444096001_444355201_4FGL_J0438.4-1254_daily_bin790.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-08-21 01:25:49.574204', job_id='621796', GAL2='0.86', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1629534349.57', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.21e-02', ts2='0.36', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='790' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:25:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 621796: <4FGL_J0438.4-1254_daily_bin790> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin790> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Aug 21 01:15:39 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:15:41 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:15:41 2021
Terminated at Sat Aug 21 01:25:50 2021
Results reported at Sat Aug 21 01:25:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin790 69.6099 -12.9053 444096001 444355201 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 :                                   593.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

