/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 87 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1438.9+3710_daily_bin41
RA = 219.74, Dec = 37.1752
tmin = 249955201, tmax = 250214401
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='665826', job_status='RUN', time_executed='2021-09-10 03:12:54.382593', time_epoch_executed='1631268774.38' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665826/ft1_4FGL_J1438.9+3710_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665826/ft2_4FGL_J1438.9+3710_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665826/ft1_4FGL_J1438.9+3710_daily_bin41.fits outfile=/scratch/kocevski/665826/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin41.fits ra=219.74 dec=37.1752 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.42
user 1.25
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665826/ft1_filtered_4FGL_J1438.9+3710_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/665826/ft2_4FGL_J1438.9+3710_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/665826/ltcube_249955201_250214401_4FGL_J1438.9+3710_daily_bin41.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/665826/ft2_4FGL_J1438.9+3710_daily_bin41.fits
.....................!
real 12.80
user 12.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665826/ft1_filtered_4FGL_J1438.9+3710_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/665826/ft2_4FGL_J1438.9+3710_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/665826/ltcube_249955201_250214401_4FGL_J1438.9+3710_daily_bin41.fits outfile=/scratch/kocevski/665826/expmap_249955201_250214401_4FGL_J1438.9+3710_daily_bin41.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/665826/ltcube_249955201_250214401_4FGL_J1438.9+3710_daily_bin41.fits
.....................!
real 189.89
user 185.18
sys 4.34

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/665826/ft1_filtered_4FGL_J1438.9+3710_daily_bin41.fits scfile=/scratch/kocevski/665826/ft2_4FGL_J1438.9+3710_daily_bin41.fits outfile=/scratch/kocevski/665826/cmap_249955201_250214401_4FGL_J1438.9+3710_daily_bin41.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/665826/ft1_filtered_4FGL_J1438.9+3710_daily_bin41.fits scfile=/scratch/kocevski/665826/ft2_4FGL_J1438.9+3710_daily_bin41.fits outfile=/scratch/kocevski/665826/cmap_HighResolution_249955201_250214401_4FGL_J1438.9+3710_daily_bin41.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1485       1.0000         .10000E-03   10000.    
     3 'norm      '    12.259       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.239       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.800       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.3363       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.994       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5536       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.769       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.6112       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3849       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78577       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .90615       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=   6431.477     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3894 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.758        73.535        .14008E-05    .42815E-04
   2  Prefactor     1.1495        4.5935        .22882E-05    .72575E-05
   3  norm          12.262        12.742        .25323E-06   -.91813E-05
   4  Prefactor     12.239        14.496       -.11580E-07   -.78825E-05
   5  Prefactor     10.805        14.239        .37254E-06   -.42403E-05
   6  norm          2.9273        3.3187        .20706E-06   -.11962E-04
   7  Prefactor     6.3447        11.766        .57071E-06   -.67332E-05
   8  Prefactor     .10000E-03    9.4955       -.69883E-07** at limit **
   9  Prefactor     .10000E-03    .96433       -.88462E-07** at limit **
  10  norm          .10000E-03    5.2977       -.43744E-07** at limit **
  11  Prefactor     .10000E-03    41.029       -.72736E-06** at limit **
  12  norm          12.997        7.7781        .20468E-06    .15545E-04
  13  Prefactor     .10000E-03    26.461       -.66778E-07** at limit **
  14  Prefactor     .10000E-03    14.111       -.22782E-06** at limit **
  15  norm          .10000E-03    6.7349       -.45782E-07** at limit **
  16  Prefactor     3.2308        11.842        .11715E-05    .21508E-04
  17  Prefactor     5.5587        6.6222        .49602E-06    .16151E-03
  18  Prefactor     .10000E-03    1.9288       -.48841E-07** at limit **
  19  norm          .10000E-03    .58503       -.28691E-06** at limit **
  20  norm          .10000E-03    .88782       -.45110E-07** at limit **
  21  Prefactor     .10000E-03    2.4342       -.65021E-07** at limit **
  22  Prefactor     .10000E-03    22.378       -.12135E-06** at limit **
  23  Prefactor     12.773        15.280        .64662E-06    .19691E-04
  24  Prefactor     .10000E-03    9.8645       -.15135E-06** at limit **
  25  norm          9.6117        2.4394       -.30829E-06   -.11116E-02
  26  Prefactor     1.3729        54.671        .76960E-05    .37072E-04
  27  Prefactor     .10000E-03    7.0319       -.93574E-07** at limit **
  28  norm          .10000E-03    8.2303       -.21293E-06** at limit **
  29  Normalizat    .78523        .16958       -.29415E-05    .13252E-03
  30  Prefactor     .90669        .17062        .22743E-05   -.16244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7578
  Prefactor  = 1.14947
  norm       = 12.2618
  Prefactor  = 12.2389
  Prefactor  = 10.8047
  norm       = 2.92727
  Prefactor  = 6.34471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.9966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.23081
  Prefactor  = 5.55868
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7735
  Prefactor  = 0.0001
  norm       = 9.61173
  Prefactor  = 1.37288
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.78523
  Prefactor  = 0.906687
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.477     FROM HESSE     STATUS=OK           584 CALLS     4478 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.758        73.771        .72367E-04   -1.4598    
   2  Prefactor     1.1495        4.5334        .32348E-03   -1.5494    
   3  norm          12.262        12.733        .11441E-03   -1.5007    
   4  Prefactor     12.239        14.465        .11450E-03   -1.5008    
   5  Prefactor     10.805        14.240        .12191E-03   -1.5050    
   6  norm          2.9273        3.3019        .14858E-03   -1.5366    
   7  Prefactor     6.3447        11.696        .15946E-03   -1.5204    
   8  Prefactor     .10000E-03    9.5153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .97149        .76854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    5.3021        .18019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.997        7.7607        .11112E-03   -1.4987    
  13  Prefactor     .10000E-03    26.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2308        11.759        .22564E-03   -1.5348    
  17  Prefactor     5.5587        6.4714        .17048E-03   -1.5236    
  18  Prefactor     .10000E-03    1.9333        .10876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .84149        .11379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .89130        .73777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4417        .12214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.773        15.251        .11210E-03   -1.4993    
  24  Prefactor     .10000E-03    10.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.6117        2.3480        .42820E-04   -1.5088    
  26  Prefactor     1.3729        52.551        .36961E-03   -1.5474    
  27  Prefactor     .10000E-03    7.0422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    8.2901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .78523        .18539        .23472E-03   -1.0062    
  30  Prefactor     .90669        .18933        .24131E-03   -.95908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69284e-10
