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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin939
RA = 219.74, Dec = 37.1752
tmin = 482716801, tmax = 482976001
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='671919', job_status='RUN', time_executed='2021-09-10 03:32:00.360297', time_epoch_executed='1631269920.36' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671919

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671919/ft1_4FGL_J1438.9+3710_daily_bin939.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671919/ft1_4FGL_J1438.9+3710_daily_bin939.fits outfile=/scratch/kocevski/671919/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin939.fits ra=219.74 dec=37.1752 rad=12.0 tmin=482716801.0 tmax=482976001.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 3.63
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.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/671919/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin939.fits evtable="EVENTS" outfile="/scratch/kocevski/671919/ft1_filtered_4FGL_J1438.9+3710_daily_bin939.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.53
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671919/ft1_filtered_4FGL_J1438.9+3710_daily_bin939.fits" evtable="EVENTS" scfile=/scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits sctable="SC_DATA" outfile=/scratch/kocevski/671919/ltcube_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.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/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits
.....................!
real 11.83
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671919/ft1_filtered_4FGL_J1438.9+3710_daily_bin939.fits evtable="EVENTS" scfile=/scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits sctable="SC_DATA" expcube=/scratch/kocevski/671919/ltcube_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.fits outfile=/scratch/kocevski/671919/expmap_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.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/671919/ltcube_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.fits
.....................!
real 190.51
user 185.30
sys 4.84

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/671919/ft1_filtered_4FGL_J1438.9+3710_daily_bin939.fits scfile=/scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits outfile=/scratch/kocevski/671919/cmap_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671919/ft1_filtered_4FGL_J1438.9+3710_daily_bin939.fits scfile=/scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits outfile=/scratch/kocevski/671919/cmap_HighResolution_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/671919/ft1_filtered_4FGL_J1438.9+3710_daily_bin939.fits', '/scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits', expMap='/scratch/kocevski/671919/expmap_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.fits', expCube='/scratch/kocevski/671919/ltcube_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/671919/Model_4FGL_J1438.9+3710_daily_bin939.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/671919/ft1_filtered_4FGL_J1438.9+3710_daily_bin939.fits
Spacecraft file(s): /scratch/kocevski/671919/ft2_4FGL_J1438.9+3710_daily_bin939.fits
Exposure map: /scratch/kocevski/671919/expmap_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.fits
Exposure cube: /scratch/kocevski/671919/ltcube_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/671919/Model_4FGL_J1438.9+3710_daily_bin939.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) = 5686.83461892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.686       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10512       1.0000         .10000E-03   10000.    
     3 'norm      '    18.451       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.402       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.194       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2639       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3014       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1739       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.313       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.454       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .58645E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6646       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0048       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68258       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1146       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=   5686.832     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3901 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.687        81.217        .60757E-06    .31205E-05
   2  Prefactor     .10688        4.6665       -.15861E-06    .41237E-04
   3  norm          18.452        12.803        .41893E-07   -.73936E-06
   4  Prefactor     14.666        13.638       -.45067E-06   -.15922E-04
   5  Prefactor     22.403        17.070        .56113E-07   -.58149E-04
   6  norm          .10000E-03    1.5525        .34895E-07** at limit **
   7  Prefactor     .10000E-03    18.326        .13056E-05** at limit **
   8  Prefactor     .10000E-03    19.365       -.16410E-05** at limit **
   9  Prefactor     .10000E-03    1.0757        .18054E-07** at limit **
  10  norm          20.208        17.665        .80917E-07   -.13992E-04
  11  Prefactor     .10000E-03    13.225        .27489E-05** at limit **
  12  norm          3.2651        2.8738        .49777E-06   -.16668E-02
  13  Prefactor     .10000E-03    29.141        .53222E-05** at limit **
  14  Prefactor     .10000E-03    21.114       -.51029E-05** at limit **
  15  norm          .10000E-03    4.4211       -.68219E-07** at limit **
  16  Prefactor     .10000E-03    6.7259       -.33090E-05** at limit **
  17  Prefactor     .10000E-03    3.6425       -.35109E-07** at limit **
  18  Prefactor     .10000E-03    1.7836        .39362E-08** at limit **
  19  norm          4.3015        1.7200        .23443E-08    .13290E-03
  20  norm          2.1729        2.2041       -.70512E-07   -.66442E-04
  21  Prefactor     .10000E-03    7.4143        .52118E-05** at limit **
  22  Prefactor     36.313        50.667       -.15021E-06    .57264E-05
  23  Prefactor     15.436        14.550        .81082E-06    .40267E-04
  24  Prefactor     .10003E-03    6.4309       -.94830E-06** at limit **
  25  norm          1.6646        1.3448       -.11457E-08    .24239E-04
  26  Prefactor     6.0047        11.955        .52911E-07   -.13438E-04
  27  Prefactor     .10000E-03    5.7066        .41826E-06** at limit **
  28  norm          .10000E-03    8.7868       -.35079E-05** at limit **
  29  Normalizat    .68264        .16832       -.22802E-06    .63393E-04
  30  Prefactor     1.1145        .18511       -.84471E-07    .74516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.6866
  Prefactor  = 0.106881
  norm       = 18.4524
  Prefactor  = 14.666
  Prefactor  = 22.403
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.2077
  Prefactor  = 0.0001
  norm       = 3.26514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.30147
  norm       = 2.17293
  Prefactor  = 0.0001
  Prefactor  = 36.313
  Prefactor  = 15.4355
  Prefactor  = 0.000100035
  norm       = 1.66465
  Prefactor  = 6.00468
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.682638
  Prefactor  = 1.11449
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.832     FROM HESSE     STATUS=OK           588 CALLS     4489 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.687        81.500        .42906E-04   -1.3832    
   2  Prefactor     .10688        43.291        .31306E-02   -1.5643    
   3  norm          18.452        12.807        .93242E-04   -1.4849    
   4  Prefactor     14.666        13.632        .10461E-03   -1.4942    
   5  Prefactor     22.403        17.151        .42313E-03   -1.4761    
   6  norm          .10000E-03    1.5627        .91714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0871        .76354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.208        17.732        .89130E-04   -1.4809    
  11  Prefactor     .10000E-03    13.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2651        6.9736        .11208E-02   -1.5347    
  13  Prefactor     .10000E-03    29.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.4335        .15486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.7704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6629        .14044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7853        .98354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3015        1.7206        .58858E-04   -1.5293    
  20  norm          2.1729        2.1991        .10884E-03   -1.5413    
  21  Prefactor     .10000E-03    7.4587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.313        50.707        .66506E-04   -1.4502    
  23  Prefactor     15.436        13.987        .10188E-03   -1.4922    
  24  Prefactor     .10003E-03    68.228        .34937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6646        1.3373        .32689E-04   -1.5450    
  26  Prefactor     6.0047        11.887        .16386E-03   -1.5218    
  27  Prefactor     .10000E-03    5.7098        .17596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    8.8702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .68264        .19847        .25006E-03   -1.0458    
  30  Prefactor     1.1145        .21567        .22800E-03   -.89005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74226e-09
