/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 93 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 provieDone.


Performing analysis on: 4FGL_J1438.0+0219_daily_bin517
RA = 219.504, Dec = 2.3272
tmin = 373334401, tmax = 373593601
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 sourDone.


Performing analysis on: 4FGL_J1438.0+0219_daily_bin517
RA = 219.504, Dec = 2.3272
tmin = 373334401, tmax = 373593601
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='639920', job_status='RUN', time_executed='2021-09-10 01:48:21.433366', time_epoch_executed='1631263701.43' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639920/ft1_4FGL_J1438.0+0219_daily_bin517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639920/ft1_4FGL_J1438.0+0219_daily_bin517.fits outfile=/scratch/kocevski/639920/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin517.fits ra=219.504 dec=2.3272 rad=12.0 tmin=373334401.0 tmax=373593601.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.23
user 4.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.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/639920/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin517.fits evtable="EVENTS" outfile="/scratch/kocevski/639920/ft1_filtered_4FGL_J1438.0+0219_daily_bin517.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 2.05
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639920/ft1_filtered_4FGL_J1438.0+0219_daily_bin517.fits" evtable="EVENTS" scfile=/scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits sctable="SC_DATA" outfile=/scratch/kocevski/639920/ltcube_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.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/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits
.....................!
real 14.96
user 12.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639920/ft1_filtered_4FGL_J1438.0+0219_daily_bin517.fits evtable="EVENTS" scfile=/scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits sctable="SC_DATA" expcube=/scratch/kocevski/639920/ltcube_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.fits outfile=/scratch/kocevski/639920/expmap_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.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/639920/ltcube_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.fits
.....................!
real 196.54
user 187.23
sys 4.96

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/639920/ft1_filtered_4FGL_J1438.0+0219_daily_bin517.fits scfile=/scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits outfile=/scratch/kocevski/639920/cmap_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.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 1.07
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639920/ft1_filtered_4FGL_J1438.0+0219_daily_bin517.fits scfile=/scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits outfile=/scratch/kocevski/639920/cmap_HighResolution_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.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 1.09
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/639920/ft1_filtered_4FGL_J1438.0+0219_daily_bin517.fits', '/scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits', expMap='/scratch/kocevski/639920/expmap_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.fits', expCube='/scratch/kocevski/639920/ltcube_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/639920/Model_4FGL_J1438.0+0219_daily_bin517.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/639920/ft1_filtered_4FGL_J1438.0+0219_daily_bin517.fits
Spacecraft file(s): /scratch/kocevski/639920/ft2_4FGL_J1438.0+0219_daily_bin517.fits
Exposure map: /scratch/kocevski/639920/expmap_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.fits
Exposure cube: /scratch/kocevski/639920/ltcube_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/639920/Model_4FGL_J1438.0+0219_daily_bin517.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) = 6418.64938195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.670       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.620       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2488       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.300       1.0000         .10000E-03   10000.    
     7 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.5591       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.412       1.0000         .10000E-03   10000.    
    12 'norm      '    .34493       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.7787       1.0000         .10000E-03   10000.    
    16 'norm      '    6.3405       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10150E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1492       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0938       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=   6418.643     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1898 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.647        36.138       -.24249E-04    .20658E-04
   2  Prefactor     1.4521        54.319       -.47075E-05   -.33889E-04
   3  Prefactor     45.618        30.967       -.17712E-05    .70041E-04
   4  norm          3.2495        11.318       -.13354E-05   -.11613E-03
   5  norm          .10000E-03    6.4840       -.64498E-07** at limit **
   6  Prefactor     12.308        22.747       -.32814E-05    .10829E-04
   7  norm          .10000E-03    8.7376        .38970E-07** at limit **
   8  Prefactor     .10000E-03    35.040       -.22893E-05** at limit **
   9  Prefactor     .10000E-03    22.418        .14366E-05** at limit **
  10  norm          7.5763        15.923       -.14365E-04   -.42287E-04
  11  Prefactor     17.417        18.103       -.29946E-05    .25079E-04
  12  norm          .34497        .17708       -.31438E-07   -.30004E-03
  13  norm          .10000E-03    1.0538       -.13757E-06** at limit **
  14  norm          .10000E-03    4.5295       -.64584E-07** at limit **
  15  norm          4.7786        4.8507       -.21341E-05   -.88287E-04
  16  norm          6.3373        5.1337        .16609E-05   -.16607E-03
  17  Prefactor     .10000E-03    194.85       -.23417E-04** at limit **
  18  Normalizat    1.1488        .23522        .48247E-05    .30082E-04
  19  Prefactor     1.0939        .13608        .50375E-07    .35055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6475
  Prefactor  = 1.45209
  Prefactor  = 45.618
  norm       = 3.24946
  norm       = 0.0001
  Prefactor  = 12.3078
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 7.57631
  Prefactor  = 17.4165
  norm       = 0.344965
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.7786
  norm       = 6.3373
  Prefactor  = 0.000100001
  Normalizat = 1.14876
  Prefactor  = 1.09395
 **********
 **   18 **HESSE 
 **********

 FCN=   6418.643     FROM HESSE     STATUS=OK           268 CALLS     2166 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.647        35.106        .12266E-03   -1.5055    
   2  Prefactor     1.4521        51.853        .36097E-03   -1.5467    
   3  Prefactor     45.618        30.718        .59361E-04   -1.4356    
   4  norm          3.2495        11.315        .22471E-03   -1.5347    
   5  norm          .10000E-03    6.5011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.308        22.836        .11422E-03   -1.5006    
   7  norm          .10000E-03    8.7413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5763        15.979        .14586E-03   -1.5157    
  11  Prefactor     17.417        18.101        .95984E-04   -1.4873    
  12  norm          .34497        .17380        .23213E-04   -1.5591    
  13  norm          .10000E-03    1.0710        .80218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6737        .33301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.7786        4.8650        .17265E-03   -1.5271    
  16  norm          6.3373        5.1204        .15614E-03   -1.5204    
  17  Prefactor     .10000E-03    200.80        .41505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1488        .27335        .32333E-03   -.88201    
  19  Prefactor     1.0939        .15912        .19687E-03   -.89660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12243e-10
