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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1597
RA = 69.6099, Dec = -12.9053
tmin = 653270401, tmax = 653529601
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='538531', job_status='RUN', time_executed='2021-09-17 00:32:20.369193', time_epoch_executed='1631863940.37' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538531/ft1_4FGL_J0438.4-1254_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538531/ft1_4FGL_J0438.4-1254_daily_bin1597.fits outfile=/scratch/kocevski/538531/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1597.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=653270401.0 tmax=653529601.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 3.32
user 3.09
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.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/538531/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1597.fits evtable="EVENTS" outfile="/scratch/kocevski/538531/ft1_filtered_4FGL_J0438.4-1254_daily_bin1597.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 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538531/ft1_filtered_4FGL_J0438.4-1254_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/538531/ltcube_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.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/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.fits
.....................!
real 13.00
user 12.51
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538531/ft1_filtered_4FGL_J0438.4-1254_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/538531/ltcube_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.fits outfile=/scratch/kocevski/538531/expmap_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.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/538531/ltcube_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.fits
.....................!
real 191.13
user 185.44
sys 4.89

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/538531/ft1_filtered_4FGL_J0438.4-1254_daily_bin1597.fits scfile=/scratch/kocevski/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.fits outfile=/scratch/kocevski/538531/cmap_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.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 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538531/ft1_filtered_4FGL_J0438.4-1254_daily_bin1597.fits scfile=/scratch/kocevski/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.fits outfile=/scratch/kocevski/538531/cmap_HighResolution_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.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 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538531/ft1_filtered_4FGL_J0438.4-1254_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/538531/ft2_4FGL_J0438.4-1254_daily_bin1597.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538531/Model_4FGL_J0438.4-1254_daily_bin1597.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/538531/ft1_filtered_4FGL_J0438.4-1254_daily_bin1597.fits....................!
real 102.25
user 100.73
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57413       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.810       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3630       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.985       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    60.257       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84839       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0595       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=   6994.728     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1907 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.458        .23015E-06** at limit **
   2  Prefactor     .57368        4.6768        .33609E-05   -.11136E-03
   3  Prefactor     15.810        11.000       -.25905E-06   -.77358E-04
   4  norm          .10000E-03    9.0916        .13564E-06** at limit **
   5  Prefactor     .10000E-03    2.2940        .24786E-06** at limit **
   6  norm          .10000E-03    2.8027        .28569E-06** at limit **
   7  norm          2.3602        7.7783        .12583E-05   -.16897E-04
   8  Prefactor     .10000E-03    14.595        .13918E-05** at limit **
   9  Prefactor     6.1795        16.350        .96512E-07   -.15174E-04
  10  Prefactor     15.386        26.440        .57508E-07   -.14405E-04
  11  Prefactor     .10000E-03    3.7755       -.31623E-06** at limit **
  12  Prefactor     .10000E-03    11.276        .29494E-07** at limit **
  13  norm          2.6046        .38428       -.58311E-08   -.84497E-04
  14  Prefactor     37.883        51.843       -.39147E-06   -.62027E-04
  15  Prefactor     .10000E-03    52.440        .22784E-05** at limit **
  16  Prefactor     .10000E-03    10.365       -.14065E-05** at limit **
  17  norm          60.260        59.113        .73924E-07    .81671E-06
  18  Normalizat    .84851        .21248       -.24126E-06   -.15679E-03
  19  Prefactor     1.0595        .12448       -.53590E-06   -.17294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.573676
  Prefactor  = 15.8104
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.3602
  Prefactor  = 0.0001
  Prefactor  = 6.17948
  Prefactor  = 15.3856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.60464
  Prefactor  = 37.8829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 60.26
  Normalizat = 0.848506
  Prefactor  = 1.05949
 **********
 **   18 **HESSE 
 **********

 FCN=   6994.728     FROM HESSE     STATUS=OK           266 CALLS     2173 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .57368        4.7325        .34103E-02   -1.5556    
   3  Prefactor     15.810        11.154        .10073E-03   -1.4913    
   4  norm          .10000E-03    9.1127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9857        .24210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8618        .13671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3602        7.7662        .26659E-03   -1.5401    
   8  Prefactor     .10000E-03    15.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1795        16.367        .16148E-03   -1.5211    
  10  Prefactor     15.386        26.508        .10209E-03   -1.4923    
  11  Prefactor     .10000E-03    3.8168        .15853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6046        .38509        .19300E-04   -1.5385    
  14  Prefactor     37.883        51.933        .65031E-04   -1.4476    
  15  Prefactor     .10000E-03    53.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          60.260        59.116        .51687E-04   -1.4154    
  18  Normalizat    .84851        .24614        .33445E-03   -.98294    
  19  Prefactor     1.0595        .14446        .19037E-03   -.90772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00139e-07
