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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1622
RA = 24.5063, Dec = 22.7962
tmin = 659750401, tmax = 660009601
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='141026', job_status='RUN', time_executed='2021-12-07 12:15:26.938136', time_epoch_executed='1638908126.94' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/141026

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/141026/ft1_4FGL_J0138.0+2247_daily_bin1622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/141026/ft2_4FGL_J0138.0+2247_daily_bin1622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/141026/ft1_4FGL_J0138.0+2247_daily_bin1622.fits outfile=/scratch/kocevski/141026/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1622.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=659750401.0 tmax=660009601.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.37
user 2.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/141026/ft1_filtered_4FGL_J0138.0+2247_daily_bin1622.fits" evtable="EVENTS" scfile=/scratch/kocevski/141026/ft2_4FGL_J0138.0+2247_daily_bin1622.fits sctable="SC_DATA" outfile=/scratch/kocevski/141026/ltcube_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.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/141026/ft2_4FGL_J0138.0+2247_daily_bin1622.fits
.....................!
real 14.36
user 14.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/141026/ft1_filtered_4FGL_J0138.0+2247_daily_bin1622.fits evtable="EVENTS" scfile=/scratch/kocevski/141026/ft2_4FGL_J0138.0+2247_daily_bin1622.fits sctable="SC_DATA" expcube=/scratch/kocevski/141026/ltcube_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.fits outfile=/scratch/kocevski/141026/expmap_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.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/141026/ltcube_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.fits
.....................!
real 191.62
user 187.03
sys 4.25

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/141026/ft1_filtered_4FGL_J0138.0+2247_daily_bin1622.fits scfile=/scratch/kocevski/141026/ft2_4FGL_J0138.0+2247_daily_bin1622.fits outfile=/scratch/kocevski/141026/cmap_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/141026/ft1_filtered_4FGL_J0138.0+2247_daily_bin1622.fits scfile=/scratch/kocevski/141026/ft2_4FGL_J0138.0+2247_daily_bin1622.fits outfile=/scratch/kocevski/141026/cmap_HighResolution_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.887       1.0000         .10000E-03   10000.    
     3 'norm      '    .86172       1.0000         .10000E-03   10000.    
     4 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.945       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.616       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7004       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.088       1.0000         .10000E-03   10000.    
    11 'Prefactor '    440.36       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1728       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.927       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77402       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98373       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=   1782.542     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2716 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1655        .19079E-06** at limit **
   2  Prefactor     27.972        89.949       -.22311E-05    .38310E-04
   3  norm          .85979        1.6941        .17325E-05    .10233E-02
   4  norm          .10000E-03    2.5546        .32141E-06** at limit **
   5  Prefactor     36.945        23.713        .21521E-06   -.79272E-05
   6  Prefactor     .10000E-03    71.403        .19708E-05** at limit **
   7  Prefactor     .10000E-03    5.8741        .11492E-05** at limit **
   8  Prefactor     31.617        25.966        .49013E-06   -.15765E-06
   9  Prefactor     3.6772        102.51       -.24068E-04   -.37563E-04
  10  Prefactor     23.850        155.73        .26494E-05   -.27960E-04
  11  Prefactor     439.92        437.54        .12051E-04   -.18723E-04
  12  norm          2.1741        2.4858       -.35948E-06    .15745E-03
  13  Prefactor     16.992        38.651        .15949E-05    .16566E-04
  14  Prefactor     .10000E-03    109.59       -.86551E-07** at limit **
  15  norm          .10000E-03    28.428       -.61008E-07** at limit **
  16  Prefactor     .10000E-03    305.07       -.67775E-06** at limit **
  17  Prefactor     9.1411        8.6096        .14744E-07   -.11699E-04
  18  Prefactor     .10000E-03    83.967       -.41493E-06** at limit **
  19  Prefactor     .10000E-03    10.641        .59696E-07** at limit **
  20  norm          .10000E-03    229.33        .17785E-06** at limit **
  21  Prefactor     .10000E-03    224.14        .28423E-06** at limit **
  22  Prefactor     .10000E-03    169.94        .56830E-06** at limit **
  23  Normalizat    .77401        .44104       -.14123E-04    .66055E-04
  24  Prefactor     .98367        .26488        .70457E-05   -.20836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.9725
  norm       = 0.859786
  norm       = 0.0001
  Prefactor  = 36.9447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6173
  Prefactor  = 3.67716
  Prefactor  = 23.8496
  Prefactor  = 439.916
  norm       = 2.17406
  Prefactor  = 16.9917
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.14115
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.774015
  Prefactor  = 0.983674
 **********
 **   18 **HESSE 
 **********

 FCN=   1782.542     FROM HESSE     STATUS=OK           391 CALLS     3107 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1743        .12485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.972        89.996        .75863E-04   -1.4650    
   3  norm          .85979        1.7040        .57699E-03   -1.5523    
   4  norm          .10000E-03    2.6147        .13150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.945        23.732        .65937E-04   -1.4492    
   6  Prefactor     .10000E-03    71.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8762        .99889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.617        25.930        .71261E-04   -1.4583    
   9  Prefactor     3.6772        106.58        .20994E-03   -1.5324    
  10  Prefactor     23.850        156.49        .40808E-03   -1.4731    
  11  Prefactor     439.92        436.10        .97478E-04   -1.1482    
  12  norm          2.1741        2.4665        .62369E-04   -1.5413    
  13  Prefactor     16.992        38.652        .97348E-04   -1.4883    
  14  Prefactor     .10000E-03    109.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    28.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    304.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.1411        8.6098        .11551E-03   -1.5103    
  18  Prefactor     .10000E-03    84.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.643        .13454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    229.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    224.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    169.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .77401        .47755        .35193E-03   -1.0104    
  24  Prefactor     .98367        .28920        .19866E-03   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35088e-09
