/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 40 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 = 7364
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1438.0+0219_daily_bin460
RA = 219.504, Dec = 2.3272
tmin = 358560001, tmax = 358819201
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='639835', job_status='RUN', time_executed='2021-09-10 01:43:36.860545', time_epoch_executed='1631263416.86' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639835

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639835/ft1_4FGL_J1438.0+0219_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639835/ft1_4FGL_J1438.0+0219_daily_bin460.fits outfile=/scratch/kocevski/639835/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin460.fits ra=219.504 dec=2.3272 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.35
user 4.98
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.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/639835/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin460.fits evtable="EVENTS" outfile="/scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.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.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/639835/ltcube_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.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/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits
.....................!
real 12.70
user 11.38
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/639835/ltcube_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.fits outfile=/scratch/kocevski/639835/expmap_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.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/639835/ltcube_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.fits
.....................!
real 195.23
user 185.85
sys 4.97

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.0+0219 @ 219.504 2.3272

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits scfile=/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits outfile=/scratch/kocevski/639835/cmap_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.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=219.504 yref=2.3272 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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits scfile=/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits outfile=/scratch/kocevski/639835/cmap_HighResolution_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.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=219.504 yref=2.3272 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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/639835/Model_4FGL_J1438.0+0219_daily_bin460.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/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits.....................!
real 52.14
user 50.51
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits', '/scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits', expMap='/scratch/kocevski/639835/expmap_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.fits', expCube='/scratch/kocevski/639835/ltcube_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639835/Model_4FGL_J1438.0+0219_daily_bin460.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0+0219'

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  3.502e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/639835/ft1_filtered_4FGL_J1438.0+0219_daily_bin460.fits
Spacecraft file(s): /scratch/kocevski/639835/ft2_4FGL_J1438.0+0219_daily_bin460.fits
Exposure map: /scratch/kocevski/639835/expmap_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.fits
Exposure cube: /scratch/kocevski/639835/ltcube_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639835/Model_4FGL_J1438.0+0219_daily_bin460.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) = 6735.80843995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    11.552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    39.300       1.0000         .10000E-03   10000.    
     4 'norm      '    11.825       1.0000         .10000E-03   10000.    
     5 'norm      '    4.3889       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .85987E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.677       1.0000         .10000E-03   10000.    
    12 'norm      '    .20098       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4349       1.0000         .10000E-03   10000.    
    14 'norm      '    8.2773       1.0000         .10000E-03   10000.    
    15 'norm      '    .48400       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5838       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.520       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .93651       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1679       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6735.803     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1938 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6842        .65842E-07** at limit **
   2  Prefactor     11.553        10.841        .13532E-05   -.16741E-04
   3  Prefactor     39.298        25.149       -.15115E-05   -.21704E-05
   4  norm          11.825        12.648        .40067E-07   -.74982E-05
   5  norm          4.3887        9.6864        .23208E-06   -.13912E-03
   6  Prefactor     .10000E-03    9.0077       -.90519E-07** at limit **
   7  norm          .10000E-03    5.8270       -.31450E-08** at limit **
   8  Prefactor     .10000E-03    62.274        .63134E-05** at limit **
   9  Prefactor     .10001E-03    54.491       -.32207E-05** at limit **
  10  norm          18.080        19.978       -.78151E-05    .28578E-04
  11  Prefactor     27.684        28.474        .76931E-05    .19382E-04
  12  norm          .20094        .17415       -.98313E-07   -.24139E-02
  13  norm          3.4354        2.9980       -.53203E-08   -.42299E-03
  14  norm          8.2774        9.5074        .28145E-06   -.49311E-04
  15  norm          .48659        3.5933       -.12480E-05   -.43079E-03
  16  norm          1.5836        3.1417       -.23397E-06   -.52434E-03
  17  Prefactor     58.515        52.150       -.52867E-05    .52860E-05
  18  Normalizat    .93636        .23865       -.61085E-06    .68470E-04
  19  Prefactor     1.1680        .13766        .69255E-06    .70427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.5531
  Prefactor  = 39.2977
  norm       = 11.8249
  norm       = 4.38875
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 18.0796
  Prefactor  = 27.6838
  norm       = 0.200942
  norm       = 3.43541
  norm       = 8.27743
  norm       = 0.486592
  norm       = 1.58365
  Prefactor  = 58.5148
  Normalizat = 0.936355
  Prefactor  = 1.16803
 **********
 **   18 **HESSE 
 **********

 FCN=   6735.803     FROM HESSE     STATUS=OK           276 CALLS     2214 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.553        10.823        .11787E-03   -1.5028    
   3  Prefactor     39.298        25.175        .63937E-04   -1.4453    
   4  norm          11.825        12.651        .11650E-03   -1.5020    
   5  norm          4.3887        9.6749        .19225E-03   -1.5289    
   6  Prefactor     .10000E-03    9.0242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.8275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    62.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    54.153        .20858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.080        19.875        .94072E-04   -1.4857    
  11  Prefactor     27.684        28.391        .76151E-04   -1.4655    
  12  norm          .20094        .16600        .30288E-03   -1.5618    
  13  norm          3.4354        2.9807        .12339E-03   -1.5337    
  14  norm          8.2774        9.4882        .13935E-03   -1.5132    
  15  norm          .48659        8.3538        .30310E-02   -1.5568    
  16  norm          1.5836        3.1049        .19676E-03   -1.5456    
  17  Prefactor     58.515        52.031        .52444E-04   -1.4177    
  18  Normalizat    .93636        .27347        .36123E-03   -.95194    
  19  Prefactor     1.1680        .15888        .19169E-03   -.87321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43967e-10
