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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin635
RA = 219.74, Dec = 37.1752
tmin = 403920001, tmax = 404179201
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='670403', job_status='RUN', time_executed='2021-09-10 03:29:41.761634', time_epoch_executed='1631269781.76' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670403

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670403/ft1_4FGL_J1438.9+3710_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670403/ft2_4FGL_J1438.9+3710_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670403/ft1_4FGL_J1438.9+3710_daily_bin635.fits outfile=/scratch/kocevski/670403/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin635.fits ra=219.74 dec=37.1752 rad=12.0 tmin=403920001.0 tmax=404179201.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 9.96
user 9.51
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670403/ft2_4FGL_J1438.9+3710_daily_bin635.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/670403/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/670403/ft1_filtered_4FGL_J1438.9+3710_daily_bin635.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.31
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670403/ft1_filtered_4FGL_J1438.9+3710_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/670403/ft2_4FGL_J1438.9+3710_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/670403/ltcube_403920001_404179201_4FGL_J1438.9+3710_daily_bin635.fits outfile=/scratch/kocevski/670403/expmap_403920001_404179201_4FGL_J1438.9+3710_daily_bin635.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/670403/ltcube_403920001_404179201_4FGL_J1438.9+3710_daily_bin635.fits
.....................!
real 190.50
user 185.34
sys 4.80

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/670403/ft1_filtered_4FGL_J1438.9+3710_daily_bin635.fits scfile=/scratch/kocevski/670403/ft2_4FGL_J1438.9+3710_daily_bin635.fits outfile=/scratch/kocevski/670403/cmap_403920001_404179201_4FGL_J1438.9+3710_daily_bin635.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670403/ft1_filtered_4FGL_J1438.9+3710_daily_bin635.fits scfile=/scratch/kocevski/670403/ft2_4FGL_J1438.9+3710_daily_bin635.fits outfile=/scratch/kocevski/670403/cmap_HighResolution_403920001_404179201_4FGL_J1438.9+3710_daily_bin635.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.813       1.0000         .10000E-03   10000.    
     3 'norm      '    15.987       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.074       1.0000         .10000E-03   10000.    
     6 'norm      '    7.2359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    40.532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.624       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7256       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.699       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8521       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5386       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.105       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10970E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.5178       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.955       1.0000         .10000E-03   10000.    
    28 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73533       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89729       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=   3038.566     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3871 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.59        164.20       -.36677E-05   -.57719E-04
   2  Prefactor     12.811        13.056       -.48087E-06   -.17901E-06
   3  norm          15.991        27.445       -.69326E-06   -.10578E-04
   4  Prefactor     7.0892        27.966        .78042E-06    .93994E-05
   5  Prefactor     29.068        30.271       -.99451E-06   -.55315E-05
   6  norm          7.2357        5.7391       -.13041E-06   -.35803E-04
   7  Prefactor     .10000E-03    17.522       -.33381E-06** at limit **
   8  Prefactor     .10000E-03    9.3194       -.80326E-07** at limit **
   9  Prefactor     .10000E-03    2.9495        .24173E-06** at limit **
  10  norm          40.529        26.419       -.20059E-07    .40597E-05
  11  Prefactor     37.619        32.283       -.64772E-06   -.22919E-05
  12  norm          6.7244        10.357       -.23873E-06    .13344E-04
  13  Prefactor     .10000E-03    22.173        .85460E-07** at limit **
  14  Prefactor     .10000E-03    41.046        .51541E-06** at limit **
  15  norm          5.2938        10.116        .28415E-06    .54951E-05
  16  Prefactor     25.699        22.492       -.49950E-06   -.86881E-05
  17  Prefactor     .10000E-03    4.4500        .17362E-06** at limit **
  18  Prefactor     4.8521        6.0924        .20009E-05    .37051E-03
  19  norm          .10000E-03    .60863        .12440E-06** at limit **
  20  norm          5.5371        4.7183       -.25749E-06   -.80878E-04
  21  Prefactor     .10000E-03    16.617       -.36261E-06** at limit **
  22  Prefactor     .10000E-03    59.121        .51549E-06** at limit **
  23  Prefactor     46.088        30.090       -.10352E-05   -.57790E-04
  24  Prefactor     .10000E-03    72.039       -.17043E-05** at limit **
  25  norm          6.5179        2.3190       -.90774E-09   -.69350E-04
  26  Prefactor     .10000E-03    7.0619        .80197E-07** at limit **
  27  Prefactor     21.959        27.072       -.45424E-06   -.19838E-04
  28  norm          .10000E-03    23.460        .57810E-06** at limit **
  29  Normalizat    .73562        .29157        .84158E-05   -.96017E-04
  30  Prefactor     .89708        .28180       -.76741E-05    .36605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.587
  Prefactor  = 12.811
  norm       = 15.9907
  Prefactor  = 7.08917
  Prefactor  = 29.0676
  norm       = 7.23565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 40.5295
  Prefactor  = 37.6192
  norm       = 6.72436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.29385
  Prefactor  = 25.6986
  Prefactor  = 0.0001
  Prefactor  = 4.85207
  norm       = 0.0001
  norm       = 5.53705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.0881
  Prefactor  = 0.0001
  norm       = 6.51793
  Prefactor  = 0.0001
  Prefactor  = 21.9591
  norm       = 0.0001
  Normalizat = 0.735618
  Prefactor  = 0.89708
 **********
 **   18 **HESSE 
 **********

 FCN=   3038.566     FROM HESSE     STATUS=OK           590 CALLS     4461 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.59        165.51        .18233E-03   -1.3498    
   2  Prefactor     12.811        13.077        .11190E-03   -1.4992    
   3  norm          15.991        27.420        .10017E-03   -1.4908    
   4  Prefactor     7.0892        27.887        .15060E-03   -1.5175    
   5  Prefactor     29.068        30.339        .74303E-04   -1.4629    
   6  norm          7.2357        5.7375        .11270E-03   -1.5170    
   7  Prefactor     .10000E-03    17.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.3251        .16433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9634        .92379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          40.529        26.396        .62962E-04   -1.4434    
  11  Prefactor     37.619        32.308        .65341E-04   -1.4481    
  12  norm          6.7244        10.355        .15472E-03   -1.5189    
  13  Prefactor     .10000E-03    22.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2938        10.103        .17469E-03   -1.5248    
  16  Prefactor     25.699        22.507        .79021E-04   -1.4694    
  17  Prefactor     .10000E-03    4.4723        .11355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8521        6.2866        .76538E-03   -1.5267    
  19  norm          .10000E-03    .61236        .41978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5371        4.6998        .10512E-03   -1.5237    
  21  Prefactor     .10000E-03    16.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    59.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     46.088        29.877        .59050E-04   -1.4349    
  24  Prefactor     .10000E-03    73.498        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.5179        2.3196        .47983E-04   -1.5197    
  26  Prefactor     .10000E-03    7.0674        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.959        27.009        .85484E-04   -1.4770    
  28  norm          .10000E-03    23.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .73562        .30137        .26077E-03   -1.0250    
  30  Prefactor     .89708        .29029        .25678E-03   -.96243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47299e-10
