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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin950
RA = 219.74, Dec = 37.1752
tmin = 485568001, tmax = 485827201
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='671936', job_status='RUN', time_executed='2021-09-10 03:34:08.246739', time_epoch_executed='1631270048.25' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671936/ft1_4FGL_J1438.9+3710_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671936/ft2_4FGL_J1438.9+3710_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671936/ft1_4FGL_J1438.9+3710_daily_bin950.fits outfile=/scratch/kocevski/671936/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin950.fits ra=219.74 dec=37.1752 rad=12.0 tmin=485568001.0 tmax=485827201.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.92
user 3.69
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/671936/ft2_4FGL_J1438.9+3710_daily_bin950.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/671936/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin950.fits evtable="EVENTS" outfile="/scratch/kocevski/671936/ft1_filtered_4FGL_J1438.9+3710_daily_bin950.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/671936/ft1_filtered_4FGL_J1438.9+3710_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/671936/ft2_4FGL_J1438.9+3710_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/671936/ltcube_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.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/671936/ft2_4FGL_J1438.9+3710_daily_bin950.fits
.....................!
real 12.18
user 11.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671936/ft1_filtered_4FGL_J1438.9+3710_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/671936/ft2_4FGL_J1438.9+3710_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/671936/ltcube_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.fits outfile=/scratch/kocevski/671936/expmap_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.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/671936/ltcube_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.fits
.....................!
real 189.75
user 184.93
sys 4.42

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/671936/ft1_filtered_4FGL_J1438.9+3710_daily_bin950.fits scfile=/scratch/kocevski/671936/ft2_4FGL_J1438.9+3710_daily_bin950.fits outfile=/scratch/kocevski/671936/cmap_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671936/ft1_filtered_4FGL_J1438.9+3710_daily_bin950.fits scfile=/scratch/kocevski/671936/ft2_4FGL_J1438.9+3710_daily_bin950.fits outfile=/scratch/kocevski/671936/cmap_HighResolution_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.324       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5077       1.0000         .10000E-03   10000.    
     3 'norm      '    13.918       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15992       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9673       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3061       1.0000         .10000E-03   10000.    
    12 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.080       1.0000         .10000E-03   10000.    
    15 'norm      '    .83738       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.352       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19830E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.386       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5584       1.0000         .10000E-03   10000.    
    20 'norm      '    .12026E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3439       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23955E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.607       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.1505       1.0000         .10000E-03   10000.    
    25 'norm      '    .47841       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1871       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .84928       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=   5651.267     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3944 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.309        61.032       -.47710E-06   -.34181E-04
   2  Prefactor     6.5074        6.6126        .17169E-06    .39099E-05
   3  norm          13.915        16.656       -.11290E-06   -.23676E-04
   4  Prefactor     .10000E-03    22.533        .16027E-06** at limit **
   5  Prefactor     .10000E-03    18.005        .28325E-06** at limit **
   6  norm          .17596        2.3207       -.20248E-06    .29676E-03
   7  Prefactor     1.9622        11.172        .12711E-05    .22027E-04
   8  Prefactor     .10000E-03    7.6533       -.84838E-07** at limit **
   9  Prefactor     .10000E-03    2.6197       -.15026E-06** at limit **
  10  norm          .10000E-03    6.6410        .98846E-07** at limit **
  11  Prefactor     1.1768        135.39        .48957E-05   -.11363E-04
  12  norm          .10000E-03    7.1215        .62462E-06** at limit **
  13  Prefactor     15.391        49.277       -.28146E-05    .12814E-04
  14  Prefactor     41.017        45.645       -.12106E-05   -.23730E-03
  15  norm          .83584        8.4639        .45016E-05    .12258E-03
  16  Prefactor     19.370        15.666       -.74901E-06   -.10861E-03
  17  Prefactor     .10001E-03    4.7648       -.12401E-05** at limit **
  18  Prefactor     14.385        9.5198       -.72998E-07   -.52041E-04
  19  norm          1.5594        1.8363        .97165E-07    .32007E-03
  20  norm          .10001E-03    3.0637        .56105E-06** at limit **
  21  Prefactor     6.3420        9.1019        .35749E-05    .89595E-04
  22  Prefactor     .10000E-03    97.140        .96234E-06** at limit **
  23  Prefactor     21.594        20.502       -.14021E-06   -.41941E-04
  24  Prefactor     7.1579        16.842       -.20061E-05   -.83904E-04
  25  norm          .47872        1.1816        .54225E-06    .26579E-03
  26  Prefactor     .10000E-03    20.836       -.54254E-06** at limit **
  27  Prefactor     .10000E-03    17.935        .32756E-06** at limit **
  28  norm          .10000E-03    14.739        .60822E-06** at limit **
  29  Normalizat    1.1873        .19850        .25366E-05   -.32553E-03
  30  Prefactor     .84904        .20132       -.51847E-05   -.31664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.3095
  Prefactor  = 6.50739
  norm       = 13.9145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.175959
  Prefactor  = 1.96223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17683
  norm       = 0.0001
  Prefactor  = 15.3912
  Prefactor  = 41.0172
  norm       = 0.83584
  Prefactor  = 19.3701
  Prefactor  = 0.000100007
  Prefactor  = 14.3851
  norm       = 1.55942
  norm       = 0.000100015
  Prefactor  = 6.34204
  Prefactor  = 0.000100001
  Prefactor  = 21.5938
  Prefactor  = 7.15795
  norm       = 0.47872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.18734
  Prefactor  = 0.849044
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.267     FROM HESSE     STATUS=OK           594 CALLS     4538 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.309        61.082        .58910E-04   -1.4346    
   2  Prefactor     6.5074        6.6139        .15732E-03   -1.5198    
   3  norm          13.915        16.678        .10736E-03   -1.4962    
   4  Prefactor     .10000E-03    22.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .17596        23.990        .21724E-02   -1.5624    
   7  Prefactor     1.9622        11.074        .29567E-03   -1.5428    
   8  Prefactor     .10000E-03    7.6597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6582        .11867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.6538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1768        141.69        .38618E-02   -1.5491    
  12  norm          .10000E-03    7.3902        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.391        49.150        .10214E-03   -1.4923    
  14  Prefactor     41.017        45.776        .62542E-04   -1.4426    
  15  norm          .83584        8.4879        .42344E-03   -1.5525    
  16  Prefactor     19.370        15.608        .91046E-04   -1.4827    
  17  Prefactor     .10001E-03    10.636        .30429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.385        9.5260        .10560E-03   -1.4949    
  19  norm          1.5594        1.7850        .10234E-03   -1.5458    
  20  norm          .10001E-03    7.8298        .23986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.3420        9.0009        .79681E-03   -1.5204    
  22  Prefactor     .10000E-03    97.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.594        20.439        .86169E-04   -1.4778    
  24  Prefactor     7.1579        16.653        .15001E-03   -1.5173    
  25  norm          .47872        1.1660        .12049E-03   -1.5570    
  26  Prefactor     .10000E-03    21.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    17.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    14.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1873        .22981        .23111E-03   -.86995    
  30  Prefactor     .84904        .22718        .28174E-03   -.97945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61553e-09
