aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 141 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).
nnumber of points = 7702
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1672
RA = 24.5063, Dec = 22.7962
tmin = 672710401, tmax = 672969601
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='153927', job_status='RUN', time_executed='2022-04-30 00:11:51.555613', time_epoch_executed='1651302711.56' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153927/ft1_4FGL_J0138.0+2247_daily_bin1672.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153927/ft2_4FGL_J0138.0+2247_daily_bin1672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153927/ft1_4FGL_J0138.0+2247_daily_bin1672.fits outfile=/scratch/kocevski/153927/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1672.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=672710401.0 tmax=672969601.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.11
user 2.89
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153927/ft2_4FGL_J0138.0+2247_daily_bin1672.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/153927/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1672.fits evtable="EVENTS" outfile="/scratch/kocevski/153927/ft1_filtered_4FGL_J0138.0+2247_daily_bin1672.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.34
sys 0.17

Number of photons that the gtmktime cut: 154

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153927/ft1_filtered_4FGL_J0138.0+2247_daily_bin1672.fits" evtable="EVENTS" scfile=/scratch/kocevski/153927/ft2_4FGL_J0138.0+2247_daily_bin1672.fits sctable="SC_DATA" outfile=/scratch/kocevski/153927/ltcube_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.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/153927/ft2_4FGL_J0138.0+2247_daily_bin1672.fits
.....................!
real 15.77
user 15.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153927/ft1_filtered_4FGL_J0138.0+2247_daily_bin1672.fits evtable="EVENTS" scfile=/scratch/kocevski/153927/ft2_4FGL_J0138.0+2247_daily_bin1672.fits sctable="SC_DATA" expcube=/scratch/kocevski/153927/ltcube_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.fits outfile=/scratch/kocevski/153927/expmap_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.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/153927/ltcube_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.fits
.....................!
real 191.72
user 186.41
sys 4.96

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/153927/ft1_filtered_4FGL_J0138.0+2247_daily_bin1672.fits scfile=/scratch/kocevski/153927/ft2_4FGL_J0138.0+2247_daily_bin1672.fits outfile=/scratch/kocevski/153927/cmap_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153927/ft1_filtered_4FGL_J0138.0+2247_daily_bin1672.fits scfile=/scratch/kocevski/153927/ft2_4FGL_J0138.0+2247_daily_bin1672.fits outfile=/scratch/kocevski/153927/cmap_HighResolution_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1091       1.0000         .10000E-03   10000.    
     4 'norm      '    .15538E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    125.39       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4584       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25646E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    193.59       1.0000         .10000E-03   10000.    
    12 'norm      '    .89121       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    57.021       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6835       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    282.23       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10430E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1809.914     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2881 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    53.349        .24134E-04** at limit **
   2  Prefactor     .10002E-03    28.394        .12942E-04** at limit **
   3  norm          1.1094        .97489       -.27782E-06   -.34820E-04
   4  norm          .10000E-03    7.3519        .48024E-06** at limit **
   5  Prefactor     56.178        1.0232        .80764E-07   -.18078E-03
   6  Prefactor     125.41        4.8067        .73850E-06   -.54616E-02
   7  Prefactor     .10000E-03    4.3982        .19771E-05** at limit **
   8  Prefactor     9.4419        1.4009       -.73960E-06    .27151E-03
   9  Prefactor     .11798E-03    72.870        .42769E-04** at limit **
  10  Prefactor     25.569        4.1613        .13701E-05   -.20280E-02
  11  Prefactor     193.59        1.2282       -.96239E-07    .12934E-02
  12  norm          .89029        1.5855       -.12418E-06   -.26169E-04
  13  Prefactor     .10000E-03    19.802        .85259E-05** at limit **
  14  Prefactor     .10004E-03    29.973       -.21877E-04** at limit **
  15  norm          57.023        1.0775       -.13240E-06   -.17330E-03
  16  Prefactor     .11881E-03    93.032        .73223E-06** at limit **
  17  Prefactor     8.6828        1.0609        .25280E-06    .12706E-03
  18  Prefactor     .10004E-03    39.429       -.54252E-05** at limit **
  19  Prefactor     .10486E-03    114.41        .50403E-04** at limit **
  20  norm          .14977E-03    142.75       -.26437E-04** at limit **
  21  Prefactor     282.23        1.0103        .16499E-07   -.30117E-03
  22  Prefactor     .10001E-03    121.63       -.15569E-04** at limit **
  23  Normalizat    .10000E-01    9.3844       -.49164E-03** at limit **
  24  Prefactor     1.4301        .15325        .32647E-05   -.36548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010006
  Prefactor  = 0.000100017
  norm       = 1.1094
  norm       = 0.0001
  Prefactor  = 56.1783
  Prefactor  = 125.409
  Prefactor  = 0.0001
  Prefactor  = 9.44194
  Prefactor  = 0.000117978
  Prefactor  = 25.5694
  Prefactor  = 193.591
  norm       = 0.890286
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  norm       = 57.0234
  Prefactor  = 0.000118811
  Prefactor  = 8.68278
  Prefactor  = 0.000100043
  Prefactor  = 0.000104859
  norm       = 0.000149771
  Prefactor  = 282.226
  Prefactor  = 0.000100012
  Normalizat = 0.01
  Prefactor  = 1.43011
 **********
 **   18 **HESSE 
 **********

 FCN=   1809.914     FROM HESSE     STATUS=OK           447 CALLS     3328 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    52.713        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    28.448        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1094        .97746        .85758E-02   -1.5497    
   4  norm          .10000E-03    2.1176        .31518E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     56.178        34.140        .13380E-02   -1.4208    
   6  Prefactor     125.41        95.044        .89871E-03   -1.3464    
   7  Prefactor     .10000E-03    4.3941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4419        13.911        .32577E-02   -1.5093    
   9  Prefactor     .11798E-03    159.51        .99961E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.569        85.914        .19813E-02   -1.4696    
  11  Prefactor     193.59        296.67        .72577E-03   -1.2916    
  12  norm          .89029        1.8715        .12776E-01   -1.5519    
  13  Prefactor     .10000E-03    19.823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    30.196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          57.023        27.007        .13281E-02   -1.4196    
  16  Prefactor     .11881E-03    293.92        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6828        18.159        .34007E-02   -1.5119    
  18  Prefactor     .10004E-03    39.525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10486E-03    187.36        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .14977E-03    441.79        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     282.23        828.21        .60384E-03   -1.2332    
  22  Prefactor     .10001E-03    360.38        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .57675        .32101       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4301        .24610        .30660E-01   -.79516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07063e-07
