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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin736
RA = 219.74, Dec = 37.1752
tmin = 430099201, tmax = 430358401
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='671581', job_status='RUN', time_executed='2021-09-10 03:31:34.917482', time_epoch_executed='1631269894.92' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671581/ft1_4FGL_J1438.9+3710_daily_bin736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671581/ft2_4FGL_J1438.9+3710_daily_bin736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671581/ft1_4FGL_J1438.9+3710_daily_bin736.fits outfile=/scratch/kocevski/671581/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin736.fits ra=219.74 dec=37.1752 rad=12.0 tmin=430099201.0 tmax=430358401.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 11.28
user 10.85
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671581/ft1_filtered_4FGL_J1438.9+3710_daily_bin736.fits" evtable="EVENTS" scfile=/scratch/kocevski/671581/ft2_4FGL_J1438.9+3710_daily_bin736.fits sctable="SC_DATA" outfile=/scratch/kocevski/671581/ltcube_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.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/671581/ft2_4FGL_J1438.9+3710_daily_bin736.fits
.....................!
real 11.37
user 10.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671581/ft1_filtered_4FGL_J1438.9+3710_daily_bin736.fits evtable="EVENTS" scfile=/scratch/kocevski/671581/ft2_4FGL_J1438.9+3710_daily_bin736.fits sctable="SC_DATA" expcube=/scratch/kocevski/671581/ltcube_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.fits outfile=/scratch/kocevski/671581/expmap_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.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/671581/ltcube_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.fits
.....................!
real 191.96
user 186.73
sys 4.77

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/671581/ft1_filtered_4FGL_J1438.9+3710_daily_bin736.fits scfile=/scratch/kocevski/671581/ft2_4FGL_J1438.9+3710_daily_bin736.fits outfile=/scratch/kocevski/671581/cmap_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671581/ft1_filtered_4FGL_J1438.9+3710_daily_bin736.fits scfile=/scratch/kocevski/671581/ft2_4FGL_J1438.9+3710_daily_bin736.fits outfile=/scratch/kocevski/671581/cmap_HighResolution_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.7300       1.0000         .10000E-03   10000.    
     3 'norm      '    30.730       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.625       1.0000         .10000E-03   10000.    
     6 'norm      '    .14091E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0783       1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.7351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.159       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8168       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5665       1.0000         .10000E-03   10000.    
    19 'norm      '    8.3229       1.0000         .10000E-03   10000.    
    20 'norm      '    .11736E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46526       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.034       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.8047       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.065       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    30.524       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95658       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95295       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=   6167.857     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3963 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.857       -.80452E-06** at limit **
   2  Prefactor     7.7305        5.9612       -.18246E-08    .34329E-05
   3  norm          30.731        19.619        .26993E-06    .39847E-04
   4  Prefactor     .10000E-03    5.4319       -.14478E-07** at limit **
   5  Prefactor     42.626        26.902        .71441E-07    .38952E-05
   6  norm          .10040E-03    2.3596       -.11308E-05** at limit **
   7  Prefactor     .10000E-03    13.273       -.81219E-07** at limit **
   8  Prefactor     .10000E-03    65.656        .33881E-07** at limit **
   9  Prefactor     1.0786        3.8195        .15177E-05    .17618E-03
  10  norm          .10000E-03    13.562       -.34391E-07** at limit **
  11  Prefactor     .10000E-03    16.839       -.24912E-06** at limit **
  12  norm          3.7366        6.9833        .75073E-06    .85782E-04
  13  Prefactor     39.137        40.243        .22084E-06   -.39499E-04
  14  Prefactor     .10000E-03    13.400       -.10932E-06** at limit **
  15  norm          .10000E-03    5.9024       -.11788E-06** at limit **
  16  Prefactor     .10000E-03    10.427       -.99126E-07** at limit **
  17  Prefactor     5.8172        6.4692        .22257E-06    .56783E-05
  18  Prefactor     3.5661        5.1683        .43717E-05    .14868E-03
  19  norm          8.3222        2.5175       -.61886E-07    .24951E-05
  20  norm          .10000E-03    1.5938       -.34377E-06** at limit **
  21  Prefactor     .44093        3.9707        .38359E-06   -.20830E-03
  22  Prefactor     24.186        91.875        .22213E-05    .85287E-04
  23  Prefactor     .10000E-03    11.647       -.16683E-06** at limit **
  24  Prefactor     .10000E-03    3.9313       -.65861E-07** at limit **
  25  norm          9.8045        2.0999        .89891E-08    .55275E-05
  26  Prefactor     11.065        10.338        .46795E-07    .20389E-05
  27  Prefactor     .10000E-03    19.711        .19393E-06** at limit **
  28  norm          30.524        16.996       -.22044E-06   -.17555E-04
  29  Normalizat    .95640        .19238        .34452E-06    .15799E-03
  30  Prefactor     .95321        .19191       -.66031E-06    .15978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 7.73053
  norm       = 30.7306
  Prefactor  = 0.0001
  Prefactor  = 42.6257
  norm       = 0.000100398
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.07864
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.7366
  Prefactor  = 39.1373
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.81722
  Prefactor  = 3.56609
  norm       = 8.32224
  norm       = 0.0001
  Prefactor  = 0.440933
  Prefactor  = 24.1864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.80452
  Prefactor  = 11.0653
  Prefactor  = 0.0001
  norm       = 30.5241
  Normalizat = 0.956399
  Prefactor  = 0.95321
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.857     FROM HESSE     STATUS=OK           592 CALLS     4555 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.7305        5.9650        .14423E-03   -1.5152    
   3  norm          30.731        19.672        .72278E-04   -1.4599    
   4  Prefactor     .10000E-03    5.4334        .17877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.626        27.103        .61403E-04   -1.4401    
   6  norm          .10040E-03    32.649        .22164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    68.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0786        3.7839        .26694E-03   -1.5500    
  10  norm          .10000E-03    13.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7366        6.9665        .20893E-03   -1.5321    
  13  Prefactor     39.137        40.229        .64052E-04   -1.4456    
  14  Prefactor     .10000E-03    13.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8172        6.4643        .16652E-03   -1.5226    
  18  Prefactor     3.5661        5.1736        .10463E-02   -1.5330    
  19  norm          8.3222        2.5228        .60221E-04   -1.5131    
  20  norm          .10000E-03    2.7720        .18353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .44093        17.036        .28450E-02   -1.5575    
  22  Prefactor     24.186        91.405        .81708E-04   -1.4724    
  23  Prefactor     .10000E-03    11.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.9381        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.8045        2.1058        .47892E-04   -1.5082    
  26  Prefactor     11.065        10.366        .12044E-03   -1.5043    
  27  Prefactor     .10000E-03    19.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          30.524        16.959        .72521E-04   -1.4602    
  29  Normalizat    .95640        .22273        .25508E-03   -.94506    
  30  Prefactor     .95321        .22371        .27563E-03   -.94306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19697e-08
