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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1434
RA = 69.6099, Dec = -12.9053
tmin = 611020801, tmax = 611280001
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='626146', job_status='RUN', time_executed='2021-08-21 01:33:10.617223', time_epoch_executed='1629534790.62' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/626146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/626146/ft1_4FGL_J0438.4-1254_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/626146/ft2_4FGL_J0438.4-1254_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/626146/ft1_4FGL_J0438.4-1254_daily_bin1434.fits outfile=/scratch/kocevski/626146/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1434.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=611020801.0 tmax=611280001.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 9.93
user 3.27
sys 6.57

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/626146/ft1_filtered_4FGL_J0438.4-1254_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/626146/ft2_4FGL_J0438.4-1254_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/626146/ltcube_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.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/626146/ft2_4FGL_J0438.4-1254_daily_bin1434.fits
.....................!
real 19.57
user 11.96
sys 7.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/626146/ft1_filtered_4FGL_J0438.4-1254_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/626146/ft2_4FGL_J0438.4-1254_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/626146/ltcube_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.fits outfile=/scratch/kocevski/626146/expmap_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.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/626146/ltcube_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.fits
.....................!
real 200.35
user 187.44
sys 12.42

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/626146/ft1_filtered_4FGL_J0438.4-1254_daily_bin1434.fits scfile=/scratch/kocevski/626146/ft2_4FGL_J0438.4-1254_daily_bin1434.fits outfile=/scratch/kocevski/626146/cmap_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.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 6.73
user 0.38
sys 6.31

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/626146/ft1_filtered_4FGL_J0438.4-1254_daily_bin1434.fits scfile=/scratch/kocevski/626146/ft2_4FGL_J0438.4-1254_daily_bin1434.fits outfile=/scratch/kocevski/626146/cmap_HighResolution_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.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 6.73
user 0.38
sys 6.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/626146/ft1_filtered_4FGL_J0438.4-1254_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/626146/ft2_4FGL_J0438.4-1254_daily_bin1434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/626146/Model_4FGL_J0438.4-1254_daily_bin1434.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/626146/ft1_filtered_4FGL_J0438.4-1254_daily_bin1434.fits.....................!
real 132.78
user 122.82
sys 9.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12807E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20567       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.724       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.2469       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16167E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11769E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2524       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5659       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6999       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    90.403       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0856       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0448       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=   9521.331     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1920 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.942        .38515E-07** at limit **
   2  Prefactor     .20934        .98380        .77926E-07   -.19535E-03
   3  Prefactor     13.726        6.4083       -.25215E-07   -.71733E-04
   4  norm          .10000E-03    4.6566       -.21219E-08** at limit **
   5  Prefactor     .10000E-03    1.1958        .21662E-07** at limit **
   6  norm          .10000E-03    1.6420       -.76821E-08** at limit **
   7  norm          5.2469        5.6971        .17534E-05   -.39736E-03
   8  Prefactor     .10000E-03    6.1543       -.59132E-07** at limit **
   9  Prefactor     11.595        14.265        .16942E-06    .24337E-06
  10  Prefactor     .10000E-03    13.315        .57830E-07** at limit **
  11  Prefactor     .10000E-03    2.7910        .99436E-07** at limit **
  12  Prefactor     .10000E-03    78.518        .36015E-06** at limit **
  13  norm          1.2524        .22852        .21010E-08   -.12449E-03
  14  Prefactor     9.5569        22.817       -.62686E-07   -.23384E-04
  15  Prefactor     8.6987        17.089        .13466E-06   -.46111E-05
  16  Prefactor     .10000E-03    17.120       -.27189E-06** at limit **
  17  norm          90.378        57.588       -.25757E-05   -.26800E-03
  18  Normalizat    1.0856        .16682       -.48683E-06   -.16355E-04
  19  Prefactor     1.0448        .10632        .92689E-07   -.69251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.209337
  Prefactor  = 13.7257
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.2469
  Prefactor  = 0.0001
  Prefactor  = 11.5954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25243
  Prefactor  = 9.55688
  Prefactor  = 8.69871
  Prefactor  = 0.0001
  norm       = 90.3775
  Normalizat = 1.08556
  Prefactor  = 1.04485
 **********
 **   18 **HESSE 
 **********

 FCN=   9521.331     FROM HESSE     STATUS=OK           268 CALLS     2188 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20934        3.8445        .18673E-02   -1.5616    
   3  Prefactor     13.726        6.4344        .10812E-03   -1.4967    
   4  norm          .10000E-03    4.6584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2128        .10414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.6566        .12210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.2469        5.8345        .87739E-03   -1.5250    
   8  Prefactor     .10000E-03    6.2584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.595        14.318        .11766E-03   -1.5027    
  10  Prefactor     .10000E-03    13.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2709        .31415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    79.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2524        .22906        .19246E-04   -1.5484    
  14  Prefactor     9.5569        22.822        .12957E-03   -1.5090    
  15  Prefactor     8.6987        17.087        .13590E-03   -1.5118    
  16  Prefactor     .10000E-03    17.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          90.378        61.762        .21131E-03   -1.3804    
  18  Normalizat    1.0856        .19188        .29614E-03   -.90217    
  19  Prefactor     1.0448        .12249        .19938E-03   -.91249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11331e-08
