/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 83 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 = 7401
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin19
RA = 219.74, Dec = 37.1752
tmin = 244252801, tmax = 244512001
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='665791', job_status='RUN', time_executed='2021-09-10 03:12:42.752795', time_epoch_executed='1631268762.75' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665791/ft1_4FGL_J1438.9+3710_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665791/ft1_4FGL_J1438.9+3710_daily_bin19.fits outfile=/scratch/kocevski/665791/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin19.fits ra=219.74 dec=37.1752 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.38
user 2.16
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.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/665791/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits" evtable="EVENTS" scfile=/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits sctable="SC_DATA" outfile=/scratch/kocevski/665791/ltcube_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.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/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits
.....................!
real 12.55
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/665791/ltcube_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.fits outfile=/scratch/kocevski/665791/expmap_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.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/665791/ltcube_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.fits
.....................!
real 190.94
user 185.76
sys 4.82

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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits scfile=/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits outfile=/scratch/kocevski/665791/cmap_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.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.74 yref=37.1752 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/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits scfile=/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits outfile=/scratch/kocevski/665791/cmap_HighResolution_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.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.74 yref=37.1752 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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/665791/Model_4FGL_J1438.9+3710_daily_bin19.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/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits.....................!
real 39.15
user 37.79
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits', '/scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits', expMap='/scratch/kocevski/665791/expmap_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.fits', expCube='/scratch/kocevski/665791/ltcube_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/665791/Model_4FGL_J1438.9+3710_daily_bin19.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/665791/ft1_filtered_4FGL_J1438.9+3710_daily_bin19.fits
Spacecraft file(s): /scratch/kocevski/665791/ft2_4FGL_J1438.9+3710_daily_bin19.fits
Exposure map: /scratch/kocevski/665791/expmap_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.fits
Exposure cube: /scratch/kocevski/665791/ltcube_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/665791/Model_4FGL_J1438.9+3710_daily_bin19.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) = 4453.85616395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3770       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.991       1.0000         .10000E-03   10000.    
     6 'norm      '    7.4291       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5507       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88551       1.0000         .10000E-03   10000.    
    10 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.925       1.0000         .10000E-03   10000.    
    12 'norm      '    .10641E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    63.185       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1017       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3735       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6335       1.0000         .10000E-03   10000.    
    19 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13876E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1346       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .94074       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.063       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19023E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.2591       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.182       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.801       1.0000         .10000E-03   10000.    
    28 'norm      '    16.755       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76733       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4453.854     FROM MIGRAD    STATUS=CONVERGED    792 CALLS     4603 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.675       -.89923E-07** at limit **
   2  Prefactor     1.3752        5.5213       -.16317E-05    .60743E-05
   3  norm          .10000E-03    7.1762        .20274E-07** at limit **
   4  Prefactor     .10000E-03    10.848        .26856E-07** at limit **
   5  Prefactor     46.983        25.617       -.30909E-06   -.33620E-04
   6  norm          7.4315        5.1167       -.10296E-07    .19248E-03
   7  Prefactor     8.5524        9.6451       -.28076E-07    .77957E-04
   8  Prefactor     .10000E-03    6.8180        .13566E-07** at limit **
   9  Prefactor     .88441        3.5174       -.14738E-05   -.48078E-05
  10  norm          .10000E-03    4.9896        .24549E-07** at limit **
  11  Prefactor     30.933        31.197       -.53810E-06   -.22188E-04
  12  norm          .10000E-03    11.939        .57022E-06** at limit **
  13  Prefactor     43.521        54.410        .13178E-06    .51454E-04
  14  Prefactor     63.213        48.772       -.37238E-06   -.57975E-04
  15  norm          8.0627        8.1510        .18827E-06    .24870E-05
  16  Prefactor     1.0497        68.145       -.45233E-05   -.18824E-04
  17  Prefactor     4.3665        7.8072       -.69601E-07    .24309E-03
  18  Prefactor     1.6336        15.822       -.18748E-05    .25567E-05
  19  norm          .10000E-03    .74008       -.34806E-06** at limit **
  20  norm          .10000E-03    3.3562       -.10867E-06** at limit **
  21  Prefactor     8.1443        10.450        .15642E-05   -.21188E-03
  22  Prefactor     1.1623        46.120        .10581E-05   -.65118E-05
  23  Prefactor     15.035        23.059        .78188E-06   -.17473E-04
  24  Prefactor     .10007E-03    19.502       -.39742E-06** at limit **
  25  norm          4.2623        2.1477       -.50504E-07    .15335E-03
  26  Prefactor     24.141        18.885        .17379E-07    .49246E-04
  27  Prefactor     12.743        31.678        .96830E-06    .92309E-04
  28  norm          16.785        22.535       -.65341E-06   -.19778E-04
  29  Normalizat    1.0328        .21614        .22312E-05    .11659E-03
  30  Prefactor     .76724        .21215       -.47606E-06    .18798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.37516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.9834
  norm       = 7.4315
  Prefactor  = 8.55241
  Prefactor  = 0.0001
  Prefactor  = 0.884414
  norm       = 0.0001
  Prefactor  = 30.9335
  norm       = 0.0001
  Prefactor  = 43.5207
  Prefactor  = 63.2135
  norm       = 8.06268
  Prefactor  = 1.04974
  Prefactor  = 4.3665
  Prefactor  = 1.63364
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 8.14431
  Prefactor  = 1.16234
  Prefactor  = 15.0349
  Prefactor  = 0.000100072
  norm       = 4.26228
  Prefactor  = 24.1409
  Prefactor  = 12.7425
  norm       = 16.7845
  Normalizat = 1.03277
  Prefactor  = 0.767235
 **********
 **   18 **HESSE 
 **********

 FCN=   4453.854     FROM HESSE     STATUS=OK           600 CALLS     5203 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3752        5.4944        .30105E-03   -1.5473    
   3  norm          .10000E-03    7.2048        .17461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     46.983        25.681        .58493E-04   -1.4336    
   6  norm          7.4315        5.1156        .11943E-03   -1.5163    
   7  Prefactor     8.5524        9.6543        .13709E-03   -1.5123    
   8  Prefactor     .10000E-03    6.8260        .17018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .88441        3.5157        .23609E-03   -1.5520    
  10  norm          .10000E-03    4.9900        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.933        31.294        .72050E-04   -1.4595    
  12  norm          .10000E-03    12.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.521        54.472        .60758E-04   -1.4388    
  14  Prefactor     63.213        49.026        .50483E-04   -1.4116    
  15  norm          8.0627        8.1554        .14125E-03   -1.5140    
  16  Prefactor     1.0497        75.978        .44380E-02   -1.5503    
  17  Prefactor     4.3665        7.5213        .19259E-03   -1.5290    
  18  Prefactor     1.6336        16.115        .33079E-03   -1.5452    
  19  norm          .10000E-03    1.0283        .10674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.8585        .22666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1443        10.703        .14057E-03   -1.5137    
  22  Prefactor     1.1623        315.60        .83618E-02   -1.5492    
  23  Prefactor     15.035        22.443        .10320E-03   -1.4932    
  24  Prefactor     .10007E-03    85.833        .43424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.2623        2.1790        .53939E-04   -1.5295    
  26  Prefactor     24.141        19.179        .81458E-04   -1.4725    
  27  Prefactor     12.743        32.139        .11196E-03   -1.4994    
  28  norm          16.785        22.763        .97848E-04   -1.4888    
  29  Normalizat    1.0328        .25211        .23144E-03   -.91941    
  30  Prefactor     .76724        .24940        .28362E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51885e-08