Minuit parameter uncertainties:
  1  3.95352e-06
  2  10.8246
  3  25.1815
  4  12.6535
  5  9.67833
  6  3.19278e-06
  7  1.29169e-06
  8  4.71193e-05
  9  0.00153707
  10  19.8824
  11  28.4048
  12  0.165999
  13  2.98083
  14  9.4899
  15  4.03256
  16  3.10517
  17  52.0713
  18  0.273881
  19  0.158948
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  4.712e-05  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.168e+00  1.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  9.364e-01  2.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.504 2.327
Photon Flux Upper Limit: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639835/likelihoodResults_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.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) = 6735.80343051
delta logL = -7.63062726037e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6735.80335403
delta logL = 1.68695805769e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6735.803     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      241 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    22.027        .90712E-02** at limit **
   2  Index         2.6027        8.5662        .50000       -.29105E-05
   3  Normalizat    .93635        .29846E-02    .81601E-01    .62499E-04
   4  Prefactor     1.1680        .17556E-02    .35434E-01    .57559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.60272
  Normalizat = 0.936355
  Prefactor  = 1.16803
 **********
 **   18 **HESSE 
 **********

 FCN=   6735.803     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      272 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    295.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6027        8.3420        .50000       -.50003    
   3  Normalizat    .93635        .10934E-01    .36123E-03   -.95194    
   4  Prefactor     1.1680        .64455E-02    .19169E-03   -.87321    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.85343e-08
Minuit parameter uncertainties:
  1  0.00358495
  2  264.236
  3  0.0109341
  4  0.00644554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639835': 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) = 6735.80335399
delta logL = 2.12873601413e-07

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  3.585e-03  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.603e+00  2.642e+02  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.168e+00  6.446e-03  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  9.364e-01  1.093e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.504 2.327

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/639835/cmap_HighResolution_358560001_358819201_4FGL_J1438.0+0219_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-10 01:53:16.680697', job_id='639835', GAL2='1.17', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631263996.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='460' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:53:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 639835: <4FGL_J1438.0+0219_daily_bin460> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin460> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 01:42:24 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:42:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 01:42:26 2021
Terminated at Fri Sep 10 01:53:17 2021
Results reported at Fri Sep 10 01:53:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin460 219.504 2.3272 358560001 358819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0+0219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            653 sec.

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

