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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin897
RA = 219.74, Dec = 37.1752
tmin = 471830401, tmax = 472089601
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='671851', job_status='RUN', time_executed='2021-09-10 03:31:53.923408', time_epoch_executed='1631269913.92' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='897'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671851/ft1_4FGL_J1438.9+3710_daily_bin897.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671851/ft2_4FGL_J1438.9+3710_daily_bin897.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671851/ft1_4FGL_J1438.9+3710_daily_bin897.fits outfile=/scratch/kocevski/671851/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin897.fits ra=219.74 dec=37.1752 rad=12.0 tmin=471830401.0 tmax=472089601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.57
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671851/ft2_4FGL_J1438.9+3710_daily_bin897.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/671851/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin897.fits evtable="EVENTS" outfile="/scratch/kocevski/671851/ft1_filtered_4FGL_J1438.9+3710_daily_bin897.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/671851/ft1_filtered_4FGL_J1438.9+3710_daily_bin897.fits" evtable="EVENTS" scfile=/scratch/kocevski/671851/ft2_4FGL_J1438.9+3710_daily_bin897.fits sctable="SC_DATA" outfile=/scratch/kocevski/671851/ltcube_471830401_472089601_4FGL_J1438.9+3710_daily_bin897.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/671851/ft2_4FGL_J1438.9+3710_daily_bin897.fits
.....................!
real 11.98
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671851/ft1_filtered_4FGL_J1438.9+3710_daily_bin897.fits evtable="EVENTS" scfile=/scratch/kocevski/671851/ft2_4FGL_J1438.9+3710_daily_bin897.fits sctable="SC_DATA" expcube=/scratch/kocevski/671851/ltcube_471830401_472089601_4FGL_J1438.9+3710_daily_bin897.fits outfile=/scratch/kocevski/671851/expmap_471830401_472089601_4FGL_J1438.9+3710_daily_bin897.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/671851/ltcube_471830401_472089601_4FGL_J1438.9+3710_daily_bin897.fits
.....................!
real 190.69
user 185.48
sys 4.68

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/671851/ft1_filtered_4FGL_J1438.9+3710_daily_bin897.fits scfile=/scratch/kocevski/671851/ft2_4FGL_J1438.9+3710_daily_bin897.fits outfile=/scratch/kocevski/671851/cmap_471830401_472089601_4FGL_J1438.9+3710_daily_bin897.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671851/ft1_filtered_4FGL_J1438.9+3710_daily_bin897.fits scfile=/scratch/kocevski/671851/ft2_4FGL_J1438.9+3710_daily_bin897.fits outfile=/scratch/kocevski/671851/cmap_HighResolution_471830401_472089601_4FGL_J1438.9+3710_daily_bin897.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    126.37       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5410       1.0000         .10000E-03   10000.    
     3 'norm      '    36.623       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.201       1.0000         .10000E-03   10000.    
     6 'norm      '    26.006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.441       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7272       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4762       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9809       1.0000         .10000E-03   10000.    
    12 'norm      '    20.947       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.3955       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.609       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7482       1.0000         .10000E-03   10000.    
    20 'norm      '    .45018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .55018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    159.90       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.796       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4121       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    30.383       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94599       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .62712       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=   6524.688     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     4000 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     126.43        93.916       -.12210E-05   -.59893E-04
   2  Prefactor     4.5421        6.4659        .16443E-06    .68317E-04
   3  norm          36.629        18.448        .96371E-07   -.14595E-04
   4  Prefactor     11.644        18.137        .26455E-06    .29051E-04
   5  Prefactor     23.213        21.673        .53985E-07   -.27920E-04
   6  norm          26.007        6.6393        .40752E-07    .40187E-04
   7  Prefactor     .10000E-03    10.230        .70882E-07** at limit **
   8  Prefactor     27.447        19.930        .12921E-06   -.10237E-04
   9  Prefactor     5.7285        4.1445        .67938E-07    .57619E-04
  10  norm          1.4757        33.252        .50586E-06    .44059E-04
  11  Prefactor     8.9778        26.580        .11678E-05    .27638E-04
  12  norm          20.948        9.1895        .24488E-06    .44829E-04
  13  Prefactor     18.745        56.881       -.49957E-05   -.78367E-04
  14  Prefactor     .10000E-03    25.858       -.39257E-06** at limit **
  15  norm          4.3955        4.7530       -.16887E-07   -.23345E-04
  16  Prefactor     .10000E-03    5.7681        .15726E-07** at limit **
  17  Prefactor     3.8641        5.7347        .63161E-06    .94099E-03
  18  Prefactor     16.609        9.5472        .13171E-06    .21093E-03
  19  norm          1.7491        2.1002        .12151E-06    .32544E-03
  20  norm          .44764        2.4524       -.20386E-05   -.16106E-03
  21  Prefactor     .10012E-03    11.969       -.23484E-05** at limit **
  22  Prefactor     159.93        102.18       -.88171E-06   -.36096E-04
  23  Prefactor     16.789        16.882       -.60585E-06   -.24893E-04
  24  Prefactor     .10000E-03    3.7217       -.87291E-09** at limit **
  25  norm          7.4120        1.7746        .13543E-07    .95391E-04
  26  Prefactor     .10000E-03    23.440       -.67312E-07** at limit **
  27  Prefactor     .10000E-03    28.885        .12254E-06** at limit **
  28  norm          30.380        15.944       -.97712E-08   -.22206E-04
  29  Normalizat    .94556        .20056       -.23562E-05   -.74259E-04
  30  Prefactor     .62748        .18625        .26242E-05    .48257E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 126.427
  Prefactor  = 4.54214
  norm       = 36.6287
  Prefactor  = 11.6445
  Prefactor  = 23.2125
  norm       = 26.0075
  Prefactor  = 0.0001
  Prefactor  = 27.4469
  Prefactor  = 5.72846
  norm       = 1.47568
  Prefactor  = 8.9778
  norm       = 20.9477
  Prefactor  = 18.7454
  Prefactor  = 0.0001
  norm       = 4.39548
  Prefactor  = 0.0001
  Prefactor  = 3.86412
  Prefactor  = 16.6088
  norm       = 1.74908
  norm       = 0.447643
  Prefactor  = 0.000100117
  Prefactor  = 159.927
  Prefactor  = 16.7885
  Prefactor  = 0.0001
  norm       = 7.412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.3804
  Normalizat = 0.945559
  Prefactor  = 0.62748
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.688     FROM HESSE     STATUS=OK           600 CALLS     4600 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     126.43        93.970        .17905E-03   -1.3454    
   2  Prefactor     4.5421        6.4655        .18892E-03   -1.5282    
   3  norm          36.629        18.469        .66225E-04   -1.4497    
   4  Prefactor     11.644        18.123        .11737E-03   -1.5025    
   5  Prefactor     23.213        21.851        .83160E-04   -1.4744    
   6  norm          26.007        6.6271        .78554E-04   -1.4688    
   7  Prefactor     .10000E-03    10.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.447        19.790        .76477E-04   -1.4660    
   9  Prefactor     5.7285        4.1476        .13110E-03   -1.5229    
  10  norm          1.4757        32.820        .35345E-03   -1.5465    
  11  Prefactor     8.9778        26.571        .13374E-03   -1.5109    
  12  norm          20.948        9.1836        .87514E-04   -1.4792    
  13  Prefactor     18.745        56.386        .92653E-04   -1.4842    
  14  Prefactor     .10000E-03    25.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3955        4.7561        .17865E-03   -1.5289    
  16  Prefactor     .10000E-03    5.7786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8641        5.8702        .10263E-02   -1.5315    
  18  Prefactor     16.609        9.5478        .49138E-03   -1.4893    
  19  norm          1.7491        2.0577        .10706E-03   -1.5443    
  20  norm          .44764        2.3817        .24178E-03   -1.5574    
  21  Prefactor     .10012E-03    20.998        .34894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     159.93        101.38        .15945E-03   -1.3172    
  23  Prefactor     16.789        16.737        .97728E-04   -1.4888    
  24  Prefactor     .10000E-03    3.7277        .15213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4120        1.7667        .49940E-04   -1.5163    
  26  Prefactor     .10000E-03    23.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    29.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          30.380        15.892        .72689E-04   -1.4605    
  29  Normalizat    .94556        .22836        .25019E-03   -.94877    
  30  Prefactor     .62748        .21035        .30963E-03   -1.0644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70821e-09
