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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin956
RA = 219.74, Dec = 37.1752
tmin = 487123201, tmax = 487382401
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='671946', job_status='RUN', time_executed='2021-09-10 03:33:52.129261', time_epoch_executed='1631270032.13' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='956'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/671946

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/671946/ft1_4FGL_J1438.9+3710_daily_bin956.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/671946/ft2_4FGL_J1438.9+3710_daily_bin956.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/671946/ft1_4FGL_J1438.9+3710_daily_bin956.fits outfile=/scratch/kocevski/671946/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin956.fits ra=219.74 dec=37.1752 rad=12.0 tmin=487123201.0 tmax=487382401.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.51
user 3.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/671946/ft1_filtered_4FGL_J1438.9+3710_daily_bin956.fits" evtable="EVENTS" scfile=/scratch/kocevski/671946/ft2_4FGL_J1438.9+3710_daily_bin956.fits sctable="SC_DATA" outfile=/scratch/kocevski/671946/ltcube_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.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/671946/ft2_4FGL_J1438.9+3710_daily_bin956.fits
.....................!
real 12.23
user 11.85
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/671946/ft1_filtered_4FGL_J1438.9+3710_daily_bin956.fits evtable="EVENTS" scfile=/scratch/kocevski/671946/ft2_4FGL_J1438.9+3710_daily_bin956.fits sctable="SC_DATA" expcube=/scratch/kocevski/671946/ltcube_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.fits outfile=/scratch/kocevski/671946/expmap_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.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/671946/ltcube_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.fits
.....................!
real 192.77
user 186.88
sys 5.35

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/671946/ft1_filtered_4FGL_J1438.9+3710_daily_bin956.fits scfile=/scratch/kocevski/671946/ft2_4FGL_J1438.9+3710_daily_bin956.fits outfile=/scratch/kocevski/671946/cmap_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/671946/ft1_filtered_4FGL_J1438.9+3710_daily_bin956.fits scfile=/scratch/kocevski/671946/ft2_4FGL_J1438.9+3710_daily_bin956.fits outfile=/scratch/kocevski/671946/cmap_HighResolution_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.154       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.522       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21411E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0481       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1415       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5700       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1083       1.0000         .10000E-03   10000.    
    20 'norm      '    .11770E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5888       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.332       1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.268       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.0748       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0075       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .61448       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=   5475.275     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3893 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.293       -.14642E-05** at limit **
   2  Prefactor     .10000E-03    2.1674       -.63717E-07** at limit **
   3  norm          3.7546        10.941       -.12572E-05   -.10834E-03
   4  Prefactor     14.157        12.539       -.51342E-06    .81932E-04
   5  Prefactor     13.513        17.144       -.38233E-05    .16512E-03
   6  norm          .10000E-03    1.9875       -.61659E-06** at limit **
   7  Prefactor     .10000E-03    29.436       -.69340E-06** at limit **
   8  Prefactor     12.934        12.455        .16291E-06    .74715E-04
   9  Prefactor     .10000E-03    1.4714       -.13189E-06** at limit **
  10  norm          .10000E-03    4.6682        .22464E-05** at limit **
  11  Prefactor     .10000E-03    11.321       -.10025E-05** at limit **
  12  norm          1.1781        5.8850       -.31868E-05   -.90563E-03
  13  Prefactor     .10000E-03    25.386        .27131E-05** at limit **
  14  Prefactor     6.0459        37.991       -.65596E-05    .32906E-04
  15  norm          .10000E-03    4.4359       -.17876E-05** at limit **
  16  Prefactor     9.1408        13.389       -.28177E-08    .97185E-04
  17  Prefactor     .10000E-03    4.1109       -.17566E-05** at limit **
  18  Prefactor     8.5700        5.6976       -.75234E-07    .69279E-05
  19  norm          3.1084        1.6809        .18342E-06    .27693E-03
  20  norm          .10000E-03    1.6361       -.10933E-06** at limit **
  21  Prefactor     9.5872        7.4135        .78181E-06   -.27761E-04
  22  Prefactor     31.324        48.792       -.11136E-04    .17787E-03
  23  Prefactor     39.258        21.314       -.48872E-05    .46108E-03
  24  Prefactor     .10000E-03    4.0186        .17807E-05** at limit **
  25  norm          1.0748        1.0132       -.16291E-06   -.88730E-03
  26  Prefactor     .10000E-03    7.8640        .20350E-05** at limit **
  27  Prefactor     .10000E-03    6.2455        .56677E-06** at limit **
  28  norm          .10000E-03    6.4094       -.68862E-06** at limit **
  29  Normalizat    1.0073        .15564        .24042E-05    .10628E-03
  30  Prefactor     .61472        .15753        .49130E-06    .23511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75461
  Prefactor  = 14.1568
  Prefactor  = 13.5132
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.934
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17806
  Prefactor  = 0.0001
  Prefactor  = 6.04587
  norm       = 0.0001
  Prefactor  = 9.14085
  Prefactor  = 0.0001
  Prefactor  = 8.56997
  norm       = 3.1084
  norm       = 0.0001
  Prefactor  = 9.5872
  Prefactor  = 31.3239
  Prefactor  = 39.2576
  Prefactor  = 0.0001
  norm       = 1.07482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.00735
  Prefactor  = 0.614721
 **********
 **   18 **HESSE 
 **********

 FCN=   5475.275     FROM HESSE     STATUS=OK           586 CALLS     4479 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1865        .10638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7546        10.994        .20841E-03   -1.5320    
   4  Prefactor     14.157        12.525        .10646E-03   -1.4955    
   5  Prefactor     13.513        17.217        .10893E-03   -1.4973    
   6  norm          .10000E-03    6.6042        .20165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.127        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.934        12.396        .11147E-03   -1.4989    
   9  Prefactor     .10000E-03    1.4905        .87601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.6503        .15579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1781        6.7915        .35965E-03   -1.5491    
  13  Prefactor     .10000E-03    25.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0459        38.427        .16326E-03   -1.5216    
  15  norm          .10000E-03    4.4283        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.1408        13.349        .13256E-03   -1.5103    
  17  Prefactor     .10000E-03    4.1349        .14602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5700        5.6978        .13693E-03   -1.5122    
  19  norm          3.1084        1.6747        .65489E-04   -1.5355    
  20  norm          .10000E-03    3.4384        .17916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5872        7.2069        .12941E-03   -1.5089    
  22  Prefactor     31.324        48.233        .71582E-04   -1.4588    
  23  Prefactor     39.258        21.084        .63963E-04   -1.4454    
  24  Prefactor     .10000E-03    4.0254        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.0748        .98514        .68878E-03   -1.5501    
  26  Prefactor     .10000E-03    7.9109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.2498        .18060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.4370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0073        .18707        .19714E-03   -.92785    
  30  Prefactor     .61472        .18751        .26741E-03   -1.0697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78127e-09
