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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin553
RA = 219.74, Dec = 37.1752
tmin = 382665601, tmax = 382924801
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='670273', job_status='RUN', time_executed='2021-09-10 03:26:28.771653', time_epoch_executed='1631269588.77' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670273

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670273/ft1_4FGL_J1438.9+3710_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670273/ft2_4FGL_J1438.9+3710_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670273/ft1_4FGL_J1438.9+3710_daily_bin553.fits outfile=/scratch/kocevski/670273/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin553.fits ra=219.74 dec=37.1752 rad=12.0 tmin=382665601.0 tmax=382924801.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.34
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670273/ft1_filtered_4FGL_J1438.9+3710_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/670273/ft2_4FGL_J1438.9+3710_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/670273/ltcube_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.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/670273/ft2_4FGL_J1438.9+3710_daily_bin553.fits
.....................!
real 11.61
user 11.21
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670273/ft1_filtered_4FGL_J1438.9+3710_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/670273/ft2_4FGL_J1438.9+3710_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/670273/ltcube_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.fits outfile=/scratch/kocevski/670273/expmap_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.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/670273/ltcube_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.fits
.....................!
real 191.68
user 185.36
sys 5.95

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/670273/ft1_filtered_4FGL_J1438.9+3710_daily_bin553.fits scfile=/scratch/kocevski/670273/ft2_4FGL_J1438.9+3710_daily_bin553.fits outfile=/scratch/kocevski/670273/cmap_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670273/ft1_filtered_4FGL_J1438.9+3710_daily_bin553.fits scfile=/scratch/kocevski/670273/ft2_4FGL_J1438.9+3710_daily_bin553.fits outfile=/scratch/kocevski/670273/cmap_HighResolution_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.625       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.680       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.7286       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9968       1.0000         .10000E-03   10000.    
    10 'norm      '    15.026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.3082       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.488       1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.899       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35570E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4631       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19917E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.446       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12737E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0585       1.0000         .10000E-03   10000.    
    25 'norm      '    5.6353       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3389       1.0000         .10000E-03   10000.    
    28 'norm      '    19.591       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .52628       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3488       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=   5641.687     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3888 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.626        64.741       -.29768E-06   -.93773E-06
   2  Prefactor     .10000E-03    4.3566       -.29987E-06** at limit **
   3  norm          .10000E-03    7.5433        .66692E-07** at limit **
   4  Prefactor     14.680        12.795       -.23712E-06   -.45931E-04
   5  Prefactor     .10000E-03    26.543        .10617E-06** at limit **
   6  norm          2.7284        2.6852       -.16562E-06   -.12605E-03
   7  Prefactor     .10000E-03    4.2683        .49375E-06** at limit **
   8  Prefactor     .10000E-03    4.4656       -.11865E-05** at limit **
   9  Prefactor     5.9971        3.8726       -.73957E-07    .85798E-04
  10  norm          15.026        14.007       -.26655E-06   -.10080E-03
  11  Prefactor     .10000E-03    7.6512       -.12576E-05** at limit **
  12  norm          8.3064        6.7675       -.30947E-05   -.48685E-03
  13  Prefactor     42.502        50.843        .76747E-05    .97912E-04
  14  Prefactor     59.897        35.692       -.12253E-05    .27363E-04
  15  norm          .10000E-03    5.7221        .89968E-07** at limit **
  16  Prefactor     .10001E-03    133.56       -.55736E-04** at limit **
  17  Prefactor     .10000E-03    2.6885       -.36557E-06** at limit **
  18  Prefactor     .10000E-03    1.9142        .31752E-07** at limit **
  19  norm          1.4627        1.3656       -.78596E-07    .21434E-03
  20  norm          4.0758        4.0465        .13672E-05    .17437E-02
  21  Prefactor     .10001E-03    15.572        .21159E-05** at limit **
  22  Prefactor     54.445        77.799       -.10064E-05    .15730E-04
  23  Prefactor     .10000E-03    26.679       -.14339E-06** at limit **
  24  Prefactor     5.0626        12.008       -.82669E-05    .61181E-03
  25  norm          5.6354        1.5603       -.48733E-07    .22051E-03
  26  Prefactor     .10000E-03    3.7021       -.12221E-06** at limit **
  27  Prefactor     5.3397        21.712       -.64257E-07    .97168E-05
  28  norm          19.590        18.660       -.85678E-07    .16063E-04
  29  Normalizat    .52626        .18632        .37994E-05    .36185E-03
  30  Prefactor     1.3488        .20054       -.51804E-06    .62349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.6264
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6798
  Prefactor  = 0.000100001
  norm       = 2.72842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.99709
  norm       = 15.026
  Prefactor  = 0.000100001
  norm       = 8.30643
  Prefactor  = 42.5019
  Prefactor  = 59.8971
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.46274
  norm       = 4.07575
  Prefactor  = 0.00010001
  Prefactor  = 54.4452
  Prefactor  = 0.0001
  Prefactor  = 5.06265
  norm       = 5.63543
  Prefactor  = 0.0001
  Prefactor  = 5.33971
  norm       = 19.5905
  Normalizat = 0.526257
  Prefactor  = 1.34877
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.687     FROM HESSE     STATUS=OK           584 CALLS     4472 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.626        64.738        .50706E-04   -1.4124    
   2  Prefactor     .10000E-03    4.4663        .30609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.5719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.680        12.798        .10454E-03   -1.4941    
   5  Prefactor     .10000E-03    26.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.7284        2.6775        .11814E-03   -1.5378    
   7  Prefactor     .10000E-03    4.2677        .15139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4820        .15520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9971        3.8706        .11268E-03   -1.5218    
  10  norm          15.026        13.998        .10333E-03   -1.4933    
  11  Prefactor     .10000E-03    7.6750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3064        6.7389        .69542E-03   -1.5131    
  13  Prefactor     42.502        51.053        .61501E-04   -1.4403    
  14  Prefactor     59.897        35.634        .51841E-04   -1.4159    
  15  norm          .10000E-03    5.7638        .17545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    128.56        .39465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.6946        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9159        .10149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4627        1.3375        .79465E-04   -1.5466    
  20  norm          4.0758        3.9976        .13651E-03   -1.5304    
  21  Prefactor     .10001E-03    16.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     54.445        77.620        .54360E-04   -1.4231    
  23  Prefactor     .10000E-03    26.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0626        12.130        .89389E-03   -1.5258    
  25  norm          5.6354        1.5594        .47265E-04   -1.5233    
  26  Prefactor     .10000E-03    3.7069        .14108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.3397        21.518        .17393E-03   -1.5246    
  28  norm          19.590        18.594        .90491E-04   -1.4822    
  29  Normalizat    .52626        .21509        .30497E-03   -1.1121    
  30  Prefactor     1.3488        .23641        .22767E-03   -.81868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84762e-09
