/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 103 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin315
RA = 219.74, Dec = 37.1752
tmin = 320976001, tmax = 321235201
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='667390', job_status='RUN', time_executed='2021-09-10 03:18:12.491038', time_epoch_executed='1631269092.49' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667390/ft1_4FGL_J1438.9+3710_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667390/ft2_4FGL_J1438.9+3710_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667390/ft1_4FGL_J1438.9+3710_daily_bin315.fits outfile=/scratch/kocevski/667390/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin315.fits ra=219.74 dec=37.1752 rad=12.0 tmin=320976001.0 tmax=321235201.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.36
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667390/ft1_filtered_4FGL_J1438.9+3710_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/667390/ft2_4FGL_J1438.9+3710_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/667390/ltcube_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.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/667390/ft2_4FGL_J1438.9+3710_daily_bin315.fits
.....................!
real 11.68
user 11.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667390/ft1_filtered_4FGL_J1438.9+3710_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/667390/ft2_4FGL_J1438.9+3710_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/667390/ltcube_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.fits outfile=/scratch/kocevski/667390/expmap_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.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/667390/ltcube_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.fits
.....................!
real 190.20
user 185.51
sys 4.31

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/667390/ft1_filtered_4FGL_J1438.9+3710_daily_bin315.fits scfile=/scratch/kocevski/667390/ft2_4FGL_J1438.9+3710_daily_bin315.fits outfile=/scratch/kocevski/667390/cmap_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667390/ft1_filtered_4FGL_J1438.9+3710_daily_bin315.fits scfile=/scratch/kocevski/667390/ft2_4FGL_J1438.9+3710_daily_bin315.fits outfile=/scratch/kocevski/667390/cmap_HighResolution_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.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/667390/ft1_filtered_4FGL_J1438.9+3710_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/667390/ft2_4FGL_J1438.9+3710_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667390/Model_4FGL_J1438.9+3710_daily_bin315.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/667390/ft1_filtered_4FGL_J1438.9+3710_daily_bin315.fits.....................!
real 49.01
user 47.63
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12948E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.774       1.0000         .10000E-03   10000.    
     6 'norm      '    2.7015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5115       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2554       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41916E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10458E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.912       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1386       1.0000         .10000E-03   10000.    
    19 'norm      '    .12480       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3568       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3941       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.964       1.0000         .10000E-03   10000.    
    25 'norm      '    12.008       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1067       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79237       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=   6031.226     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3914 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.837       -.65633E-06** at limit **
   2  Prefactor     .10000E-03    11.589        .82057E-07** at limit **
   3  norm          15.533        13.817        .12419E-07   -.15884E-04
   4  Prefactor     .10000E-03    6.4085        .44969E-06** at limit **
   5  Prefactor     26.791        20.335       -.96762E-06   -.27531E-04
   6  norm          2.7017        2.4506       -.36325E-07   -.22690E-04
   7  Prefactor     3.5201        9.3964        .30836E-05   -.42809E-04
   8  Prefactor     .10000E-03    25.922        .29261E-06** at limit **
   9  Prefactor     2.2561        3.2918        .10672E-06   -.29401E-04
  10  norm          .10000E-03    5.4986       -.18128E-06** at limit **
  11  Prefactor     .10000E-03    79.724        .53962E-05** at limit **
  12  norm          .10000E-03    2.9059       -.35967E-07** at limit **
  13  Prefactor     57.663        48.426       -.20923E-06   -.61456E-04
  14  Prefactor     16.904        40.398        .23437E-05   -.92259E-05
  15  norm          .10000E-03    4.7194        .30957E-06** at limit **
  16  Prefactor     .10000E-03    6.5586        .32272E-06** at limit **
  17  Prefactor     .10000E-03    3.2453       -.75471E-07** at limit **
  18  Prefactor     5.1396        7.3803        .14779E-05    .12046E-05
  19  norm          .12621        .76361       -.78785E-07    .60209E-04
  20  norm          3.3560        3.8262        .49925E-07    .41401E-04
  21  Prefactor     .10000E-03    5.3948       -.16599E-06** at limit **
  22  Prefactor     .10000E-03    29.497       -.15652E-06** at limit **
  23  Prefactor     6.3937        17.424        .70273E-06    .10633E-04
  24  Prefactor     17.970        16.542       -.16357E-06    .13457E-04
  25  norm          12.007        2.2046       -.39527E-08   -.33301E-03
  26  Prefactor     .10000E-03    19.919        .73815E-06** at limit **
  27  Prefactor     .10000E-03    8.2591       -.63871E-06** at limit **
  28  norm          .10000E-03    5.0438       -.23355E-06** at limit **
  29  Normalizat    1.1061        .18910       -.12956E-05   -.16685E-03
  30  Prefactor     .79301        .19027        .39479E-06   -.12141E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5326
  Prefactor  = 0.0001
  Prefactor  = 26.7915
  norm       = 2.70175
  Prefactor  = 3.52014
  Prefactor  = 0.0001
  Prefactor  = 2.25612
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 57.6635
  Prefactor  = 16.9038
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.1396
  norm       = 0.12621
  norm       = 3.35605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.39366
  Prefactor  = 17.9699
  norm       = 12.0066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.10607
  Prefactor  = 0.793008
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.226     FROM HESSE     STATUS=OK           582 CALLS     4496 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.533        13.828        .10164E-03   -1.4920    
   4  Prefactor     .10000E-03    6.4145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.791        20.459        .77421E-04   -1.4672    
   6  norm          2.7017        2.4563        .11246E-03   -1.5379    
   7  Prefactor     3.5201        9.4090        .10787E-02   -1.5333    
   8  Prefactor     .10000E-03    26.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.2561        3.2753        .16241E-03   -1.5408    
  10  norm          .10000E-03    5.5042        .17785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    80.746        .21242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9399        .12924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.663        48.443        .52829E-04   -1.4188    
  14  Prefactor     16.904        40.576        .97392E-04   -1.4885    
  15  norm          .10000E-03    4.7390        .16473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2560        .13653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1396        7.3757        .88676E-03   -1.5255    
  19  norm          .12621        3.0429        .12831E-02   -1.5637    
  20  norm          3.3560        3.8050        .14903E-03   -1.5342    
  21  Prefactor     .10000E-03    5.3982        .17554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3937        17.304        .15873E-03   -1.5202    
  24  Prefactor     17.970        16.446        .94497E-04   -1.4860    
  25  norm          12.007        2.2011        .47140E-04   -1.5015    
  26  Prefactor     .10000E-03    20.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    8.2685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.0507        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1061        .22254        .23311E-03   -.89557    
  30  Prefactor     .79301        .22413        .28872E-03   -.99987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2085e-10
