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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin32
RA = 24.5063, Dec = 22.7962
tmin = 247622401, tmax = 247881601
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='726236', job_status='RUN', time_executed='2021-08-14 09:45:18.448790', time_epoch_executed='1628959518.45' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726236

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726236/ft1_4FGL_J0138.0+2247_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726236/ft2_4FGL_J0138.0+2247_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726236/ft1_4FGL_J0138.0+2247_daily_bin32.fits outfile=/scratch/kocevski/726236/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin32.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=247622401.0 tmax=247881601.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.84
user 0.98
sys 1.07

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726236/ft2_4FGL_J0138.0+2247_daily_bin32.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/726236/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/726236/ft1_filtered_4FGL_J0138.0+2247_daily_bin32.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.22
user 0.28
sys 1.06

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726236/ft1_filtered_4FGL_J0138.0+2247_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/726236/ft2_4FGL_J0138.0+2247_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/726236/ltcube_247622401_247881601_4FGL_J0138.0+2247_daily_bin32.fits outfile=/scratch/kocevski/726236/expmap_247622401_247881601_4FGL_J0138.0+2247_daily_bin32.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/726236/ltcube_247622401_247881601_4FGL_J0138.0+2247_daily_bin32.fits
.....................!
real 152.98
user 146.17
sys 5.50

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/726236/ft1_filtered_4FGL_J0138.0+2247_daily_bin32.fits scfile=/scratch/kocevski/726236/ft2_4FGL_J0138.0+2247_daily_bin32.fits outfile=/scratch/kocevski/726236/cmap_247622401_247881601_4FGL_J0138.0+2247_daily_bin32.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.92
user 0.30
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726236/ft1_filtered_4FGL_J0138.0+2247_daily_bin32.fits scfile=/scratch/kocevski/726236/ft2_4FGL_J0138.0+2247_daily_bin32.fits outfile=/scratch/kocevski/726236/cmap_HighResolution_247622401_247881601_4FGL_J0138.0+2247_daily_bin32.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 2.07
user 0.32
sys 1.03

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.804       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8258       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.641       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1512       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8993       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    89.305       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10804E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5090       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.886       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1053       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84980       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=   8249.230     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2718 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.799        18.293        .90643E-07   -.53815E-05
   2  Prefactor     .10000E-03    79.152       -.38714E-06** at limit **
   3  norm          1.8256        .68490       -.20289E-07   -.26402E-04
   4  norm          1.3796        1.1105        .26244E-07   -.15999E-04
   5  Prefactor     10.597        9.6890        .95783E-07   -.61235E-05
   6  Prefactor     43.629        39.204       -.60027E-07   -.65766E-05
   7  Prefactor     .10000E-03    3.1164       -.37789E-06** at limit **
   8  Prefactor     .10000E-03    2.0504        .48796E-07** at limit **
   9  Prefactor     2.1509        7.6636        .12745E-05   -.36011E-05
  10  Prefactor     .10000E-03    14.168        .27455E-07** at limit **
  11  Prefactor     .10000E-03    45.348        .27970E-06** at limit **
  12  norm          1.8070        .65662        .63667E-09   -.89258E-04
  13  Prefactor     7.8993        8.0669        .17523E-05   -.41430E-04
  14  Prefactor     .10000E-03    4.6986        .19881E-07** at limit **
  15  norm          .10000E-03    1.3046        .63149E-07** at limit **
  16  Prefactor     89.173        152.70       -.14150E-05   -.29983E-04
  17  Prefactor     .10000E-03    1.0828        .17047E-06** at limit **
  18  Prefactor     .10000E-03    2.3855        .66450E-07** at limit **
  19  Prefactor     4.5097        3.7747       -.37245E-07   -.60879E-05
  20  norm          .10000E-03    36.980       -.13151E-06** at limit **
  21  Prefactor     33.880        37.733       -.13428E-06   -.20102E-04
  22  Prefactor     .10000E-03    19.170        .35678E-07** at limit **
  23  Normalizat    1.1056        .17991       -.14718E-05   -.98351E-05
  24  Prefactor     .84964        .10596        .48101E-06   -.18029E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.7992
  Prefactor  = 0.0001
  norm       = 1.82557
  norm       = 1.3796
  Prefactor  = 10.5971
  Prefactor  = 43.6289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80704
  Prefactor  = 7.89934
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 89.1733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.50966
  norm       = 0.0001
  Prefactor  = 33.88
  Prefactor  = 0.0001
  Normalizat = 1.10558
  Prefactor  = 0.849636
 **********
 **   18 **HESSE 
 **********

 FCN=   8249.230     FROM HESSE     STATUS=OK           399 CALLS     3117 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.799        18.321        .62753E-04   -1.4430    
   2  Prefactor     .10000E-03    80.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8256        .68134        .44023E-04   -1.5438    
   4  norm          1.3796        1.1102        .37060E-04   -1.5473    
   5  Prefactor     10.597        9.6919        .12307E-03   -1.5057    
   6  Prefactor     43.629        39.063        .60686E-04   -1.4386    
   7  Prefactor     .10000E-03    3.1747        .31202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0632        .12698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1509        7.6627        .28092E-03   -1.5415    
  10  Prefactor     .10000E-03    14.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8070        .65570        .42694E-04   -1.5439    
  13  Prefactor     7.8993        8.0969        .71332E-03   -1.5146    
  14  Prefactor     .10000E-03    4.6994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3278        .10131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     89.173        153.12        .21259E-03   -1.3817    
  17  Prefactor     .10000E-03    4.9905        .17930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4014        .13700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5097        3.7738        .15616E-03   -1.5283    
  20  norm          .10000E-03    37.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.880        37.733        .68839E-04   -1.4543    
  22  Prefactor     .10000E-03    19.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1056        .20249        .28817E-03   -.89573    
  24  Prefactor     .84964        .12119        .19632E-03   -.97924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34717e-10
