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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1290
RA = 69.6099, Dec = -12.9053
tmin = 573696001, tmax = 573955201
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='624770', job_status='RUN', time_executed='2021-08-21 01:26:55.593900', time_epoch_executed='1629534415.59' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1290'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624770

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624770/ft1_4FGL_J0438.4-1254_daily_bin1290.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624770/ft2_4FGL_J0438.4-1254_daily_bin1290.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624770/ft1_4FGL_J0438.4-1254_daily_bin1290.fits outfile=/scratch/kocevski/624770/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1290.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=573696001.0 tmax=573955201.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.65
user 4.18
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624770/ft1_filtered_4FGL_J0438.4-1254_daily_bin1290.fits" evtable="EVENTS" scfile=/scratch/kocevski/624770/ft2_4FGL_J0438.4-1254_daily_bin1290.fits sctable="SC_DATA" outfile=/scratch/kocevski/624770/ltcube_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.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/624770/ft2_4FGL_J0438.4-1254_daily_bin1290.fits
.....................!
real 11.96
user 11.32
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624770/ft1_filtered_4FGL_J0438.4-1254_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/624770/ft2_4FGL_J0438.4-1254_daily_bin1290.fits sctable="SC_DATA" expcube=/scratch/kocevski/624770/ltcube_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.fits outfile=/scratch/kocevski/624770/expmap_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.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/624770/ltcube_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.fits
.....................!
real 190.10
user 184.87
sys 4.87

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/624770/ft1_filtered_4FGL_J0438.4-1254_daily_bin1290.fits scfile=/scratch/kocevski/624770/ft2_4FGL_J0438.4-1254_daily_bin1290.fits outfile=/scratch/kocevski/624770/cmap_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.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.80
user 0.37
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624770/ft1_filtered_4FGL_J0438.4-1254_daily_bin1290.fits scfile=/scratch/kocevski/624770/ft2_4FGL_J0438.4-1254_daily_bin1290.fits outfile=/scratch/kocevski/624770/cmap_HighResolution_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.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.81
user 0.37
sys 0.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624770/ft1_filtered_4FGL_J0438.4-1254_daily_bin1290.fits evtable="EVENTS" scfile=/scratch/kocevski/624770/ft2_4FGL_J0438.4-1254_daily_bin1290.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624770/Model_4FGL_J0438.4-1254_daily_bin1290.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/624770/ft1_filtered_4FGL_J0438.4-1254_daily_bin1290.fits.....................!
real 97.50
user 95.67
sys 1.59

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.404       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99816E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13537E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11505E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5404       1.0000         .10000E-03   10000.    
     7 'norm      '    .11854E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11311E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12718E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12893E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .82628       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20142E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.543       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17481E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .26949E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91315       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94611       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=   7032.273     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1913 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.487        23.689        .14237E-05    .37783E-04
   2  Prefactor     .10000E-03    .81852        .16749E-08** at limit **
   3  Prefactor     .10000E-03    41.110       -.13539E-04** at limit **
   4  norm          .10000E-03    5.1521        .16247E-06** at limit **
   5  Prefactor     .10001E-03    3.9002        .34166E-05** at limit **
   6  norm          1.5436        3.2297       -.20147E-05    .29296E-04
   7  norm          .10000E-03    4.3982       -.10659E-06** at limit **
   8  Prefactor     .10000E-03    3.0828       -.15814E-07** at limit **
   9  Prefactor     .10000E-03    5.0925       -.30684E-06** at limit **
  10  Prefactor     20.018        15.575        .99983E-06    .36216E-04
  11  Prefactor     .10000E-03    1.4269       -.50931E-07** at limit **
  12  Prefactor     .10000E-03    14.081       -.61553E-06** at limit **
  13  norm          .82631        .20115        .83412E-08   -.88962E-04
  14  Prefactor     .10000E-03    13.047        .81406E-06** at limit **
  15  Prefactor     25.390        26.956        .20619E-05    .33986E-04
  16  Prefactor     .10000E-03    3.8553       -.55416E-07** at limit **
  17  norm          .10000E-03    15.447       -.26438E-05** at limit **
  18  Normalizat    .91302        .17238       -.58961E-06    .80705E-04
  19  Prefactor     .94613        .11004        .11916E-06   -.86521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.4871
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 1.54362
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.826308
  Prefactor  = 0.0001
  Prefactor  = 25.3899
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.913018
  Prefactor  = 0.946128
 **********
 **   18 **HESSE 
 **********

 FCN=   7032.273     FROM HESSE     STATUS=OK           268 CALLS     2181 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.487        23.738        .69332E-04   -1.4550    
   2  Prefactor     .10000E-03    .82401        .74079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.507        .37011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.1534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    19.565        .19973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5436        3.2572        .21584E-03   -1.5459    
   7  norm          .10000E-03    4.4252        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0945        .14376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.018        15.613        .89743E-04   -1.4813    
  11  Prefactor     .10000E-03    1.4352        .97819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .82631        .20145        .17941E-04   -1.5526    
  14  Prefactor     .10000E-03    13.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.390        27.052        .79262E-04   -1.4700    
  16  Prefactor     .10000E-03    3.8562        .16081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.538        .21434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .91302        .19353        .28314E-03   -.96004    
  19  Prefactor     .94613        .12644        .18299E-03   -.94547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66087e-10
