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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1620
RA = 24.5063, Dec = 22.7962
tmin = 659232001, tmax = 659491201
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='141023', job_status='RUN', time_executed='2021-12-07 12:16:15.418216', time_epoch_executed='1638908175.42' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/141023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/141023/ft1_4FGL_J0138.0+2247_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/141023/ft2_4FGL_J0138.0+2247_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/141023/ft1_4FGL_J0138.0+2247_daily_bin1620.fits outfile=/scratch/kocevski/141023/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1620.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.88
user 2.65
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/141023/ft2_4FGL_J0138.0+2247_daily_bin1620.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/141023/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1620.fits evtable="EVENTS" outfile="/scratch/kocevski/141023/ft1_filtered_4FGL_J0138.0+2247_daily_bin1620.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 0.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/141023/ft1_filtered_4FGL_J0138.0+2247_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/141023/ft2_4FGL_J0138.0+2247_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/141023/ltcube_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.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/141023/ft2_4FGL_J0138.0+2247_daily_bin1620.fits
.....................!
real 18.36
user 17.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/141023/ft1_filtered_4FGL_J0138.0+2247_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/141023/ft2_4FGL_J0138.0+2247_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/141023/ltcube_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.fits outfile=/scratch/kocevski/141023/expmap_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.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/141023/ltcube_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.fits
.....................!
real 194.23
user 188.72
sys 5.04

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/141023/ft1_filtered_4FGL_J0138.0+2247_daily_bin1620.fits scfile=/scratch/kocevski/141023/ft2_4FGL_J0138.0+2247_daily_bin1620.fits outfile=/scratch/kocevski/141023/cmap_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.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 0.62
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/141023/ft1_filtered_4FGL_J0138.0+2247_daily_bin1620.fits scfile=/scratch/kocevski/141023/ft2_4FGL_J0138.0+2247_daily_bin1620.fits outfile=/scratch/kocevski/141023/cmap_HighResolution_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.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 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4270       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1664       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.443       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3342       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.589       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25314E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11090E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .52315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23357E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56321E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    88.879       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11586E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .24053E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1362.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16577E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2800       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78535       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=   1569.285     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3113 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5062       -.48835E-08** at limit **
   2  Prefactor     .10000E-03    31.724        .81948E-05** at limit **
   3  norm          1.4270        1.1228       -.75610E-08    .11080E-03
   4  norm          5.1661        3.6267       -.34763E-07   -.52185E-04
   5  Prefactor     31.448        39.549       -.23744E-05   -.52182E-05
   6  Prefactor     .10000E-03    61.324       -.20846E-04** at limit **
   7  Prefactor     7.3340        7.8197        .37928E-06    .94460E-04
   8  Prefactor     .10000E-03    12.063        .65177E-08** at limit **
   9  Prefactor     23.588        40.223        .44597E-06   -.49323E-05
  10  Prefactor     .10000E-03    221.22       -.36723E-04** at limit **
  11  Prefactor     .10000E-03    198.06       -.11916E-04** at limit **
  12  norm          .52347        1.4596       -.18865E-06   -.51637E-03
  13  Prefactor     .10000E-03    71.556        .43351E-04** at limit **
  14  Prefactor     .10000E-03    83.666       -.24659E-04** at limit **
  15  norm          .10000E-03    34.298        .13334E-04** at limit **
  16  Prefactor     .10000E-03    807.34        .30317E-03** at limit **
  17  Prefactor     .10000E-03    11.423       -.48280E-08** at limit **
  18  Prefactor     88.873        67.952        .10047E-06   -.69649E-04
  19  Prefactor     .10000E-03    32.935       -.20426E-04** at limit **
  20  norm          .10000E-03    1652.0       -.86824E-03** at limit **
  21  Prefactor     1362.0        1520.0       -.25827E-05   -.54332E-05
  22  Prefactor     .10000E-03    583.42        .29304E-03** at limit **
  23  Normalizat    1.2794        .46832       -.13287E-06   -.30343E-04
  24  Prefactor     .78574        .27500        .46245E-06   -.25407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42702
  norm       = 5.16615
  Prefactor  = 31.4479
  Prefactor  = 0.0001
  Prefactor  = 7.33397
  Prefactor  = 0.0001
  Prefactor  = 23.5879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.523467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.8733
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1362
  Prefactor  = 0.0001
  Normalizat = 1.2794
  Prefactor  = 0.785741
 **********
 **   18 **HESSE 
 **********

 FCN=   1569.285     FROM HESSE     STATUS=OK           389 CALLS     3502 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5077        .98700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4270        1.1234        .17816E-03   -1.5469    
   4  norm          5.1661        3.6301        .59143E-04   -1.5253    
   5  Prefactor     31.448        39.625        .71455E-04   -1.4586    
   6  Prefactor     .10000E-03    61.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3340        7.8162        .11052E-03   -1.5166    
   8  Prefactor     .10000E-03    12.100        .13433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.588        40.584        .82473E-04   -1.4736    
  10  Prefactor     .10000E-03    221.80        .21460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    198.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .52347        1.2970        .76727E-03   -1.5563    
  13  Prefactor     .10000E-03    71.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    83.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    34.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    807.39        .19034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.439        .13079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     88.873        67.832        .42619E-04   -1.3820    
  19  Prefactor     .10000E-03    32.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1652.0        .18285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1362.0        1520.8        .58309E-04   -.81482    
  22  Prefactor     .10000E-03    583.42        .20390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2794        .54987        .30631E-03   -.84183    
  24  Prefactor     .78574        .32084        .23164E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12738e-10
