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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin452
RA = 219.504, Dec = 2.3272
tmin = 356486401, tmax = 356745601
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='639823', job_status='RUN', time_executed='2021-09-10 01:45:53.512689', time_epoch_executed='1631263553.51' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/639823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/639823/ft1_4FGL_J1438.0+0219_daily_bin452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/639823/ft2_4FGL_J1438.0+0219_daily_bin452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/639823/ft1_4FGL_J1438.0+0219_daily_bin452.fits outfile=/scratch/kocevski/639823/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin452.fits ra=219.504 dec=2.3272 rad=12.0 tmin=356486401.0 tmax=356745601.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 7.02
user 3.23
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/639823/ft1_filtered_4FGL_J1438.0+0219_daily_bin452.fits evtable="EVENTS" scfile=/scratch/kocevski/639823/ft2_4FGL_J1438.0+0219_daily_bin452.fits sctable="SC_DATA" expcube=/scratch/kocevski/639823/ltcube_356486401_356745601_4FGL_J1438.0+0219_daily_bin452.fits outfile=/scratch/kocevski/639823/expmap_356486401_356745601_4FGL_J1438.0+0219_daily_bin452.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/639823/ltcube_356486401_356745601_4FGL_J1438.0+0219_daily_bin452.fits
.....................!
real 190.75
user 185.06
sys 5.07

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/639823/ft1_filtered_4FGL_J1438.0+0219_daily_bin452.fits scfile=/scratch/kocevski/639823/ft2_4FGL_J1438.0+0219_daily_bin452.fits outfile=/scratch/kocevski/639823/cmap_356486401_356745601_4FGL_J1438.0+0219_daily_bin452.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/639823/ft1_filtered_4FGL_J1438.0+0219_daily_bin452.fits scfile=/scratch/kocevski/639823/ft2_4FGL_J1438.0+0219_daily_bin452.fits outfile=/scratch/kocevski/639823/cmap_HighResolution_356486401_356745601_4FGL_J1438.0+0219_daily_bin452.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.303       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.815       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1626       1.0000         .10000E-03   10000.    
     5 'norm      '    18.063       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    22.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.518       1.0000         .10000E-03   10000.    
    10 'norm      '    .10879E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.5677       1.0000         .10000E-03   10000.    
    12 'norm      '    .13263       1.0000         .10000E-03   10000.    
    13 'norm      '    .63410       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1827       1.0000         .10000E-03   10000.    
    16 'norm      '    .17466E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99495       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96329       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=   7509.854     FROM MIGRAD    STATUS=CONVERGED    688 CALLS     2244 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.303        18.907        .96285E-04   -.13106E-04
   2  Prefactor     19.818        14.626        .89977E-04   -.81623E-04
   3  Prefactor     .10000E-03    43.105        .18142E-02** at limit **
   4  norm          4.1623        7.9030        .19755E-03    .32227E-05
   5  norm          18.063        10.524        .94237E-04    .30160E-05
   6  Prefactor     .10000E-03    10.434        .18142E-02** at limit **
   7  norm          22.372        20.581        .84682E-04    .60413E-05
   8  Prefactor     .10000E-03    20.183        .18142E-02** at limit **
   9  Prefactor     46.522        30.807        .58788E-04    .79636E-04
  10  norm          .10000E-03    16.545        .18142E-02** at limit **
  11  Prefactor     8.5683        18.603        .13695E-03    .35945E-04
  12  norm          .13262        .11286        .27823E-03    .12803E-02
  13  norm          .63391        1.4451        .15066E-03   -.16314E-03
  14  norm          .10000E-03    1.7818        .11286E-02** at limit **
  15  norm          5.1823        4.2929        .78983E-03    .10554E-03
  16  norm          .11112E-01    4.2387        .39058E-01    .25529E-03
  17  Prefactor     .10000E-03    72.951        .18142E-02** at limit **
  18  Normalizat    .99482        .23320        .31635E-03    .14184E-03
  19  Prefactor     .96341        .13350        .18381E-03    .13060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3032
  Prefactor  = 19.8181
  Prefactor  = 0.0001
  norm       = 4.16226
  norm       = 18.063
  Prefactor  = 0.0001
  norm       = 22.3717
  Prefactor  = 0.0001
  Prefactor  = 46.5221
  norm       = 0.0001
  Prefactor  = 8.56831
  norm       = 0.13262
  norm       = 0.633912
  norm       = 0.0001
  norm       = 5.18233
  norm       = 0.0111122
  Prefactor  = 0.0001
  Normalizat = 0.994816
  Prefactor  = 0.963406
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.854     FROM HESSE     STATUS=OK           262 CALLS     2506 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.303        18.909        .38514E-05   -1.4876    
   2  Prefactor     19.818        14.625        .35991E-05   -1.4817    
   3  Prefactor     .10000E-03    43.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1623        7.9029        .79020E-05   -1.5300    
   5  norm          18.063        10.524        .37695E-05   -1.4858    
   6  Prefactor     .10000E-03    10.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          22.372        20.580        .33873E-05   -1.4762    
   8  Prefactor     .10000E-03    20.183        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.522        30.805        .11758E-04   -1.4343    
  10  norm          .10000E-03    16.546        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.5683        18.600        .54780E-05   -1.5122    
  12  norm          .13262        .11284        .11129E-04   -1.5635    
  13  norm          .63391        1.4445        .60264E-05   -1.5549    
  14  norm          .10000E-03    1.7819        .22572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1823        4.2926        .31593E-04   -1.5253    
  16  norm          .11112E-01    3.3437        .45736E-01   -1.5687    
  17  Prefactor     .10000E-03    72.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .99482        .23338        .12654E-04   -.93204    
  19  Prefactor     .96341        .13354        .36762E-04   -.93959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52047e-10
