/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 81 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 = 7423
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0137.0+4751_daily_bin1302
RA = 24.2603, Dec = 47.8637
tmin = 576806401, tmax = 577065601
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='684933', job_status='RUN', time_executed='2021-08-14 07:10:03.731595', time_epoch_executed='1628950203.73' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684933/ft1_4FGL_J0137.0+4751_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684933/ft1_4FGL_J0137.0+4751_daily_bin1302.fits outfile=/scratch/kocevski/684933/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1302.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=576806401.0 tmax=577065601.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 10.69
user 2.86
sys 3.71

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.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/684933/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.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 5.29
user 0.34
sys 3.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/684933/ltcube_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.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/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits
.....................!
real 19.87
user 12.50
sys 4.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/684933/ltcube_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.fits outfile=/scratch/kocevski/684933/expmap_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.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/684933/ltcube_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.fits
.....................!
real 196.84
user 185.64
sys 9.44

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 177 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0137.0+4751 @ 24.2603 47.8637

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits scfile=/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits outfile=/scratch/kocevski/684933/cmap_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.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=24.2603 yref=47.8637 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 5.05
user 0.38
sys 3.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits scfile=/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits outfile=/scratch/kocevski/684933/cmap_HighResolution_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.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=24.2603 yref=47.8637 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 5.84
user 0.40
sys 3.54

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684933/Model_4FGL_J0137.0+4751_daily_bin1302.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits......................!
real 53.74
user 40.42
sys 5.86

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits', '/scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits', expMap='/scratch/kocevski/684933/expmap_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.fits', expCube='/scratch/kocevski/684933/ltcube_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/684933/Model_4FGL_J0137.0+4751_daily_bin1302.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0137.0+4751'

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.175e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/684933/ft1_filtered_4FGL_J0137.0+4751_daily_bin1302.fits
Spacecraft file(s): /scratch/kocevski/684933/ft2_4FGL_J0137.0+4751_daily_bin1302.fits
Exposure map: /scratch/kocevski/684933/expmap_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.fits
Exposure cube: /scratch/kocevski/684933/ltcube_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/684933/Model_4FGL_J0137.0+4751_daily_bin1302.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) = 2624.53687705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18288E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1524       1.0000         .10000E-03   10000.    
     6 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28945E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.9466       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.483       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0271       1.0000         .10000E-03   10000.    
    19 'norm      '    904.14       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10000.       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71360       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2622.030     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2647 TOTAL
                     EDM=   .28E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.404         .0000    ** at limit **
   2  norm          .10000E-03    7.8021         .0000    ** at limit **
   3  Prefactor     13.958        1.3751         .0000        .49789E-04
   4  Prefactor     .10559E-03    79.231         .0000    ** at limit **
   5  norm          3.1524        4.9855         .0000       -.54308E-04
   6  norm          .10000E-03    34.351         .0000    ** at limit **
   7  Prefactor     .10002E-03    42.598         .0000    ** at limit **
   8  Prefactor     .10002E-03    3.3924         .0000    ** at limit **
   9  norm          8.9464        6.7262         .0000        .25991E-03
  10  Prefactor     .10020E-03    32.488         .0000    ** at limit **
  11  Prefactor     .10211E-03    49.967         .0000    ** at limit **
  12  norm          .10000E-03    6.1939         .0000    ** at limit **
  13  norm          .10000E-03    1.0929         .0000    ** at limit **
  14  Prefactor     17.485        8.1218         .0000       -.16976E-02
  15  Prefactor     .10000E-03    12.348         .0000    ** at limit **
  16  Prefactor    10000.0        1.2364         .0000    ** at limit **
  17  Prefactor    10000.0        108.91         .0000    ** at limit **
  18  Prefactor     8.0165        2.8625         .0000        .84042E-03
  19  norm          904.14        1.3770         .0000       -.30140E-02
  20  Prefactor     .10003E-03    134.37         .0000    ** at limit **
  21  norm         10000.0        159.68         .0000    ** at limit **
  22  Normalizat    .10000E-01    .30641         .0000    ** at limit **
  23  Prefactor     .71358        .68342E-01     .0000       -.29456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9581
  Prefactor  = 0.000105595
  norm       = 3.1524
  norm       = 0.000100001
  Prefactor  = 0.000100019
  Prefactor  = 0.000100024
  norm       = 8.94644
  Prefactor  = 0.000100202
  Prefactor  = 0.000102108
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4849
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 8.01649
  norm       = 904.141
  Prefactor  = 0.000100028
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.713576
 **********
 **   18 **HESSE 
 **********

 FCN=   2622.030     FROM HESSE     STATUS=OK           406 CALLS     3053 TOTAL
                     EDM=   .49E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.7991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.958        20.615        .26786E-02   -1.4961    
   4  Prefactor     .10559E-03    103.92        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1524        4.9917        .57074E-02   -1.5353    
   6  norm          .10000E-03    34.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    42.942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    201.12        .10702E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.9464        6.7732        .33500E-02   -1.5110    
  10  Prefactor     .10020E-03    84.252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10211E-03    76.371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.1938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0864        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.485        8.1245        .23947E-02   -1.4871    
  15  Prefactor     .10000E-03    12.337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        6245.8        .10714E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        231.40        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0165        8234.1        .35379E-02   -1.5142    
  19  norm          904.14        792.69        .34871E-03   -.95997    
  20  Prefactor     .10003E-03    349.22        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm         10000.0        447.39        .90712E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .21973        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .71358        .78353E-01    .28099E-01   -1.0300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93423e-05