Minuit parameter uncertainties:
  1  23.7451
  2  5.60432e-07
  3  0.000712929
  4  4.43199e-06
  5  0.000901555
  6  3.25753
  7  1.43419e-05
  8  1.10819e-05
  9  2.53094e-06
  10  15.6166
  11  4.72825e-07
  12  1.35667e-06
  13  0.201448
  14  1.7965e-05
  15  27.0654
  16  1.32422e-06
  17  4.19816e-05
  18  0.193674
  19  0.126484
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  2.002e+01  1.562e+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:  9.461e-01  1.265e-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.130e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.79
Ra Dec: 69.610 -12.905
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 9.88e-06

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

Saving results to:
/scratch/kocevski/624770/likelihoodResults_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.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) = 7031.89484915
delta logL = 0.378412158843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7031.89368802
delta logL = 0.379573291643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.608       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9688       1.0000          .0000       10.000    
     3 'Normalizat'    .92809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93882       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=   7031.894     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      293 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.611        23.048        .72421E-04   -.14813E-02
   2  Index         1.9687        .48093        .77843E-02   -.62980E-03
   3  Normalizat    .92813        .19059        .28102E-03    .28812E-03
   4  Prefactor     .93880        .12587        .18354E-03    .57742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.6113
  Index      = 1.96869
  Normalizat = 0.928128
  Prefactor  = 0.938804
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.894     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.611        22.862        .14484E-04   -1.4601    
   2  Index         1.9687        .47701        .31137E-03   -.65135    
   3  Normalizat    .92813        .19069        .11241E-04   -.95479    
   4  Prefactor     .93880        .12595        .36708E-04   -.94798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.78285e-09
Minuit parameter uncertainties:
  1  22.8682
  2  0.478159
  3  0.190832
  4  0.125992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624770': 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) = 7031.89368798
delta logL = 0.379573332581

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  3.061e+01  2.287e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.969e+00  4.782e-01  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:  9.388e-01  1.260e-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.281e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 1.97 +/- 0.48
Photon Flux (Free Index): 3.09e-08 +/- 2.63e-08
Energy Flux (Free Index): 2.31e-05 +/- 2.45e-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/624770/cmap_HighResolution_573696001_573955201_4FGL_J0438.4-1254_daily_bin1290.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='2.31e-05', photon_flux_error='3.14e-08', dlogl='3.80e-01', energy_flux='1.27e-05', photon_flux2='3.09e-08', job_status='DONE', time_completed='2021-08-21 01:37:18.227486', photon_index_error2='0.48', photon_index2='1.97', ts='2.79', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.45e-05', EG='0.91', time_epoch_completed='1629535038.23', return_code='0', job_id='624770', GAL2='0.94', EG2='0.93', return_code2='0', energy_flux_error='9.88e-06', photon_flux_error2='2.63e-08', ts2='3.56', photon_index='2.43' WHERE bin_id='1290' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:37:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 624770: <4FGL_J0438.4-1254_daily_bin1290> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1290> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Aug 21 01:25:35 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:25:37 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:25:37 2021
Terminated at Sat Aug 21 01:37:19 2021
Results reported at Sat Aug 21 01:37:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1290 69.6099 -12.9053 573696001 573955201 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 :                                   623.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            704 sec.

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