Minuit parameter uncertainties:
  1  1.12137e-05
  2  1.79392
  3  6.4347
  4  5.70421e-07
  5  7.02748e-07
  6  1.18768e-06
  7  5.83515
  8  1.15134e-05
  9  14.3226
  10  1.14371e-06
  11  7.43914e-06
  12  9.62549e-05
  13  0.229064
  14  22.8428
  15  17.0961
  16  4.29385e-05
  17  61.8062
  18  0.192008
  19  0.122523
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.000e-04  1.144e-06  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.045e+00  1.225e-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.086e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/626146/likelihoodResults_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.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): 102
logL (Free Index) = 9521.33089465
delta logL = -0.00035515406671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9521.33053949
delta logL = -3.43243300449e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4418       1.0000          .0000       10.000    
     3 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   9521.331     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      242 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    316.81        .18142E-02** at limit **
   2  Index         2.5390        8.3723        .50000       -.49759E-05
   3  Normalizat    1.0856        .21104E-01    .29614E-03    .20654E-04
   4  Prefactor     1.0448        .14051E-01    .19938E-03    .27141E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101323
  Index      = 2.53901
  Normalizat = 1.08556
  Prefactor  = 1.04485
 **********
 **   18 **HESSE 
 **********

 FCN=   9521.331     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10132E-03    1743.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5390        7.9027        .50000       -.51461    
   3  Normalizat    1.0856        .61250E-01    .11845E-04   -.90217    
   4  Prefactor     1.0448        .40528E-01    .79754E-05   -.91249    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.5633e-08
Minuit parameter uncertainties:
  1  0.0990855
  2  3077.49
  3  0.0612544
  4  0.0405293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/626146': 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): 102
logL (Free Index) = 9521.33053941
delta logL = 8.49140633363e-08

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.013e-04  9.909e-02  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.539e+00  3.077e+03  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.045e+00  4.053e-02  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.086e+00  6.125e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/626146/cmap_HighResolution_611020801_611280001_4FGL_J0438.4-1254_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.98e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-08-21 01:46:53.218270', job_id='626146', GAL2='1.04', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1629535613.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.49e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1434' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 01:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 626146: <4FGL_J0438.4-1254_daily_bin1434> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1434> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 01:30:37 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 01:30:39 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:30:39 2021
Terminated at Sat Aug 21 01:46:54 2021
Results reported at Sat Aug 21 01:46:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1434 69.6099 -12.9053 611020801 611280001 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 :                                   906.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

