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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin994
RA = 219.74, Dec = 37.1752
tmin = 496972801, tmax = 497232001
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='673217', job_status='RUN', time_executed='2021-09-10 03:38:50.189470', time_epoch_executed='1631270330.19' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/673217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/673217/ft1_4FGL_J1438.9+3710_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/673217/ft2_4FGL_J1438.9+3710_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/673217/ft1_4FGL_J1438.9+3710_daily_bin994.fits outfile=/scratch/kocevski/673217/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin994.fits ra=219.74 dec=37.1752 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.15
user 4.89
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/673217/ft1_filtered_4FGL_J1438.9+3710_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/673217/ft2_4FGL_J1438.9+3710_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/673217/ltcube_496972801_497232001_4FGL_J1438.9+3710_daily_bin994.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/673217/ft2_4FGL_J1438.9+3710_daily_bin994.fits
.....................!
real 12.52
user 12.03
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/673217/ft1_filtered_4FGL_J1438.9+3710_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/673217/ft2_4FGL_J1438.9+3710_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/673217/ltcube_496972801_497232001_4FGL_J1438.9+3710_daily_bin994.fits outfile=/scratch/kocevski/673217/expmap_496972801_497232001_4FGL_J1438.9+3710_daily_bin994.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/673217/ltcube_496972801_497232001_4FGL_J1438.9+3710_daily_bin994.fits
.....................!
real 190.38
user 185.47
sys 4.51

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/673217/ft1_filtered_4FGL_J1438.9+3710_daily_bin994.fits scfile=/scratch/kocevski/673217/ft2_4FGL_J1438.9+3710_daily_bin994.fits outfile=/scratch/kocevski/673217/cmap_496972801_497232001_4FGL_J1438.9+3710_daily_bin994.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2324       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.164       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4714       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9743       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.763       1.0000         .10000E-03   10000.    
    15 'norm      '    13.332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.182       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7539       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4865       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.3769       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1570       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .57470       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=   3856.050     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     4533 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.863       -.51599E-05** at limit **
   2  Prefactor     2.2305        4.2875        .73671E-06   -.19174E-02
   3  norm          .10000E-03    8.8028        .33418E-05** at limit **
   4  Prefactor     .10000E-03    13.357        .68908E-05** at limit **
   5  Prefactor     .10000E-03    18.326       -.26382E-05** at limit **
   6  norm          11.596        6.7543       -.99597E-09   -.27330E-03
   7  Prefactor     .10000E-03    11.628       -.52700E-06** at limit **
   8  Prefactor     37.160        25.624       -.12618E-05   -.36634E-04
   9  Prefactor     5.4710        4.3934       -.17142E-06    .48216E-05
  10  norm          .10000E-03    9.5009       -.97228E-06** at limit **
  11  Prefactor     .10000E-03    18.676       -.42094E-05** at limit **
  12  norm          2.9733        6.4778        .84487E-06   -.12738E-02
  13  Prefactor     .10000E-03    34.945        .56294E-05** at limit **
  14  Prefactor     38.749        41.895       -.10622E-04   -.87337E-04
  15  norm          13.330        13.599       -.71831E-07   -.91298E-04
  16  Prefactor     .10000E-03    17.561        .69829E-06** at limit **
  17  Prefactor     .10000E-03    6.5526       -.14982E-05** at limit **
  18  Prefactor     43.180        27.025       -.12364E-05   -.14624E-04
  19  norm          1.7537        2.2284       -.66344E-07    .47632E-04
  20  norm          4.4862        4.9602       -.21542E-05   -.14303E-03
  21  Prefactor     .10000E-03    6.3575       -.15357E-06** at limit **
  22  Prefactor     .10000E-03    33.232        .84373E-06** at limit **
  23  Prefactor     .10000E-03    10.288       -.35020E-05** at limit **
  24  Prefactor     .10000E-03    7.1738        .17557E-05** at limit **
  25  norm          5.3769        1.9115       -.48438E-07   -.54280E-04
  26  Prefactor     .10000E-03    6.1917        .13792E-05** at limit **
  27  Prefactor     .10000E-03    9.6417       -.16988E-05** at limit **
  28  norm          .10000E-03    6.6988       -.15257E-05** at limit **
  29  Normalizat    1.1572        .23154        .22683E-05   -.60799E-04
  30  Prefactor     .57454        .22454       -.26008E-06    .46192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.2305
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5956
  Prefactor  = 0.0001
  Prefactor  = 37.1604
  Prefactor  = 5.47098
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.97328
  Prefactor  = 0.0001
  Prefactor  = 38.7494
  norm       = 13.3302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1796
  norm       = 1.75368
  norm       = 4.48619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.37687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.15721
  Prefactor  = 0.574542
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.050     FROM HESSE     STATUS=OK           576 CALLS     5109 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2305        6.4624        .12781E-02   -1.5409    
   3  norm          .10000E-03    8.8174        .17992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.596        6.7578        .58379E-03   -1.5027    
   7  Prefactor     .10000E-03    11.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.160        25.665        .65742E-04   -1.4488    
   9  Prefactor     5.4710        4.4044        .11029E-03   -1.5240    
  10  norm          .10000E-03    9.5035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9733        7.4753        .11771E-02   -1.5363    
  13  Prefactor     .10000E-03    34.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.749        42.166        .64377E-04   -1.4462    
  15  norm          13.330        13.603        .54850E-03   -1.4978    
  16  Prefactor     .10000E-03    17.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5787        .15510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     43.180        27.055        .61006E-04   -1.4393    
  19  norm          1.7537        2.2100        .99280E-04   -1.5443    
  20  norm          4.4862        4.9645        .14178E-03   -1.5284    
  21  Prefactor     .10000E-03    6.3613        .15292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.1803        .16248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.3769        1.9132        .48695E-04   -1.5244    
  26  Prefactor     .10000E-03    6.2012        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.6475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.7041        .15700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1572        .27273        .22324E-03   -.87936    
  30  Prefactor     .57454        .25958        .30836E-03   -1.0867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00059e-08
