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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin219
RA = 219.74, Dec = 37.1752
tmin = 296092801, tmax = 296352001
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='667255', job_status='RUN', time_executed='2021-09-10 03:19:15.839903', time_epoch_executed='1631269155.84' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667255/ft1_4FGL_J1438.9+3710_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667255/ft2_4FGL_J1438.9+3710_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667255/ft1_4FGL_J1438.9+3710_daily_bin219.fits outfile=/scratch/kocevski/667255/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin219.fits ra=219.74 dec=37.1752 rad=12.0 tmin=296092801.0 tmax=296352001.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 2.39
user 2.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/667255/ft2_4FGL_J1438.9+3710_daily_bin219.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/667255/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin219.fits evtable="EVENTS" outfile="/scratch/kocevski/667255/ft1_filtered_4FGL_J1438.9+3710_daily_bin219.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667255/ft1_filtered_4FGL_J1438.9+3710_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/667255/ft2_4FGL_J1438.9+3710_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/667255/ltcube_296092801_296352001_4FGL_J1438.9+3710_daily_bin219.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/667255/ft2_4FGL_J1438.9+3710_daily_bin219.fits
.....................!
real 12.12
user 11.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667255/ft1_filtered_4FGL_J1438.9+3710_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/667255/ft2_4FGL_J1438.9+3710_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/667255/ltcube_296092801_296352001_4FGL_J1438.9+3710_daily_bin219.fits outfile=/scratch/kocevski/667255/expmap_296092801_296352001_4FGL_J1438.9+3710_daily_bin219.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/667255/ltcube_296092801_296352001_4FGL_J1438.9+3710_daily_bin219.fits
.....................!
real 189.86
user 185.13
sys 4.15

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/667255/ft1_filtered_4FGL_J1438.9+3710_daily_bin219.fits scfile=/scratch/kocevski/667255/ft2_4FGL_J1438.9+3710_daily_bin219.fits outfile=/scratch/kocevski/667255/cmap_296092801_296352001_4FGL_J1438.9+3710_daily_bin219.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/667255/ft1_filtered_4FGL_J1438.9+3710_daily_bin219.fits scfile=/scratch/kocevski/667255/ft2_4FGL_J1438.9+3710_daily_bin219.fits outfile=/scratch/kocevski/667255/cmap_HighResolution_296092801_296352001_4FGL_J1438.9+3710_daily_bin219.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/667255/ft1_filtered_4FGL_J1438.9+3710_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/667255/ft2_4FGL_J1438.9+3710_daily_bin219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/667255/Model_4FGL_J1438.9+3710_daily_bin219.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/667255/ft1_filtered_4FGL_J1438.9+3710_daily_bin219.fits.....................!
real 51.72
user 50.39
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9934       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2429       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.772       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.282       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1248       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8277       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.608       1.0000         .10000E-03   10000.    
    12 'norm      '    11.580       1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.892       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9563       1.0000         .10000E-03   10000.    
    19 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.9978       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9375       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.966       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.527       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.739       1.0000         .10000E-03   10000.    
    25 'norm      '    8.4380       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.1930       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85702       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96130       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=   6449.104     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3949 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.019        57.319       -.25360E-05   -.35437E-04
   2  Prefactor     5.9926        6.1298        .15486E-06    .57176E-04
   3  norm          5.2425        9.7457        .41215E-06    .96855E-04
   4  Prefactor     14.777        25.698       -.69551E-06    .69536E-05
   5  Prefactor     10.280        13.419        .42650E-06    .13916E-04
   6  norm          3.1247        3.2276        .48676E-07    .64109E-04
   7  Prefactor     28.807        22.000        .68534E-06    .18867E-03
   8  Prefactor     .10001E-03    30.047       -.27586E-05** at limit **
   9  Prefactor     .10000E-03    3.2262       -.38331E-06** at limit **
  10  norm          4.8297        14.828       -.49534E-06   -.24019E-06
  11  Prefactor     35.605        21.241        .82509E-07    .27057E-04
  12  norm          11.581        6.8904        .15935E-07    .26120E-04
  13  Prefactor     42.891        32.050        .36980E-07    .80306E-05
  14  Prefactor     .10000E-03    40.531       -.64434E-06** at limit **
  15  norm          .10000E-03    3.8531       -.14939E-07** at limit **
  16  Prefactor     .10000E-03    4.2283       -.56785E-07** at limit **
  17  Prefactor     .10000E-03    1.8698       -.16180E-07** at limit **
  18  Prefactor     1.9557        5.9053        .16186E-06   -.49569E-04
  19  norm          .10000E-03    .49202        .24521E-06** at limit **
  20  norm          5.9974        4.0832       -.91494E-06   -.25862E-05
  21  Prefactor     1.9403        12.888        .12969E-04   -.83998E-04
  22  Prefactor     40.976        43.278       -.86078E-06   -.49714E-04
  23  Prefactor     28.528        23.765       -.52748E-06   -.29421E-04
  24  Prefactor     17.735        17.597       -.30231E-05   -.78677E-05
  25  norm          8.4381        1.8079        .22956E-07    .10552E-03
  26  Prefactor     .10000E-03    6.7958       -.40344E-07** at limit **
  27  Prefactor     .10000E-03    6.3055        .94429E-07** at limit **
  28  norm          3.1934        8.0914        .89908E-07   -.42161E-05
  29  Normalizat    .85718        .17714       -.75917E-06   -.29252E-04
  30  Prefactor     .96119        .18489        .37893E-06    .74821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.0187
  Prefactor  = 5.99263
  norm       = 5.24254
  Prefactor  = 14.7768
  Prefactor  = 10.2801
  norm       = 3.12469
  Prefactor  = 28.8074
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 4.82973
  Prefactor  = 35.6053
  norm       = 11.5806
  Prefactor  = 42.8909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95574
  norm       = 0.0001
  norm       = 5.9974
  Prefactor  = 1.94025
  Prefactor  = 40.9757
  Prefactor  = 28.5282
  Prefactor  = 17.7349
  norm       = 8.43809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19345
  Normalizat = 0.857183
  Prefactor  = 0.96119
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.104     FROM HESSE     STATUS=OK           594 CALLS     4543 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.019        57.299        .63387E-04   -1.4442    
   2  Prefactor     5.9926        6.1473        .16402E-03   -1.5218    
   3  norm          5.2425        9.7357        .17555E-03   -1.5250    
   4  Prefactor     14.777        25.653        .10421E-03   -1.4939    
   5  Prefactor     10.280        13.438        .62478E-03   -1.5067    
   6  norm          3.1247        3.2167        .14077E-03   -1.5354    
   7  Prefactor     28.807        21.997        .74635E-04   -1.4634    
   8  Prefactor     .10001E-03    30.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3530        .28141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8297        14.789        .18309E-03   -1.5268    
  11  Prefactor     35.605        21.263        .67159E-04   -1.4514    
  12  norm          11.581        6.8905        .11772E-03   -1.5027    
  13  Prefactor     42.891        32.049        .61212E-04   -1.4397    
  14  Prefactor     .10000E-03    40.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8655        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.2355        .16127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8744        .10722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9557        5.8883        .29663E-03   -1.5428    
  19  norm          .10000E-03    .74492        .10885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.9974        4.0891        .11917E-03   -1.5218    
  21  Prefactor     1.9403        13.252        .14915E-02   -1.5429    
  22  Prefactor     40.976        43.210        .62629E-04   -1.4427    
  23  Prefactor     28.528        23.749        .75010E-04   -1.4639    
  24  Prefactor     17.735        17.727        .95094E-04   -1.4865    
  25  norm          8.4381        1.8074        .47719E-04   -1.5127    
  26  Prefactor     .10000E-03    6.8183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.3086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.1934        8.0702        .22676E-03   -1.5351    
  29  Normalizat    .85718        .20773        .25286E-03   -.97981    
  30  Prefactor     .96119        .21695        .26419E-03   -.94035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11142e-10