Minuit parameter uncertainties:
  1  166.147
  2  13.0799
  3  27.4419
  4  27.9383
  5  30.3546
  6  5.73789
  7  3.45577e-05
  8  1.33901e-05
  9  3.8478e-07
  10  26.4036
  11  32.3235
  12  10.3576
  13  1.19527e-05
  14  1.70535e-05
  15  10.1062
  16  22.5149
  17  2.38569e-06
  18  6.28747
  19  6.82692e-07
  20  4.70008
  21  1.38159e-05
  22  0.000174855
  23  29.8869
  24  3.22221e-05
  25  2.31967
  26  3.56096e-06
  27  27.0237
  28  4.23472e-05
  29  0.302057
  30  0.290788
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  6.724e+00  1.036e+01  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:  8.971e-01  2.908e-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:  7.356e-01  3.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/670403/likelihoodResults_403920001_404179201_4FGL_J1438.9+3710_daily_bin635.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) = 3036.84655583
delta logL = 1.71989479064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3036.82385536
delta logL = 1.74259525871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76916       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .55857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0319       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=   3036.824     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      342 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76847        12.948        .59846E-02   -.10631E-02
   2  alpha         5.0000        4.9501        .46287    ** at limit **
   3  Normalizat    .55913        .21047        .66803E-01   -.24896E-04
   4  Prefactor     1.0314        .22062        .41111E-01   -.23602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.768467
  alpha      = 5
  Normalizat = 0.559131
  Prefactor  = 1.0314
 **********
 **   18 **HESSE 
 **********

 FCN=   3036.824     FROM HESSE     STATUS=OK            31 CALLS      373 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76847        .46411        .26742E-04   -1.5533    
   2  alpha         5.0000        3.2126        .34176E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .55913        .27789        .29565E-03   -1.0975    
   4  Prefactor     1.0314        .29452        .24151E-03   -.91690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77391e-11
Minuit parameter uncertainties:
  1  0.464109
  2  6.62291e-07
  3  0.278585
  4  0.294982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670403': 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) = 3036.82385174
delta logL = 1.74259887393

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  7.685e-01  4.641e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  6.623e-07  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.031e+00  2.950e-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:  5.591e-01  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 219.740 37.175
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.49e-07 +/- 8.96e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.22e-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/670403/cmap_HighResolution_403920001_404179201_4FGL_J1438.9+3710_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.73e-05', comment='SUCCESS', energy_flux2='2.03e-05', dlogl='1.74e+00', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-10 03:39:44.197149', photon_index_error2='0.00', photon_index2='5.00', ts='0.56', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.22e-05', EG='0.74', time_epoch_completed='1631270384.2', return_code='0', job_id='670403', GAL2='1.03', EG2='0.56', return_code2='0', photon_flux_error2='8.96e-08', ts2='4.57', photon_index='2.31' WHERE bin_id='635' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 670403: <4FGL_J1438.9+3710_daily_bin635> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin635> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 03:26:21 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:26:23 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:26:23 2021
Terminated at Fri Sep 10 03:39:44 2021
Results reported at Fri Sep 10 03:39:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin635 219.74 37.1752 403920001 404179201 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 :                                   594.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

