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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1056
RA = 69.6099, Dec = -12.9053
tmin = 513043201, tmax = 513302401
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='623283', job_status='RUN', time_executed='2021-08-21 01:23:23.881364', time_epoch_executed='1629534203.88' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623283

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623283/ft1_4FGL_J0438.4-1254_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623283/ft2_4FGL_J0438.4-1254_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623283/ft1_4FGL_J0438.4-1254_daily_bin1056.fits outfile=/scratch/kocevski/623283/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1056.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=513043201.0 tmax=513302401.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 8.35
user 6.11
sys 2.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623283/ft1_filtered_4FGL_J0438.4-1254_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/623283/ft2_4FGL_J0438.4-1254_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/623283/ltcube_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.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/623283/ft2_4FGL_J0438.4-1254_daily_bin1056.fits
.....................!
real 14.13
user 11.62
sys 2.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623283/ft1_filtered_4FGL_J0438.4-1254_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/623283/ft2_4FGL_J0438.4-1254_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/623283/ltcube_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.fits outfile=/scratch/kocevski/623283/expmap_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.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/623283/ltcube_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.fits
.....................!
real 192.88
user 185.07
sys 7.26

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/623283/ft1_filtered_4FGL_J0438.4-1254_daily_bin1056.fits scfile=/scratch/kocevski/623283/ft2_4FGL_J0438.4-1254_daily_bin1056.fits outfile=/scratch/kocevski/623283/cmap_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.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 2.41
user 0.38
sys 2.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623283/ft1_filtered_4FGL_J0438.4-1254_daily_bin1056.fits scfile=/scratch/kocevski/623283/ft2_4FGL_J0438.4-1254_daily_bin1056.fits outfile=/scratch/kocevski/623283/cmap_HighResolution_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.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 2.44
user 0.38
sys 2.04

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623283/ft1_filtered_4FGL_J0438.4-1254_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/623283/ft2_4FGL_J0438.4-1254_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623283/Model_4FGL_J0438.4-1254_daily_bin1056.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/623283/ft1_filtered_4FGL_J0438.4-1254_daily_bin1056.fits.....................!
real 63.69
user 59.80
sys 3.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9762       1.0000         .10000E-03   10000.    
     4 'norm      '    14.470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28738E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3267       1.0000         .10000E-03   10000.    
     7 'norm      '    14.460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.554       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .84541       1.0000         .10000E-03   10000.    
    12 'Prefactor '    83.799       1.0000         .10000E-03   10000.    
    13 'norm      '    .83890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.744       1.0000         .10000E-03   10000.    
    17 'norm      '    .11278E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .53957       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2380       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=   4194.578     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1919 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2293        36.535       -.37044E-05   -.12317E-04
   2  Prefactor     .10000E-03    5.6547        .11677E-06** at limit **
   3  Prefactor     4.9728        11.262        .84373E-05    .45951E-04
   4  norm          14.463        24.593        .18768E-06   -.36858E-04
   5  Prefactor     .10004E-03    3.4772       -.10379E-05** at limit **
   6  norm          3.3266        3.4147       -.78833E-08    .56656E-05
   7  norm          14.462        12.295        .10758E-05   -.71931E-05
   8  Prefactor     .10000E-03    5.6049        .60319E-07** at limit **
   9  Prefactor     .10000E-03    23.481       -.64782E-07** at limit **
  10  Prefactor     45.558        34.464        .49940E-06    .72399E-05
  11  Prefactor     .84331        11.105        .48721E-05    .10207E-04
  12  Prefactor     83.793        73.118        .55452E-06   -.28467E-04
  13  norm          .83891        .32173        .20751E-07   -.13161E-03
  14  Prefactor     .10000E-03    51.575        .10926E-05** at limit **
  15  Prefactor     .10000E-03    12.582        .87810E-07** at limit **
  16  Prefactor     36.768        34.748       -.96932E-06    .15765E-03
  17  norm          .10020E-03    367.61       -.86158E-05** at limit **
  18  Normalizat    .53961        .27904       -.45144E-05    .20079E-04
  19  Prefactor     1.2380        .16972       -.52338E-06   -.15271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.22926
  Prefactor  = 0.0001
  Prefactor  = 4.97284
  norm       = 14.4626
  Prefactor  = 0.000100044
  norm       = 3.32663
  norm       = 14.4621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.5576
  Prefactor  = 0.843307
  Prefactor  = 83.7926
  norm       = 0.838907
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7682
  norm       = 0.000100201
  Normalizat = 0.539612
  Prefactor  = 1.23802
 **********
 **   18 **HESSE 
 **********

 FCN=   4194.578     FROM HESSE     STATUS=OK           270 CALLS     2189 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2293        36.490        .13973E-03   -1.5134    
   2  Prefactor     .10000E-03    5.8793        .30015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9728        11.314        .90141E-03   -1.5262    
   4  norm          14.463        24.604        .10529E-03   -1.4947    
   5  Prefactor     .10004E-03    14.070        .22345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3266        3.4202        .11808E-03   -1.5343    
   7  norm          14.462        12.277        .52664E-03   -1.4947    
   8  Prefactor     .10000E-03    5.6410        .14973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.558        34.432        .59404E-04   -1.4357    
  11  Prefactor     .84331        11.324        .41306E-03   -1.5524    
  12  Prefactor     83.793        73.110        .43881E-04   -1.3875    
  13  norm          .83891        .32129        .21690E-04   -1.5525    
  14  Prefactor     .10000E-03    51.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.768        34.689        .66116E-04   -1.4494    
  17  norm          .10020E-03    368.76        .20681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .53961        .29329        .39840E-03   -1.1061    
  19  Prefactor     1.2380        .18326        .17998E-03   -.85169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75125e-09
