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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1434
RA = 24.5063, Dec = 22.7962
tmin = 611020801, tmax = 611280001
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='750184', job_status='RUN', time_executed='2021-08-14 11:10:57.523020', time_epoch_executed='1628964657.52' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1434'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750184/ft1_4FGL_J0138.0+2247_daily_bin1434.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750184/ft1_4FGL_J0138.0+2247_daily_bin1434.fits outfile=/scratch/kocevski/750184/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1434.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=611020801.0 tmax=611280001.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 4.10
user 3.34
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.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/750184/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1434.fits evtable="EVENTS" outfile="/scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.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.00
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits" evtable="EVENTS" scfile=/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits sctable="SC_DATA" outfile=/scratch/kocevski/750184/ltcube_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.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/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits
.....................!
real 18.15
user 16.78
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits sctable="SC_DATA" expcube=/scratch/kocevski/750184/ltcube_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.fits outfile=/scratch/kocevski/750184/expmap_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.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/750184/ltcube_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.fits
.....................!
real 193.28
user 185.44
sys 5.31

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 169 point sources and 0 extended sources

Setting source of interest to:
4FGL J0138.0+2247 @ 24.5063 22.7962

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits scfile=/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits outfile=/scratch/kocevski/750184/cmap_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.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.5063 yref=22.7962 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.98
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits scfile=/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits outfile=/scratch/kocevski/750184/cmap_HighResolution_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.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.5063 yref=22.7962 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.63
user 0.40
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits evtable="EVENTS" scfile=/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/750184/Model_4FGL_J0138.0+2247_daily_bin1434.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/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits.....................!
real 93.55
user 84.80
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits', '/scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits', expMap='/scratch/kocevski/750184/expmap_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.fits', expCube='/scratch/kocevski/750184/ltcube_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/750184/Model_4FGL_J0138.0+2247_daily_bin1434.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0138.0+2247'

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.231e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/750184/ft1_filtered_4FGL_J0138.0+2247_daily_bin1434.fits
Spacecraft file(s): /scratch/kocevski/750184/ft2_4FGL_J0138.0+2247_daily_bin1434.fits
Exposure map: /scratch/kocevski/750184/expmap_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.fits
Exposure cube: /scratch/kocevski/750184/ltcube_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/750184/Model_4FGL_J0138.0+2247_daily_bin1434.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) = 8008.82932598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.197       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0446       1.0000         .10000E-03   10000.    
     4 'norm      '    .51440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3007       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7735       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.188       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.783       1.0000         .10000E-03   10000.    
    11 'Prefactor '    118.47       1.0000         .10000E-03   10000.    
    12 'norm      '    .56634       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25132E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8817       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.686       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6930       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0447       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98056       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8008.811     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2714 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.022        .20351E-07** at limit **
   2  Prefactor     32.187        47.401        .52808E-06    .10552E-05
   3  norm          1.0444        .68359       -.63698E-07   -.31865E-03
   4  norm          .51370        1.1203        .17795E-06   -.17326E-04
   5  Prefactor     .10000E-03    5.2223        .32780E-07** at limit **
   6  Prefactor     6.2847        49.334        .78339E-06    .29097E-05
   7  Prefactor     3.7747        4.6026        .14279E-05   -.45754E-04
   8  Prefactor     13.188        8.3498       -.37724E-07   -.14207E-04
   9  Prefactor     .10000E-03    6.5428       -.14875E-06** at limit **
  10  Prefactor     11.782        15.819       -.58315E-08    .10348E-05
  11  Prefactor     118.46        99.901        .13273E-05    .72137E-05
  12  norm          .56593        .50162       -.34227E-07   -.35430E-03
  13  Prefactor     .10002E-03    9.2041       -.22824E-06** at limit **
  14  Prefactor     .10000E-03    13.024       -.15034E-06** at limit **
  15  norm          .10000E-03    1.7162        .11737E-07** at limit **
  16  Prefactor     .10000E-03    48.194       -.19931E-05** at limit **
  17  Prefactor     4.8807        3.4963        .82990E-07    .15162E-04
  18  Prefactor     15.683        11.031        .78105E-07    .20621E-05
  19  Prefactor     5.6922        4.6199        .21173E-07    .78222E-05
  20  norm          .10000E-03    33.522        .35447E-05** at limit **
  21  Prefactor     .10000E-03    27.848       -.22507E-05** at limit **
  22  Prefactor     .10000E-03    17.396        .38189E-06** at limit **
  23  Normalizat    1.0451        .20317       -.32835E-07    .26593E-04
  24  Prefactor     .98033        .11279       -.33869E-06    .14262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.1867
  norm       = 1.04443
  norm       = 0.513699
  Prefactor  = 0.0001
  Prefactor  = 6.28469
  Prefactor  = 3.77472
  Prefactor  = 13.1876
  Prefactor  = 0.0001
  Prefactor  = 11.7815
  Prefactor  = 118.46
  norm       = 0.565933
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.88068
  Prefactor  = 15.6831
  Prefactor  = 5.69223
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04507
  Prefactor  = 0.980334
 **********
 **   18 **HESSE 
 **********

 FCN=   8008.811     FROM HESSE     STATUS=OK           411 CALLS     3125 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.187        47.247        .70617E-04   -1.4573    
   3  norm          1.0444        .66741        .52673E-04   -1.5504    
   4  norm          .51370        1.0922        .13229E-03   -1.5565    
   5  Prefactor     .10000E-03    5.2428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2847        49.202        .15991E-03   -1.5207    
   7  Prefactor     3.7747        4.6078        .97457E-03   -1.5319    
   8  Prefactor     13.188        8.3139        .11030E-03   -1.4982    
   9  Prefactor     .10000E-03    6.5790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.782        15.817        .11670E-03   -1.5021    
  11  Prefactor     118.46        99.302        .36970E-04   -1.3527    
  12  norm          .56593        .47095        .56427E-03   -1.5558    
  13  Prefactor     .10002E-03    13.702        .71226E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7244        .11435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8807        3.4969        .13360E-03   -1.5266    
  18  Prefactor     15.683        11.059        .10113E-03   -1.4916    
  19  Prefactor     5.6922        4.6215        .16790E-03   -1.5231    
  20  norm          .10000E-03    33.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0451        .23769        .32209E-03   -.91536    
  24  Prefactor     .98033        .13180        .19639E-03   -.93388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41609e-11