Minuit parameter uncertainties:
  1  18.3231
  2  1.75274e-05
  3  0.681342
  4  1.11023
  5  9.69334
  6  39.0861
  7  2.4478e-06
  8  1.8203e-06
  9  7.6662
  10  8.03696e-06
  11  0.000140881
  12  0.655704
  13  8.09801
  14  6.43969e-07
  15  8.34821e-07
  16  153.803
  17  7.81469e-05
  18  1.63946e-06
  19  3.77404
  20  9.04475e-05
  21  37.7591
  22  8.39864e-06
  23  0.202629
  24  0.121226
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  8.037e-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.496e-01  1.212e-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.106e+00  2.026e-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: 4.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/726236/likelihoodResults_247622401_247881601_4FGL_J0138.0+2247_daily_bin32.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) = 8249.22996392
delta logL = -0.0003356637244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8249.22962804
delta logL = 2.17436536332e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9651       1.0000          .0000       10.000    
     3 'Normalizat'    1.1056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84964       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=   8249.230     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    62.094        .18142E-02** at limit **
   2  Index         1.9119        6.3799        .50000        .17714E-04
   3  Normalizat    1.1056        .88302E-02    .28817E-03   -.15859E-04
   4  Prefactor     .84964        .53774E-02    .19632E-03   -.57908E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100934
  Index      = 1.91191
  Normalizat = 1.10557
  Prefactor  = 0.849637
 **********
 **   18 **HESSE 
 **********

 FCN=   8249.230     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10093E-03    278.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9119        5.4390        .50000       -.66571    
   3  Normalizat    1.1056        .19041E-01    .11527E-04   -.89573    
   4  Prefactor     .84964        .11596E-01    .78529E-05   -.97924    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.91576e-09
Minuit parameter uncertainties:
  1  0.03243
  2  230.307
  3  0.0190412
  4  0.0115956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726236': 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) = 8249.2296278
delta logL = 4.56522684544e-07

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.009e-04  3.243e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.912e+00  2.303e+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.496e-01  1.160e-02  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.106e+00  1.904e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/726236/cmap_HighResolution_247622401_247881601_4FGL_J0138.0+2247_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-08-14 09:56:25.510678', job_id='726236', GAL2='0.85', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1628960185.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='32' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 09:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 726236: <4FGL_J0138.0+2247_daily_bin32> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin32> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Aug 14 09:40:40 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 09:42: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:42:12 2021
Terminated at Sat Aug 14 09:56:27 2021
Results reported at Sat Aug 14 09:56:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin32 24.5063 22.7962 247622401 247881601 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 :                                   669.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            947 sec.

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

