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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin977
RA = 219.74, Dec = 37.1752
tmin = 492566401, tmax = 492825601
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='673194', job_status='RUN', time_executed='2021-09-10 03:39:05.698804', time_epoch_executed='1631270345.7' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='977'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673194/ft1_4FGL_J1438.9+3710_daily_bin977.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673194/ft2_4FGL_J1438.9+3710_daily_bin977.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673194/ft1_4FGL_J1438.9+3710_daily_bin977.fits outfile=/scratch/kocevski/673194/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin977.fits ra=219.74 dec=37.1752 rad=12.0 tmin=492566401.0 tmax=492825601.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.57
user 3.31
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673194/ft1_filtered_4FGL_J1438.9+3710_daily_bin977.fits evtable="EVENTS" scfile=/scratch/kocevski/673194/ft2_4FGL_J1438.9+3710_daily_bin977.fits sctable="SC_DATA" expcube=/scratch/kocevski/673194/ltcube_492566401_492825601_4FGL_J1438.9+3710_daily_bin977.fits outfile=/scratch/kocevski/673194/expmap_492566401_492825601_4FGL_J1438.9+3710_daily_bin977.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/673194/ltcube_492566401_492825601_4FGL_J1438.9+3710_daily_bin977.fits
.....................!
real 192.77
user 187.30
sys 4.73

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/673194/ft1_filtered_4FGL_J1438.9+3710_daily_bin977.fits scfile=/scratch/kocevski/673194/ft2_4FGL_J1438.9+3710_daily_bin977.fits outfile=/scratch/kocevski/673194/cmap_492566401_492825601_4FGL_J1438.9+3710_daily_bin977.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/673194/ft1_filtered_4FGL_J1438.9+3710_daily_bin977.fits scfile=/scratch/kocevski/673194/ft2_4FGL_J1438.9+3710_daily_bin977.fits outfile=/scratch/kocevski/673194/cmap_HighResolution_492566401_492825601_4FGL_J1438.9+3710_daily_bin977.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6261       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.263       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24345       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14584E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0973       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9389       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11603E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11667E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.1081       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47277E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.7422       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11347E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.708       1.0000         .10000E-03   10000.    
    25 'norm      '    6.4038       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .70250       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11351E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .76294       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2749       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=   6055.118     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     3374 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6064        323.52        .48317E-04    .53301E-04
   2  Prefactor     .10000E-03    1.3453       -.17061E-07** at limit **
   3  norm          1.7828        33.723       -.67744E-05   -.73987E-04
   4  Prefactor     10.252        12.137        .61712E-06    .10770E-03
   5  Prefactor     .10537E-03    14.434       -.57850E-05** at limit **
   6  norm          .10000E-03    1.1353        .14607E-06** at limit **
   7  Prefactor     .10000E-03    8.7073       -.42706E-07** at limit **
   8  Prefactor     .10002E-03    70.116        .52172E-04** at limit **
   9  Prefactor     4.0961        3.3153       -.99893E-06    .26146E-02
  10  norm          5.9296        11.009        .10511E-05    .84425E-04
  11  Prefactor     .10000E-03    8.7476       -.54106E-06** at limit **
  12  norm          .10000E-03    8.1370        .76531E-06** at limit **
  13  Prefactor     .10000E-03    32.951        .38253E-05** at limit **
  14  Prefactor     .10000E-03    15.650        .17741E-05** at limit **
  15  norm          9.1133        8.3042        .13819E-06    .21404E-04
  16  Prefactor     6.1761        12.838       -.11777E-05   -.84865E-05
  17  Prefactor     .10000E-03    5.6805       -.45464E-07** at limit **
  18  Prefactor     .10000E-03    3.3319       -.23165E-05** at limit **
  19  norm          3.7403        1.9455       -.99848E-07    .38032E-03
  20  norm          .10000E-03    .80472       -.41445E-07** at limit **
  21  Prefactor     .10000E-03    2.3746       -.11005E-06** at limit **
  22  Prefactor     .10001E-03    30.432       -.10218E-04** at limit **
  23  Prefactor     .10000E-03    10.221        .11874E-05** at limit **
  24  Prefactor     10.708        10.412        .70978E-06    .13582E-03
  25  norm          6.4032        1.9147        .24419E-06    .19339E-02
  26  Prefactor     .70610        11.632       -.28631E-05   -.12609E-03
  27  Prefactor     .10000E-03    39.150        .13471E-04** at limit **
  28  norm          .10000E-03    12.281       -.24505E-05** at limit **
  29  Normalizat    .76348        .17890        .26932E-05    .39947E-03
  30  Prefactor     1.2745        .18857        .15489E-06    .38231E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60641
  Prefactor  = 0.0001
  norm       = 1.78283
  Prefactor  = 10.2524
  Prefactor  = 0.000105367
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 4.09607
  norm       = 5.92958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.11332
  Prefactor  = 6.17613
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.74032
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 10.7076
  norm       = 6.40315
  Prefactor  = 0.706098
  Prefactor  = 0.000100002
  norm       = 0.000100001
  Normalizat = 0.763485
  Prefactor  = 1.27454
 **********
 **   18 **HESSE 
 **********

 FCN=   6055.118     FROM HESSE     STATUS=OK           590 CALLS     3964 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6064        339.92        .25165E-03   -1.5385    
   2  Prefactor     .10000E-03    1.3480        .88142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7828        33.864        .31218E-03   -1.5441    
   4  Prefactor     10.252        12.092        .12507E-03   -1.5067    
   5  Prefactor     .10537E-03    17.745        .85612E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1391        .80955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    70.191        .47430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0961        3.5274        .64386E-03   -1.5303    
  10  norm          5.9296        10.837        .16478E-03   -1.5221    
  11  Prefactor     .10000E-03    8.7744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.1133        8.2984        .13280E-03   -1.5104    
  16  Prefactor     6.1761        12.814        .16158E-03   -1.5211    
  17  Prefactor     .10000E-03    5.7102        .18078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.139        .27284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.7403        1.9424        .72929E-04   -1.5321    
  20  norm          .10000E-03    .80589        .68155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3774        .11703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    30.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.708        10.422        .12244E-03   -1.5053    
  25  norm          6.4032        1.8420        .47320E-04   -1.5202    
  26  Prefactor     .70610        37.301        .42624E-02   -1.5540    
  27  Prefactor     .10000E-03    40.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    12.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .76348        .21053        .26138E-03   -1.0144    
  30  Prefactor     1.2745        .22495        .23782E-03   -.84067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35963e-08