Minuit parameter uncertainties:
  1  2.1566e-06
  2  47.3024
  3  0.66742
  4  1.09227
  5  3.1617e-06
  6  35.209
  7  4.60819
  8  8.31459
  9  1.88053e-05
  10  15.8225
  11  99.442
  12  0.470949
  13  0.000953985
  14  6.90378e-07
  15  3.04123e-07
  16  3.20836e-05
  17  3.49708
  18  11.0601
  19  4.62176
  20  5.4639e-05
  21  1.48029e-05
  22  6.82787e-06
  23  0.237933
  24  0.131844
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.178e+01  1.582e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.006e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.803e-01  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.045e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 24.506 22.796
Photon Index (Fixed Index): 2.01 +/- 0.00
Photon Flux (Fixed Index): 9.13e-09 +/- 1.23e-08
Energy Flux (Fixed Index): 6.21e-06 +/- 8.34e-06

TS (Fixed Index): 1.22
Ra Dec: 24.506 22.796
Photon Flux Upper Limit: 5.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750184/likelihoodResults_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.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) = 8008.39933422
delta logL = 0.412108898672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8008.39889902
delta logL = 0.412544103808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.286       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2894       1.0000          .0000       10.000    
     3 'Normalizat'    1.0504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97864       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8008.399     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      268 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.353        1324.1        .22800E-02   -.29339E-04
   2  Index         1.2917        7.1506        .32797        .18277E-05
   3  Normalizat    1.0504        .17192        .72617E-01    .87816E-04
   4  Prefactor     .97862        .69590E-01    .46000E-01   -.47268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3527
  Index      = 1.2917
  Normalizat = 1.05044
  Prefactor  = 0.978619
 **********
 **   18 **HESSE 
 **********

 FCN=   8008.399     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.353        22.956        .91201E-04   -1.4828    
   2  Index         1.2917        .68832        .14709E-01   -.83554    
   3  Normalizat    1.0504        .21882        .32134E-03   -.91359    
   4  Prefactor     .97862        .13054        .19650E-03   -.93446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08329e-11
Minuit parameter uncertainties:
  1  22.966
  2  0.69325
  3  0.219008
  4  0.13058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750184': 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) = 8008.39889049
delta logL = 0.412552637793

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.935e+01  2.297e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.292e+00  6.932e-01  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  2.764e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.786e-01  1.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
535        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
536        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
533   Normalization:  1.050e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 24.506 22.796
Photon Index (Free Index): 1.29 +/- 0.69
Photon Flux (Free Index): 4.18e-09 +/- 5.90e-09
Energy Flux (Free Index): 2.63e-05 +/- 4.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/750184/cmap_HighResolution_611020801_611280001_4FGL_J0138.0+2247_daily_bin1434.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', comment='SUCCESS', photon_flux='9.13e-09', energy_flux2='2.63e-05', photon_flux_error='1.23e-08', dlogl='4.13e-01', energy_flux='6.21e-06', photon_flux2='4.18e-09', job_status='DONE', time_completed='2021-08-14 11:24:26.003370', photon_index_error2='0.69', photon_index2='1.29', ts='1.22', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.29e-08', energy_flux_error2='4.90e-05', EG='1.05', time_epoch_completed='1628965466.0', return_code='0', job_id='750184', GAL2='0.98', EG2='1.05', return_code2='0', energy_flux_error='8.34e-06', photon_flux_error2='5.90e-09', ts2='2.04', photon_index='2.01' WHERE bin_id='1434' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 11:24:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0129>
Subject: Job 750184: <4FGL_J0138.0+2247_daily_bin1434> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1434> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 11:07:56 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 11:08:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 11:08:30 2021
Terminated at Sat Aug 14 11:24:28 2021
Results reported at Sat Aug 14 11:24:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1434 24.5063 22.7962 611020801 611280001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0138.0+2247 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   786.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            992 sec.

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