Minuit parameter uncertainties:
  1  57.3779
  2  6.1479
  3  9.73867
  4  25.6726
  5  13.4417
  6  3.21692
  7  22.003
  8  0.00115219
  9  5.04851e-05
  10  14.8007
  11  21.2678
  12  6.89094
  13  32.0616
  14  0.00025446
  15  2.33915e-06
  16  8.52571e-06
  17  1.91121e-06
  18  5.89004
  19  1.29175e-05
  20  4.08931
  21  10.1443
  22  43.2427
  23  23.7573
  24  17.7318
  25  1.80746
  26  6.30062e-06
  27  1.58925e-05
  28  8.0729
  29  0.207925
  30  0.217147
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.158e+01  6.891e+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.612e-01  2.171e-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:  8.572e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.07e-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) = 6448.88650626
delta logL = 0.217144942879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6448.87399311
delta logL = 0.229658095236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.577       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9427       1.0000          .0000       5.0000    
     3 'Normalizat'    .87529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94696       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=   6448.874     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.582        15.306        .28237E-02    .96538E-03
   2  alpha         1.9442        .89333        .37490       -.92956E-05
   3  Normalizat    .87543        .16941        .44585E-01    .12548E-04
   4  Prefactor     .94686        .18653        .45601E-01    .65582E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5818
  alpha      = 1.94425
  Normalizat = 0.875434
  Prefactor  = 0.946857
 **********
 **   18 **HESSE 
 **********

 FCN=   6448.874     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.582        7.4855        .56474E-03   -1.4998    
   2  alpha         1.9442        .51860        .14106E-01   -.22417    
   3  Normalizat    .87543        .19368        .25049E-03   -.97329    
   4  Prefactor     .94686        .21270        .26585E-03   -.94522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34327e-12
Minuit parameter uncertainties:
  1  7.48611
  2  0.522598
  3  0.193833
  4  0.21289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667255': 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) = 6448.87398776
delta logL = 0.229663440244

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.258e+01  7.486e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  1.944e+00  5.226e-01  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:  9.469e-01  2.129e-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:  8.754e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.94 +/- 0.52
Photon Flux (Free Index): 4.07e-08 +/- 3.03e-08
Energy Flux (Free Index): 2.26e-05 +/- 1.60e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/667255/cmap_HighResolution_296092801_296352001_4FGL_J1438.9+3710_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='2.26e-05', photon_flux_error='3.12e-08', dlogl='2.30e-01', energy_flux='1.80e-05', photon_flux2='4.07e-08', job_status='DONE', time_completed='2021-09-10 03:31:44.856056', photon_index_error2='0.52', photon_index2='1.94', ts='5.42', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.86', time_epoch_completed='1631269904.86', return_code='0', job_id='667255', GAL2='0.95', EG2='0.88', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.03e-08', ts2='5.86', photon_index='2.31' WHERE bin_id='219' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 667255: <4FGL_J1438.9+3710_daily_bin219> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin219 219.74 37.1752 296092801 296352001 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 :                                   747.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

