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


Performing analysis on: 4FGL_J0438.4-1254_daily_bin1592
RA = 69.6099, Dec = -12.9053
tmin = 651974401, tmax = 652233601
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='924891', job_status='RUN', time_executed='2021-09-02 00:34:06.629694', time_epoch_executed='1630568046.63' WHERE source_name='4FGL J0438.4-1254' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924891

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924891/ft1_4FGL_J0438.4-1254_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924891/ft2_4FGL_J0438.4-1254_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924891/ft1_4FGL_J0438.4-1254_daily_bin1592.fits outfile=/scratch/kocevski/924891/ft1_filteredMKT_4FGL_J0438.4-1254_daily_bin1592.fits ra=69.6099 dec=-12.9053 rad=12.0 tmin=651974401.0 tmax=652233601.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 2.86
user 2.62
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924891/ft1_filtered_4FGL_J0438.4-1254_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/924891/ft2_4FGL_J0438.4-1254_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/924891/ltcube_651974401_652233601_4FGL_J0438.4-1254_daily_bin1592.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/924891/ft2_4FGL_J0438.4-1254_daily_bin1592.fits
.....................!
real 13.82
user 13.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924891/ft1_filtered_4FGL_J0438.4-1254_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/924891/ft2_4FGL_J0438.4-1254_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/924891/ltcube_651974401_652233601_4FGL_J0438.4-1254_daily_bin1592.fits outfile=/scratch/kocevski/924891/expmap_651974401_652233601_4FGL_J0438.4-1254_daily_bin1592.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/924891/ltcube_651974401_652233601_4FGL_J0438.4-1254_daily_bin1592.fits
.....................!
real 157.24
user 152.28
sys 4.57

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/924891/ft1_filtered_4FGL_J0438.4-1254_daily_bin1592.fits scfile=/scratch/kocevski/924891/ft2_4FGL_J0438.4-1254_daily_bin1592.fits outfile=/scratch/kocevski/924891/cmap_651974401_652233601_4FGL_J0438.4-1254_daily_bin1592.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.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924891/ft1_filtered_4FGL_J0438.4-1254_daily_bin1592.fits scfile=/scratch/kocevski/924891/ft2_4FGL_J0438.4-1254_daily_bin1592.fits outfile=/scratch/kocevski/924891/cmap_HighResolution_651974401_652233601_4FGL_J0438.4-1254_daily_bin1592.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/924891/ft1_filtered_4FGL_J0438.4-1254_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/924891/ft2_4FGL_J0438.4-1254_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/924891/Model_4FGL_J0438.4-1254_daily_bin1592.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/924891/ft1_filtered_4FGL_J0438.4-1254_daily_bin1592.fits.....................!
real 107.90
user 106.13
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6264       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.586       1.0000         .10000E-03   10000.    
     4 'norm      '    .26699       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.805       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.788       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    91.225       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0415       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13346E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.873       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.662       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .94386       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89609       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=   9127.633     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1991 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.404        .35229E-07** at limit **
   2  Prefactor     1.6260        2.1656       -.32022E-06   -.95314E-03
   3  Prefactor     18.585        7.6133       -.48483E-07   -.31522E-04
   4  norm          .33921        8.9194       -.48430E-05    .86121E-03
   5  Prefactor     .10000E-03    1.3436       -.16846E-07** at limit **
   6  norm          .10000E-03    2.0266        .17292E-07** at limit **
   7  norm          .10000E-03    1.7427       -.13475E-07** at limit **
   8  Prefactor     .10000E-03    3.5012       -.10558E-07** at limit **
   9  Prefactor     12.804        12.989        .12397E-05   -.51242E-05
  10  Prefactor     28.789        15.409        .73180E-06    .50033E-04
  11  Prefactor     2.5147        2.0771        .53134E-07    .35937E-03
  12  Prefactor     91.218        44.941       -.52753E-05    .63326E-04
  13  norm          1.0415        .22770        .49909E-07    .56358E-03
  14  Prefactor     .10006E-03    129.39       -.10916E-03** at limit **
  15  Prefactor     23.875        20.754        .15064E-05    .15946E-05
  16  Prefactor     14.659        19.056        .24046E-05    .39541E-03
  17  norm          .10000E-03    26.523       -.73753E-06** at limit **
  18  Normalizat    .94400        .16016        .63305E-06    .61598E-03
  19  Prefactor     .89596        .96636E-01    .73818E-07    .10454E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.62596
  Prefactor  = 18.5847
  norm       = 0.33921
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8041
  Prefactor  = 28.7888
  Prefactor  = 2.51465
  Prefactor  = 91.2177
  norm       = 1.04152
  Prefactor  = 0.000100061
  Prefactor  = 23.8748
  Prefactor  = 14.6588
  norm       = 0.0001
  Normalizat = 0.943997
  Prefactor  = 0.895963
 **********
 **   18 **HESSE 
 **********

 FCN=   9127.633     FROM HESSE     STATUS=OK           266 CALLS     2257 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6260        2.1533        .15655E-03   -1.5453    
   3  Prefactor     18.585        7.6709        .92904E-04   -1.4845    
   4  norm          .33921        78.427        .54732E-02   -1.5591    
   5  Prefactor     .10000E-03    1.3944        .21613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0580        .13279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.7463        .12316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5363        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.804        13.015        .11194E-03   -1.4992    
  10  Prefactor     28.789        15.419        .74670E-04   -1.4634    
  11  Prefactor     2.5147        2.0803        .12204E-03   -1.5391    
  12  Prefactor     91.218        45.224        .42073E-04   -1.3795    
  13  norm          1.0415        .22799        .20110E-04   -1.5504    
  14  Prefactor     .10006E-03    129.06        .41121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.875        20.753        .81982E-04   -1.4730    
  16  Prefactor     14.659        19.142        .10460E-03   -1.4942    
  17  norm          .10000E-03    26.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .94400        .18587        .29104E-03   -.94931    
  19  Prefactor     .89596        .11204        .19206E-03   -.96282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76223e-08
