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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin342
RA = 219.74, Dec = 37.1752
tmin = 327974401, tmax = 328233601
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='667429', job_status='RUN', time_executed='2021-09-10 03:16:39.234869', time_epoch_executed='1631268999.23' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/667429

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/667429/ft1_4FGL_J1438.9+3710_daily_bin342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/667429/ft1_4FGL_J1438.9+3710_daily_bin342.fits outfile=/scratch/kocevski/667429/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin342.fits ra=219.74 dec=37.1752 rad=12.0 tmin=327974401.0 tmax=328233601.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.48
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/667429/ft1_filtered_4FGL_J1438.9+3710_daily_bin342.fits" evtable="EVENTS" scfile=/scratch/kocevski/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits sctable="SC_DATA" outfile=/scratch/kocevski/667429/ltcube_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.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/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits
.....................!
real 11.68
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/667429/ft1_filtered_4FGL_J1438.9+3710_daily_bin342.fits evtable="EVENTS" scfile=/scratch/kocevski/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits sctable="SC_DATA" expcube=/scratch/kocevski/667429/ltcube_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.fits outfile=/scratch/kocevski/667429/expmap_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.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/667429/ltcube_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.fits
.....................!
real 189.71
user 184.87
sys 4.40

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/667429/ft1_filtered_4FGL_J1438.9+3710_daily_bin342.fits scfile=/scratch/kocevski/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits outfile=/scratch/kocevski/667429/cmap_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=219.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/667429/ft1_filtered_4FGL_J1438.9+3710_daily_bin342.fits scfile=/scratch/kocevski/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits outfile=/scratch/kocevski/667429/cmap_HighResolution_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.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.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/667429/ft1_filtered_4FGL_J1438.9+3710_daily_bin342.fits', '/scratch/kocevski/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits', expMap='/scratch/kocevski/667429/expmap_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.fits', expCube='/scratch/kocevski/667429/ltcube_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/667429/Model_4FGL_J1438.9+3710_daily_bin342.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/667429/ft1_filtered_4FGL_J1438.9+3710_daily_bin342.fits
Spacecraft file(s): /scratch/kocevski/667429/ft2_4FGL_J1438.9+3710_daily_bin342.fits
Exposure map: /scratch/kocevski/667429/expmap_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.fits
Exposure cube: /scratch/kocevski/667429/ltcube_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/667429/Model_4FGL_J1438.9+3710_daily_bin342.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6090.50553438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2420       1.0000         .10000E-03   10000.    
     3 'norm      '    12.480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1411       1.0000         .10000E-03   10000.    
     6 'norm      '    9.3228       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1280       1.0000         .10000E-03   10000.    
    10 'norm      '    13.929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.343       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13180E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8089       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4134       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0322       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9494       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20513E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.053       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.1860       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'    .99956       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .76291       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=   6090.421     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3342 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.035        .67801E-06** at limit **
   2  Prefactor     2.2421        5.5178        .74045E-05   -.14523E-03
   3  norm          12.480        9.6647        .12220E-06   -.50077E-05
   4  Prefactor     .10000E-03    4.6115       -.73167E-08** at limit **
   5  Prefactor     3.1412        9.8097        .42460E-05   -.33259E-04
   6  norm          9.3225        4.8111        .88524E-07   -.98356E-04
   7  Prefactor     16.234        12.222        .24963E-06   -.19771E-04
   8  Prefactor     .10000E-03    7.9842       -.28107E-06** at limit **
   9  Prefactor     3.1278        3.4303        .93408E-08   -.28280E-03
  10  norm          13.928        13.994        .91387E-07   -.11342E-04
  11  Prefactor     .10000E-03    14.703       -.41189E-06** at limit **
  12  norm          16.982        7.6084        .49892E-07   -.14928E-03
  13  Prefactor     17.271        36.141        .49316E-05   -.32767E-04
  14  Prefactor     .10001E-03    209.53        .17070E-04** at limit **
  15  norm          3.8136        8.5973        .12448E-05    .57350E-04
  16  Prefactor     3.3877        28.056       -.41050E-05   -.14767E-03
  17  Prefactor     .10000E-03    2.5625        .11297E-06** at limit **
  18  Prefactor     5.4133        5.5810        .41035E-06   -.18272E-04
  19  norm          1.0329        1.3794        .52065E-06    .12011E-02
  20  norm          2.9488        2.8852        .11557E-06   -.34958E-04
  21  Prefactor     .10000E-03    7.1178        .11349E-07** at limit **
  22  Prefactor     .10000E-03    153.48       -.14824E-04** at limit **
  23  Prefactor     .10000E-03    11.033       -.27316E-06** at limit **
  24  Prefactor     .10000E-03    10.688        .25118E-06** at limit **
  25  norm          13.055        3.1807        .18325E-06    .12122E-03
  26  Prefactor     3.1756        41.866       -.15796E-05   -.17938E-04
  27  Prefactor     .10000E-03    5.3677        .76256E-10** at limit **
  28  norm          .10000E-03    3.8049        .93456E-08** at limit **
  29  Normalizat    .99939        .17143       -.29886E-05   -.33880E-03
  30  Prefactor     .76311        .17897        .75065E-06   -.22033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.24214
  norm       = 12.4803
  Prefactor  = 0.0001
  Prefactor  = 3.14122
  norm       = 9.32251
  Prefactor  = 16.2343
  Prefactor  = 0.0001
  Prefactor  = 3.12776
  norm       = 13.9279
  Prefactor  = 0.0001
  norm       = 16.9821
  Prefactor  = 17.2712
  Prefactor  = 0.000100013
  norm       = 3.81357
  Prefactor  = 3.38767
  Prefactor  = 0.0001
  Prefactor  = 5.41326
  norm       = 1.03293
  norm       = 2.94883
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0547
  Prefactor  = 3.17558
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.999391
  Prefactor  = 0.763109
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.421     FROM HESSE     STATUS=OK           590 CALLS     3932 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2421        5.5103        .13724E-02   -1.5408    
   3  norm          12.480        9.6644        .11339E-03   -1.5001    
   4  Prefactor     .10000E-03    4.6124        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1412        9.7979        .11436E-02   -1.5353    
   6  norm          9.3225        4.8093        .11708E-03   -1.5097    
   7  Prefactor     16.234        12.238        .99397E-04   -1.4902    
   8  Prefactor     .10000E-03    8.0188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1278        3.4261        .14356E-03   -1.5354    
  10  norm          13.928        14.000        .10732E-03   -1.4961    
  11  Prefactor     .10000E-03    14.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.982        7.6138        .97195E-04   -1.4884    
  13  Prefactor     17.271        36.151        .96175E-04   -1.4877    
  14  Prefactor     .10001E-03    213.84        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8136        8.5088        .20682E-03   -1.5317    
  16  Prefactor     3.3877        27.391        .21912E-03   -1.5340    
  17  Prefactor     .10000E-03    2.5674        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4133        5.5793        .86356E-03   -1.5243    
  19  norm          1.0329        1.2540        .99812E-03   -1.5505    
  20  norm          2.9488        2.8746        .12644E-03   -1.5365    
  21  Prefactor     .10000E-03    7.2381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    153.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.055        3.0874        .45145E-04   -1.4985    
  26  Prefactor     3.1756        39.413        .22702E-03   -1.5352    
  27  Prefactor     .10000E-03    5.3699        .17659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.8070        .14867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99939        .20411        .22797E-03   -.93051    
  30  Prefactor     .76311        .21394        .28256E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95801e-10
