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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin35
RA = 219.74, Dec = 37.1752
tmin = 248400001, tmax = 248659201
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='665817', job_status='RUN', time_executed='2021-09-10 03:14:59.679715', time_epoch_executed='1631268899.68' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/665817

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/665817/ft1_4FGL_J1438.9+3710_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/665817/ft2_4FGL_J1438.9+3710_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/665817/ft1_4FGL_J1438.9+3710_daily_bin35.fits outfile=/scratch/kocevski/665817/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin35.fits ra=219.74 dec=37.1752 rad=12.0 tmin=248400001.0 tmax=248659201.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.42
user 1.24
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/665817/ft1_filtered_4FGL_J1438.9+3710_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/665817/ft2_4FGL_J1438.9+3710_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/665817/ltcube_248400001_248659201_4FGL_J1438.9+3710_daily_bin35.fits outfile=/scratch/kocevski/665817/expmap_248400001_248659201_4FGL_J1438.9+3710_daily_bin35.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/665817/ltcube_248400001_248659201_4FGL_J1438.9+3710_daily_bin35.fits
.....................!
real 191.65
user 186.62
sys 4.68

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/665817/ft1_filtered_4FGL_J1438.9+3710_daily_bin35.fits scfile=/scratch/kocevski/665817/ft2_4FGL_J1438.9+3710_daily_bin35.fits outfile=/scratch/kocevski/665817/cmap_248400001_248659201_4FGL_J1438.9+3710_daily_bin35.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.52
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38252E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9192       1.0000         .10000E-03   10000.    
     3 'norm      '    7.7475       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.2123       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.967       1.0000         .10000E-03   10000.    
    10 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11164E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.665       1.0000         .10000E-03   10000.    
    15 'norm      '    14.369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3449       1.0000         .10000E-03   10000.    
    20 'norm      '    .12939E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38707E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    112.51       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.781       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23257E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    8.2379       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .19975E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91995       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89253       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=   4969.966     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3981 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    97.648        .39532E-05** at limit **
   2  Prefactor     3.9219        4.7055       -.31553E-06    .18320E-03
   3  norm          7.7625        13.083       -.10724E-05    .16610E-03
   4  Prefactor     9.6243        16.094       -.11821E-05    .20825E-03
   5  Prefactor     .10000E-03    4.5905       -.24861E-06** at limit **
   6  norm          4.2128        3.4107       -.63981E-07    .26348E-03
   7  Prefactor     .10000E-03    5.0076       -.45751E-06** at limit **
   8  Prefactor     .10000E-03    5.6569       -.15556E-06** at limit **
   9  Prefactor     10.969        4.7859       -.15405E-06    .32021E-03
  10  norm          .10000E-03    4.5464       -.17506E-08** at limit **
  11  Prefactor     .10000E-03    6.7504       -.28416E-06** at limit **
  12  norm          .10004E-03    9.6160        .36036E-05** at limit **
  13  Prefactor     .10000E-03    24.447        .14566E-05** at limit **
  14  Prefactor     34.753        33.165        .94695E-06   -.98716E-04
  15  norm          14.367        10.468       -.39660E-07    .23337E-03
  16  Prefactor     .10000E-03    13.818        .42188E-06** at limit **
  17  Prefactor     .10000E-03    5.4212        .34963E-06** at limit **
  18  Prefactor     .10000E-03    4.6590        .22338E-06** at limit **
  19  norm          1.3500        2.2303       -.65545E-06    .83847E-03
  20  norm          .10000E-03    11.122        .59122E-05** at limit **
  21  Prefactor     .10022E-03    37.174       -.12496E-04** at limit **
  22  Prefactor     112.50        95.787        .12673E-05    .26857E-04
  23  Prefactor     26.801        24.994        .38787E-05    .45527E-03
  24  Prefactor     .10014E-03    48.844        .10248E-04** at limit **
  25  norm          8.2349        2.0305       -.48691E-07    .19274E-03
  26  Prefactor     .10000E-03    8.8776        .50934E-07** at limit **
  27  Prefactor     .10000E-03    6.8410        .26501E-06** at limit **
  28  norm          .10000E-03    18.691        .11830E-05** at limit **
  29  Normalizat    .91960        .18871        .14627E-05    .48533E-03
  30  Prefactor     .89279        .19749        .40709E-06    .43533E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 3.92192
  norm       = 7.76246
  Prefactor  = 9.62426
  Prefactor  = 0.0001
  norm       = 4.21284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.969
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100042
  Prefactor  = 0.000100001
  Prefactor  = 34.7531
  norm       = 14.3668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34996
  norm       = 0.0001
  Prefactor  = 0.000100218
  Prefactor  = 112.499
  Prefactor  = 26.8014
  Prefactor  = 0.000100138
  norm       = 8.23488
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Normalizat = 0.919598
  Prefactor  = 0.892786
 **********
 **   18 **HESSE 
 **********

 FCN=   4969.966     FROM HESSE     STATUS=OK           588 CALLS     4569 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    97.627        .21284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9219        4.7003        .16211E-03   -1.5312    
   3  norm          7.7625        13.069        .14407E-03   -1.5151    
   4  Prefactor     9.6243        16.025        .12925E-03   -1.5087    
   5  Prefactor     .10000E-03    4.5929        .14751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.2128        3.4085        .11334E-03   -1.5297    
   7  Prefactor     .10000E-03    4.9942        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6640        .16373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.969        4.7969        .96759E-04   -1.5045    
  10  norm          .10000E-03    4.5484        .14682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7522        .17889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10004E-03    22.800        .33523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.753        33.220        .68064E-04   -1.4528    
  15  norm          14.367        10.420        .10566E-03   -1.4950    
  16  Prefactor     .10000E-03    13.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.4440        .15998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6971        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3500        2.1737        .11690E-03   -1.5476    
  20  norm          .10000E-03    22.650        .22743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10022E-03    18.216        .55610E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     112.50        94.514        .37926E-04   -1.3583    
  23  Prefactor     26.801        27.084        .77411E-04   -1.4672    
  24  Prefactor     .10014E-03    114.04        .44136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.2349        2.0286        .47653E-04   -1.5134    
  26  Prefactor     .10000E-03    8.9084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.8389        .18003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    18.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91960        .21775        .23649E-03   -.95775    
  30  Prefactor     .89279        .22882        .26324E-03   -.96394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37174e-09