Minuit parameter uncertainties:
  1  34.6926
  2  4.73389e-05
  3  11.3191
  4  24.6212
  5  0.00157198
  6  3.42036
  7  12.279
  8  1.08522e-05
  9  2.43729e-05
  10  34.4473
  11  6.18162
  12  73.1887
  13  0.321288
  14  0.000308015
  15  2.45791e-05
  16  34.7076
  17  0.0173258
  18  0.294137
  19  0.18335
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  4.556e+01  3.445e+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:  1.238e+00  1.834e-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.396e-01  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 69.610 -12.905
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 9.18e-08 +/- 6.93e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.18e-05

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

Saving results to:
/scratch/kocevski/623283/likelihoodResults_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.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) = 4194.41202814
delta logL = 0.166429143942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4194.38993067
delta logL = 0.188526616561

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.591       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8856       1.0000          .0000       10.000    
     3 'Normalizat'    .50676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2532       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=   4194.390     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      269 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.534        412.94        .19422E-02   -.22454E-04
   2  Index         2.8863        3.4529        .12268        .72338E-04
   3  Normalizat    .50652        .11424        .92627E-01    .28629E-04
   4  Prefactor     1.2533        .65155E-01    .33480E-01    .74833E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5339
  Index      = 2.88628
  Normalizat = 0.506517
  Prefactor  = 1.25332
 **********
 **   18 **HESSE 
 **********

 FCN=   4194.390     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.534        46.402        .77687E-04   -1.4677    
   2  Index         2.8863        1.0100        .46409E-02   -.43647    
   3  Normalizat    .50652        .27864        .41047E-03   -1.1211    
   4  Prefactor     1.2533        .18326        .17902E-03   -.84706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2814e-09
Minuit parameter uncertainties:
  1  46.4648
  2  1.01857
  3  0.279406
  4  0.183353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623283': 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) = 4194.3899284
delta logL = 0.188528885132

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  2.653e+01  4.646e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.886e+00  1.019e+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.253e+00  1.834e-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.065e-01  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 2.89 +/- 1.02
Photon Flux (Free Index): 1.17e-07 +/- 8.67e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.97e-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/623283/cmap_HighResolution_513043201_513302401_4FGL_J0438.4-1254_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', comment='SUCCESS', photon_flux='9.18e-08', energy_flux2='2.48e-05', photon_flux_error='6.93e-08', dlogl='1.89e-01', energy_flux='2.88e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-08-21 01:32:14.964767', photon_index_error2='1.02', photon_index2='2.89', ts='2.55', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='2.34e-07', energy_flux_error2='1.97e-05', EG='0.54', time_epoch_completed='1629534734.96', return_code='0', job_id='623283', GAL2='1.25', EG2='0.51', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='8.67e-08', ts2='2.94', photon_index='2.43' WHERE bin_id='1056' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:32:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 623283: <4FGL_J0438.4-1254_daily_bin1056> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1056> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Aug 21 01:20:39 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:20:40 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:20:40 2021
Terminated at Sat Aug 21 01:32:16 2021
Results reported at Sat Aug 21 01:32:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1056 69.6099 -12.9053 513043201 513302401 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 :                                   554.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   695 sec.
    Turnaround time :                            697 sec.

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

