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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1427
RA = 24.5063, Dec = 22.7962
tmin = 609206401, tmax = 609465601
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='750174', job_status='RUN', time_executed='2021-08-14 11:10:15.396047', time_epoch_executed='1628964615.4' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/750174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/750174/ft1_4FGL_J0138.0+2247_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/750174/ft2_4FGL_J0138.0+2247_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/750174/ft1_4FGL_J0138.0+2247_daily_bin1427.fits outfile=/scratch/kocevski/750174/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1427.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=609206401.0 tmax=609465601.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 5.31
user 2.81
sys 1.13

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/750174/ft2_4FGL_J0138.0+2247_daily_bin1427.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/750174/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1427.fits evtable="EVENTS" outfile="/scratch/kocevski/750174/ft1_filtered_4FGL_J0138.0+2247_daily_bin1427.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 4.59
user 0.33
sys 1.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/750174/ft1_filtered_4FGL_J0138.0+2247_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/750174/ft2_4FGL_J0138.0+2247_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/750174/ltcube_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.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/750174/ft2_4FGL_J0138.0+2247_daily_bin1427.fits
.....................!
real 15.37
user 12.29
sys 1.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/750174/ft1_filtered_4FGL_J0138.0+2247_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/750174/ft2_4FGL_J0138.0+2247_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/750174/ltcube_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.fits outfile=/scratch/kocevski/750174/expmap_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.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/750174/ltcube_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.fits
.....................!
real 196.80
user 184.74
sys 6.38

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/750174/ft1_filtered_4FGL_J0138.0+2247_daily_bin1427.fits scfile=/scratch/kocevski/750174/ft2_4FGL_J0138.0+2247_daily_bin1427.fits outfile=/scratch/kocevski/750174/cmap_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.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 5.70
user 0.38
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/750174/ft1_filtered_4FGL_J0138.0+2247_daily_bin1427.fits scfile=/scratch/kocevski/750174/ft2_4FGL_J0138.0+2247_daily_bin1427.fits outfile=/scratch/kocevski/750174/cmap_HighResolution_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.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 6.03
user 0.39
sys 1.07

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27171E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    42.793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11315E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17925E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'norm      '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26435       1.0000         .10000E-03   10000.    
    15 'norm      '    .10800E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3799       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23981E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14582E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11955E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .12996E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50475E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    319.96       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .25252       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=   187.7420     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     3188 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.092        35.507        .78092E-06   -.27275E-05
   2  Prefactor     .10000E-03    61.563       -.14570E-05** at limit **
   3  norm          .10000E-03    2.9897        .93625E-08** at limit **
   4  norm          .10000E-03    3.6707       -.14618E-07** at limit **
   5  Prefactor     .10000E-03    69.982        .62276E-05** at limit **
   6  Prefactor     .10000E-03    158.32        .13583E-04** at limit **
   7  Prefactor     42.798        42.552       -.12037E-05   -.59484E-05
   8  Prefactor     .10000E-03    122.11        .67881E-04** at limit **
   9  Prefactor     .10000E-03    254.57       -.20734E-03** at limit **
  10  Prefactor    10000.0        9629.2        .44785E-02** at limit **
  11  Prefactor    10000.0        9131.7        .16627E-02** at limit **
  12  norm          10000.        543.09       -.49385E-03** at limit **
  13  Prefactor     10000.        8175.5        .30827E-02** at limit **
  14  Prefactor     .10000E-03    8362.9       -.77979E-02** at limit **
  15  norm          .10000E-03    289.18       -.48586E-04** at limit **
  16  Prefactor     .10003E-03    7581.9       -.22667E-01** at limit **
  17  Prefactor     .10000E-03    6659.8       -.17357E-02** at limit **
  18  Prefactor     .10000E-03    603.67        .48840E-03** at limit **
  19  Prefactor     .10000E-03    96.257       -.36232E-04** at limit **
  20  norm          .10000E-03    883.46        .26920E-03** at limit **
  21  Prefactor     .10000E-03    346.49       -.41658E-04** at limit **
  22  Prefactor     319.92        511.49       -.23045E-04    .71523E-05
  23  Normalizat    .10000E-01    .22849        .77111E-07** at limit **
  24  Prefactor     .25248        .22679        .20211E-05   -.29631E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0915
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 319.917
  Normalizat = 0.01
  Prefactor  = 0.25248
 **********
 **   18 **HESSE 
 **********

 FCN=   187.7420     FROM HESSE     STATUS=OK           379 CALLS     3567 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.092        35.493        .78432E-04   -1.4686    
   2  Prefactor     .10000E-03    61.562        .10524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.0117        .23167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.6758        .25671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.982        .11222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    158.32        .16903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     42.798        42.555        .61282E-04   -1.4399    
   8  Prefactor     .10000E-03    122.19        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    254.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        9629.2        .18677E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        9131.8        .18192E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10000.        543.09        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10000.        8175.4        .18428E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8362.8        .20535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    289.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    7582.8        .18529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6659.8        .18285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    603.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    96.256        .13167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    883.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    346.50        .21153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     319.92        511.34        .11364E-03   -1.2111    
  23  Normalizat    .10000E-01    .22924        .20201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .25248        .22503        .18847E-03   -1.2517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29178e-12
