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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1485
RA = 69.6099, Dec = -12.9053
tmin = 624240001, tmax = 624499201
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='626246', job_status='RUN', time_executed='2021-08-21 01:32:45.010937', time_epoch_executed='1629534765.01' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/626246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/626246/ft1_4FGL_J0438.4-1254_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/626246/ft2_4FGL_J0438.4-1254_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/626246/ft1_4FGL_J0438.4-1254_daily_bin1485.fits outfile=/scratch/kocevski/626246/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1485.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=624240001.0 tmax=624499201.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.07
user 3.27
sys 0.76

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/626246/ft1_filtered_4FGL_J0438.4-1254_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/626246/ft2_4FGL_J0438.4-1254_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/626246/ltcube_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.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/626246/ft2_4FGL_J0438.4-1254_daily_bin1485.fits
.....................!
real 12.72
user 11.68
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/626246/ft1_filtered_4FGL_J0438.4-1254_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/626246/ft2_4FGL_J0438.4-1254_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/626246/ltcube_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.fits outfile=/scratch/kocevski/626246/expmap_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.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/626246/ltcube_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.fits
.....................!
real 191.66
user 185.28
sys 5.86

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/626246/ft1_filtered_4FGL_J0438.4-1254_daily_bin1485.fits scfile=/scratch/kocevski/626246/ft2_4FGL_J0438.4-1254_daily_bin1485.fits outfile=/scratch/kocevski/626246/cmap_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=69.6099 yref=-12.9053 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.10
user 0.37
sys 0.71

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/626246/ft1_filtered_4FGL_J0438.4-1254_daily_bin1485.fits scfile=/scratch/kocevski/626246/ft2_4FGL_J0438.4-1254_daily_bin1485.fits outfile=/scratch/kocevski/626246/cmap_HighResolution_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=69.6099 yref=-12.9053 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.11
user 0.38
sys 0.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/626246/ft1_filtered_4FGL_J0438.4-1254_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/626246/ft2_4FGL_J0438.4-1254_daily_bin1485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/626246/Model_4FGL_J0438.4-1254_daily_bin1485.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/626246/ft1_filtered_4FGL_J0438.4-1254_daily_bin1485.fits.....................!
real 123.60
user 121.12
sys 1.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7965       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.113       1.0000         .10000E-03   10000.    
     4 'norm      '    17.095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8896       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2948       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.174       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2308       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.974       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0899       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.201       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0520       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .84928       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=   8664.474     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1872 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7933        22.899       -.65839E-05   -.26926E-04
   2  Prefactor     6.0619        3.2792        .21292E-06   -.28784E-03
   3  Prefactor     10.113        5.6368       -.14880E-06    .12718E-04
   4  norm          17.095        16.777        .38118E-06    .27053E-05
   5  Prefactor     2.8894        2.4005       -.18339E-06   -.73155E-04
   6  norm          2.2949        3.7432       -.33098E-05   -.43233E-03
   7  norm          .10000E-03    6.2205       -.21007E-06** at limit **
   8  Prefactor     15.898        8.3402       -.20604E-06    .10132E-03
   9  Prefactor     .10000E-03    5.5216        .13294E-06** at limit **
  10  Prefactor     14.171        18.884       -.41882E-05    .13442E-03
  11  Prefactor     7.2304        5.7155       -.11268E-06   -.14944E-03
  12  Prefactor     34.973        27.985       -.14954E-05    .56481E-04
  13  norm          1.0899        .22099       -.26415E-09    .37028E-03
  14  Prefactor     46.196        34.528       -.52735E-05    .19219E-03
  15  Prefactor     31.400        18.275       -.32170E-06    .15480E-04
  16  Prefactor     .10000E-03    13.892       -.56106E-06** at limit **
  17  norm          .10000E-03    23.263       -.10372E-05** at limit **
  18  Normalizat    1.0521        .16975        .14938E-05    .33975E-04
  19  Prefactor     .84920        .10322        .59034E-06    .10499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79331
  Prefactor  = 6.06187
  Prefactor  = 10.1126
  norm       = 17.0952
  Prefactor  = 2.88942
  norm       = 2.29495
  norm       = 0.0001
  Prefactor  = 15.8982
  Prefactor  = 0.0001
  Prefactor  = 14.1709
  Prefactor  = 7.23043
  Prefactor  = 34.9728
  norm       = 1.08989
  Prefactor  = 46.1964
  Prefactor  = 31.3998
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.0521
  Prefactor  = 0.849202
 **********
 **   18 **HESSE 
 **********

 FCN=   8664.474     FROM HESSE     STATUS=OK           274 CALLS     2146 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7933        23.347        .24329E-03   -1.5374    
   2  Prefactor     6.0619        3.2785        .11911E-03   -1.5216    
   3  Prefactor     10.113        5.6502        .12600E-03   -1.5072    
   4  norm          17.095        16.787        .96870E-04   -1.4881    
   5  Prefactor     2.8894        2.4011        .12693E-03   -1.5368    
   6  norm          2.2949        3.9384        .23383E-03   -1.5405    
   7  norm          .10000E-03    6.2950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.898        8.3420        .10045E-03   -1.4910    
   9  Prefactor     .10000E-03    5.5809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.171        18.859        .10639E-03   -1.4955    
  11  Prefactor     7.2304        5.7185        .14917E-03   -1.5170    
  12  Prefactor     34.973        28.000        .67763E-04   -1.4525    
  13  norm          1.0899        .22169        .18909E-04   -1.5499    
  14  Prefactor     46.196        34.164        .58988E-04   -1.4348    
  15  Prefactor     31.400        18.278        .71505E-04   -1.4587    
  16  Prefactor     .10000E-03    13.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0521        .19723        .28719E-03   -.91305    
  19  Prefactor     .84920        .11973        .20213E-03   -.97939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22001e-10