Minuit parameter uncertainties:
  1  64.8106
  2  4.39174e-07
  3  3.21396e-05
  4  12.8
  5  0.00033369
  6  2.6776
  7  3.69944e-05
  8  7.09758e-05
  9  3.87075
  10  14.0012
  11  0.000155611
  12  6.73955
  13  51.1055
  14  35.6463
  15  1.74856e-06
  16  0.00187399
  17  2.96988e-05
  18  1.87512e-06
  19  1.33751
  20  3.99783
  21  0.000784322
  22  77.7651
  23  6.34867e-05
  24  12.1363
  25  1.55941
  26  7.62466e-06
  27  21.4514
  28  18.5994
  29  0.215426
  30  0.236598
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  8.306e+00  6.740e+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.349e+00  2.366e-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.263e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.76
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 3.05e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.05e-05

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

Saving results to:
/scratch/kocevski/670273/likelihoodResults_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.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) = 5641.64192063
delta logL = 0.0447258321019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5641.6348033
delta logL = 0.0518431690962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5648       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5434       1.0000          .0000       5.0000    
     3 'Normalizat'    .51647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3561       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5641.635     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5643        6.8380        .14581E-03    .12024E-02
   2  alpha         2.5442        .74520        .15152E-01    .11512E-03
   3  Normalizat    .51651        .20600        .30766E-03   -.14278E-03
   4  Prefactor     1.3561        .23509        .22713E-03   -.22943E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.56428
  alpha      = 2.5442
  Normalizat = 0.516508
  Prefactor  = 1.35608
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.635     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5643        6.6451        .58324E-05   -1.5158    
   2  alpha         2.5442        .72423        .60609E-03    .17682E-01
   3  Normalizat    .51651        .20608        .12307E-04   -1.1166    
   4  Prefactor     1.3561        .23518        .45427E-04   -.81654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10236e-09
Minuit parameter uncertainties:
  1  6.64571
  2  0.734767
  3  0.20639
  4  0.235366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670273': 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) = 5641.63480256
delta logL = 0.0518439065008

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  7.564e+00  6.646e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.544e+00  7.348e-01  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.356e+00  2.354e-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.165e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.54 +/- 0.73
Photon Flux (Free Index): 4.43e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.22e-05 +/- 9.62e-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/670273/cmap_HighResolution_382665601_382924801_4FGL_J1438.9+3710_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.59e-05', comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='1.22e-05', photon_flux_error='3.05e-08', dlogl='5.18e-02', energy_flux='1.29e-05', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-10 03:39:22.635550', photon_index_error2='0.73', photon_index2='2.54', ts='2.76', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='9.62e-06', EG='0.53', time_epoch_completed='1631270362.64', return_code='0', job_id='670273', GAL2='1.36', EG2='0.52', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.86e-08', ts2='2.87', photon_index='2.31' WHERE bin_id='553' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:39:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 670273: <4FGL_J1438.9+3710_daily_bin553> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin553 219.74 37.1752 382665601 382924801 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 :                                   769.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