Minuit parameter uncertainties:
  1  81.6045
  2  4.30318
  3  12.8094
  4  13.635
  5  17.1552
  6  4.86402e-07
  7  2.95495e-05
  8  1.22777e-05
  9  4.60032e-07
  10  17.7365
  11  2.98213e-05
  12  6.97536
  13  9.21961e-05
  14  6.03348e-05
  15  1.22333e-06
  16  2.14658e-05
  17  1.46789e-06
  18  2.29383e-08
  19  1.72061
  20  2.19917
  21  2.22994e-05
  22  50.7668
  23  13.9898
  24  0.00308085
  25  1.33736
  26  11.8916
  27  4.67272e-06
  28  2.38012e-05
  29  0.198679
  30  0.215841
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.265e+00  6.975e+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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.114e+00  2.158e-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:  6.826e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/671919/likelihoodResults_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.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) = 5686.26114937
delta logL = 0.570387242703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5686.24668439
delta logL = 0.584852222358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6088       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4602       1.0000          .0000       5.0000    
     3 'Normalizat'    .63093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1499       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=   5686.247     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6128        50.231        .63139E-02    .52688E-03
   2  alpha         3.4590        4.1763        .42389        .44397E-04
   3  Normalizat    .63096        .45117E-01    .41361E-01    .13486E-04
   4  Prefactor     1.1499        .51287E-01    .35938E-01   -.28575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6128
  alpha      = 3.45904
  Normalizat = 0.630957
  Prefactor  = 1.1499
 **********
 **   18 **HESSE 
 **********

 FCN=   5686.247     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6128        5.7536        .10361E-03   -1.5385    
   2  alpha         3.4590        1.3872        .16475E-01    .39371    
   3  Normalizat    .63096        .19509        .25930E-03   -1.0669    
   4  Prefactor     1.1499        .21754        .22482E-03   -.87887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32956e-08
Minuit parameter uncertainties:
  1  5.75478
  2  1.48814
  3  0.1953
  4  0.217709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671919': 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) = 5686.24668387
delta logL = 0.584852742483

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.613e+00  5.755e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  3.459e+00  1.488e+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:  1.150e+00  2.177e-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:  6.310e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 219.740 37.175
Photon Index (Free Index): 3.46 +/- 1.49
Photon Flux (Free Index): 4.98e-08 +/- 4.63e-08
Energy Flux (Free Index): 8.80e-06 +/- 8.72e-06

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/671919/cmap_HighResolution_482716801_482976001_4FGL_J1438.9+3710_daily_bin939.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', comment='SUCCESS', energy_flux2='8.80e-06', dlogl='5.85e-01', photon_flux2='4.98e-08', job_status='DONE', time_completed='2021-09-10 03:45:13.004060', photon_index_error2='1.49', photon_index2='3.46', ts='0.27', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.52e-08', energy_flux_error2='8.72e-06', EG='0.68', time_epoch_completed='1631270713.0', return_code='0', job_id='671919', GAL2='1.15', EG2='0.63', return_code2='0', photon_flux_error2='4.63e-08', ts2='1.53', photon_index='2.31' WHERE bin_id='939' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:45:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 671919: <4FGL_J1438.9+3710_daily_bin939> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin939> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:31:46 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:48 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:31:48 2021
Terminated at Fri Sep 10 03:45:13 2021
Results reported at Fri Sep 10 03:45:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin939 219.74 37.1752 482716801 482976001 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 :                                   786.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

