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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin540
RA = 219.504, Dec = 2.3272
tmin = 379296001, tmax = 379555201
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_bin540
RA = 219.504, Dec = 2.3272
tmin = 379296001, tmax = 379555201
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='640048', job_status='RUN', time_executed='2021-09-10 01:46:24.935620', time_epoch_executed='1631263584.94' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640048/ft1_4FGL_J1438.0+0219_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640048/ft2_4FGL_J1438.0+0219_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640048/ft1_4FGL_J1438.0+0219_daily_bin540.fits outfile=/scratch/kocevski/640048/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin540.fits ra=219.504 dec=2.3272 rad=12.0 tmin=379296001.0 tmax=379555201.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 4.68
user 4.38
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640048/ft1_filtered_4FGL_J1438.0+0219_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/640048/ft2_4FGL_J1438.0+0219_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/640048/ltcube_379296001_379555201_4FGL_J1438.0+0219_daily_bin540.fits outfile=/scratch/kocevski/640048/expmap_379296001_379555201_4FGL_J1438.0+0219_daily_bin540.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/640048/ltcube_379296001_379555201_4FGL_J1438.0+0219_daily_bin540.fits
.....................!
real 191.32
user 186.48
sys 4.45

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/640048/ft1_filtered_4FGL_J1438.0+0219_daily_bin540.fits scfile=/scratch/kocevski/640048/ft2_4FGL_J1438.0+0219_daily_bin540.fits outfile=/scratch/kocevski/640048/cmap_379296001_379555201_4FGL_J1438.0+0219_daily_bin540.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640048/ft1_filtered_4FGL_J1438.0+0219_daily_bin540.fits scfile=/scratch/kocevski/640048/ft2_4FGL_J1438.0+0219_daily_bin540.fits outfile=/scratch/kocevski/640048/cmap_HighResolution_379296001_379555201_4FGL_J1438.0+0219_daily_bin540.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9734       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .70426E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43116E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    29.820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.458       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.4455       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2150       1.0000         .10000E-03   10000.    
    12 'norm      '    .87424       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2061       1.0000         .10000E-03   10000.    
    14 'norm      '    3.5909       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1497       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3958       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94033       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .98059       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1158       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=   8381.482     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1945 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9729        22.685        .18978E-06    .24573E-04
   2  Prefactor     .10004E-03    8.8077       -.49529E-06** at limit **
   3  Prefactor     .10018E-03    15.527       -.46630E-06** at limit **
   4  norm          .10000E-03    3.7397       -.20486E-07** at limit **
   5  norm          .10000E-03    3.9053       -.36072E-08** at limit **
   6  Prefactor     .10000E-03    51.551        .12525E-05** at limit **
   7  norm          29.821        19.556        .72049E-07   -.18380E-05
   8  Prefactor     14.444        31.969       -.10867E-05   -.80109E-04
   9  Prefactor     .10000E-03    11.846        .31861E-06** at limit **
  10  norm          4.4423        9.4802        .18181E-05    .31048E-03
  11  Prefactor     7.2143        16.712        .34881E-06    .45734E-05
  12  norm          .87424        .21851        .43429E-08   -.16316E-03
  13  norm          1.2058        2.0680        .38511E-06   -.11740E-03
  14  norm          3.5908        3.8663        .11939E-08    .62726E-04
  15  norm          1.1490        4.9256        .25373E-05   -.25593E-03
  16  norm          3.3958        2.9639        .78809E-07   -.92188E-04
  17  Prefactor     .94362        15.259       -.19374E-06    .97598E-05
  18  Normalizat    .98053        .19975       -.48066E-06   -.38746E-05
  19  Prefactor     1.1158        .11482       -.31621E-06   -.18242E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.97291
  Prefactor  = 0.000100036
  Prefactor  = 0.000100183
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 29.821
  Prefactor  = 14.4443
  Prefactor  = 0.0001
  norm       = 4.44229
  Prefactor  = 7.21433
  norm       = 0.874243
  norm       = 1.20583
  norm       = 3.59081
  norm       = 1.14897
  norm       = 3.39583
  Prefactor  = 0.943618
  Normalizat = 0.980529
  Prefactor  = 1.11583
 **********
 **   18 **HESSE 
 **********

 FCN=   8381.482     FROM HESSE     STATUS=OK           280 CALLS     2225 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9729        22.376        .13380E-03   -1.5109    
   2  Prefactor     .10004E-03    42.114        .49902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10018E-03    128.11        .67056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.7493        .17291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.9195        .17668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.821        19.554        .73369E-04   -1.4615    
   8  Prefactor     14.444        32.318        .10534E-03   -1.4948    
   9  Prefactor     .10000E-03    11.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.4423        9.9749        .19099E-03   -1.5286    
  11  Prefactor     7.2143        16.703        .14933E-03   -1.5171    
  12  norm          .87424        .21837        .20543E-04   -1.5521    
  13  norm          1.2058        2.0390        .16203E-03   -1.5488    
  14  norm          3.5908        3.8705        .18223E-03   -1.5329    
  15  norm          1.1490        5.2785        .39701E-03   -1.5494    
  16  norm          3.3958        2.9608        .70925E-03   -1.5339    
  17  Prefactor     .94362        148.78        .69098E-02   -1.5514    
  18  Normalizat    .98053        .22658        .33843E-03   -.93686    
  19  Prefactor     1.1158        .13309        .18720E-03   -.88962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65088e-09