Minuit parameter uncertainties:
  1  0.00355369
  2  0.00140115
  3  0.977475
  4  1.53543e-06
  5  34.1516
  6  95.1602
  7  5.89008e-06
  8  13.9159
  9  0.107388
  10  86.3343
  11  299.015
  12  1.87166
  13  3.0148e-05
  14  0.00230343
  15  27.0131
  16  0.149455
  17  18.1707
  18  0.0026216
  19  0.0605366
  20  0.298796
  21  867.316
  22  0.00411749
  23  4.408e-06
  24  0.246307Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  2.557e+01  8.633e+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:  1.430e+00  2.463e-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.000e-02  4.408e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.11
Ra Dec: 24.506 22.796
Photon Flux Upper Limit: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154007/likelihoodResults_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.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) = 1809.84110353
delta logL = 0.0733542323949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1809.84100174
delta logL = 0.0734560175126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.656       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4889       1.0000          .0000       10.000    
     3 'Normalizat'    .10011E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4300       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=   1809.841     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      336 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.751        8965.4        .14087E-02    .44335E-05
   2  Index         1.4887        9.2554        .20290        .26566E-05
   3  Normalizat    .15372E-01    .73626        .32094        .15738E-04
   4  Prefactor     1.4268        .21123        .30660E-01   -.41880E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.7508
  Index      = 1.48866
  Normalizat = 0.0153725
  Prefactor  = 1.42677
 **********
 **   18 **HESSE 
 **********

 FCN=   1809.841     FROM HESSE     STATUS=OK            35 CALLS      371 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.751        120.52        .28173E-03   -1.4282    
   2  Index         1.4887        1.1263        .11462E-01   -.77858    
   3  Normalizat    .15372E-01    9.2113        .11380E-01   -1.5244    
   4  Prefactor     1.4268        .63966        .17656E-03   -.79612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48123e-08
Minuit parameter uncertainties:
  1  121.1
  2  1.14603
  3  0.926034
  4  0.643284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154007': 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) = 1809.84092912
delta logL = 0.0735286409922

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  5.075e+01  1.211e+02  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  1.489e+00  1.146e+00  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:  1.427e+00  6.433e-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.537e-02  9.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/154007/cmap_HighResolution_672710401_672969601_4FGL_J0138.0+2247_daily_bin1672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-02', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2022-04-30 00:18:57.036528', job_id='154007', GAL2='1.43', fit_tolerance='1e-08', EG2='0.02', EG='0.01', time_epoch_completed='1651303137.04', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='7.35e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1672' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr 30 00:18:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 153927: <4FGL_J0138.0+2247_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1672> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:46 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:09:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:09:19 2022
Terminated at Sat Apr 30 00:18:57 2022
Results reported at Sat Apr 30 00:18:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1672 24.5063 22.7962 672710401 672969601 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 :                                   428.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             275.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            791 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 154007: <4FGL_J0138.0+2247_daily_bin1672> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1672> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Apr 30 00:05:51 2022
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr 30 00:11:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr 30 00:11:01 2022
Terminated at Sat Apr 30 00:18:57 2022
Results reported at Sat Apr 30 00:18:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1672 24.5063 22.7962 672710401 672969601 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 :                                   433.63 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   476 sec.
    Turnaround time :                            786 sec.

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

