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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1086
RA = 69.6099, Dec = -12.9053
tmin = 520819201, tmax = 521078401
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='623331', job_status='RUN', time_executed='2021-08-21 01:24:19.358805', time_epoch_executed='1629534259.36' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623331/ft1_4FGL_J0438.4-1254_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623331/ft2_4FGL_J0438.4-1254_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623331/ft1_4FGL_J0438.4-1254_daily_bin1086.fits outfile=/scratch/kocevski/623331/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1086.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=520819201.0 tmax=521078401.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.19
user 3.25
sys 0.86

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/623331/ft1_filtered_4FGL_J0438.4-1254_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/623331/ft2_4FGL_J0438.4-1254_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/623331/ltcube_520819201_521078401_4FGL_J0438.4-1254_daily_bin1086.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/623331/ft2_4FGL_J0438.4-1254_daily_bin1086.fits
.....................!
real 12.65
user 11.54
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623331/ft1_filtered_4FGL_J0438.4-1254_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/623331/ft2_4FGL_J0438.4-1254_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/623331/ltcube_520819201_521078401_4FGL_J0438.4-1254_daily_bin1086.fits outfile=/scratch/kocevski/623331/expmap_520819201_521078401_4FGL_J0438.4-1254_daily_bin1086.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/623331/ltcube_520819201_521078401_4FGL_J0438.4-1254_daily_bin1086.fits
.....................!
real 192.97
user 187.35
sys 5.24

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

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

This is gtbin version HEAD
real 1.19
user 0.36
sys 0.79

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

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

This is gtbin version HEAD
real 1.18
user 0.38
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/623331/ft1_filtered_4FGL_J0438.4-1254_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/623331/ft2_4FGL_J0438.4-1254_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/623331/Model_4FGL_J0438.4-1254_daily_bin1086.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/623331/ft1_filtered_4FGL_J0438.4-1254_daily_bin1086.fits.....................!
real 100.61
user 98.27
sys 2.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.331       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2326       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9985       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75188E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3116       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8833       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .50991       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19227E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.911       1.0000         .10000E-03   10000.    
    16 'Prefactor '    87.492       1.0000         .10000E-03   10000.    
    17 'norm      '    .12936E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4979       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76272       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=   6602.790     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1945 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.333        17.535        .29443E-05    .10015E-04
   2  Prefactor     2.2329        2.4249       -.37544E-06   -.72180E-03
   3  Prefactor     6.0002        7.5896        .50989E-05   -.12585E-03
   4  norm          .10000E-03    4.2913       -.78050E-08** at limit **
   5  Prefactor     .69582E-02    1.7157       -.48602E-06    .50216E-04
   6  norm          2.3116        3.1685       -.30670E-06   -.33924E-03
   7  norm          2.7131        5.7856       -.18817E-05   -.41058E-03
   8  Prefactor     .10000E-03    3.0486       -.64487E-08** at limit **
   9  Prefactor     .10000E-03    15.007       -.73271E-06** at limit **
  10  Prefactor     4.8735        47.274       -.61906E-05   -.56758E-05
  11  Prefactor     1.7270        5.0640       -.38818E-05   -.79264E-03
  12  Prefactor     .10000E-03    13.721        .83971E-06** at limit **
  13  norm          .50998        .22127        .39517E-07    .74528E-03
  14  Prefactor     .10002E-03    179.47        .71593E-05** at limit **
  15  Prefactor     43.912        35.307       -.17259E-05    .71641E-05
  16  Prefactor     87.448        45.856       -.16872E-04   -.51477E-06
  17  norm          .10000E-03    112.28        .28809E-05** at limit **
  18  Normalizat    1.4976        .21834        .16573E-05    .10734E-03
  19  Prefactor     .76284        .12670        .13376E-05    .11877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3332
  Prefactor  = 2.23288
  Prefactor  = 6.00019
  norm       = 0.0001
  Prefactor  = 0.00695823
  norm       = 2.31156
  norm       = 2.71314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.87352
  Prefactor  = 1.72704
  Prefactor  = 0.0001
  norm       = 0.509975
  Prefactor  = 0.000100024
  Prefactor  = 43.9122
  Prefactor  = 87.4484
  norm       = 0.000100004
  Normalizat = 1.49763
  Prefactor  = 0.762835
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.790     FROM HESSE     STATUS=OK           276 CALLS     2221 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.333        17.534        .88828E-04   -1.4806    
   2  Prefactor     2.2329        2.4304        .63974E-03   -1.5409    
   3  Prefactor     6.0002        7.5708        .16394E-03   -1.5218    
   4  norm          .10000E-03    4.2915        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .69582E-02    2.4740        .39302E-01   -1.5691    
   6  norm          2.3116        3.1556        .16480E-03   -1.5404    
   7  norm          2.7131        5.7937        .24727E-03   -1.5379    
   8  Prefactor     .10000E-03    3.0589        .13854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8735        47.342        .18202E-03   -1.5266    
  11  Prefactor     1.7270        5.1296        .30689E-03   -1.5445    
  12  Prefactor     .10000E-03    13.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .50998        .22011        .24400E-04   -1.5565    
  14  Prefactor     .10002E-03    184.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.912        35.331        .60501E-04   -1.4382    
  16  Prefactor     87.448        45.666        .42953E-04   -1.3835    
  17  norm          .10000E-03    112.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4976        .25659        .27463E-03   -.77845    
  19  Prefactor     .76284        .14765        .22377E-03   -1.0111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75112e-09
