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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin16
RA = 219.74, Dec = 37.1752
tmin = 243475201, tmax = 243734401
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='665787', job_status='RUN', time_executed='2021-09-10 03:12:49.927740', time_epoch_executed='1631268769.93' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665787/ft1_4FGL_J1438.9+3710_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665787/ft2_4FGL_J1438.9+3710_daily_bin16.fits


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

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

Done.
real 1.40
user 1.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/665787/ft2_4FGL_J1438.9+3710_daily_bin16.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/665787/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin16.fits evtable="EVENTS" outfile="/scratch/kocevski/665787/ft1_filtered_4FGL_J1438.9+3710_daily_bin16.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/665787/ft1_filtered_4FGL_J1438.9+3710_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/665787/ft2_4FGL_J1438.9+3710_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/665787/ltcube_243475201_243734401_4FGL_J1438.9+3710_daily_bin16.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/665787/ft2_4FGL_J1438.9+3710_daily_bin16.fits
.....................!
real 12.84
user 12.43
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665787/ft1_filtered_4FGL_J1438.9+3710_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/665787/ft2_4FGL_J1438.9+3710_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/665787/ltcube_243475201_243734401_4FGL_J1438.9+3710_daily_bin16.fits outfile=/scratch/kocevski/665787/expmap_243475201_243734401_4FGL_J1438.9+3710_daily_bin16.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/665787/ltcube_243475201_243734401_4FGL_J1438.9+3710_daily_bin16.fits
.....................!
real 190.46
user 184.60
sys 5.47

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/665787/ft1_filtered_4FGL_J1438.9+3710_daily_bin16.fits scfile=/scratch/kocevski/665787/ft2_4FGL_J1438.9+3710_daily_bin16.fits outfile=/scratch/kocevski/665787/cmap_243475201_243734401_4FGL_J1438.9+3710_daily_bin16.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.5679       1.0000         .10000E-03   10000.    
     3 'norm      '    .58357E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3459       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3872       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.807       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3234       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.566       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1946       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1179       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5729       1.0000         .10000E-03   10000.    
    25 'norm      '    10.692       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.6612       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .13524       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=   5735.086     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3913 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.797        .37941E-06** at limit **
   2  Prefactor     5.5676        5.3809       -.42431E-07   -.56399E-04
   3  norm          .10000E-03    11.579        .12066E-06** at limit **
   4  Prefactor     .10000E-03    6.6808        .59564E-07** at limit **
   5  Prefactor     7.3500        19.587       -.57003E-07    .11133E-05
   6  norm          .10000E-03    1.8798        .23786E-07** at limit **
   7  Prefactor     .10000E-03    3.7108       -.46465E-08** at limit **
   8  Prefactor     .10000E-03    6.1562       -.29568E-07** at limit **
   9  Prefactor     3.3865        3.1933       -.10096E-06   -.98936E-04
  10  norm          .10000E-03    4.1297        .45865E-09** at limit **
  11  Prefactor     13.766        27.805       -.11523E-05   -.19429E-03
  12  norm          1.3238        4.2084        .37271E-06   -.34994E-03
  13  Prefactor     .10000E-03    31.358       -.86443E-07** at limit **
  14  Prefactor     .10000E-03    26.631       -.14963E-06** at limit **
  15  norm          18.565        11.003       -.10910E-06   -.34564E-05
  16  Prefactor     20.103        17.800       -.26092E-06   -.27114E-04
  17  Prefactor     6.9499        7.4601        .55524E-06   -.16232E-02
  18  Prefactor     .10000E-03    5.9227       -.80779E-08** at limit **
  19  norm          .10000E-03    1.0261       -.12868E-06** at limit **
  20  norm          3.1940        5.0221       -.10980E-06   -.92334E-04
  21  Prefactor     5.1143        14.797       -.16090E-06   -.64689E-04
  22  Prefactor     .10000E-03    21.703        .67716E-07** at limit **
  23  Prefactor     .10000E-03    9.9270       -.78264E-07** at limit **
  24  Prefactor     9.5700        13.655        .13829E-07    .14205E-05
  25  norm          10.691        1.9862       -.61017E-07    .32787E-04
  26  Prefactor     .10000E-03    6.2229       -.88841E-08** at limit **
  27  Prefactor     .10000E-03    10.906        .65657E-07** at limit **
  28  norm          .10000E-03    8.5367       -.50361E-07** at limit **
  29  Normalizat    1.6610        .21254       -.41434E-05   -.15904E-03
  30  Prefactor     .13559        .20386        .13932E-04    .74016E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.56756
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.34997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.38654
  norm       = 0.0001
  Prefactor  = 13.7656
  norm       = 1.32384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5652
  Prefactor  = 20.1032
  Prefactor  = 6.94986
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.19396
  Prefactor  = 5.11428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.56998
  norm       = 10.6913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.66097
  Prefactor  = 0.135592
 **********
 **   18 **HESSE 
 **********

 FCN=   5735.086     FROM HESSE     STATUS=OK           586 CALLS     4499 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5676        5.3908        .16695E-03   -1.5236    
   3  norm          .10000E-03    64.939        .49298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3500        19.667        .14798E-03   -1.5166    
   6  norm          .10000E-03    1.9338        .20272E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7154        .14247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3865        3.1972        .12611E-03   -1.5340    
  10  norm          .10000E-03    4.1313        .15030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.766        27.854        .10779E-03   -1.4966    
  12  norm          1.3238        4.1217        .26405E-03   -1.5478    
  13  Prefactor     .10000E-03    31.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.565        11.001        .92953E-04   -1.4846    
  16  Prefactor     20.103        17.777        .89331E-04   -1.4811    
  17  Prefactor     6.9499        7.2342        .76101E-03   -1.5181    
  18  Prefactor     .10000E-03    5.9675        .17996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.1173        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1940        4.8908        .16506E-03   -1.5351    
  21  Prefactor     5.1143        14.333        .17772E-03   -1.5256    
  22  Prefactor     .10000E-03    21.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.9486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.5700        13.459        .12952E-03   -1.5089    
  25  norm          10.691        1.9896        .44316E-04   -1.5054    
  26  Prefactor     .10000E-03    6.2366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    8.5784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.6610        .21111        .18842E-03   -.73350    
  30  Prefactor     .13559        .20281        .60979E-03   -1.3374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37799e-09
