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


Performing analysis on: 4FGL_J0137.0+4751_daily_bin1322
RA = 24.2603, Dec = 47.8637
tmin = 581990401, tmax = 582249601
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='684962', job_status='RUN', time_executed='2021-08-14 07:09:30.572828', time_epoch_executed='1628950170.57' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='1322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684962/ft1_4FGL_J0137.0+4751_daily_bin1322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684962/ft1_4FGL_J0137.0+4751_daily_bin1322.fits outfile=/scratch/kocevski/684962/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1322.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=581990401.0 tmax=582249601.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 7.46
user 2.22
sys 2.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits" evtable="EVENTS" scfile=/scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits sctable="SC_DATA" outfile=/scratch/kocevski/684962/ltcube_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.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/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits
.....................!
real 18.45
user 13.57
sys 3.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits sctable="SC_DATA" expcube=/scratch/kocevski/684962/ltcube_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.fits outfile=/scratch/kocevski/684962/expmap_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.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/684962/ltcube_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.fits
.....................!
real 195.55
user 185.50
sys 8.37

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/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits scfile=/scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits outfile=/scratch/kocevski/684962/cmap_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.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 3.71
user 0.40
sys 2.74

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits scfile=/scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits outfile=/scratch/kocevski/684962/cmap_HighResolution_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.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 4.14
user 0.37
sys 2.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits evtable="EVENTS" scfile=/scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684962/Model_4FGL_J0137.0+4751_daily_bin1322.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/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits.....................!
real 69.25
user 61.49
sys 4.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits', '/scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits', expMap='/scratch/kocevski/684962/expmap_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.fits', expCube='/scratch/kocevski/684962/ltcube_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/684962/Model_4FGL_J0137.0+4751_daily_bin1322.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/684962/ft1_filtered_4FGL_J0137.0+4751_daily_bin1322.fits
Spacecraft file(s): /scratch/kocevski/684962/ft2_4FGL_J0137.0+4751_daily_bin1322.fits
Exposure map: /scratch/kocevski/684962/expmap_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.fits
Exposure cube: /scratch/kocevski/684962/ltcube_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/684962/Model_4FGL_J0137.0+4751_daily_bin1322.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) = 4868.34890588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.556       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.923       1.0000         .10000E-03   10000.    
     5 'norm      '    9.3281       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.221       1.0000         .10000E-03   10000.    
     8 'Prefactor '    82.394       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.856       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.710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.450       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8034       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4633       1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.308       1.0000         .10000E-03   10000.    
    19 'norm      '    .71375       1.0000         .10000E-03   10000.    
    20 'Prefactor '    673.80       1.0000         .10000E-03   10000.    
    21 'norm      '    239.43       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .59633       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0655       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.

 FCN=   4868.226     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2996 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.555        33.870       -.15045E-05    .87249E-06
   2  norm          .10000E-03    34.980       -.34167E-04** at limit **
   3  Prefactor     .10000E-03    7.0634        .57854E-07** at limit **
   4  Prefactor     10.923        10.991        .56421E-07   -.39617E-04
   5  norm          9.3279        9.1447       -.39188E-06    .79140E-04
   6  norm          .10000E-03    26.602        .46214E-04** at limit **
   7  Prefactor     10.222        18.091        .45759E-06   -.19960E-04
   8  Prefactor     82.391        87.233       -.39745E-05    .48712E-05
   9  norm          .10000E-03    1.4033        .13691E-07** at limit **
  10  Prefactor     .10000E-03    21.694       -.17854E-04** at limit **
  11  Prefactor     56.858        45.816        .21911E-05    .86366E-05
  12  norm          .10000E-03    .87408        .12787E-07** at limit **
  13  norm          .10000E-03    .23406       -.12801E-07** at limit **
  14  Prefactor     17.707        17.922       -.18464E-05   -.78545E-05
  15  Prefactor     67.449        59.649       -.12545E-05    .51822E-05
  16  Prefactor     6.8036        14.217       -.25253E-06   -.22410E-04
  17  Prefactor     4.4635        6.3372       -.28106E-05   -.33754E-03
  18  Prefactor     58.307        125.12       -.17150E-05    .38597E-05
  19  norm          .71375        .60302        .10476E-07    .11216E-03
  20  Prefactor     673.85        1367.9        .18727E-04    .10427E-07
  21  norm          239.41        196.77       -.14322E-04    .25646E-06
  22  Normalizat    .59634        .32959        .40517E-05    .43765E-04
  23  Prefactor     1.0655        .11225        .29868E-06    .24880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.5552
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.923
  norm       = 9.3279
  norm       = 0.0001
  Prefactor  = 10.2219
  Prefactor  = 82.3907
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.8582
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.7072
  Prefactor  = 67.4487
  Prefactor  = 6.80359
  Prefactor  = 4.46351
  Prefactor  = 58.3068
  norm       = 0.713747
  Prefactor  = 673.85
  norm       = 239.41
  Normalizat = 0.596335
  Prefactor  = 1.06555
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.226     FROM HESSE     STATUS=OK           364 CALLS     3360 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.555        33.854        .65399E-04   -1.4482    
   2  norm          .10000E-03    35.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.1322        .18106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.923        10.970        .12122E-03   -1.5047    
   5  norm          9.3279        9.1767        .13122E-03   -1.5097    
   6  norm          .10000E-03    26.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.222        18.076        .12533E-03   -1.5068    
   8  Prefactor     82.391        87.093        .44250E-04   -1.3890    
   9  norm          .10000E-03    1.4087        .80709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.858        45.813        .53202E-04   -1.4198    
  12  norm          .10000E-03    .89554        .63684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .23469        .32959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.707        17.996        .95173E-04   -1.4866    
  15  Prefactor     67.449        59.670        .48871E-04   -1.4064    
  16  Prefactor     6.8036        14.185        .15383E-03   -1.5186    
  17  Prefactor     4.4635        6.3316        .18793E-03   -1.5285    
  18  Prefactor     58.307        124.73        .52539E-04   -1.4179    
  19  norm          .71375        .61398        .48072E-04   -1.5539    
  20  Prefactor     673.85        1369.2        .15957E-04   -1.0456    
  21  norm          239.41        196.74        .13083E-03   -1.2601    
  22  Normalizat    .59634        .33971        .52883E-03   -1.0814    
  23  Prefactor     1.0655        .11843        .14891E-03   -.90575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60953e-10