Minuit parameter uncertainties:
 Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.444e+01  3.236e+01  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.116e+00  1.331e-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.805e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/639953/likelihoodResults_379296001_379555201_4FGL_J1438.0+0219_daily_bin540.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8381.41616785
delta logL = 0.0661812905637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8381.38357314
delta logL = 0.0987760052431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.487       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7126       1.0000          .0000       10.000    
     3 'Normalizat'    .98568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1137       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=   8381.384     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      262 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.484        47.519        .79348E-04    .99777E-04
   2  Index         1.7129        1.0048        .99892E-02    .78763E-04
   3  Normalizat    .98563        .22146        .33762E-03   -.25167E-03
   4  Prefactor     1.1137        .13065        .18734E-03   -.46220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4837
  Index      = 1.71291
  Normalizat = 0.98563
  Prefactor  = 1.11366
 **********
 **   18 **HESSE 
 **********

 FCN=   8381.384     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.484        47.218        .15870E-04   -1.4698    
   2  Index         1.7129        .99878        .39957E-03   -.71739    
   3  Normalizat    .98563        .22162        .13505E-04   -.93513    
   4  Prefactor     1.1137        .13075        .37468E-04   -.89031    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93618e-10
Minuit parameter uncertainties:
  1  47.2875
  2  1.01087
  3  0.22183
  4  0.130787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639953': 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) = 8381.38357295
delta logL = 0.0987761944125

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  2.548e+01  4.729e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  1.713e+00  1.011e+00  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.114e+00  1.308e-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.856e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 219.504 2.327

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/639953/cmap_HighResolution_379296001_379555201_4FGL_J1438.0+0219_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.09e-08', time_completed='2021-09-10 01:57:04.836305', job_id='639953', GAL2='1.11', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1631264224.84', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='9.88e-02', ts2='0.48', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='540' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:57:04 PDT 2021

='SUCCESS', return_code='0', GAL='1.12', dlogl='9.88e-02', ts2='0.48', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='540' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 640048: <4FGL_J1438.0+0219_daily_bin540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin540 219.504 2.3272 379296001 379555201 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 :                                   631.25 sec.
    Max Memory :                                 618 MB
    Average Memory :                             243.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            868 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 639953: <4FGL_J1438.0+0219_daily_bin540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin540 219.504 2.3272 379296001 379555201 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