Minuit parameter uncertainties:
  1  0.000189924
  2  6.46441
  3  3.20538e-05
  4  9.9621e-05
  5  5.97614e-05
  6  6.7582
  7  1.66415e-05
  8  25.6729
  9  4.40466
  10  4.95497e-06
  11  8.04045e-05
  12  7.47766
  13  0.000127045
  14  42.1989
  15  13.6063
  16  6.07976e-05
  17  1.49886e-05
  18  27.0627
  19  2.21005
  20  4.965
  21  5.30412e-06
  22  1.256e-05
  23  4.63948e-05
  24  2.22564e-05
  25  1.91326
  26  1.18928e-05
  27  2.43753e-05
  28  1.83118e-05
  29  0.273065
  30  0.260124
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.973e+00  7.478e+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:  5.745e-01  2.601e-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.157e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/673217/likelihoodResults_496972801_497232001_4FGL_J1438.9+3710_daily_bin994.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) = 3856.04927139
delta logL = 0.000517699591455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3856.04925176
delta logL = 0.000537334497494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9542       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3818       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57533       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=   3856.049     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      260 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9524        7.4651        .23627E-03   -.20377E-04
   2  alpha         2.3805        1.9462        .42775E-01    .25694E-05
   3  Normalizat    1.1560        .25762        .22333E-03    .81260E-04
   4  Prefactor     .57536        .25721        .30816E-03    .11431E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95241
  alpha      = 2.38054
  Normalizat = 1.15604
  Prefactor  = 0.575358
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.049     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9524        7.3089        .94510E-05   -1.5364    
   2  alpha         2.3805        1.9168        .17110E-02   -.47801E-01
   3  Normalizat    1.1560        .25764        .44666E-04   -.87972    
   4  Prefactor     .57536        .25719        .12326E-04   -1.0863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65947e-11
Minuit parameter uncertainties:
  1  7.31107
  2  2.18518
  3  0.257919
  4  0.257719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/673217': 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) = 3856.04925152
delta logL = 0.000537576874649

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.952e+00  7.311e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.381e+00  2.185e+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:  5.754e-01  2.577e-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.156e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
Ra Dec: 219.740 37.175

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/673217/cmap_HighResolution_496972801_497232001_4FGL_J1438.9+3710_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-10 03:49:49.104320', job_id='673217', GAL2='0.58', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631270989.1', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='5.38e-04', ts2='0.21', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='994' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 673217: <4FGL_J1438.9+3710_daily_bin994> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin994 219.74 37.1752 496972801 497232001 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