Minuit parameter uncertainties:
  1  4.14481e-06
  2  2.15344
  3  7.67134
  4  10.3278
  5  1.19467e-06
  6  2.29941e-06
  7  6.53258e-07
  8  3.768e-06
  9  13.0183
  10  15.4208
  11  2.08039
  12  45.2407
  13  0.227988
  14  0.00561434
  15  20.759
  16  19.1497
  17  1.0946e-05
  18  0.185998
  19  0.112069
Done.

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

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  2.879e+01  1.542e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.960e-01  1.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.440e-01  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.45
Ra Dec: 69.610 -12.905
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.80e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 9.76e-06

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) = 9126.60539725
delta logL = 1.02771911905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9126.60517699
delta logL = 1.02793938063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.614       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8548       1.0000          .0000       10.000    
     3 'Normalizat'    .96963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88588       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=   9126.605     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      263 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.612        23.484        .60705E-04    .16063E-02
   2  Index         1.8549        .36861        .72491E-02    .71445E-03
   3  Normalizat    .96963        .16946        .28726E-03   -.24260E-03
   4  Prefactor     .88588        .10978        .19294E-03   -.40379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.6125
  Index      = 1.85485
  Normalizat = 0.969632
  Prefactor  = 0.885882
 **********
 **   18 **HESSE 
 **********

 FCN=   9126.605     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.612        23.460        .12141E-04   -1.4386    
   2  Index         1.8549        .36820        .28996E-03   -.68030    
   3  Normalizat    .96963        .16956        .11491E-04   -.94055    
   4  Prefactor     .88588        .10985        .38588E-04   -.96636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96888e-09
Minuit parameter uncertainties:
  1  23.4647
  2  0.368757
  3  0.16965
  4  0.109874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924891': 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) = 9126.60517697
delta logL = 1.02793939299

Extracting fit parameters...

4FGL J0438.4-1254
   Spectrum: PowerLaw
249    Prefactor:  4.361e+01  2.346e+01  1.000e-04  1.000e+04 ( 1.000e-13)
250        Index:  1.855e+00  3.688e-01  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.026e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.859e-01  1.099e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  9.696e-01  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.51
Ra Dec: 69.610 -12.905
Photon Index (Free Index): 1.85 +/- 0.37
Photon Flux (Free Index): 3.82e-08 +/- 2.61e-08
Energy Flux (Free Index): 3.89e-05 +/- 3.25e-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/924891/cmap_HighResolution_651974401_652233601_4FGL_J0438.4-1254_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.80e-08', energy_flux2='3.89e-05', photon_flux_error='3.10e-08', dlogl='1.03e+00', energy_flux='1.82e-05', photon_flux2='3.82e-08', job_status='DONE', time_completed='2021-09-02 00:43:25.596735', photon_index_error2='0.37', photon_index2='1.85', ts='7.45', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='3.25e-05', EG='0.94', time_epoch_completed='1630568605.6', return_code='0', job_id='924891', GAL2='0.89', EG2='0.97', return_code2='0', energy_flux_error='9.76e-06', photon_flux_error2='2.61e-08', ts2='9.51', photon_index='2.43' WHERE bin_id='1592' AND source_name='4FGL J0438.4-1254' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 00:43:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 924891: <4FGL_J0438.4-1254_daily_bin1592> in cluster <slac> Done

Job <4FGL_J0438.4-1254_daily_bin1592> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  2 00:30:22 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 00:30:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 00:30:24 2021
Terminated at Thu Sep  2 00:43:26 2021
Results reported at Thu Sep  2 00:43:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0438.4-1254_daily_bin1592 69.6099 -12.9053 651974401 652233601 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 :                                   560.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

