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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin66
RA = 24.5063, Dec = 22.7962
tmin = 256435201, tmax = 256694401
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='727374', job_status='RUN', time_executed='2021-08-14 09:49:12.358049', time_epoch_executed='1628959752.36' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727374

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727374/ft1_4FGL_J0138.0+2247_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727374/ft1_4FGL_J0138.0+2247_daily_bin66.fits outfile=/scratch/kocevski/727374/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin66.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=256435201.0 tmax=256694401.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.00
user 1.28
sys 2.44

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.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/727374/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/727374/ft1_filtered_4FGL_J0138.0+2247_daily_bin66.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 2.83
user 0.34
sys 2.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727374/ft1_filtered_4FGL_J0138.0+2247_daily_bin66.fits" evtable="EVENTS" scfile=/scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits sctable="SC_DATA" outfile=/scratch/kocevski/727374/ltcube_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.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/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits
.....................!
real 17.06
user 13.70
sys 2.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727374/ft1_filtered_4FGL_J0138.0+2247_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/727374/ltcube_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.fits outfile=/scratch/kocevski/727374/expmap_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.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/727374/ltcube_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.fits
.....................!
real 195.43
user 185.86
sys 8.12

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/727374/ft1_filtered_4FGL_J0138.0+2247_daily_bin66.fits scfile=/scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits outfile=/scratch/kocevski/727374/cmap_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.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 2.94
user 0.38
sys 2.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727374/ft1_filtered_4FGL_J0138.0+2247_daily_bin66.fits scfile=/scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits outfile=/scratch/kocevski/727374/cmap_HighResolution_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.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 3.27
user 0.39
sys 2.36

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/727374/ft1_filtered_4FGL_J0138.0+2247_daily_bin66.fits', '/scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits', expMap='/scratch/kocevski/727374/expmap_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.fits', expCube='/scratch/kocevski/727374/ltcube_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/727374/Model_4FGL_J0138.0+2247_daily_bin66.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/727374/ft1_filtered_4FGL_J0138.0+2247_daily_bin66.fits
Spacecraft file(s): /scratch/kocevski/727374/ft2_4FGL_J0138.0+2247_daily_bin66.fits
Exposure map: /scratch/kocevski/727374/expmap_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.fits
Exposure cube: /scratch/kocevski/727374/ltcube_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/727374/Model_4FGL_J0138.0+2247_daily_bin66.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) = 6802.64366815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37767       1.0000         .10000E-03   10000.    
     3 'norm      '    .13751       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27998E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.843       1.0000         .10000E-03   10000.    
    12 'norm      '    .40725       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3146       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10826E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.647       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2959       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83778       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=   6802.617     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     2790 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6034        .15784E-07** at limit **
   2  Prefactor     .20445        39.342        .67179E-05   -.20334E-03
   3  norm          .13806        .39654       -.11880E-06   -.93246E-03
   4  norm          1.6111        1.2707       -.14692E-06   -.19813E-03
   5  Prefactor     .10000E-03    9.4041       -.19284E-06** at limit **
   6  Prefactor     .10000E-03    44.911        .14766E-05** at limit **
   7  Prefactor     6.0365        5.0963       -.56976E-06    .13769E-03
   8  Prefactor     .10000E-03    12.657       -.66948E-05** at limit **
   9  Prefactor     .10000E-03    20.144        .15352E-06** at limit **
  10  Prefactor     .10000E-03    7.1350       -.74296E-08** at limit **
  11  Prefactor     36.697        81.821        .89983E-05    .11170E-03
  12  norm          .40849        .72184       -.21236E-06   -.93652E-03
  13  Prefactor     .10000E-03    10.125       -.12337E-07** at limit **
  14  Prefactor     .10000E-03    6.8086        .58130E-07** at limit **
  15  norm          1.3103        4.4697       -.88099E-07    .18025E-03
  16  Prefactor     .10000E-03    60.330        .23691E-06** at limit **
  17  Prefactor     .10000E-03    1.1859        .21208E-06** at limit **
  18  Prefactor     .10000E-03    4.0113        .37235E-06** at limit **
  19  Prefactor     .10000E-03    1.8116        .15630E-08** at limit **
  20  norm          .10000E-03    120.82       -.21830E-08** at limit **
  21  Prefactor     .10000E-03    21.729        .13908E-06** at limit **
  22  Prefactor     57.669        48.119        .91639E-06    .34670E-04
  23  Normalizat    1.2954        .18789       -.89979E-06   -.24970E-03
  24  Prefactor     .83813        .11221       -.25768E-06   -.45562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.204449
  norm       = 0.138059
  norm       = 1.61108
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.03649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.6968
  norm       = 0.408494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.31032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.6689
  Normalizat = 1.29544
  Prefactor  = 0.838133
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.617     FROM HESSE     STATUS=OK           399 CALLS     3189 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6096        .17283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20445        34.761        .12443       -1.5618    
   3  norm          .13806        .39964        .78545E-03   -1.5634    
   4  norm          1.6111        1.2515        .78698E-04   -1.5454    
   5  Prefactor     .10000E-03    9.4807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0365        5.2374        .81752E-03   -1.5217    
   8  Prefactor     .10000E-03    12.906        .34305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.697        84.434        .66027E-04   -1.4496    
  12  norm          .40849        .69886        .79994E-04   -1.5580    
  13  Prefactor     .10000E-03    10.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3103        4.4856        .30609E-03   -1.5479    
  16  Prefactor     .10000E-03    60.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3819        .17411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0412        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.8248        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    121.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     57.669        48.210        .52838E-04   -1.4188    
  23  Normalizat    1.2954        .21597        .26535E-03   -.83703    
  24  Prefactor     .83813        .13101        .19543E-03   -.98338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29158e-10