Minuit parameter uncertainties:
  1  0.000508952
  2  5.96544
  3  19.676
  4  4.5149e-07
  5  27.1111
  6  0.00721241
  7  3.30602e-06
  8  0.000370954
  9  3.7847
  10  2.15182e-05
  11  3.54463e-05
  12  6.96806
  13  40.2565
  14  1.3045e-06
  15  5.46417e-06
  16  1.07075e-05
  17  6.46505
  18  5.17429
  19  2.5228
  20  4.73836e-07
  21  5.48264
  22  91.9411
  23  5.14154e-05
  24  4.33976e-06
  25  2.10584
  26  10.3679
  27  2.99079e-05
  28  16.9619
  29  0.222949
  30  0.22393
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.737e+00  6.968e+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:  9.532e-01  2.239e-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:  9.564e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/671581/likelihoodResults_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.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) = 6167.08865436
delta logL = 0.768305100323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6167.05086813
delta logL = 0.806091338374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0957       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2876       1.0000          .0000       5.0000    
     3 'Normalizat'    .87761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0109       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=   6167.051     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      244 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0951        16.379        .11385E-01    .79489E-03
   2  alpha         4.2857        4.1457        .50000        .41744E-04
   3  Normalizat    .87791        .49194E-01    .44615E-01    .15286E-04
   4  Prefactor     1.0108        .53498E-01    .43199E-01    .88738E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.09513
  alpha      = 4.28573
  Normalizat = 0.877909
  Prefactor  = 1.01076
 **********
 **   18 **HESSE 
 **********

 FCN=   6167.051     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0951        33.368        .63120E-04   -1.5499    
   2  alpha         4.2857        3.0466        .25658E-01    .79561    
   3  Normalizat    .87791        .19876        .26489E-03   -.97241    
   4  Prefactor     1.0108        .21336        .26858E-03   -.92372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.96038e-07
Minuit parameter uncertainties:
  1  12.097
  2  7.37975
  3  0.198929
  4  0.213543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671581': 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) = 6167.05086003
delta logL = 0.806099434445

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.095e+00  1.210e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  4.286e+00  7.380e+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.011e+00  2.135e-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:  8.779e-01  1.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 219.740 37.175
Photon Index (Free Index): 4.29 +/- 7.38
Photon Flux (Free Index): 7.02e-08 +/- 5.77e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.28e-05

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/671581/cmap_HighResolution_430099201_430358401_4FGL_J1438.9+3710_daily_bin736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='8.06e-01', photon_flux2='7.02e-08', job_status='DONE', time_completed='2021-09-10 03:46:17.015111', photon_index_error2='7.38', photon_index2='4.29', ts='0.37', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='9.10e-08', energy_flux_error2='1.28e-05', EG='0.96', time_epoch_completed='1631270777.02', return_code='0', job_id='671581', GAL2='1.01', EG2='0.88', return_code2='102', photon_flux_error2='5.77e-08', ts2='2.13', photon_index='2.31' WHERE bin_id='736' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:46:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 671581: <4FGL_J1438.9+3710_daily_bin736> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin736 219.74 37.1752 430099201 430358401 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 :                                   876.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