Minuit parameter uncertainties:
  1  59.8798
  2  3.15134e-06
  3  15.55
  4  12.0953
  5  0.0195236
  6  3.85208e-06
  7  3.04268e-05
  8  0.00227881
  9  3.52761
  10  10.8401
  11  4.45201e-05
  12  5.0259e-05
  13  0.000240454
  14  8.47357e-05
  15  8.29944
  16  12.8196
  17  1.26392e-05
  18  0.00023936
  19  1.94246
  20  6.18066e-06
  21  2.85481e-05
  22  0.000903171
  23  6.3111e-05
  24  10.4239
  25  1.84202
  26  10.2702
  27  0.000607333
  28  0.000266658
  29  0.210758
  30  0.225126
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  5.026e-05  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.275e+00  2.251e-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.635e-01  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/673194/likelihoodResults_492566401_492825601_4FGL_J1438.9+3710_daily_bin977.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) = 6055.11895792
delta logL = -0.000566876832636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6053.95222058
delta logL = 1.1661704559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27362       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .68185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3342       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=   6053.952     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      294 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27361        8.6459        .69453E-02    .97904E-03
   2  alpha         5.0000        4.1527        .46283    ** at limit **
   3  Normalizat    .68179        .11586        .62229E-01   -.28463E-04
   4  Prefactor     1.3342        .10941        .52741E-01   -.25269E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.273611
  alpha      = 5
  Normalizat = 0.681785
  Prefactor  = 1.33417
 **********
 **   18 **HESSE 
 **********

 FCN=   6053.952     FROM HESSE     STATUS=OK            33 CALLS      327 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27361        .22293        .31898E-03   -1.5603    
   2  alpha         5.0000        3.2234        .58362E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .68179        .19928        .27529E-03   -1.0462    
   4  Prefactor     1.3342        .22536        .23317E-03   -.82297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21299e-10
Minuit parameter uncertainties:
  1  0.222932
  2  7.25068e-08
  3  0.199487
  4  0.225523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673194': 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) = 6053.95221893
delta logL = 1.16617210555

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.736e-01  2.229e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  7.251e-08  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.334e+00  2.255e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  6.818e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.48
Ra Dec: 219.740 37.175
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.31e-08 +/- 4.30e-08
Energy Flux (Free Index): 7.23e-06 +/- 5.87e-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/673194/cmap_HighResolution_492566401_492825601_4FGL_J1438.9+3710_daily_bin977.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', comment='SUCCESS', energy_flux2='7.23e-06', dlogl='1.17e+00', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-09-10 03:52:09.497189', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='6.51e-08', energy_flux_error2='5.87e-06', EG='0.76', time_epoch_completed='1631271129.5', return_code='0', job_id='673194', GAL2='1.33', EG2='0.68', return_code2='0', photon_flux_error2='4.30e-08', ts2='2.48', photon_index='2.31' WHERE bin_id='977' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:52:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 673194: <4FGL_J1438.9+3710_daily_bin977> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin977> 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) <bullet0213>, 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:52:09 2021
Results reported at Fri Sep 10 03:52:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin977 219.74 37.1752 492566401 492825601 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 :                                   779.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

