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


Performing analysis on: 4FGL_J1438.0+0219_daily_bin896
RA = 219.504, Dec = 2.3272
tmin = 471571201, tmax = 471830401
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='799051', job_status='RUN', time_executed='2021-09-10 10:23:50.680314', time_epoch_executed='1631294630.68' WHERE source_name='4FGL J1438.0+0219' and cadence='daily' and bin_id='896'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799051

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799051/ft1_4FGL_J1438.0+0219_daily_bin896.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799051/ft2_4FGL_J1438.0+0219_daily_bin896.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799051/ft1_4FGL_J1438.0+0219_daily_bin896.fits outfile=/scratch/kocevski/799051/ft1_filteredMKT_4FGL_J1438.0+0219_daily_bin896.fits ra=219.504 dec=2.3272 rad=12.0 tmin=471571201.0 tmax=471830401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.00
user 4.74
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799051/ft1_filtered_4FGL_J1438.0+0219_daily_bin896.fits evtable="EVENTS" scfile=/scratch/kocevski/799051/ft2_4FGL_J1438.0+0219_daily_bin896.fits sctable="SC_DATA" expcube=/scratch/kocevski/799051/ltcube_471571201_471830401_4FGL_J1438.0+0219_daily_bin896.fits outfile=/scratch/kocevski/799051/expmap_471571201_471830401_4FGL_J1438.0+0219_daily_bin896.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/799051/ltcube_471571201_471830401_4FGL_J1438.0+0219_daily_bin896.fits
.....................!
real 191.47
user 186.76
sys 4.34

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/799051/ft1_filtered_4FGL_J1438.0+0219_daily_bin896.fits scfile=/scratch/kocevski/799051/ft2_4FGL_J1438.0+0219_daily_bin896.fits outfile=/scratch/kocevski/799051/cmap_471571201_471830401_4FGL_J1438.0+0219_daily_bin896.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799051/ft1_filtered_4FGL_J1438.0+0219_daily_bin896.fits scfile=/scratch/kocevski/799051/ft2_4FGL_J1438.0+0219_daily_bin896.fits outfile=/scratch/kocevski/799051/cmap_HighResolution_471571201_471830401_4FGL_J1438.0+0219_daily_bin896.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2134       1.0000         .10000E-03   10000.    
     5 'norm      '    8.7951       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    30.466       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25350       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.095       1.0000         .10000E-03   10000.    
    10 'norm      '    .35543E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.3672       1.0000         .10000E-03   10000.    
    13 'norm      '    2.2680       1.0000         .10000E-03   10000.    
    14 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6613       1.0000         .10000E-03   10000.    
    16 'norm      '    1.3356       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .78033       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1805       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8493.704     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     1679 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.111         .0000    ** at limit **
   2  Prefactor     .10000E-03    4.0346         .0000    ** at limit **
   3  Prefactor     .10000E-03    5.5086         .0000    ** at limit **
   4  norm          3.2044        9.1984         .0000        .49945E-02
   5  norm          8.7946        6.8213         .0000       -.62279E-04
   6  Prefactor     .10000E-03    15.914         .0000    ** at limit **
   7  norm          30.459        21.408         .0000        .47098E-04
   8  Prefactor     .10250E-03    79.336         .0000    ** at limit **
   9  Prefactor     15.114        28.236         .0000        .27243E-04
  10  norm          .10000E-03    42.161         .0000    ** at limit **
  11  Prefactor     .10000E-03    7.8288         .0000    ** at limit **
  12  norm          1.3671        .27235         .0000       -.10354E-03
  13  norm          2.2672        2.5432         .0000        .88771E-03
  14  norm          .10000E-03    2.0389         .0000    ** at limit **
  15  norm          4.6593        3.7681         .0000        .26754E-03
  16  norm          1.3356        1.7860         .0000        .74791E-04
  17  Prefactor     .10000E-03    30.066         .0000    ** at limit **
  18  Normalizat    .78045        .19706         .0000       -.16218E-03
  19  Prefactor     1.1805        .11416         .0000       -.33356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.20439
  norm       = 8.79462
  Prefactor  = 0.0001
  norm       = 30.4592
  Prefactor  = 0.000102503
  Prefactor  = 15.1142
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36711
  norm       = 2.26721
  norm       = 0.0001
  norm       = 4.6593
  norm       = 1.33557
  Prefactor  = 0.0001
  Normalizat = 0.780448
  Prefactor  = 1.18054
 **********
 **   18 **HESSE 
 **********

 FCN=   8493.704     FROM HESSE     STATUS=OK           272 CALLS     1951 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0457        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.5134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2044        9.2001        .11300E-02   -1.5350    
   5  norm          8.7946        6.8218        .13516E-03   -1.5115    
   6  Prefactor     .10000E-03    15.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          30.459        21.410        .72590E-04   -1.4604    
   8  Prefactor     .10250E-03    61.479        .19486       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.114        28.079        .10309E-03   -1.4930    
  10  norm          .10000E-03    42.749        .42633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.8384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3671        .27239        .20704E-04   -1.5474    
  13  norm          2.2672        2.5245        .14492E-03   -1.5407    
  14  norm          .10000E-03    2.0405        .12852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6593        3.7674        .15580E-03   -1.5276    
  16  norm          1.3356        1.7615        .13811E-03   -1.5477    
  17  Prefactor     .10000E-03    30.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .78045        .22172        .36910E-03   -1.0080    
  19  Prefactor     1.1805        .12940        .18118E-03   -.86932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72739e-11