Minuit parameter uncertainties:
  1  94.0811
  2  6.46651
  3  18.472
  4  18.1319
  5  21.8583
  6  6.62733
  7  1.39616e-05
  8  19.7948
  9  4.14785
  10  13.9268
  11  26.6059
  12  9.18425
  13  56.5466
  14  8.2201e-05
  15  4.75656
  16  3.13897e-06
  17  5.87112
  18  9.54864
  19  2.05783
  20  2.06501
  21  0.0031406
  22  101.487
  23  16.7415
  24  9.36954e-06
  25  1.76668
  26  1.02234e-05
  27  3.62891e-05
  28  15.8938
  29  0.228592
  30  0.210611
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.095e+01  9.184e+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:  6.275e-01  2.106e-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:  9.456e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.71
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.49e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.43e-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) = 6524.49851949
delta logL = 0.189935038292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6524.4954685
delta logL = 0.192986031393

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.053       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5983       1.0000          .0000       5.0000    
     3 'Normalizat'    .90948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65088       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=   6524.495     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.088        123.10        .22361E-02   -.12579E-03
   2  alpha         2.6007        3.7547        .27944        .25227E-04
   3  Normalizat    .90901        .14721        .45023E-01    .76472E-04
   4  Prefactor     .65100        .99441E-01    .68749E-01    .53647E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.0883
  alpha      = 2.6007
  Normalizat = 0.909013
  Prefactor  = 0.651004
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.495     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.088        8.5165        .89443E-04   -1.4811    
   2  alpha         2.6007        .46096        .10959E-01    .40291E-01
   3  Normalizat    .90901        .20922        .25431E-03   -.96144    
   4  Prefactor     .65100        .20797        .30425E-03   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18696e-11