Minuit parameter uncertainties:
  1  35.1744
  2  17.3702
  3  30.729
  4  11.3226
  5  1.20221e-05
  6  22.8517
  7  6.81868e-06
  8  2.23512e-06
  9  0.00054295
  10  15.9875
  11  18.1067
  12  0.173801
  13  1.3113e-05
  14  5.56895e-06
  15  4.86543
  16  5.12075
  17  0.000692295
  18  0.273686
  19  0.159187
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  2.235e-06  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.094e+00  1.592e-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:  1.149e+00  2.737e-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: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639920/likelihoodResults_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.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) = 6418.64322636
delta logL = -0.000135784064696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6418.64309185
delta logL = -1.2658056221e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12230E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4301       1.0000          .0000       10.000    
     3 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0939       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6418.643     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10512E-03    9.0390        .18142E-01** at limit **
   2  Index         2.3314        6.0338        .50000        .17553E-04
   3  Normalizat    1.1488        .33176E-02    .32333E-03   -.33079E-03
   4  Prefactor     1.0939        .19889E-02    .19687E-03   -.55070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105122
  Index      = 2.33142
  Normalizat = 1.14877
  Prefactor  = 1.09394
 **********
 **   18 **HESSE 
 **********

 FCN=   6418.643     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10512E-03    70.782        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3314        6.1321        .50000       -.56299    
   3  Normalizat    1.1488        .92978E-02    .64665E-04   -.88201    
   4  Prefactor     1.0939        .55739E-02    .39374E-04   -.89660    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.85269e-10
Minuit parameter uncertainties:
  1  0.0381258
  2  164.359
  3  0.00929777
  4  0.00557389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639920': 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) = 6418.64309102
delta logL = -4.36126356362e-07

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.051e-04  3.813e-02  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.331e+00  1.644e+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.094e+00  5.574e-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:  1.149e+00  9.298e-03  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/639920/cmap_HighResolution_373334401_373593601_4FGL_J1438.0+0219_daily_bin517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-09-10 01:58:18.699911', job_id='639920', GAL2='1.09', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631264298.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-4.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='517' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:58:18 PDT 2021

 <slac> at Fri Sep 10 01:42:36 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:42:37 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:37 2021
Terminated at Fri Sep 10 01:53:08 2021
Results reported at Fri Sep 10 01:53:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin517 219.504 2.3272 373334401 373593601 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 :                                   554.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            632 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 639920: <4FGL_J1438.0+0219_daily_bin517> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin517> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 01:42:30 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 01:42:31 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:31 2021
Terminated at Fri Sep 10 01:58:21 2021
Results reported at Fri Sep 10 01:58:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin517 219.504 2.3272 373334401 373593601 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 :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             236.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

