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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1280
RA = 69.6099, Dec = -12.9053
tmin = 571104001, tmax = 571363201
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='624756', job_status='RUN', time_executed='2021-08-21 01:26:43.284903', time_epoch_executed='1629534403.28' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1280'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624756/ft1_4FGL_J0438.4-1254_daily_bin1280.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624756/ft2_4FGL_J0438.4-1254_daily_bin1280.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624756/ft1_4FGL_J0438.4-1254_daily_bin1280.fits outfile=/scratch/kocevski/624756/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1280.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=571104001.0 tmax=571363201.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.02
user 2.75
sys 3.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624756/ft1_filtered_4FGL_J0438.4-1254_daily_bin1280.fits" evtable="EVENTS" scfile=/scratch/kocevski/624756/ft2_4FGL_J0438.4-1254_daily_bin1280.fits sctable="SC_DATA" outfile=/scratch/kocevski/624756/ltcube_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.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/624756/ft2_4FGL_J0438.4-1254_daily_bin1280.fits
.....................!
real 15.38
user 11.98
sys 3.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624756/ft1_filtered_4FGL_J0438.4-1254_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/624756/ft2_4FGL_J0438.4-1254_daily_bin1280.fits sctable="SC_DATA" expcube=/scratch/kocevski/624756/ltcube_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.fits outfile=/scratch/kocevski/624756/expmap_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.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/624756/ltcube_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.fits
.....................!
real 194.61
user 185.48
sys 8.80

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/624756/ft1_filtered_4FGL_J0438.4-1254_daily_bin1280.fits scfile=/scratch/kocevski/624756/ft2_4FGL_J0438.4-1254_daily_bin1280.fits outfile=/scratch/kocevski/624756/cmap_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.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.51
user 0.37
sys 3.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624756/ft1_filtered_4FGL_J0438.4-1254_daily_bin1280.fits scfile=/scratch/kocevski/624756/ft2_4FGL_J0438.4-1254_daily_bin1280.fits outfile=/scratch/kocevski/624756/cmap_HighResolution_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.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.48
user 0.38
sys 3.08

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624756/ft1_filtered_4FGL_J0438.4-1254_daily_bin1280.fits evtable="EVENTS" scfile=/scratch/kocevski/624756/ft2_4FGL_J0438.4-1254_daily_bin1280.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624756/Model_4FGL_J0438.4-1254_daily_bin1280.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/624756/ft1_filtered_4FGL_J0438.4-1254_daily_bin1280.fits.....................!
real 120.45
user 115.04
sys 5.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5613       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .39522E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2196       1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4481       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.261       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15425E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1764       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0230       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=   8834.603     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1934 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.022        20.577        .60359E-07    .56950E-04
   2  Prefactor     .27415        5.4691       -.44481E-05    .18613E-03
   3  Prefactor     2.5623        5.2191       -.16239E-06    .35183E-04
   4  norm          .10000E-03    5.0980       -.70745E-07** at limit **
   5  Prefactor     .49189E-01    49.397       -.70728E-05    .55732E-04
   6  norm          6.2200        3.5506       -.31905E-07    .14051E-03
   7  norm          .10000E-03    9.0572       -.77280E-06** at limit **
   8  Prefactor     .10000E-03    3.1169       -.14855E-06** at limit **
   9  Prefactor     3.4405        11.766        .20217E-05   -.11377E-05
  10  Prefactor     12.265        20.925       -.46743E-06    .35128E-04
  11  Prefactor     .10000E-03    1.1352       -.52840E-07** at limit **
  12  Prefactor     .10001E-03    115.83       -.95722E-08** at limit **
  13  norm          .32395        .15942        .10266E-07   -.32441E-03
  14  Prefactor     .10000E-03    10.399        .20944E-06** at limit **
  15  Prefactor     .10000E-03    17.778       -.13190E-05** at limit **
  16  Prefactor     .10000E-03    7.4531       -.11230E-06** at limit **
  17  norm          .10000E-03    21.143        .86215E-06** at limit **
  18  Normalizat    1.1762        .18571        .28734E-05    .53236E-03
  19  Prefactor     1.0231        .11277       -.10060E-05    .37378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0217
  Prefactor  = 0.274147
  Prefactor  = 2.56229
  norm       = 0.0001
  Prefactor  = 0.0491886
  norm       = 6.22004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44053
  Prefactor  = 12.2654
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.323951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.17622
  Prefactor  = 1.02306
 **********
 **   18 **HESSE 
 **********

 FCN=   8834.603     FROM HESSE     STATUS=OK           274 CALLS     2208 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.022        20.586        .94353E-04   -1.4859    
   2  Prefactor     .27415        5.6195        .20083E-02   -1.5603    
   3  Prefactor     2.5623        5.2127        .25508E-03   -1.5388    
   4  norm          .10000E-03    5.1038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .49189E-01    3.5556        .37751E-01   -1.5664    
   6  norm          6.2200        3.5511        .13030E-03   -1.5209    
   7  norm          .10000E-03    9.2675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1412        .16209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4405        11.747        .10890E-02   -1.5337    
  10  Prefactor     12.265        20.948        .11440E-03   -1.5007    
  11  Prefactor     .10000E-03    1.1376        .97815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    116.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .32395        .15871        .25284E-04   -1.5594    
  14  Prefactor     .10000E-03    10.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1762        .21279        .28662E-03   -.87341    
  19  Prefactor     1.0231        .13025        .19934E-03   -.91965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88985e-10
