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


Performing analysis on: 4FGL_J0137.0+4751_daily_bin1252
RA = 24.2603, Dec = 47.8637
tmin = 563846401, tmax = 564105601
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='683877', job_status='RUN', time_executed='2021-08-14 07:04:43.203617', time_epoch_executed='1628949883.2' WHERE source_name='4FGL J0137.0+4751' and cadence='daily' and bin_id='1252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683877/ft1_4FGL_J0137.0+4751_daily_bin1252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683877/ft2_4FGL_J0137.0+4751_daily_bin1252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683877/ft1_4FGL_J0137.0+4751_daily_bin1252.fits outfile=/scratch/kocevski/683877/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1252.fits ra=24.2603 dec=47.8637 rad=12.0 tmin=563846401.0 tmax=564105601.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.59
user 2.61
sys 0.87

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/683877/ft2_4FGL_J0137.0+4751_daily_bin1252.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/683877/ft1_filteredMKT_4FGL_J0137.0+4751_daily_bin1252.fits evtable="EVENTS" outfile="/scratch/kocevski/683877/ft1_filtered_4FGL_J0137.0+4751_daily_bin1252.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 1.45
user 0.33
sys 0.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683877/ft1_filtered_4FGL_J0137.0+4751_daily_bin1252.fits" evtable="EVENTS" scfile=/scratch/kocevski/683877/ft2_4FGL_J0137.0+4751_daily_bin1252.fits sctable="SC_DATA" outfile=/scratch/kocevski/683877/ltcube_563846401_564105601_4FGL_J0137.0+4751_daily_bin1252.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/683877/ft2_4FGL_J0137.0+4751_daily_bin1252.fits
.....................!
real 14.86
user 13.71
sys 1.11

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683877/ft1_filtered_4FGL_J0137.0+4751_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/683877/ft2_4FGL_J0137.0+4751_daily_bin1252.fits sctable="SC_DATA" expcube=/scratch/kocevski/683877/ltcube_563846401_564105601_4FGL_J0137.0+4751_daily_bin1252.fits outfile=/scratch/kocevski/683877/expmap_563846401_564105601_4FGL_J0137.0+4751_daily_bin1252.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/683877/ltcube_563846401_564105601_4FGL_J0137.0+4751_daily_bin1252.fits
.....................!
real 192.16
user 186.04
sys 4.88

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/683877/ft1_filtered_4FGL_J0137.0+4751_daily_bin1252.fits scfile=/scratch/kocevski/683877/ft2_4FGL_J0137.0+4751_daily_bin1252.fits outfile=/scratch/kocevski/683877/cmap_563846401_564105601_4FGL_J0137.0+4751_daily_bin1252.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 1.62
user 0.38
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683877/ft1_filtered_4FGL_J0137.0+4751_daily_bin1252.fits scfile=/scratch/kocevski/683877/ft2_4FGL_J0137.0+4751_daily_bin1252.fits outfile=/scratch/kocevski/683877/cmap_HighResolution_563846401_564105601_4FGL_J0137.0+4751_daily_bin1252.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 2.54
user 0.39
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    .16653E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11278E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .53441E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25255       1.0000         .10000E-03   10000.    
    15 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29228E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.456       1.0000         .10000E-03   10000.    
    19 'norm      '    15.020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26217E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .24922E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .33977E-01   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=   136.1781     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     2516 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.554        .48980E-05** at limit **
   2  norm          .16934E-03    175.82       -.29029E-03** at limit **
   3  Prefactor     .10000E-03    10.254        .78224E-08** at limit **
   4  Prefactor     .10000E-03    18.683        .10087E-05** at limit **
   5  norm         10000.0        41.052        .60153E-04** at limit **
   6  norm          .40896E-02    343.58        .13503E-03   -.30377E-02
   7  Prefactor     .10000E-03    39.851       -.83590E-05** at limit **
   8  Prefactor     .25489E-03    212.72        .31770E-03** at limit **
   9  norm          .10000E-03    53.789        .37338E-05** at limit **
  10  Prefactor     .55652E-01    553.03       -.58533E-03    .14119E-02
  11  Prefactor     .27788E-03    28.722        .14503E-03** at limit **
  12  norm          .10000E-03    19.031       -.12606E-05** at limit **
  13  norm         10000.0        365.99        .40519E-03** at limit **
  14  Prefactor     .44986E-01    1106.4       -.79604E-03    .15519E-02
  15  Prefactor    10000.0        163.59        .25935E-03** at limit **
  16  Prefactor     .17669E-03    13.180        .99781E-04** at limit **
  17  Prefactor    10000.0        4.7487        .57864E-04   -.21547E-03
  18  Prefactor     18.468        1.8321        .50356E-05   -.31078E-03
  19  norm          15.056        4.5223        .16026E-04   -.80528E-03
  20  Prefactor     .30912E-02    555.26       -.22998E-03   -.15545E-02
  21  norm          .15927E-03    156.78        .44472E-03** at limit **
  22  Normalizat    .10000E-01    .16253       -.65499E-06** at limit **
  23  Prefactor     .34001E-01    .53727E-01   -.19174E-06   -.12525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000169338
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10000
  norm       = 0.00408963
  Prefactor  = 0.000100001
  Prefactor  = 0.000254891
  norm       = 0.000100001
  Prefactor  = 0.0556519
  Prefactor  = 0.000277883
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.0449856
  Prefactor  = 10000
  Prefactor  = 0.000176691
  Prefactor  = 9999.99
  Prefactor  = 18.4684
  norm       = 15.056
  Prefactor  = 0.00309124
  norm       = 0.000159275
  Normalizat = 0.01
  Prefactor  = 0.0340012
 **********
 **   18 **HESSE 
 **********

 FCN=   136.1781     FROM HESSE     STATUS=OK           394 CALLS     2910 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .16934E-03    168.43        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.543        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm         10000.0        1101.2        .10122E-01    1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .40896E-02    714.37        .90712E-02   -1.5721    
   7  Prefactor     .10000E-03    39.230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25489E-03    205.38        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    52.648        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55652E-01    1790.2        .99366E-02   -1.5661    
  11  Prefactor     .27788E-03    635.13        .10562E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        1435.7        .92504E-02    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .44986E-01    1707.4        .10215E-01   -1.5666    
  15  Prefactor    10000.0        1369.7        .91121E-02    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .17669E-03    639.35        .10700E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        2067.4        .90885E-02    1.5689    
  18  Prefactor     18.468        2275.9        .23307E-02   -1.4848    
  19  norm          15.056        2291.6        .25836E-02   -1.4932    
  20  Prefactor     .30912E-02    993.42        .91534E-02   -1.5719    
  21  norm          .15927E-03    150.92        .10733E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .15201        .65974E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .34001E-01    .53913E-01    .24068E-01   -1.4541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61773e-06