Minuit parameter uncertainties:
  1  7.02514e-06
  2  8.69171e-07
  3  13.831
  4  8.56988e-07
  5  20.464
  6  2.45635
  7  9.41297
  8  1.30635e-05
  9  3.27554
  10  7.10531e-07
  11  0.000211799
  12  2.16106e-06
  13  48.4761
  14  40.6425
  15  3.83055e-06
  16  1.06875e-05
  17  3.88352e-07
  18  7.37702
  19  1.23901
  20  3.8053
  21  1.19233e-05
  22  2.8891e-06
  23  17.318
  24  16.45
  25  2.20107
  26  1.29547e-05
  27  4.29393e-06
  28  1.76871e-06
  29  0.222725
  30  0.224383
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  2.161e-06  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:  7.930e-01  2.244e-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.106e+00  2.227e-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: 4.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/667390/likelihoodResults_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.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): 102
logL (Free Index) = 6031.22724475
delta logL = -0.00161621090774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6031.22562855
delta logL = -1.03264028439e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3180       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79301       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=   6030.826     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      287 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17674        .58183        .87789E-02    .24740E-02
   2  alpha         5.0000        4.7881        .16516    ** at limit **
   3  Normalizat    1.0542        .24427        .23311E-03    .16240E-04
   4  Prefactor     .83070        .24060        .28872E-03    .44101E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.176744
  alpha      = 5
  Normalizat = 1.05415
  Prefactor  = 0.830696
 **********
 **   18 **HESSE 
 **********

 FCN=   6030.826     FROM HESSE     STATUS=OK            27 CALLS      314 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17674        .22368        .41321E-03   -1.5624    
   2  alpha         5.0000        3.1663        .66064E-02    102.10    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0542        .21587        .93246E-05   -.91238    
   4  Prefactor     .83070        .22708        .11549E-04   -.98607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39954e-11
Minuit parameter uncertainties:
  1  0.223681
  2  6.91561e-06
  3  0.216052
  4  0.227336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667390': 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) = 6030.82580303
delta logL = 0.399825506116

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.767e-01  2.237e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  6.916e-06  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:  8.307e-01  2.273e-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.054e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/667390/cmap_HighResolution_320976001_321235201_4FGL_J1438.9+3710_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='4.91e-08', time_completed='2021-09-10 03:31:50.285779', job_id='667390', GAL2='0.83', fit_tolerance='1e-08', EG2='1.05', EG='1.11', time_epoch_completed='1631269910.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.00e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='315' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 667390: <4FGL_J1438.9+3710_daily_bin315> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin315> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:16:18 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:16:20 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:16:20 2021
Terminated at Fri Sep 10 03:31:51 2021
Results reported at Fri Sep 10 03:31:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin315 219.74 37.1752 320976001 321235201 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 :                                   814.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