Minuit parameter uncertainties:
  1  73.9907
  2  4.53479
  3  12.7355
  4  14.4694
  5  14.2448
  6  3.30209
  7  11.6998
  8  2.96184e-06
  9  9.66566e-07
  10  4.69368e-06
  11  8.24399e-05
  12  7.76131
  13  2.52783e-05
  14  3.55344e-06
  15  8.54424e-06
  16  11.7674
  17  6.47217
  18  8.60264e-07
  19  1.05577e-05
  20  3.7805e-07
  21  7.65654e-07
  22  1.09347e-05
  23  15.2558
  24  1.12898e-05
  25  2.34806
  26  17.0033
  27  5.17559e-07
  28  8.42944e-06
  29  0.185538
  30  0.18947
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.300e+01  7.761e+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:  9.067e-01  1.895e-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.852e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.60
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 2.02e-05 +/- 1.21e-05

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) = 6429.87727101
delta logL = 1.59966186126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6429.84655063
delta logL = 1.6303822398

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3422       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1234       1.0000          .0000       5.0000    
     3 'Normalizat'    .67754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0022       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=   6429.847     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3440        15.193        .66973E-02    .34978E-03
   2  alpha         4.1241        4.4343        .25922        .38596E-04
   3  Normalizat    .67728        .58739E-01    .41990E-01    .78055E-05
   4  Prefactor     1.0023        .65387E-01    .44920E-01   -.84102E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34402
  alpha      = 4.12405
  Normalizat = 0.677282
  Prefactor  = 1.00226
 **********
 **   18 **HESSE 
 **********

 FCN=   6429.847     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3440        5.4619        .49958E-04   -1.5402    
   2  alpha         4.1241        1.3921        .11673E-02    .70709    
   3  Normalizat    .67728        .18054        .25069E-03   -1.0480    
   4  Prefactor     1.0023        .19576        .23099E-03   -.92654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65899e-13
Minuit parameter uncertainties:
  1  5.4631
  2  1.56217
  3  0.180701
  4  0.195897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665826': 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) = 6429.84654204
delta logL = 1.63039082921

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.344e+00  5.463e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  4.124e+00  1.562e+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.002e+00  1.959e-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.773e-01  1.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.45
Ra Dec: 219.740 37.175
Photon Index (Free Index): 4.12 +/- 1.56
Photon Flux (Free Index): 1.18e-07 +/- 5.22e-08
Energy Flux (Free Index): 1.79e-05 +/- 8.75e-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/665826/cmap_HighResolution_249955201_250214401_4FGL_J1438.9+3710_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='1.79e-05', photon_flux_error='3.51e-08', dlogl='1.63e+00', energy_flux='2.02e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-10 03:25:12.270971', photon_index_error2='1.56', photon_index2='4.12', ts='4.60', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='8.75e-06', EG='0.79', time_epoch_completed='1631269512.27', return_code='0', job_id='665826', GAL2='1.00', EG2='0.68', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.22e-08', ts2='8.45', photon_index='2.31' WHERE bin_id='41' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 665826: <4FGL_J1438.9+3710_daily_bin41> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin41> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:10 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:11 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:11:11 2021
Terminated at Fri Sep 10 03:25:12 2021
Results reported at Fri Sep 10 03:25:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin41 219.74 37.1752 249955201 250214401 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 :                                   736.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