Minuit parameter uncertainties:
  1  33.8711
  2  0.000182739
  3  1.48846e-05
  4  10.9717
  5  9.17813
  6  9.41431e-06
  7  18.0855
  8  87.2286
  9  1.525e-06
  10  4.18132e-06
  11  45.8414
  12  2.08129e-07
  13  3.8201e-08
  14  18.0011
  15  59.7233
  16  14.1917
  17  6.33259
  18  125.296
  19  0.613989
  20  1448.42
  21  197.285
  22  0.340902
  23  0.118458
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.000e-04  3.820e-08  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:  1.066e+00  1.185e-01  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:  5.963e-01  3.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 24.260 47.864
Photon Flux Upper Limit: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684962/likelihoodResults_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.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) = 4868.22608715
delta logL = -1.29017907966e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4868.22606648
delta logL = 7.77261539042e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10327E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9508       1.0000          .0000       5.0000    
     3 'Normalizat'    .59583       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0657       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=   4868.226     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      257 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .27685        .34300E-03** at limit **
   2  alpha         1.7855        2.9487        .16993       -.58205E-06
   3  Normalizat    .59634        .29693        .52882E-03    .38116E-04
   4  Prefactor     1.0655        .11060        .14891E-03    .16125E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.78546
  Normalizat = 0.596337
  Prefactor  = 1.06555
 **********
 **   18 **HESSE 
 **********

 FCN=   4868.226     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .25773        .68600E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7855        3.2681        .67971E-02   -.28986    
   3  Normalizat    .59634        .29695        .21153E-04   -1.0814    
   4  Prefactor     1.0655        .11061        .29781E-04   -.90575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0337e-10
Minuit parameter uncertainties:
  1  3.81609e-06
  2  64.3585
  3  0.297745
  4  0.110633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684962': 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) = 4868.22605521
delta logL = 1.9042693566e-05

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.000e-04  3.816e-06  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  1.785e+00  6.436e+01  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:  1.066e+00  1.106e-01  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:  5.963e-01  2.977e-01  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/684962/cmap_HighResolution_581990401_582249601_4FGL_J0137.0+4751_daily_bin1322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-08-14 07:21:09.938215', job_id='684962', GAL2='1.07', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1628950869.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.90e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='1322' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 07:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 684962: <4FGL_J0137.0+4751_daily_bin1322> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1322> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Aug 14 07:05:27 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 07:06:22 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:22 2021
Terminated at Sat Aug 14 07:21:11 2021
Results reported at Sat Aug 14 07:21:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1322 24.2603 47.8637 581990401 582249601 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            944 sec.

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

