/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 192 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7499
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1777
RA = 69.6099, Dec = -12.9053
tmin = 699926401, tmax = 700185601
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='906159', job_status='RUN', time_executed='2023-03-11 00:09:33.634778', time_epoch_executed='1678522173.63' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/906159

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/906159/ft1_4FGL_J0438.4-1254_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/906159/ft1_4FGL_J0438.4-1254_daily_bin1777.fits outfile=/scratch/kocevski/906159/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1777.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=699926401.0 tmax=700185601.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 3.67
user 3.42
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.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/906159/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.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.54
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 452

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/906159/ltcube_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.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/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits
.....................!
real 11.98
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/906159/ltcube_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.fits outfile=/scratch/kocevski/906159/expmap_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.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/906159/ltcube_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.fits
.....................!
real 188.61
user 183.88
sys 4.42

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/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits scfile=/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits outfile=/scratch/kocevski/906159/cmap_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits scfile=/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits outfile=/scratch/kocevski/906159/cmap_HighResolution_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/906159/Model_4FGL_J0438.4-1254_daily_bin1777.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/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits.....................!
real 77.74
user 76.47
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits', '/scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits', expMap='/scratch/kocevski/906159/expmap_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.fits', expCube='/scratch/kocevski/906159/ltcube_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/906159/Model_4FGL_J0438.4-1254_daily_bin1777.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  0.000e+00  1.000e+06 ( 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/906159/ft1_filtered_4FGL_J0438.4-1254_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/906159/ft2_4FGL_J0438.4-1254_daily_bin1777.fits
Exposure map: /scratch/kocevski/906159/expmap_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.fits
Exposure cube: /scratch/kocevski/906159/ltcube_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/906159/Model_4FGL_J0438.4-1254_daily_bin1777.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) = 5091.64692939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88012E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .35379E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    17.271       1.0000          .0000       .10000E+07
     4 'norm      '    .32463E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14724E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .45036E-06   1.0000          .0000       .10000E+07
     7 'norm      '    18.720       1.0000          .0000       .10000E+07
     8 'Prefactor '    .11206E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.2917       1.0000          .0000       .10000E+07
    10 'Prefactor '    11.367       1.0000          .0000       .10000E+07
    11 'Prefactor '    85.450       1.0000          .0000       .10000E+07
    12 'norm      '    .86566       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18440E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .64771E-01   1.0000          .0000       .10000E+07
    15 'Normalizat'    .77458       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0759       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5091.647     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1171 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31641E-07    7.9937       -.63136E-06** at limit **
   2  Prefactor     .26090E-08    3.4114       -.12692E-06** at limit **
   3  Prefactor     17.327        10.069        .78077E-07    .10265E-01
   4  norm          .14488E-07    7.0272        .46303E-06** at limit **
   5  Prefactor     .24241E-04    23.495       -.25373E-06** at limit **
   6  norm          .11102E-09    1.6623        .26618E-06** at limit **
   7  norm          18.735        10.550        .77610E-08    .18661E-01
   8  Prefactor     .10713E-05    26.992       -.43906E-06** at limit **
   9  Prefactor     7.3127        6.7025        .22029E-07    .13798    
  10  Prefactor     11.290        21.298       -.45588E-08    .43995E-01
  11  Prefactor     84.687        66.670       -.16803E-06    .51604E-01
  12  norm          .86623        .31085       -.26994E-08    .25896E-03
  13  Prefactor      .0000        10.970       -.28943E-06** at limit **
  14  Prefactor     .27756E-09    32.954       -.10367E-05** at limit **
  15  Normalizat    .77468        .26424        .30640E-05   -.27938E-04
  16  Prefactor     1.0760        .16154        .48160E-05   -.32989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.16414e-08
  Prefactor  = 2.60902e-09
  Prefactor  = 17.3268
  norm       = 1.44884e-08
  Prefactor  = 2.42412e-05
  norm       = 1.11022e-10
  norm       = 18.7354
  Prefactor  = 1.07125e-06
  Prefactor  = 7.31273
  Prefactor  = 11.2904
  Prefactor  = 84.6874
  norm       = 0.866231
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  Normalizat = 0.774675
  Prefactor  = 1.07602
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.647     FROM HESSE     STATUS=OK           235 CALLS     1406 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31641E-07    8.0278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .26090E-08    3.4111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.327        10.064        .24073E-03   -1.5625    
   4  norm          .14488E-07    7.0584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .24241E-04    2.5929        .61858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11102E-09    1.6640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.735        10.578        .23121E-03   -1.5621    
   8  Prefactor     .10713E-05    27.880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3127        19.646        .37121E-03   -1.5654    
  10  Prefactor     11.290        28.678        .29689E-03   -1.5641    
  11  Prefactor     84.687        68.187        .10819E-03   -1.5524    
  12  norm          .86623        .31009        .48163E-03   -1.5689    
  13  Prefactor      .0000        10.956        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .27756E-09    32.696        .14994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .77468        .23874        .76902E-01   -1.0102    
  16  Prefactor     1.0760        .14169        .38584E-01   -.90237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32069e-06