Minuit parameter uncertainties:
  1  16.1594
  2  3.27856
  3  5.65046
  4  16.7913
  5  2.4012
  6  3.93889
  7  8.56775e-06
  8  8.34263
  9  8.36967e-06
  10  18.8673
  11  5.71898
  12  28.0105
  13  0.221693
  14  34.1787
  15  18.2816
  16  4.10933e-05
  17  4.37588e-05
  18  0.197367
  19  0.119771
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.417e+01  1.887e+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.492e-01  1.198e-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.052e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/626246/likelihoodResults_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.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) = 8662.78110064
delta logL = 1.69328549526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8662.76688191
delta logL = 1.70750422307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2514       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9172       1.0000          .0000       10.000    
     3 'Normalizat'    .96566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87807       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=   8662.767     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      257 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2514        26.507        .56152E-02    .21939E-02
   2  Index         3.9172        2.3011        .11241        .21646E-03
   3  Normalizat    .96554        .56580E-01    .67421E-01    .27605E-04
   4  Prefactor     .87809        .35291E-01    .44725E-01    .13372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.25143
  Index      = 3.91718
  Normalizat = 0.965537
  Prefactor  = 0.878094
 **********
 **   18 **HESSE 
 **********

 FCN=   8662.767     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2514        47.127        .87891E-04   -1.5347    
   2  Index         3.9172        3.4488        .41813E-02   -.21829    
   3  Normalizat    .96554        .19036        .29824E-03   -.94194    
   4  Prefactor     .87809        .12132        .19901E-03   -.96911    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.26918e-07
Minuit parameter uncertainties:
  1  24.7803
  2  3.82984
  3  0.190493
  4  0.121354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/626246': 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) = 8662.76688134
delta logL = 1.7075047893

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  3.251e+00  2.478e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.917e+00  3.830e+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.781e-01  1.214e-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.655e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.32
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 3.92 +/- 3.83
Photon Flux (Free Index): 1.02e-07 +/- 5.76e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.37e-05

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/626246/cmap_HighResolution_624240001_624499201_4FGL_J0438.4-1254_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.29e-03', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='1.71e+00', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-21 01:44:46.844005', photon_index_error2='3.83', photon_index2='3.92', ts='0.68', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.37e-05', EG='1.05', time_epoch_completed='1629535486.84', return_code='0', job_id='626246', GAL2='0.88', EG2='0.97', return_code2='102', photon_flux_error2='5.76e-08', ts2='4.32', photon_index='2.43' WHERE bin_id='1485' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:44:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 626246: <4FGL_J0438.4-1254_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1485 69.6099 -12.9053 624240001 624499201 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 :                                   697.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

