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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin974
RA = 219.74, Dec = 37.1752
tmin = 491788801, tmax = 492048001
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='673189', job_status='RUN', time_executed='2021-09-10 03:38:03.776886', time_epoch_executed='1631270283.78' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673189

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673189/ft1_4FGL_J1438.9+3710_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673189/ft2_4FGL_J1438.9+3710_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673189/ft1_4FGL_J1438.9+3710_daily_bin974.fits outfile=/scratch/kocevski/673189/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin974.fits ra=219.74 dec=37.1752 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.22
user 3.98
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/673189/ft2_4FGL_J1438.9+3710_daily_bin974.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/673189/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/673189/ft1_filtered_4FGL_J1438.9+3710_daily_bin974.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/673189/ft1_filtered_4FGL_J1438.9+3710_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/673189/ft2_4FGL_J1438.9+3710_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/673189/ltcube_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.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/673189/ft2_4FGL_J1438.9+3710_daily_bin974.fits
.....................!
real 12.03
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673189/ft1_filtered_4FGL_J1438.9+3710_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/673189/ft2_4FGL_J1438.9+3710_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/673189/ltcube_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.fits outfile=/scratch/kocevski/673189/expmap_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.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/673189/ltcube_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.fits
.....................!
real 191.04
user 185.18
sys 5.09

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/673189/ft1_filtered_4FGL_J1438.9+3710_daily_bin974.fits scfile=/scratch/kocevski/673189/ft2_4FGL_J1438.9+3710_daily_bin974.fits outfile=/scratch/kocevski/673189/cmap_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.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/673189/ft1_filtered_4FGL_J1438.9+3710_daily_bin974.fits scfile=/scratch/kocevski/673189/ft2_4FGL_J1438.9+3710_daily_bin974.fits outfile=/scratch/kocevski/673189/cmap_HighResolution_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
     3 'norm      '    81.062       1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.983       1.0000         .10000E-03   10000.    
     5 'Prefactor '    84.985       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6020       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3973       1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.663       1.0000         .10000E-03   10000.    
    12 'norm      '    12.663       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.906       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8998       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2306       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.377       1.0000         .10000E-03   10000.    
    25 'norm      '    7.3229       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1818       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=   775.4156     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3875 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.812        .24654E-06** at limit **
   2  Prefactor     11.502        18.469        .14048E-06    .24792E-04
   3  norm          81.026        50.833       -.25811E-05   -.29192E-03
   4  Prefactor     50.988        53.847        .10244E-05    .50432E-04
   5  Prefactor     85.012        55.065        .23569E-05    .26422E-03
   6  norm          6.6019        7.3611        .17265E-07    .22079E-04
   7  Prefactor     .10000E-03    11.771        .99878E-06** at limit **
   8  Prefactor     .10000E-03    12.970       -.98038E-06** at limit **
   9  Prefactor     9.3967        9.1316        .46621E-07    .41258E-04
  10  norm          .10000E-03    16.726        .45887E-06** at limit **
  11  Prefactor     54.654        76.409       -.18904E-05   -.69519E-05
  12  norm          12.659        15.768       -.35966E-06    .43924E-05
  13  Prefactor     29.930        282.90        .83398E-05    .31638E-04
  14  Prefactor     .10000E-03    28.420       -.76713E-06** at limit **
  15  norm          .10000E-03    20.935       -.47978E-06** at limit **
  16  Prefactor     25.267        30.276       -.75190E-07   -.17727E-05
  17  Prefactor     .10000E-03    7.8570       -.77245E-07** at limit **
  18  Prefactor     2.8970        24.520        .12841E-04   -.24365E-03
  19  norm          .10000E-03    1.7157       -.17228E-06** at limit **
  20  norm          .10000E-03    11.280       -.12846E-05** at limit **
  21  Prefactor     .10000E-03    15.522        .76485E-06** at limit **
  22  Prefactor     3.1765        1552.1       -.43937E-04   -.24034E-04
  23  Prefactor     .10000E-03    23.337        .17722E-05** at limit **
  24  Prefactor     32.376        30.286       -.10276E-05    .14950E-04
  25  norm          7.3229        4.0920        .30291E-07    .12750E-03
  26  Prefactor     .10000E-03    18.463       -.10064E-05** at limit **
  27  Prefactor     .10000E-03    261.55        .61049E-06** at limit **
  28  norm          .10000E-03    17.831       -.57934E-06** at limit **
  29  Normalizat    .10000E-01    .13223       -.38836E-05** at limit **
  30  Prefactor     1.1816        .27725        .69657E-07    .92974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.5022
  norm       = 81.0257
  Prefactor  = 50.9875
  Prefactor  = 85.0115
  norm       = 6.60194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.3967
  norm       = 0.0001
  Prefactor  = 54.6543
  norm       = 12.6595
  Prefactor  = 29.9296
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.2675
  Prefactor  = 0.0001
  Prefactor  = 2.89697
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.17645
  Prefactor  = 0.000100001
  Prefactor  = 32.3756
  norm       = 7.32294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.1816
 **********
 **   18 **HESSE 
 **********

 FCN=   775.4156     FROM HESSE     STATUS=OK           574 CALLS     4449 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.502        18.496        .11812E-03   -1.5030    
   3  norm          81.026        51.815        .22305E-03   -1.3905    
   4  Prefactor     50.988        53.901        .56167E-04   -1.4279    
   5  Prefactor     85.012        55.794        .21788E-03   -1.3861    
   6  norm          6.6019        7.3628        .77776E-04   -1.5194    
   7  Prefactor     .10000E-03    11.814        .93510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.010        .98129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.3967        9.1407        .79951E-04   -1.5095    
  10  norm          .10000E-03    16.734        .11131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.654        76.517        .54253E-04   -1.4228    
  12  norm          12.659        15.787        .11257E-03   -1.4996    
  13  Prefactor     29.930        285.27        .73264E-04   -1.4613    
  14  Prefactor     .10000E-03    28.449        .14515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    20.953        .12452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.267        30.280        .79700E-04   -1.4702    
  17  Prefactor     .10000E-03    7.8603        .76251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8970        27.097        .11931E-02   -1.5368    
  19  norm          .10000E-03    1.7316        .35581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.483        .91668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.555        .10721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1765        1669.5        .22537E-03   -1.5351    
  23  Prefactor     .10000E-03    23.475        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.376        30.255        .70420E-04   -1.4569    
  25  norm          7.3229        4.0982        .40493E-04   -1.5167    
  26  Prefactor     .10000E-03    18.517        .11702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    268.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    17.845        .11494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .13789        .59914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.1816        .27641        .19238E-03   -.86899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22924e-09
