/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 10 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 = 7424
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.0+0219_daily_bin306
RA = 219.504, Dec = 2.3272
tmin = 318643201, tmax = 318902401
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='639610', job_status='RUN', time_executed='2021-09-10 01:42:52.348441', time_epoch_executed='1631263372.35' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639610/ft1_4FGL_J1438.0+0219_daily_bin306.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639610/ft2_4FGL_J1438.0+0219_daily_bin306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639610/ft1_4FGL_J1438.0+0219_daily_bin306.fits outfile=/scratch/kocevski/639610/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin306.fits ra=219.504 dec=2.3272 rad=12.0 tmin=318643201.0 tmax=318902401.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.46
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/639610/ft1_filtered_4FGL_J1438.0+0219_daily_bin306.fits" evtable="EVENTS" scfile=/scratch/kocevski/639610/ft2_4FGL_J1438.0+0219_daily_bin306.fits sctable="SC_DATA" outfile=/scratch/kocevski/639610/ltcube_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.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/639610/ft2_4FGL_J1438.0+0219_daily_bin306.fits
.....................!
real 12.32
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639610/ft1_filtered_4FGL_J1438.0+0219_daily_bin306.fits evtable="EVENTS" scfile=/scratch/kocevski/639610/ft2_4FGL_J1438.0+0219_daily_bin306.fits sctable="SC_DATA" expcube=/scratch/kocevski/639610/ltcube_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.fits outfile=/scratch/kocevski/639610/expmap_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.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/639610/ltcube_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.fits
.....................!
real 194.48
user 187.65
sys 5.56

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/639610/ft1_filtered_4FGL_J1438.0+0219_daily_bin306.fits scfile=/scratch/kocevski/639610/ft2_4FGL_J1438.0+0219_daily_bin306.fits outfile=/scratch/kocevski/639610/cmap_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639610/ft1_filtered_4FGL_J1438.0+0219_daily_bin306.fits scfile=/scratch/kocevski/639610/ft2_4FGL_J1438.0+0219_daily_bin306.fits outfile=/scratch/kocevski/639610/cmap_HighResolution_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2253       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.398       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.491       1.0000         .10000E-03   10000.    
    10 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.7690       1.0000         .10000E-03   10000.    
    12 'norm      '    .40412       1.0000         .10000E-03   10000.    
    13 'norm      '    .54081E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .24679       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6657       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0192       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=   6040.841     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1691 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.157       -.32978E-05** at limit **
   2  Prefactor     1.2229        19.293       -.36335E-05   -.38399E-03
   3  Prefactor     .10000E-03    14.937       -.74070E-05** at limit **
   4  norm          16.397        14.586       -.42079E-06    .72694E-05
   5  norm          .10000E-03    13.250        .56380E-05** at limit **
   6  Prefactor     .10000E-03    5.9084        .77613E-07** at limit **
   7  norm          .10000E-03    13.656        .13670E-05** at limit **
   8  Prefactor     .10000E-03    30.847        .19787E-04** at limit **
   9  Prefactor     33.490        28.269       -.86886E-06    .21836E-04
  10  norm          .10000E-03    9.7083       -.58850E-06** at limit **
  11  Prefactor     8.7679        19.918       -.16722E-05   -.50492E-05
  12  norm          .40411        .20805       -.71242E-08   -.24260E-03
  13  norm          .10173E-03    1.1875       -.74165E-06** at limit **
  14  norm          .10000E-03    3.0076       -.15215E-08** at limit **
  15  norm          .23314        2.7503       -.18797E-06   -.39548E-03
  16  norm          2.8176        3.3034        .49089E-07    .16751E-03
  17  Prefactor     4.6632        31.176       -.52529E-05   -.96717E-05
  18  Normalizat    1.1305        .21995        .83384E-06    .19294E-03
  19  Prefactor     1.0194        .12766        .17259E-06    .33361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.22289
  Prefactor  = 0.0001
  norm       = 16.3973
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.49
  norm       = 0.0001
  Prefactor  = 8.76788
  norm       = 0.40411
  norm       = 0.000101728
  norm       = 0.0001
  norm       = 0.233138
  norm       = 2.8176
  Prefactor  = 4.66318
  Normalizat = 1.13045
  Prefactor  = 1.01936
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.841     FROM HESSE     STATUS=OK           276 CALLS     1967 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2229        20.941        .40689E-03   -1.5487    
   3  Prefactor     .10000E-03    14.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.397        14.594        .98905E-04   -1.4898    
   5  norm          .10000E-03    13.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.490        28.272        .69242E-04   -1.4550    
  10  norm          .10000E-03    9.7236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7679        19.928        .13536E-03   -1.5116    
  12  norm          .40411        .20501        .24348E-04   -1.5581    
  13  norm          .10173E-03    3.1057        .28518E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0124        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .23314        15.292        .24969E-02   -1.5611    
  16  norm          2.8176        3.3013        .14772E-03   -1.5372    
  17  Prefactor     4.6632        31.270        .18631E-03   -1.5276    
  18  Normalizat    1.1305        .25601        .31134E-03   -.88780    
  19  Prefactor     1.0194        .14997        .19045E-03   -.92087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6384e-09
Minuit parameter uncertainties:
  1  1.23586e-05
  2  10.1248
  3  1.56504e-05
  4  14.5969
  5  2.6615e-05
  6  7.84427e-07
  7  3.67166e-06
  8  8.5004e-06
  9  28.2834
  10  1.11395e-05
  11  19.9429
  12  0.205011
  13  0.00463289
  14  9.19984e-08
  15  3.77648
  16  3.30152
  17  24.1691
  18  0.256291
  19  0.150029
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  8.500e-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.019e+00  1.500e-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.130e+00  2.563e-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.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639610/likelihoodResults_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.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) = 6040.84150086
delta logL = -0.000158975091836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6040.84134191
delta logL = -2.70674718195e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2717       1.0000          .0000       10.000    
     3 'Normalizat'    1.1304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0194       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=   6040.841     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7458.7        .90712E-02** at limit **
   2  Index         2.2618        5.3712        .50000        .28080E-05
   3  Normalizat    1.1305        .13043        .70363E-01    .15877E-04
   4  Prefactor     1.0194        .76506E-01    .42204E-01    .76120E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26182
  Normalizat = 1.13045
  Prefactor  = 1.01936
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.841     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7584.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2618        5.6040        .50000       -.57954    
   3  Normalizat    1.1305        .15298        .31134E-03   -.88780    
   4  Prefactor     1.0194        .89981E-01    .19045E-03   -.92087    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.00283e-09
Minuit parameter uncertainties:
  1  0.000187091
  2  61.9899
  3  0.153037
  4  0.0899942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639610': 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) = 6040.84134191
delta logL = -1.83472366189e-08

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  1.871e-04  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.262e+00  6.199e+01  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.019e+00  8.999e-02  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.130e+00  1.530e-01  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/639610/cmap_HighResolution_318643201_318902401_4FGL_J1438.0+0219_daily_bin306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-09-10 01:51:48.417315', job_id='639610', GAL2='1.02', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631263908.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='306' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:51:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 639610: <4FGL_J1438.0+0219_daily_bin306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin306 219.504 2.3272 318643201 318902401 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 :                                   522.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            582 sec.

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