Minuit parameter uncertainties:
  1  4.26208e-07
  2  7.70729e-06
  3  1.12341
  4  3.63025
  5  39.6584
  6  1.26716e-05
  7  7.81733
  8  1.23701e-06
  9  40.6315
  10  1.61193e-05
  11  1.95528e-05
  12  1.29704
  13  0.000116542
  14  1.32805e-05
  15  4.20177e-05
  16  0.000107047
  17  1.77741e-06
  18  67.8916
  19  1.94077e-06
  20  0.000179896
  21  1575.62
  22  1.83865e-05
  23  0.552399
  24  0.321608
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  1.612e-05  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:  7.857e-01  3.216e-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.279e+00  5.524e-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: 2.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/141023/likelihoodResults_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.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) = 1569.28527117
delta logL = -2.13364810406e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1569.28524986
delta logL = -2.46898252954e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9789       1.0000          .0000       10.000    
     3 'Normalizat'    1.2794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78574       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=   1569.285     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      250 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    6835.9        .90712E-02** at limit **
   2  Index         2.0661        8.9431        .50000       -.45231E-05
   3  Normalizat    1.2794        .47068E-01    .69234E-01   -.29855E-03
   4  Prefactor     .78574        .28825E-01    .43531E-01   -.42489E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100039
  Index      = 2.06611
  Normalizat = 1.2794
  Prefactor  = 0.785738
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    9306.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0661        6.0319        .50000       -.62707    
   3  Normalizat    1.2794        .89486E-01    .30631E-03   -.84183    
   4  Prefactor     .78574        .54840E-01    .23164E-03   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08456e-09
Minuit parameter uncertainties:
  1  0.0469707
  2  29.1382
  3  0.0894968
  4  0.0548434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/141023': 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) = 1569.28524978
delta logL = 6.02303771302e-08

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  4.697e-02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  2.066e+00  2.914e+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:  7.857e-01  5.484e-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.279e+00  8.950e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/141023/cmap_HighResolution_659232001_659491201_4FGL_J0138.0+2247_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-02', job_status='DONE', photon_flux_upper_limit='2.71e-07', time_completed='2021-12-07 12:23:15.392476', job_id='141023', GAL2='0.79', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1638908595.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='6.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1620' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:23:15 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 141023: <4FGL_J0138.0+2247_daily_bin1620> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1620> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:10:30 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:12:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:12:57 2021
Terminated at Tue Dec  7 12:23:15 2021
Results reported at Tue Dec  7 12:23:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1620 24.5063 22.7962 659232001 659491201 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 :                                   420.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            765 sec.

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