Minuit parameter uncertainties:
  1  17.5389
  2  2.4305
  3  7.57203
  4  4.3268e-07
  5  0.260528
  6  3.15578
  7  5.79487
  8  4.09424e-06
  9  1.59507e-05
  10  30.4101
  11  5.13089
  12  1.23549e-05
  13  0.220111
  14  0.00421016
  15  35.3476
  16  45.6845
  17  0.00139027
  18  0.256812
  19  0.147727
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  4.874e+00  3.041e+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:  7.628e-01  1.477e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.498e+00  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/623331/likelihoodResults_520819201_521078401_4FGL_J0438.4-1254_daily_bin1086.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) = 6602.71853671
delta logL = 0.0711971553637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6602.71592669
delta logL = 0.0738071701089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6145       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0097       1.0000          .0000       10.000    
     3 'Normalizat'    1.4799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76607       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6602.716     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      285 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6260        19.978        .84770E-03    .88482E-04
   2  Index         3.0053        1.4941        .88340E-03    .20282E-05
   3  Normalizat    1.4793        .24703        .27607E-03    .12354E-05
   4  Prefactor     .76654        .14645        .22328E-03    .15275E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.62602
  Index      = 3.00532
  Normalizat = 1.4793
  Prefactor  = 0.766537
 **********
 **   18 **HESSE 
 **********

 FCN=   6602.716     FROM HESSE     STATUS=OK            27 CALLS      312 TOTAL
                     EDM=   .82E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6260        19.028        .16954E-03   -1.5234    
   2  Index         3.0053        1.4262        .17668E-03   -.41036    
   3  Normalizat    1.4793        .24732        .11043E-04   -.78362    
   4  Prefactor     .76654        .14656        .89310E-05   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.22444e-15
Minuit parameter uncertainties:
  1  19.0489
  2  1.45028
  3  0.24752
  4  0.146635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623331': 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) = 6602.71591386
delta logL = 0.0738200031319

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  5.626e+00  1.905e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.005e+00  1.450e+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:  7.665e-01  1.466e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.479e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/623331/cmap_HighResolution_520819201_521078401_4FGL_J0438.4-1254_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-08-21 01:34:32.102324', job_id='623331', GAL2='0.77', fit_tolerance='1e-08', EG2='1.48', EG='1.50', time_epoch_completed='1629534872.1', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='7.38e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1086' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:34:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 623331: <4FGL_J0438.4-1254_daily_bin1086> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1086 69.6099 -12.9053 520819201 521078401 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 :                                   619.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