Minuit parameter uncertainties:
  1  2.23537e-05
  2  3.45538e-06
  3  2.05261e-07
  4  9.20416
  5  6.82235
  6  3.64862e-05
  7  21.4153
  8  0.0248371
  9  28.103
  10  0.00021608
  11  5.69681e-06
  12  0.272388
  13  2.52464
  14  7.61464e-07
  15  3.76763
  16  1.76158
  17  8.55322e-05
  18  0.221974
  19  0.129437
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.025e-04  2.484e-02  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.181e+00  1.294e-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.804e-01  2.220e-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: 9.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799051/likelihoodResults_471571201_471830401_4FGL_J1438.0+0219_daily_bin896.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) = 8493.70428411
delta logL = -3.91813955503e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8493.70428411
delta logL = -3.91162757296e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2342       1.0000          .0000       10.000    
     3 'Normalizat'    .78045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1805       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=   8493.216     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      308 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2267        27.080        .90712E-02    .11976E-02
   2  Index         4.0048        2.6580        .92235E-01    .27151E-03
   3  Normalizat    .71349        .49272E-01    .86892E-01    .14458E-04
   4  Prefactor     1.2011        .29044E-01    .35108E-01   -.71289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22673
  Index      = 4.00477
  Normalizat = 0.713488
  Prefactor  = 1.20114
 **********
 **   18 **HESSE 
 **********

 FCN=   8493.216     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      341 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2267        66.300        .10441E-03   -1.5486    
   2  Index         4.0048        6.9394        .57466E-02   -.20038    
   3  Normalizat    .71349        .17644        .38486E-03   -1.0336    
   4  Prefactor     1.2011        .10305        .17981E-03   -.86296    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6176e-06
Minuit parameter uncertainties:
  1  18.0573
  2  5.61246
  3  0.17658
  4  0.103065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799051': 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) = 8493.21565138
delta logL = 0.488632341394

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.227e+00  1.806e+01  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  4.005e+00  5.612e+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.201e+00  1.031e-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.135e-01  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 219.504 2.327
Photon Index (Free Index): 4.00 +/- 5.61
Photon Flux (Free Index): 5.45e-08 +/- 5.65e-08
Energy Flux (Free Index): 8.16e-06 +/- 1.15e-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/799051/cmap_HighResolution_471571201_471830401_4FGL_J1438.0+0219_daily_bin896.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', comment='SUCCESS', energy_flux2='8.16e-06', dlogl='4.89e-01', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-10 10:34:07.590359', photon_index_error2='5.61', photon_index2='4.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='9.34e-08', energy_flux_error2='1.15e-05', EG='0.78', time_epoch_completed='1631295247.59', return_code='0', job_id='799051', GAL2='1.20', EG2='0.71', return_code2='102', photon_flux_error2='5.65e-08', ts2='1.06', photon_index='2.23' WHERE bin_id='896' AND source_name='4FGL J1438.0+0219' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 10:34:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 799051: <4FGL_J1438.0+0219_daily_bin896> in cluster <slac> Done

Job <4FGL_J1438.0+0219_daily_bin896> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 10:21:05 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 10:21:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 10:21:06 2021
Terminated at Fri Sep 10 10:34:07 2021
Results reported at Fri Sep 10 10:34:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_daily_bin896 219.504 2.3272 471571201 471830401 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 :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            782 sec.

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