Minuit parameter uncertainties:
  1  6.35215e-06
  2  90.4374
  3  1.70412
  4  5.48046e-06
  5  23.7379
  6  0.000158184
  7  9.87059e-07
  8  25.9393
  9  39.6717
  10  122.654
  11  439.458
  12  2.4666
  13  38.7093
  14  9.19679e-05
  15  2.40557e-07
  16  0.00132284
  17  8.61097
  18  0.000253287
  19  8.93987e-07
  20  0.000263428
  21  0.000387046
  22  0.000683732
  23  0.48016
  24  0.289659
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  9.837e-01  2.897e-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:  7.740e-01  4.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/141026/likelihoodResults_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.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) = 1782.28967879
delta logL = 0.252760493299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1782.24607334
delta logL = 0.296365940106

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4287       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2962       1.0000          .0000       10.000    
     3 'Normalizat'    .68528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0049       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=   1782.246     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      293 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4113        487.78        .13293E-03    .26127E-04
   2  Index         3.2973        6.6128        .31518E-02    .29477E-04
   3  Normalizat    .68526        .51512        .37071E-03    .14687E-03
   4  Prefactor     1.0047        .31775        .19617E-03   -.37859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.41134
  Index      = 3.29729
  Normalizat = 0.685261
  Prefactor  = 1.00474
 **********
 **   18 **HESSE 
 **********

 FCN=   1782.246     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4113        36.765        .53173E-05   -1.5202    
   2  Index         3.2973        1.7410        .12607E-03   -.34749    
   3  Normalizat    .68526        .46619        .14828E-04   -1.0448    
   4  Prefactor     1.0047        .28879        .39234E-04   -.92572    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68381e-09
Minuit parameter uncertainties:
  1  30.7345
  2  1.78343
  3  0.468922
  4  0.289232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/141026': 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) = 1782.24607275
delta logL = 0.296366530396

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  6.411e+00  3.073e+01  1.000e-04  1.000e+04 ( 1.000e-14)
258        Index:  3.297e+00  1.783e+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.005e+00  2.892e-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:  6.853e-01  4.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/141026/cmap_HighResolution_659750401_660009601_4FGL_J0138.0+2247_daily_bin1622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', job_status='DONE', photon_flux_upper_limit='2.70e-07', time_completed='2021-12-07 12:22:19.653118', job_id='141026', GAL2='1.00', fit_tolerance='1e-08', EG2='0.69', EG='0.77', time_epoch_completed='1638908539.65', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.96e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1622' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:22:19 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 141026: <4FGL_J0138.0+2247_daily_bin1622> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1622> 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) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:12:59 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:59 2021
Terminated at Tue Dec  7 12:22:20 2021
Results reported at Tue Dec  7 12:22:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1622 24.5063 22.7962 659750401 660009601 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 :                                   412.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   560 sec.
    Turnaround time :                            710 sec.

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