Minuit parameter uncertainties:
  1  4.55065e-05
  2  3.29546
  3  11.1556
  4  3.44574e-06
  5  0.000144551
  6  7.23641e-07
  7  7.76946
  8  1.22508e-05
  9  16.3791
  10  26.5286
  11  6.23716e-06
  12  1.04134e-05
  13  0.385093
  14  51.9947
  15  9.07511e-05
  16  1.97941e-07
  17  59.1738
  18  0.246464
  19  0.144514
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  1.539e+01  2.653e+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.059e+00  1.445e-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:  8.485e-01  2.465e-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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538531/likelihoodResults_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.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) = 6994.31717907
delta logL = 0.41121511315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6994.27536522
delta logL = 0.453028960508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3763       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7530       1.0000          .0000       10.000    
     3 'Normalizat'    .78629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0843       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6994.275     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3587        69.566        .55054E-02    .61982E-03
   2  Index         3.7557        3.3689        .11166        .18424E-03
   3  Normalizat    .78618        .62847E-01    .78265E-01    .28031E-04
   4  Prefactor     1.0844        .38711E-01    .38215E-01   -.24013E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35873
  Index      = 3.75569
  Normalizat = 0.786177
  Prefactor  = 1.08444
 **********
 **   18 **HESSE 
 **********

 FCN=   6994.275     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      300 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3587        128.89        .13311E-03   -1.5341    
   2  Index         3.7557        6.8774        .61234E-02   -.25150    
   3  Normalizat    .78618        .20712        .34648E-03   -1.0058    
   4  Prefactor     1.0844        .13232        .18842E-03   -.89966    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09974e-09
Minuit parameter uncertainties:
  1  41.7099
  2  6.29698
  3  0.207324
  4  0.132364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538531': 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) = 6994.27536417
delta logL = 0.453030014055

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  3.359e+00  4.171e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  3.756e+00  6.297e+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.084e+00  1.324e-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:  7.862e-01  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 3.76 +/- 6.30
Photon Flux (Free Index): 7.67e-08 +/- 7.00e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.92e-05

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/538531/cmap_HighResolution_653270401_653529601_4FGL_J0438.4-1254_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='4.53e-01', photon_flux2='7.67e-08', job_status='DONE', time_completed='2021-09-17 00:42:33.226159', photon_index_error2='6.30', photon_index2='3.76', ts='0.39', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.92e-05', EG='0.85', time_epoch_completed='1631864553.23', return_code='0', job_id='538531', GAL2='1.08', EG2='0.79', return_code2='102', photon_flux_error2='7.00e-08', ts2='1.39', photon_index='2.43' WHERE bin_id='1597' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 00:42:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 538531: <4FGL_J0438.4-1254_daily_bin1597> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1597> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 00:30:15 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:30:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:30:16 2021
Terminated at Fri Sep 17 00:42:34 2021
Results reported at Fri Sep 17 00:42:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1597 69.6099 -12.9053 653270401 653529601 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 :                                   614.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            739 sec.

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