Minuit parameter uncertainties:
  1  0.00100758
  2  0.000188275
  3  10.0637
  4  0.000639801
  5  0.0158563
  6  2.4165e-05
  7  10.5779
  8  0.0109302
  9  19.6466
  10  28.6781
  11  68.1872
  12  0.310089
  13  2.78852e-05
  14  0.000190307
  15  0.239066
  16  0.14174
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.129e+01  2.868e+01  0.000e+00  1.000e+06 ( 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.076e+00  1.417e-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:  7.747e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/906159/likelihoodResults_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.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) = 5089.66306384
delta logL = 1.9834758273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5089.58470174
delta logL = 2.06183793088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18089       1.0000          .0000       .10000E+07
     2 'Index     '    5.6203       1.0000          .0000       10.000    
     3 'Normalizat'    .57308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1560       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=   5089.585     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      297 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17879        1.4279        .34915E-03** at limit **
   2  Index         5.6260        2.3304        .78085E-01    .16248E-03
   3  Normalizat    .57311        .74651E-01    .88392E-01    .26927E-04
   4  Prefactor     1.1559        .46945E-01    .35766E-01   -.52187E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.178792
  Index      = 5.62604
  Normalizat = 0.573106
  Prefactor  = 1.15591
 **********
 **   18 **HESSE 
 **********

 FCN=   5089.585     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17879        2.4641        .15633E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.6260        3.2223        .31968E-02    .12554    
   3  Normalizat    .57311        .24177        .39159E-03   -1.0914    
   4  Prefactor     1.1559        .14926        .17950E-03   -.87699    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27284e-10
Minuit parameter uncertainties:
  1  1.3275
  2  3.50726
  3  0.24222
  4  0.149311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/906159': 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) = 5089.58469761
delta logL = 2.0618420643

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.788e-01  1.328e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  5.626e+00  3.507e+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.156e+00  1.493e-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:  5.731e-01  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 5.63 +/- 3.51
Photon Flux (Free Index): 1.90e-07 +/- 1.04e-07
Energy Flux (Free Index): 2.42e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/906159/cmap_HighResolution_699926401_700185601_4FGL_J0438.4-1254_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='2.42e-05', dlogl='2.06e+00', photon_flux2='1.90e-07', job_status='DONE', time_completed='2023-03-11 00:17:29.205065', photon_index_error2='3.51', photon_index2='5.63', ts='0.18', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.42e-05', EG='0.77', time_epoch_completed='1678522649.21', return_code='0', job_id='906159', GAL2='1.16', EG2='0.57', return_code2='102', photon_flux_error2='1.04e-07', ts2='4.96', photon_index='2.43' WHERE bin_id='1777' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:17:29 PST 2023

daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:14:15 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 906107: <4FGL_J0438.4-1254_daily_bin1777> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 00:05:31 2023
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:05:59 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:05:59 2023
Terminated at Sat Mar 11 00:14:16 2023
Results reported at Sat Mar 11 00:14:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1777 69.6099 -12.9053 699926401 700185601 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 :                                   484.12 sec.
    Max Memory :                                 617 MB
    Average Memory :                             311.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   496 sec.
    Turnaround time :                            525 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 906159: <4FGL_J0438.4-1254_daily_bin1777> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1777> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 11 00:05:33 2023
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:06:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:06:10 2023
Terminated at Sat Mar 11 00:17:30 2023
Results reported at Sat Mar 11 00:17:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1777 69.6099 -12.9053 699926401 700185601 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 :                                   477.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            717 sec.

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