Minuit parameter uncertainties:
  1  0.00157128
  2  4.70073
  3  13.0737
  4  16.0321
  5  1.57335e-05
  6  3.40869
  7  8.08198e-05
  8  3.75059e-05
  9  4.79704
  10  1.01351e-05
  11  2.37854e-05
  12  0.00196916
  13  0.000270011
  14  33.2378
  15  10.4216
  16  0.000101392
  17  1.62535e-05
  18  3.20702e-05
  19  2.17385
  20  1.95488e-05
  21  0.00398423
  22  94.6408
  23  27.0966
  24  0.00793507
  25  2.0286
  26  1.78324e-05
  27  3.81385e-05
  28  0.000366663
  29  0.217956
  30  0.229068
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.000e-04  1.969e-03  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.928e-01  2.291e-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.196e-01  2.180e-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: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/665817/likelihoodResults_248400001_248659201_4FGL_J1438.9+3710_daily_bin35.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): 102
logL (Free Index) = 4969.96598973
delta logL = -0.000207498595955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4969.96577347
delta logL = 8.76114791026e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13779E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4456       1.0000          .0000       5.0000    
     3 'Normalizat'    .91987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89248       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=   4968.460     FROM MIGRAD    STATUS=CONVERGED    178 CALLS      346 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43922        .30288        .30031E-04   -.14605E-02
   2  alpha         5.0000        3.2414        .50072E-01** at limit **
   3  Normalizat    .79585        .21763        .25193E-03    .10627E-03
   4  Prefactor     .97964        .23503        .25263E-03    .81048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.439216
  alpha      = 5
  Normalizat = 0.795852
  Prefactor  = 0.979641
 **********
 **   18 **HESSE 
 **********

 FCN=   4968.460     FROM HESSE     STATUS=OK            23 CALLS      369 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43922        .29911        .12013E-05   -1.5575    
   2  alpha         5.0000        3.2421        .20029E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79585        .21784        .10077E-04   -1.0022    
   4  Prefactor     .97964        .23527        .10105E-04   -.93411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44155e-10
Minuit parameter uncertainties:
  1  0.299116
  2  2.70402e-05
  3  0.218083
  4  0.235515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/665817': 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) = 4968.45997753
delta logL = 1.50580469792

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.392e-01  2.991e-01  1.000e-04  1.000e+04 ( 1.000e-12)
283        alpha:  5.000e+00  2.704e-05  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:  9.796e-01  2.355e-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:  7.959e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.28
Ra Dec: 219.740 37.175
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.52e-08 +/- 5.77e-08
Energy Flux (Free Index): 1.16e-05 +/- 7.88e-06

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/665817/cmap_HighResolution_248400001_248659201_4FGL_J1438.9+3710_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-05', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='1.51e+00', photon_flux2='8.52e-08', job_status='DONE', time_completed='2021-09-10 03:27:08.917277', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='8.02e-08', energy_flux_error2='7.88e-06', EG='0.92', time_epoch_completed='1631269628.92', return_code='0', job_id='665817', GAL2='0.98', EG2='0.80', return_code2='0', photon_flux_error2='5.77e-08', ts2='3.28', photon_index='2.31' WHERE bin_id='35' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 665817: <4FGL_J1438.9+3710_daily_bin35> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin35> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 03:11:09 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:11:10 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:10 2021
Terminated at Fri Sep 10 03:27:09 2021
Results reported at Fri Sep 10 03:27:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin35 219.74 37.1752 248400001 248659201 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 :                                   729.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