Minuit parameter uncertainties:
  1  6.85072e-05
  2  5.88977e-06
  3  11.0003
  4  12.5273
  5  17.2233
  6  0.000302561
  7  1.02417e-05
  8  12.3986
  9  3.34536e-06
  10  5.53283e-05
  11  3.36921e-05
  12  5.65786
  13  0.000138754
  14  30.5128
  15  4.83718e-05
  16  13.3537
  17  4.33333e-05
  18  5.69819
  19  1.67475
  20  2.93111e-06
  21  7.20756
  22  48.2926
  23  21.0884
  24  1.43265e-05
  25  0.985158
  26  7.01975e-05
  27  1.20286e-05
  28  2.58464e-05
  29  0.187192
  30  0.187705
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.178e+00  5.658e+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.147e-01  1.877e-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.007e+00  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 6.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/671946/likelihoodResults_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.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) = 5475.26842408
delta logL = 0.00654174746342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5475.26834159
delta logL = 0.00662424379425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1691       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5917       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61625       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5475.268     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      271 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1694        8.7201        .15681E-02   -.13546E-02
   2  alpha         2.5923        3.7199        .56570E-01    .19743E-04
   3  Normalizat    1.0048        .17336        .19736E-03   -.23215E-04
   4  Prefactor     .61635        .18660        .26708E-03    .20645E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16939
  alpha      = 2.59226
  Normalizat = 1.0048
  Prefactor  = 0.616352
 **********
 **   18 **HESSE 
 **********

 FCN=   5475.268     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1694        5.9053        .62723E-04   -1.5492    
   2  alpha         2.5923        3.5976        .22628E-02    .36911E-01
   3  Normalizat    1.0048        .17362        .78943E-05   -.92870    
   4  Prefactor     .61635        .18632        .10683E-04   -1.0690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86153e-09
Minuit parameter uncertainties:
  1  5.25632
  2  2.58933
  3  0.173713
  4  0.186507
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/671946': 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) = 5475.2683414
delta logL = 0.00662443225792

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.169e+00  5.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.592e+00  2.589e+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:  6.164e-01  1.865e-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.005e+00  1.737e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/671946/cmap_HighResolution_487123201_487382401_4FGL_J1438.9+3710_daily_bin956.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='6.83e-08', time_completed='2021-09-10 03:46:51.176510', job_id='671946', GAL2='0.62', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1631270811.18', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='6.62e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='956' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:46:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 671946: <4FGL_J1438.9+3710_daily_bin956> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin956> 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) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:31:50 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:50 2021
Terminated at Fri Sep 10 03:46:51 2021
Results reported at Fri Sep 10 03:46:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin956 219.74 37.1752 487123201 487382401 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 :                                   775.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