Minuit parameter uncertainties:
  1  18.9151
  2  14.6274
  3  6.8929e-05
  4  7.90488
  5  10.5254
  6  2.30019e-06
  7  20.586
  8  1.15662e-05
  9  30.8154
  10  9.11752e-05
  11  18.6128
  12  0.112837
  13  1.4446
  14  3.65626e-08
  15  4.29288
  16  0.383799
  17  0.000214129
  18  0.233618
  19  0.13359
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.634e-01  1.336e-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.948e-01  2.336e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/639823/likelihoodResults_356486401_356745601_4FGL_J1438.0+0219_daily_bin452.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) = 7509.85421667
delta logL = -0.000236055583628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7509.85398075
delta logL = -1.39502844831e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2105       1.0000          .0000       10.000    
     3 'Normalizat'    .99472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96344       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=   7509.854     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10137E-03    160.58        .18142E-02** at limit **
   2  Index         2.1555        6.7725        .50000        .82218E-05
   3  Normalizat    .99481        .13653E-01    .31635E-03    .28390E-05
   4  Prefactor     .96341        .78698E-02    .18381E-03    .49480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101368
  Index      = 2.15552
  Normalizat = 0.994815
  Prefactor  = 0.963406
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.854     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10137E-03    686.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1555        5.5512        .50000       -.60516    
   3  Normalizat    .99481        .29283E-01    .12654E-04   -.93204    
   4  Prefactor     .96341        .16880E-01    .73524E-05   -.93959    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.88867e-09
Minuit parameter uncertainties:
  1  0.0620182
  2  748.24
  3  0.0292838
  4  0.0168798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/639823': 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) = 7509.85398048
delta logL = 1.37750248541e-07

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.014e-04  6.202e-02  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.156e+00  7.482e+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:  9.634e-01  1.688e-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:  9.948e-01  2.928e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.21e-03', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2021-09-10 01:56:13.404062', job_id='639823', GAL2='0.96', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631264173.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='452' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 01:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 639823: <4FGL_J1438.0+0219_daily_bin452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin452 219.504 2.3272 356486401 356745601 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 :                                   603.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            832 sec.

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