Minuit parameter uncertainties:
  1  0.000173605
  2  5.39131
  3  0.000357703
  4  1.65812e-05
  5  19.6848
  6  4.1015e-06
  7  4.26596e-06
  8  1.6874e-05
  9  3.1974
  10  6.40346e-07
  11  27.8804
  12  4.12256
  13  0.000101938
  14  0.000138825
  15  11.0017
  16  17.7817
  17  7.23512
  18  1.30927e-05
  19  1.50052e-06
  20  4.89144
  21  14.343
  22  2.39498e-05
  23  4.47719e-05
  24  13.4631
  25  1.98957
  26  4.7407e-06
  27  1.78809e-05
  28  1.40697e-05
  29  0.21122
  30  0.203863
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.324e+00  4.123e+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:  1.356e-01  2.039e-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.661e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/665787/likelihoodResults_243475201_243734401_4FGL_J1438.9+3710_daily_bin16.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) = 5734.94297644
delta logL = 0.143056044113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5734.9408161
delta logL = 0.145216376907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2850       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3711       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .14755       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5734.941     FROM MIGRAD    STATUS=FAILED        86 CALLS      268 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2849        4.1236        .14266E-03    .28895E-04
   2  alpha         3.3717        3.7508        .34223E-01    .14661E-03
   3  Normalizat    1.6418        .20343        .18925E-03   -.22844E-03
   4  Prefactor     .14735        .20324        .58765E-03   -.64229E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5734.941     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      342 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2849        4.1236        .12637E-03   -1.5481    
   2  alpha         3.3717        3.7508        .31422E-02    .35618    
   3  Normalizat    1.6418        .20343        .23534E-03   -.73869    
   4  Prefactor     .14735        .20324        .83226E-03   -1.3274    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5734.941     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      382 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2849        3.2990        .28533E-04   -.31477E-04
   2  alpha         3.3717        1.7632        .68447E-02    .13005E-05
   3  Normalizat    1.6418        .20275        .37849E-04   -.18623E-05
   4  Prefactor     .14735        .20255        .23506E-04   -.38692E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28488
  alpha      = 3.37174
  Normalizat = 1.64176
  Prefactor  = 0.147351
 **********
 **   18 **HESSE 
 **********

 FCN=   5734.941     FROM HESSE     STATUS=OK            25 CALLS      407 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2849        3.1802        .11413E-05   -1.5481    
   2  alpha         3.3717        1.7145        .27379E-03    .35618    
   3  Normalizat    1.6418        .20266        .75698E-05   -.73869    
   4  Prefactor     .14735        .20243        .47012E-05   -1.3274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52778e-12
Minuit parameter uncertainties:
  1  3.18057
  2  1.92333
  3  0.202765
  4  0.203391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665787': 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) = 5734.94081385
delta logL = 0.145218635864

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.285e+00  3.181e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  3.372e+00  1.923e+00  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.474e-01  2.034e-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.642e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/665787/cmap_HighResolution_243475201_243734401_4FGL_J1438.9+3710_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-10 03:26:06.137377', job_id='665787', GAL2='0.15', fit_tolerance='1e-08', EG2='1.64', EG='1.66', time_epoch_completed='1631269566.14', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.14', dlogl='1.45e-01', ts2='0.43', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='16' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:26:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 665787: <4FGL_J1438.9+3710_daily_bin16> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin16> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:06 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:11:08 2021
Terminated at Fri Sep 10 03:26:06 2021
Results reported at Fri Sep 10 03:26:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin16 219.74 37.1752 243475201 243734401 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 :                                   794.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