Minuit parameter uncertainties:
  1  0.000119908
  2  0.216746
  3  2.09174e-07
  4  7.58062e-06
  5  1.01176
  6  3.418
  7  0.000300758
  8  0.35795
  9  0.000495228
  10  20.5937
  11  0.679574
  12  1.22722e-05
  13  3.59096
  14  18.0493
  15  1.57953
  16  0.447726
  17  9.10572
  18  427.909
  19  387.727
  20  3.50743
  21  0.189644
  22  9.96867e-09
  23  0.0539902
Done.

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

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  1.000e+04  3.591e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  3.400e-02  5.399e-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  9.969e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.44
Ra Dec: 24.260 47.864
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 4.83e-04 +/- 1.74e-07
Energy Flux (Fixed Index): 1.93e-01 +/- 6.94e-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) = 134.160946384
delta logL = 2.01714616655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 134.160435981
delta logL = 2.0176565694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0659       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31239E-01   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=   133.9711     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      249 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6090.5        7507.2        .20127E-01   -.46620E-05
   2  alpha         3.4015        .69547        .16426E-02   -.10222E-04
   3  Normalizat    .10000E-01    .16022        .14097E-02** at limit **
   4  Prefactor     .33481E-01    .53434E-01    .10484E-03    .70078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6090.46
  alpha      = 3.40146
  Normalizat = 0.01
  Prefactor  = 0.0334815
 **********
 **   18 **HESSE 
 **********

 FCN=   133.9711     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6090.5        7496.3        .64311E-03    .21986    
   2  alpha         3.4015        .69123        .65705E-04    .36889    
   3  Normalizat    .10000E-01    .16021        .28194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .33481E-01    .53439E-01    .20967E-04   -1.4550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19447e-10
Minuit parameter uncertainties:
  1  5441.76
  2  0.701772
  3  2.65784e-06
  4  0.0535153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683877': 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) = 133.971072763
delta logL = 2.2070197879

Extracting fit parameters...

4FGL J0137.0+4751
   Spectrum: LogParabola
277         norm:  6.090e+03  5.442e+03  1.000e-04  1.000e+04 ( 1.000e-11)
278        alpha:  3.401e+00  7.018e-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:  3.348e-02  5.352e-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.658e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.21
Ra Dec: 24.260 47.864
Photon Index (Free Index): 3.40 +/- 0.70
Photon Flux (Free Index): 1.41e-03 +/- 7.44e-04
Energy Flux (Free Index): 2.54e-01 +/- 1.16e-01

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/683877/cmap_HighResolution_563846401_564105601_4FGL_J0137.0+4751_daily_bin1252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.83e-04', energy_flux2='2.54e-01', photon_flux_error='1.74e-07', dlogl='2.21e+00', energy_flux='1.93e-01', photon_flux2='1.41e-03', job_status='DONE', time_completed='2021-08-14 07:10:34.139141', photon_index_error2='0.70', photon_index2='3.40', ts='15.44', fit_tolerance='1e-08', GAL='0.03', photon_index_error='0.00', energy_flux_error2='1.16e-01', EG='0.01', time_epoch_completed='1628950234.14', return_code='0', job_id='683877', GAL2='0.03', EG2='0.01', return_code2='0', energy_flux_error='6.94e-05', photon_flux_error2='7.44e-04', ts2='20.21', photon_index='2.20' WHERE bin_id='1252' AND source_name='4FGL J0137.0+4751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 07:10:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 683877: <4FGL_J0137.0+4751_daily_bin1252> in cluster <slac> Done

Job <4FGL_J0137.0+4751_daily_bin1252> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 14 07:01:10 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 07:03:02 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:03:02 2021
Terminated at Sat Aug 14 07:10:35 2021
Results reported at Sat Aug 14 07:10:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0137.0+4751_daily_bin1252 24.2603 47.8637 563846401 564105601 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 :                                   348.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   452 sec.
    Turnaround time :                            565 sec.

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