Minuit parameter uncertainties:
  1  0.000102807
  2  18.5052
  3  51.8438
  4  53.9528
  5  55.8287
  6  7.36377
  7  0.000139702
  8  0.000139382
  9  9.14203
  10  7.50185e-05
  11  76.6552
  12  15.7923
  13  185.978
  14  0.000169854
  15  9.06676e-05
  16  30.2983
  17  5.16243e-06
  18  17.7304
  19  1.01705e-05
  20  0.000195135
  21  0.000114753
  22  150.062
  23  0.000351166
  24  30.2697
  25  4.09832
  26  0.000175718
  27  0.000212587
  28  9.26521e-05
  29  1.24127e-06
  30  0.276746
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.266e+01  1.579e+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:  1.182e+00  2.767e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.000e-02  1.241e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.73e-08 +/- 7.15e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 2.45e-05

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

Saving results to:
/scratch/kocevski/673189/likelihoodResults_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.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) = 775.41445635
delta logL = 0.00118475891929

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 775.413586155
delta logL = 0.0020549538516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.489       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2393       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1810       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=   775.4136     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      256 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.489        20.672        .10906E-03    .19248E-03
   2  alpha         2.2393        1.0665        .90351E-02    .23715E-04
   3  Normalizat    .10000E-01    .13823        .59968E-02** at limit **
   4  Prefactor     1.1810        .23089        .19241E-03   -.82941E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.489
  alpha      = 2.23927
  Normalizat = 0.01
  Prefactor  = 1.18097
 **********
 **   18 **HESSE 
 **********

 FCN=   775.4136     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.489        20.226        .21812E-04   -1.4973    
   2  alpha         2.2393        1.0450        .36140E-03   -.10448    
   3  Normalizat    .10000E-01    .13824        .11994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1810        .23082        .76965E-05   -.86919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.48905e-11
Minuit parameter uncertainties:
  1  20.2361
  2  1.07848
  3  1.33478e-09
  4  0.231022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673189': 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) = 775.413586155
delta logL = 0.00205495415753

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.349e+01  2.024e+01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.239e+00  1.078e+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.181e+00  2.310e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.000e-02  1.335e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.24 +/- 1.08
Photon Flux (Free Index): 5.69e-08 +/- 6.82e-08
Energy Flux (Free Index): 2.11e-05 +/- 3.38e-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/673189/cmap_HighResolution_491788801_492048001_4FGL_J1438.9+3710_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-05', comment='SUCCESS', photon_flux='5.73e-08', energy_flux2='2.11e-05', photon_flux_error='7.15e-08', dlogl='2.05e-03', energy_flux='1.97e-05', photon_flux2='5.69e-08', job_status='DONE', time_completed='2021-09-10 03:44:41.983672', photon_index_error2='1.08', photon_index2='2.24', ts='1.28', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='2.61e-07', energy_flux_error2='3.38e-05', EG='0.01', time_epoch_completed='1631270681.98', return_code='0', job_id='673189', GAL2='1.18', EG2='0.01', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='6.82e-08', ts2='1.28', photon_index='2.31' WHERE bin_id='974' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:44:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 673189: <4FGL_J1438.9+3710_daily_bin974> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin974> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Sep 10 03:36:02 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:36:04 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:36:04 2021
Terminated at Fri Sep 10 03:44:42 2021
Results reported at Fri Sep 10 03:44:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin974 219.74 37.1752 491788801 492048001 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 :                                   389.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             261.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            520 sec.

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