Minuit parameter uncertainties:
  1  0.000105523
  2  2.73948e-07
  3  20.6252
  4  0.0483077
  5  4.99237
  6  0.000415632
  7  0.00181842
  8  0.00440734
  9  6.77381
  10  0.00826635
  11  0.0254058
  12  1.10207e-05
  13  2.40252e-06
  14  8.12497
  15  9.18615e-06
  16  0.926131
  17  0.19239
  18  2323.67
  19  803.148
  20  0.00626297
  21  0.373402
  22  2.49407e-06
  23  0.0783655
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.000e-04  2.403e-06  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  2.196e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  9.871e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  7.136e-01  7.837e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.000e-02  2.494e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 24.260 47.864
Photon Flux Upper Limit: 2.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684933/likelihoodResults_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.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) = 2622.03432643
delta logL = -0.00417752199473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2622.03014886
delta logL = 5.12895894644e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1883       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71355       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   2622.030     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      242 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5068        .52219E-03** at limit **
   2  alpha         1.9787        3.8255        .16625       -.48004E-07
   3  Normalizat    .10000E-01    .30652        .12689E-01** at limit **
   4  Prefactor     .71358        .63950E-01    .12419E-03    .88798E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97868
  Normalizat = 0.01
  Prefactor  = 0.713577
 **********
 **   18 **HESSE 
 **********

 FCN=   2622.030     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1341        .10444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9787        3.8147        .66501E-02   -.21007    
   3  Normalizat    .10000E-01    .30670        .25377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .71358        .63921E-01    .49675E-05   -1.0300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16455e-10
Minuit parameter uncertainties:
  1  3.9944e-05
  2  119.934
  3  1.11397e-08
  4  0.0639275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684933': 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) = 2622.03014725
delta logL = 1.66391237144e-06

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.000e-04  3.994e-05  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  1.979e+00  1.199e+02  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  9.871e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  6.877e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  7.136e-01  6.393e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.000e-02  1.114e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.260 47.864

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/684933/cmap_HighResolution_576806401_577065601_4FGL_J0137.0+4751_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', job_status='DONE', photon_flux_upper_limit='2.56e-07', time_completed='2021-08-14 07:19:33.723659', job_id='684933', GAL2='0.71', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1628950773.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1302' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 07:19:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 684933: <4FGL_J0137.0+4751_daily_bin1302> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1302> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 07:05:24 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 07:06:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 07:06:01 2021
Terminated at Sat Aug 14 07:19:35 2021
Results reported at Sat Aug 14 07:19:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1302 24.2603 47.8637 576806401 577065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0137.0+4751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   594.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             249.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            851 sec.

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