Minuit parameter uncertainties:
  1  3.85228e-06
  2  5.3336
  3  0.399653
  4  1.25155
  5  6.14584e-06
  6  0.00047569
  7  5.23777
  8  0.000100623
  9  0.000198086
  10  4.65058e-06
  11  84.711
  12  0.698871
  13  3.57938e-06
  14  8.36384e-06
  15  4.48677
  16  4.85799e-05
  17  1.25039e-05
  18  3.55544e-05
  19  1.33222e-06
  20  2.34389e-05
  21  2.38455e-05
  22  48.2423
  23  0.216121
  24  0.131057
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.651e-06  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:  8.381e-01  1.311e-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.295e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/727374/likelihoodResults_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6802.61730471
delta logL = -0.000639761093225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6802.61666465
delta logL = 2.93495759252e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9733       1.0000          .0000       10.000    
     3 'Normalizat'    1.2954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83813       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6802.617     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10319E-03    3.2868        .18142E-01** at limit **
   2  Index         1.8882        5.9407        .50000        .30491E-04
   3  Normalizat    1.2954        .30863E-02    .26535E-03   -.22726E-03
   4  Prefactor     .83814        .18836E-02    .19543E-03    .10605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010319
  Index      = 1.88818
  Normalizat = 1.29544
  Prefactor  = 0.838136
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.617     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10319E-03    51.432        .23287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8882        7.4414        .50000       -.67176    
   3  Normalizat    1.2954        .12289E-01    .53070E-04   -.83703    
   4  Prefactor     .83814        .75000E-02    .78171E-05   -.98338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23091e-08
Minuit parameter uncertainties:
  1  0.0256418
  2  207.804
  3  0.0122889
  4  0.00750001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727374': 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): 102
logL (Free Index) = 6802.61666411
delta logL = 8.3356826508e-07

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.032e-04  2.564e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.888e+00  2.078e+02  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:  8.381e-01  7.500e-03  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.295e+00  1.229e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 24.506 22.796

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/727374/cmap_HighResolution_256435201_256694401_4FGL_J0138.0+2247_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-03', job_status='DONE', photon_flux_upper_limit='3.23e-08', time_completed='2021-08-14 10:02:02.165045', job_id='727374', GAL2='0.84', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1628960522.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='66' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 10:02:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 727374: <4FGL_J0138.0+2247_daily_bin66> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin66> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 09:45:26 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 09:46:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 09:46:12 2021
Terminated at Sat Aug 14 10:02:03 2021
Results reported at Sat Aug 14 10:02:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin66 24.5063 22.7962 256435201 256694401 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            997 sec.

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