Minuit parameter uncertainties:
  1  61.1649
  2  6.61462
  3  16.6836
  4  3.39114e-05
  5  6.55084e-06
  6  4.10966
  7  9.32548
  8  6.20894e-06
  9  3.77455e-06
  10  9.99283e-06
  11  25.8881
  12  9.09369e-06
  13  49.2792
  14  45.8155
  15  5.32777
  16  15.6109
  17  0.000528098
  18  9.52705
  19  1.78509
  20  0.00067938
  21  9.00279
  22  0.000612602
  23  20.4453
  24  16.6637
  25  1.16605
  26  0.000172144
  27  2.86045e-06
  28  9.34906e-05
  29  0.230008
  30  0.227431
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  9.094e-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:  8.490e-01  2.274e-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.187e+00  2.300e-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: 6.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671936/likelihoodResults_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.26759342
delta logL = -0.000645921324576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5651.26694779
delta logL = -2.91536707664e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3100       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84920       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=   5651.267     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    160.50        .90712E-02** at limit **
   2  alpha         2.3102        3.1729        .41303       -.15318E-06
   3  Normalizat    1.1873        .22127E-01    .52269E-01    .38512E-04
   4  Prefactor     .84904        .23341E-01    .63698E-01    .42005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.3102
  Normalizat = 1.18734
  Prefactor  = 0.84904
 **********
 **   18 **HESSE 
 **********

 FCN=   5651.267     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.3609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3102        3.6420        .16521       -.75995E-01
   3  Normalizat    1.1873        .21289        .23110E-03   -.86995    
   4  Prefactor     .84904        .22434        .28174E-03   -.97945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14168e-10
Minuit parameter uncertainties:
  1  4.29501e-05
  2  279.263
  3  0.213048
  4  0.22458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671936': 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) = 5651.2669475
delta logL = 2.04636307899e-10

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  4.295e-05  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.310e+00  2.793e+02  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.490e-01  2.246e-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.187e+00  2.130e-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/671936/cmap_HighResolution_485568001_485827201_4FGL_J1438.9+3710_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-10 03:46:53.349116', job_id='671936', GAL2='0.85', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1631270813.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.05e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='950' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:46:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 671936: <4FGL_J1438.9+3710_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin950 219.74 37.1752 485568001 485827201 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 :                                   761.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