Minuit parameter uncertainties:
  1  1.87561e-05
  2  5.5115
  3  9.66563
  4  5.97774e-07
  5  9.80292
  6  4.80951
  7  12.2395
  8  1.22226e-05
  9  3.42632
  10  14.0036
  11  4.4055e-05
  12  7.61422
  13  36.197
  14  0.00340116
  15  8.51147
  16  19.2775
  17  8.28557e-06
  18  5.57987
  19  1.25401
  20  2.87472
  21  9.88594e-07
  22  0.00171621
  23  7.01049e-06
  24  3.41404e-06
  25  3.08747
  26  22.3928
  27  2.06432e-06
  28  1.42744e-06
  29  0.204271
  30  0.214169
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.698e+01  7.614e+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:  7.631e-01  2.142e-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.994e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.03
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 7.69e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.18e-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) = 6090.39390129
delta logL = 0.0268593728633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6090.38839292
delta logL = 0.0323677498773

Fit tolerance = 1e-08

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

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

 FCN=   6090.388     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.319        7.9052        .99148E-04   -.16927E-02
   2  alpha         2.4404        .52217        .11844E-01   -.20041E-03
   3  Normalizat    .98777        .19959        .22909E-03    .14580E-03
   4  Prefactor     .77155        .21466        .28115E-03    .18981E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.3187
  alpha      = 2.44037
  Normalizat = 0.987774
  Prefactor  = 0.771551
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.388     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.319        7.7746        .19830E-04   -1.4900    
   2  alpha         2.4404        .51303        .47375E-03   -.23853E-01
   3  Normalizat    .98777        .19965        .91634E-05   -.93441    
   4  Prefactor     .77155        .21478        .11246E-04   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78644e-09
Minuit parameter uncertainties:
  1  7.7751
  2  0.516703
  3  0.199805
  4  0.215016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/667429': 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) = 6090.38839283
delta logL = 0.0323678359537

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.632e+01  7.775e+00  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  2.440e+00  5.167e-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:  7.716e-01  2.150e-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.878e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.06
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.44 +/- 0.52
Photon Flux (Free Index): 8.50e-08 +/- 4.81e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.14e-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/667429/cmap_HighResolution_327974401_328233601_4FGL_J1438.9+3710_daily_bin342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.69e-08', energy_flux2='2.57e-05', photon_flux_error='3.45e-08', dlogl='3.24e-02', energy_flux='2.64e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-10 03:28:03.250324', photon_index_error2='0.52', photon_index2='2.44', ts='12.03', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='1.00', time_epoch_completed='1631269683.25', return_code='0', job_id='667429', GAL2='0.77', EG2='0.99', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='4.81e-08', ts2='12.06', photon_index='2.31' WHERE bin_id='342' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:28:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 667429: <4FGL_J1438.9+3710_daily_bin342> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin342> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 03:16:21 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:16:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:16:22 2021
Terminated at Fri Sep 10 03:28:03 2021
Results reported at Fri Sep 10 03:28:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin342 219.74 37.1752 327974401 328233601 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 :                                   678.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            702 sec.

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

