aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 2 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 = 17068
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1438.0+0219_weekly_bin437
RA = 219.504, Dec = 2.3272
tmin = 503280001, tmax = 503884801
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='492404', job_status='RUN', time_executed='2021-07-22 01:53:07.522000', time_epoch_executed='1626943987.52' WHERE source_name='4FGL J1438.0+0219' and cadence='weekly' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492404

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492404/ft1_4FGL_J1438.0+0219_weekly_bin437.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492404/ft2_4FGL_J1438.0+0219_weekly_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492404/ft1_4FGL_J1438.0+0219_weekly_bin437.fits outfile=/scratch/kocevski/492404/ft1_filteredMKT_4FGL_J1438.0+0219_weekly_bin437.fits ra=219.504 dec=2.3272 rad=12.0 tmin=503280001.0 tmax=503884801.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 14.37
user 13.98
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492404/ft1_filtered_4FGL_J1438.0+0219_weekly_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/492404/ft2_4FGL_J1438.0+0219_weekly_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/492404/ltcube_503280001_503884801_4FGL_J1438.0+0219_weekly_bin437.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/492404/ft2_4FGL_J1438.0+0219_weekly_bin437.fits
.....................!
real 28.34
user 27.10
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492404/ft1_filtered_4FGL_J1438.0+0219_weekly_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/492404/ft2_4FGL_J1438.0+0219_weekly_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/492404/ltcube_503280001_503884801_4FGL_J1438.0+0219_weekly_bin437.fits outfile=/scratch/kocevski/492404/expmap_503280001_503884801_4FGL_J1438.0+0219_weekly_bin437.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/492404/ltcube_503280001_503884801_4FGL_J1438.0+0219_weekly_bin437.fits
.....................!
real 190.31
user 185.06
sys 4.74

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/492404/ft1_filtered_4FGL_J1438.0+0219_weekly_bin437.fits scfile=/scratch/kocevski/492404/ft2_4FGL_J1438.0+0219_weekly_bin437.fits outfile=/scratch/kocevski/492404/cmap_503280001_503884801_4FGL_J1438.0+0219_weekly_bin437.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.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492404/ft1_filtered_4FGL_J1438.0+0219_weekly_bin437.fits scfile=/scratch/kocevski/492404/ft2_4FGL_J1438.0+0219_weekly_bin437.fits outfile=/scratch/kocevski/492404/cmap_HighResolution_503280001_503884801_4FGL_J1438.0+0219_weekly_bin437.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.58
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14353E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2878       1.0000         .10000E-03   10000.    
     4 'norm      '    17.426       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8008       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3701       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    93.361       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .36901E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .27936E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8020       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8620       1.0000         .10000E-03   10000.    
    13 'norm      '    .47860       1.0000         .10000E-03   10000.    
    14 'norm      '    .10828       1.0000         .10000E-03   10000.    
    15 'norm      '    .52560       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7803       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.712       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .70404       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1794       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=   14017.01     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1944 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.524        .21691E-06** at limit **
   2  Prefactor     6.1114        9.2092        .16758E-06   -.11336E-04
   3  Prefactor     6.3163        19.544        .65323E-06   -.17050E-04
   4  norm          17.437        9.2753        .86476E-07   -.14787E-04
   5  norm          7.7886        5.7077        .13597E-06   -.11923E-04
   6  Prefactor     6.4233        15.019        .30456E-06    .20439E-04
   7  norm          .10000E-03    20.222        .16577E-07** at limit **
   8  Prefactor     93.224        50.504       -.33115E-06   -.19936E-03
   9  Prefactor     .10000E-03    12.285       -.37453E-06** at limit **
  10  norm          .10000E-03    4.7242       -.19567E-06** at limit **
  11  Prefactor     1.7985        49.364        .31452E-05   -.47287E-05
  12  norm          1.8619        .23993       -.17445E-07   -.85460E-03
  13  norm          .47101        1.2280        .37820E-06   -.42040E-03
  14  norm          .14055        2.0713       -.64659E-07    .98631E-04
  15  norm          .53817        2.2968        .36076E-05   -.76270E-04
  16  norm          1.7826        1.8661        .95759E-07   -.12772E-03
  17  Prefactor     45.855        25.364       -.12025E-06   -.90304E-04
  18  Normalizat    .70407        .16631       -.79829E-07   -.25325E-03
  19  Prefactor     1.1793        .91346E-01   -.74854E-06   -.35040E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.11142
  Prefactor  = 6.31632
  norm       = 17.4373
  norm       = 7.7886
  Prefactor  = 6.42331
  norm       = 0.0001
  Prefactor  = 93.2242
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.79847
  norm       = 1.86186
  norm       = 0.471011
  norm       = 0.140546
  norm       = 0.538168
  norm       = 1.78257
  Prefactor  = 45.8551
  Normalizat = 0.704075
  Prefactor  = 1.1793
 **********
 **   18 **HESSE 
 **********

 FCN=   14017.01     FROM HESSE     STATUS=OK           278 CALLS     2222 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1114        9.1632        .16226E-03   -1.5213    
   3  Prefactor     6.3163        19.488        .16008E-03   -1.5205    
   4  norm          17.437        9.2753        .95944E-04   -1.4873    
   5  norm          7.7886        5.7056        .14357E-03   -1.5150    
   6  Prefactor     6.4233        15.028        .15903E-03   -1.5201    
   7  norm          .10000E-03    20.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     93.224        50.602        .20796E-03   -1.3774    
   9  Prefactor     .10000E-03    12.332        .21300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7395        .21420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7985        49.580        .31138E-03   -1.5440    
  12  norm          1.8619        .23941        .19648E-04   -1.5435    
  13  norm          .47101        1.5875        .19296E-02   -1.5571    
  14  norm          .14055        12.647        .33132E-02   -1.5633    
  15  norm          .53817        2.2959        .34609E-03   -1.5561    
  16  norm          1.7826        1.8431        .15918E-03   -1.5441    
  17  Prefactor     45.855        25.348        .29651E-03   -1.4353    
  18  Normalizat    .70407        .18434        .39160E-03   -1.0373    
  19  Prefactor     1.1793        .10229        .18184E-03   -.86971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00774e-08