Minuit parameter uncertainties:
  1  4.5293e-05
  2  5.49645
  3  6.70364e-06
  4  2.16746e-05
  5  25.6868
  6  5.1159
  7  9.6561
  8  1.26754e-05
  9  3.51648
  10  2.804e-06
  11  31.3108
  12  8.01012e-05
  13  54.5341
  14  49.0572
  15  8.15651
  16  17.8842
  17  7.52297
  18  10.2651
  19  1.32594e-05
  20  0.000286108
  21  10.7057
  22  38.5107
  23  22.4554
  24  0.00496301
  25  2.17903
  26  19.1835
  27  32.183
  28  22.7751
  29  0.252403
  30  0.249768
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  8.010e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.672e-01  2.498e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.033e+00  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/665791/likelihoodResults_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.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) = 4453.85397486
delta logL = -0.000393175301724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4453.85358244
delta logL = -7.59790054872e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13857E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3734       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76710       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4453.854     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      216 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10006E-03    856.36        .58489E-01** at limit **
   2  alpha         2.4600        3.5840        .41218       -.31962E-04
   3  Normalizat    1.0328        .11045        .41885E-01    .25144E-04
   4  Prefactor     .76723        .91884E-01    .64115E-01    .20154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100061
  alpha      = 2.46004
  Normalizat = 1.03277
  Prefactor  = 0.767233
 **********
 **   18 **HESSE 
 **********

 FCN=   4453.854     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    23.455        .33474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4600        3.5756        .16487       -.15986E-01
   3  Normalizat    1.0328        .22773        .23144E-03   -.91941    
   4  Prefactor     .76723        .24475        .28362E-03   -1.0095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38715e-09
Minuit parameter uncertainties:
  1  0.00239305
  2  2.63077
  3  0.227945
  4  0.245093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665791': 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) = 4453.85357988
delta logL = 1.79700145964e-06

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.001e-04  2.393e-03  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.460e+00  2.631e+00  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.672e-01  2.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.033e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/665791/cmap_HighResolution_244252801_244512001_4FGL_J1438.9+3710_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-10 03:24:56.463843', job_id='665791', GAL2='0.77', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631269496.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='19' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:24:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 665791: <4FGL_J1438.9+3710_daily_bin19> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin19> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:07 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:11:08 2021
Terminated at Fri Sep 10 03:24:57 2021
Results reported at Fri Sep 10 03:24:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin19 219.74 37.1752 244252801 244512001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   721.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