Minuit parameter uncertainties:
  1  20.5939
  2  2.48221
  3  5.21367
  4  5.07541e-06
  5  0.835608
  6  3.55126
  7  1.42877e-05
  8  6.78609e-06
  9  11.7544
  10  20.9609
  11  3.19553e-06
  12  0.00167525
  13  0.158705
  14  1.7817e-06
  15  8.69402e-05
  16  1.83216e-05
  17  5.78626e-05
  18  0.212949
  19  0.130287
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.227e+01  2.096e+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.023e+00  1.303e-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.176e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/624756/likelihoodResults_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.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) = 8834.27929105
delta logL = 0.323683933966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8834.26621613
delta logL = 0.336758849418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1418       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4724       1.0000          .0000       10.000    
     3 'Normalizat'    1.1381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0381       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=   8834.266     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      308 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1004        197.85        .92425E-03   -.79456E-03
   2  Index         3.4771        6.6497        .62871E-02   -.14000E-03
   3  Normalizat    1.1380        .18191        .29079E-03   -.13105E-03
   4  Prefactor     1.0381        .12266        .19804E-03   -.88865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10042
  Index      = 3.47705
  Normalizat = 1.13801
  Prefactor  = 1.0381
 **********
 **   18 **HESSE 
 **********

 FCN=   8834.266     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1004        14.034        .36970E-04   -1.5303    
   2  Index         3.4771        1.7509        .25148E-03   -.30951    
   3  Normalizat    1.1380        .20351        .11632E-04   -.88541    
   4  Prefactor     1.0381        .13062        .39608E-04   -.91470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1335e-10
Minuit parameter uncertainties:
  1  14.0452
  2  1.79292
  3  0.203647
  4  0.13066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624756': 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) = 8834.26621096
delta logL = 0.336764026553

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  4.100e+00  1.405e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.477e+00  1.793e+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.038e+00  1.307e-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.138e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 3.48 +/- 1.79
Photon Flux (Free Index): 5.44e-08 +/- 5.81e-08
Energy Flux (Free Index): 9.11e-06 +/- 9.97e-06

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/624756/cmap_HighResolution_571104001_571363201_4FGL_J0438.4-1254_daily_bin1280.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', comment='SUCCESS', energy_flux2='9.11e-06', dlogl='3.37e-01', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-08-21 01:38:58.747457', photon_index_error2='1.79', photon_index2='3.48', ts='0.39', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='9.97e-06', EG='1.18', time_epoch_completed='1629535138.75', return_code='0', job_id='624756', GAL2='1.04', EG2='1.14', return_code2='0', photon_flux_error2='5.81e-08', ts2='1.10', photon_index='2.43' WHERE bin_id='1280' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:38:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 624756: <4FGL_J0438.4-1254_daily_bin1280> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1280> 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) <bullet0122>, 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:38:59 2021
Results reported at Sat Aug 21 01:38:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1280 69.6099 -12.9053 571104001 571363201 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