Minuit parameter uncertainties:
  1  2.69977e-06
  2  9.16529
  3  19.5075
  4  9.2761
  5  5.70605
  6  15.0372
  7  3.2765e-05
  8  50.625
  9  1.19429e-05
  10  4.18725e-06
  11  18.9027
  12  0.239411
  13  1.58762
  14  2.66604
  15  2.22308
  16  1.84313
  17  25.3537
  18  0.184499
  19  0.102305
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  9.322e+01  5.062e+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.179e+00  1.023e-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:  7.041e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.62
Ra Dec: 219.504 2.327
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.46e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.25e-05

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) = 14016.9950578
delta logL = 0.0108112755788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14016.984634
delta logL = 0.0212350183174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.433       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3273       1.0000          .0000       10.000    
     3 'Normalizat'    .69723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1813       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   14016.98     FROM MIGRAD    STATUS=FAILED       101 CALLS      287 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.446        69.752        .43717E-04   -.23613E-04
   2  Index         2.3274        .50152        .67324E-02    .11995E-02
   3  Normalizat    .69691        .17585        .39347E-03   -.13175E-03
   4  Prefactor     1.1815        .10136        .18169E-03   -.16006E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   14016.98     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      355 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.446        69.752        .34313E-03   -1.3867    
   2  Index         2.3274        .50152        .66327E-03   -.56394    
   3  Normalizat    .69691        .17585        .26816E-03   -1.0402    
   4  Prefactor     1.1815        .10136        .11533E-03   -.86903    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14016.98     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      387 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.446        64.223        .87434E-05   -.93618E-05
   2  Index         2.3274        .46104        .13465E-02    .48377E-04
   3  Normalizat    .69691        .17532        .15739E-04   -.13002E-04
   4  Prefactor     1.1815        .10127        .72677E-05   -.16269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.446
  Index      = 2.32742
  Normalizat = 0.69691
  Prefactor  = 1.1815
 **********
 **   18 **HESSE 
 **********

 FCN=   14016.98     FROM HESSE     STATUS=OK            25 CALLS      412 TOTAL
                     EDM=   .61E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.446        63.229        .17487E-05   -1.3867    
   2  Index         2.3274        .45400        .26929E-03   -.56393    
   3  Normalizat    .69691        .17513        .31478E-05   -1.0402    
   4  Prefactor     1.1815        .10120        .14535E-05   -.86903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12395e-13
Minuit parameter uncertainties:
  1  63.2793
  2  0.454876
  3  0.175269
  4  0.101214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492404': 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) = 14016.9846322
delta logL = 0.0212368469711

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  8.445e+01  6.328e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.327e+00  4.549e-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.181e+00  1.012e-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:  6.969e-01  1.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 219.504 2.327
Photon Index (Free Index): 2.33 +/- 0.45
Photon Flux (Free Index): 6.05e-08 +/- 4.26e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/492404/cmap_HighResolution_503280001_503884801_4FGL_J1438.0+0219_weekly_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.46e-08', energy_flux2='2.20e-05', photon_flux_error='2.96e-08', dlogl='2.12e-02', energy_flux='2.30e-05', photon_flux2='6.05e-08', job_status='DONE', time_completed='2021-07-22 02:07:29.977025', photon_index_error2='0.45', photon_index2='2.33', ts='7.62', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.70', time_epoch_completed='1626944849.98', return_code='0', job_id='492404', GAL2='1.18', EG2='0.70', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.26e-08', ts2='7.65', photon_index='2.23' WHERE bin_id='437' AND source_name='4FGL J1438.0+0219' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul 22 02:07:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0201>
Subject: Job 492404: <4FGL_J1438.0+0219_weekly_bin437> in cluster <slac> Done

Job <4FGL_J1438.0+0219_weekly_bin437> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Jul 22 01:51:00 2021
Job was executed on host(s) <bullet0201>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 22 01:52:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 22 01:52:53 2021
Terminated at Thu Jul 22 02:07:30 2021
Results reported at Thu Jul 22 02:07:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_weekly_bin437 219.504 2.3272 503280001 503884801 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 :                                   848.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            990 sec.

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