Minuit parameter uncertainties:
  1  8.517
  2  0.463613
  3  0.209411
  4  0.20822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671851': 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) = 6524.49543129
delta logL = 0.193023244208

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  2.009e+01  8.517e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.601e+00  4.636e-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:  6.510e-01  2.082e-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:  9.090e-01  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.10
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.60 +/- 0.46
Photon Flux (Free Index): 1.25e-07 +/- 6.67e-08
Energy Flux (Free Index): 3.33e-05 +/- 1.29e-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/671851/cmap_HighResolution_471830401_472089601_4FGL_J1438.9+3710_daily_bin897.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.49e-08', energy_flux2='3.33e-05', photon_flux_error='4.16e-08', dlogl='1.93e-01', energy_flux='3.25e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-10 03:44:34.794345', photon_index_error2='0.46', photon_index2='2.60', ts='20.71', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='0.95', time_epoch_completed='1631270674.79', return_code='0', job_id='671851', GAL2='0.65', EG2='0.91', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.67e-08', ts2='21.10', photon_index='2.31' WHERE bin_id='897' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:44:34 PDT 2021


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

Job <4FGL_J1438.9+3710_daily_bin897> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:31:40 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:42 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:31:42 2021
Terminated at Fri Sep 10 03:44:35 2021
Results reported at Fri Sep 10 03:44:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin897 219.74 37.1752 471830401 472089601 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 :                                   754.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

