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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1274
RA = 69.6099, Dec = -12.9053
tmin = 569548801, tmax = 569808001
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='624748', job_status='RUN', time_executed='2021-08-21 01:27:17.780090', time_epoch_executed='1629534437.78' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624748

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624748/ft1_4FGL_J0438.4-1254_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624748/ft2_4FGL_J0438.4-1254_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624748/ft1_4FGL_J0438.4-1254_daily_bin1274.fits outfile=/scratch/kocevski/624748/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1274.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=569548801.0 tmax=569808001.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 6.53
user 3.38
sys 3.10

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624748/ft1_filtered_4FGL_J0438.4-1254_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/624748/ft2_4FGL_J0438.4-1254_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/624748/ltcube_569548801_569808001_4FGL_J0438.4-1254_daily_bin1274.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/624748/ft2_4FGL_J0438.4-1254_daily_bin1274.fits
.....................!
real 15.07
user 11.36
sys 3.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624748/ft1_filtered_4FGL_J0438.4-1254_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/624748/ft2_4FGL_J0438.4-1254_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/624748/ltcube_569548801_569808001_4FGL_J0438.4-1254_daily_bin1274.fits outfile=/scratch/kocevski/624748/expmap_569548801_569808001_4FGL_J0438.4-1254_daily_bin1274.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/624748/ltcube_569548801_569808001_4FGL_J0438.4-1254_daily_bin1274.fits
.....................!
real 197.16
user 187.68
sys 8.98

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

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

This is gtbin version HEAD
real 3.37
user 0.39
sys 2.93

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

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

This is gtbin version HEAD
real 3.47
user 0.37
sys 3.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624748/ft1_filtered_4FGL_J0438.4-1254_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/624748/ft2_4FGL_J0438.4-1254_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624748/Model_4FGL_J0438.4-1254_daily_bin1274.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/624748/ft1_filtered_4FGL_J0438.4-1254_daily_bin1274.fits....................!
real 115.49
user 110.03
sys 5.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.299       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19305E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.4040       1.0000         .10000E-03   10000.    
     7 'norm      '    15.937       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1147       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.702       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.179       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90924       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88281       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=   8174.279     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1954 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.297        15.125        .24336E-05   -.12304E-04
   2  Prefactor     5.0961        2.6036       -.40904E-07   -.61554E-04
   3  Prefactor     .10000E-03    2.9612       -.40136E-07** at limit **
   4  norm          .10000E-03    3.8544        .87340E-07** at limit **
   5  Prefactor     .10646E-03    1.2210       -.39085E-07** at limit **
   6  norm          2.4049        4.2950       -.27488E-05   -.10748E-02
   7  norm          15.939        8.1823       -.27869E-05   -.27807E-03
   8  Prefactor     .10001E-03    3.7294        .14234E-05** at limit **
   9  Prefactor     .10000E-03    3.1373       -.61710E-07** at limit **
  10  Prefactor     11.678        15.382        .52728E-05   -.49273E-04
  11  Prefactor     .10000E-03    1.5906        .15992E-07** at limit **
  12  Prefactor     .10000E-03    9.2067       -.12040E-06** at limit **
  13  norm          1.1147        .20770       -.13184E-08   -.68289E-04
  14  Prefactor     10.692        23.828        .19754E-04   -.15108E-04
  15  Prefactor     19.179        19.106       -.13488E-05   -.30737E-04
  16  Prefactor     .10000E-03    5.1017       -.26227E-08** at limit **
  17  norm          .10000E-03    23.830       -.22202E-07** at limit **
  18  Normalizat    .90937        .15579       -.40949E-06   -.26312E-03
  19  Prefactor     .88275        .10033       -.64072E-06   -.20580E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2973
  Prefactor  = 5.09611
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000106464
  norm       = 2.40493
  norm       = 15.9385
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 11.6783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11469
  Prefactor  = 10.6916
  Prefactor  = 19.1795
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.909375
  Prefactor  = 0.882754
 **********
 **   18 **HESSE 
 **********

 FCN=   8174.279     FROM HESSE     STATUS=OK           278 CALLS     2232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.297        15.131        .99206E-04   -1.4900    
   2  Prefactor     5.0961        2.6041        .10069E-03   -1.5256    
   3  Prefactor     .10000E-03    2.9912        .15186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.8545        .17336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10646E-03    2.6517        .33961E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.4049        4.3534        .24530E-03   -1.5398    
   7  norm          15.939        8.1479        .10033E-03   -1.4909    
   8  Prefactor     .10001E-03    32.844        .33093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1403        .15639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.678        15.339        .11721E-03   -1.5024    
  11  Prefactor     .10000E-03    1.6084        .11134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.2158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1147        .20810        .17224E-04   -1.5497    
  14  Prefactor     10.692        23.558        .12247E-03   -1.5054    
  15  Prefactor     19.179        19.119        .91455E-04   -1.4832    
  16  Prefactor     .10000E-03    5.1068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    23.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .90937        .17686        .27885E-03   -.96131    
  19  Prefactor     .88275        .11473        .18660E-03   -.96746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39656e-09
Minuit parameter uncertainties:
  1  15.1343
  2  2.6042
  3  5.80802e-07
  4  3.16394e-06
  5  0.00828055
  6  4.35398
  7  8.14842
  8  0.00126525
  9  4.46232e-07
  10  15.3445
  11  3.95598e-06
  12  2.05143e-08
  13  0.208101
  14  23.5785
  15  19.1253
  16  1.46985e-05
  17  1.33195e-05
  18  0.176973
  19  0.114759
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.168e+01  1.534e+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.828e-01  1.148e-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.094e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.77
Ra Dec: 69.610 -12.905
Photon Flux Upper Limit: 9.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624748/likelihoodResults_569548801_569808001_4FGL_J0438.4-1254_daily_bin1274.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) = 8174.25392526
delta logL = 0.0249674289416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8174.2373226
delta logL = 0.041570097299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4909       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7458       1.0000          .0000       10.000    
     3 'Normalizat'    .90166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88585       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=   8174.237     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      241 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4902        19.794        .13757E-03   -.69995E-04
   2  Index         2.7460        1.3641        .80949E-02   -.27252E-04
   3  Normalizat    .90166        .17455        .27995E-03    .28719E-03
   4  Prefactor     .88586        .11435        .18631E-03    .48859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.49021
  Index      = 2.746
  Normalizat = 0.901655
  Prefactor  = 0.885857
 **********
 **   18 **HESSE 
 **********

 FCN=   8174.237     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4902        16.603        .55028E-05   -1.5125    
   2  Index         2.7460        1.1477        .32379E-03   -.46766    
   3  Normalizat    .90166        .17395        .11198E-04   -.96402    
   4  Prefactor     .88586        .11402        .37262E-04   -.96637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89832e-10
Minuit parameter uncertainties:
  1  16.6118
  2  1.16076
  3  0.17406
  4  0.114046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624748': 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) = 8174.23732258
delta logL = 0.0415701175152

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  8.490e+00  1.661e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.746e+00  1.161e+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.859e-01  1.140e-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.017e-01  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/624748/cmap_HighResolution_569548801_569808001_4FGL_J0438.4-1254_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.38e-08', time_completed='2021-08-21 01:39:11.918544', job_id='624748', GAL2='0.89', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1629535151.92', return_code2='0', ts='0.77', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.16e-02', ts2='0.85', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1274' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 624748: <4FGL_J0438.4-1254_daily_bin1274> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1274 69.6099 -12.9053 569548801 569808001 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 :                                   756.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