Minuit parameter uncertainties:
  1  35.5221
  2  1.54623e-06
  3  7.76085e-07
  4  1.4125e-06
  5  8.04862e-07
  6  1.38421e-05
  7  42.585
  8  2.98277e-05
  9  1.52644e-05
  10  0.00052998
  11  0.0403875
  12  3.28902e-05
  13  0.000111371
  14  0.00184115
  15  1.66584e-05
  16  0.0857753
  17  0.000280988
  18  3.50102e-05
  19  1.62574e-05
  20  0.000247473
  21  6.60222e-05
  22  518.824
  23  4.85102e-07
  24  0.225809
Done.

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

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e+04  5.300e-04  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:  2.525e-01  2.258e-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.851e-07  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 2.84192594791e-07

TS (Fixed Index): 0.67
Ra Dec: 24.506 22.796
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.50e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/750174/likelihoodResults_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.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) = 185.266640397
delta logL = 2.47531083137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 185.266632475
delta logL = 2.47531875387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    3.3991       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=   185.2666     FROM MIGRAD    STATUS=CONVERGED     13 CALLS       64 TOTAL
                     EDM=   .69E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       3.3991        .23228        .14722E-01    .53667E-05
                               ERR DEF=  .500    
Final values: 
  Index      = 3.3991
 **********
 **   18 **HESSE 
 **********

 FCN=   185.2666     FROM HESSE     STATUS=OK             7 CALLS       71 TOTAL
                     EDM=   .46E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       3.3991        .23305        .65296E-04   -.32592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59035e-15
Minuit parameter uncertainties:
  1  0.233139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/750174': 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) = 185.266632469
delta logL = 2.4753187591

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14) fixed
258        Index:  3.399e+00  2.331e-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:  2.525e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 5.62
Ra Dec: 24.506 22.796
Photon Index (Free Index): 3.40 +/- 0.23
Photon Flux (Free Index): 3.32e-04 +/- 2.24e-04
Energy Flux (Free Index): 5.68e-02 +/- 3.45e-02

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/750174/cmap_HighResolution_609206401_609465601_4FGL_J0138.0+2247_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.50e+04', comment='SUCCESS', energy_flux2='5.68e-02', dlogl='2.48e+00', photon_flux2='3.32e-04', job_status='DONE', time_completed='2021-08-14 11:16:37.953862', photon_index_error2='0.23', photon_index2='3.40', ts='0.67', fit_tolerance='1e-08', GAL='0.25', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='3.45e-02', EG='0.01', time_epoch_completed='1628964997.95', return_code='0', job_id='750174', GAL2='0.25', EG2='0.01', return_code2='0', photon_flux_error2='2.24e-04', ts2='5.62', photon_index='2.01' WHERE bin_id='1427' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 11:16:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 750174: <4FGL_J0138.0+2247_daily_bin1427> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1427> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Aug 14 11:07:54 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 11:08:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 11:08:23 2021
Terminated at Sat Aug 14 11:16:39 2021
Results reported at Sat Aug 14 11:16:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1427 24.5063 22.7962 609206401 609465601 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 :                                   358.08 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   496 sec.
    Turnaround time :                            525 sec.

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

