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 18 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0138.0+2247_daily_bin1729
RA = 24.5063, Dec = 22.7962
tmin = 687484801, tmax = 687744001
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='369106', job_status='RUN', time_executed='2022-10-18 00:05:49.926902', time_epoch_executed='1666076749.93' WHERE source_name='4FGL J0138.0+2247' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369106

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369106/ft1_4FGL_J0138.0+2247_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369106/ft1_4FGL_J0138.0+2247_daily_bin1729.fits outfile=/scratch/kocevski/369106/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1729.fits ra=24.5063 dec=22.7962 rad=12.0 tmin=687484801.0 tmax=687744001.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 4.03
user 3.38
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.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/369106/ft1_filteredMKT_4FGL_J0138.0+2247_daily_bin1729.fits evtable="EVENTS" outfile="/scratch/kocevski/369106/ft1_filtered_4FGL_J0138.0+2247_daily_bin1729.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.53
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 305

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369106/ft1_filtered_4FGL_J0138.0+2247_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/369106/ltcube_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.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/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits
.....................!
real 16.64
user 16.07
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369106/ft1_filtered_4FGL_J0138.0+2247_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/369106/ltcube_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.fits outfile=/scratch/kocevski/369106/expmap_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.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/369106/ltcube_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.fits
.....................!
real 191.87
user 186.04
sys 5.19

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/369106/ft1_filtered_4FGL_J0138.0+2247_daily_bin1729.fits scfile=/scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits outfile=/scratch/kocevski/369106/cmap_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.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.75
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369106/ft1_filtered_4FGL_J0138.0+2247_daily_bin1729.fits scfile=/scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits outfile=/scratch/kocevski/369106/cmap_HighResolution_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.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.94
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/369106/ft1_filtered_4FGL_J0138.0+2247_daily_bin1729.fits', '/scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits', expMap='/scratch/kocevski/369106/expmap_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.fits', expCube='/scratch/kocevski/369106/ltcube_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/369106/Model_4FGL_J0138.0+2247_daily_bin1729.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  0.000e+00  1.000e+06 ( 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/369106/ft1_filtered_4FGL_J0138.0+2247_daily_bin1729.fits
Spacecraft file(s): /scratch/kocevski/369106/ft2_4FGL_J0138.0+2247_daily_bin1729.fits
Exposure map: /scratch/kocevski/369106/expmap_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.fits
Exposure cube: /scratch/kocevski/369106/ltcube_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/369106/Model_4FGL_J0138.0+2247_daily_bin1729.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) = 3238.1452679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96637E-02   1.0000          .0000       .10000E+07
     2 'norm      '    1.2852       1.0000          .0000       .10000E+07
     3 'norm      '    5.5243       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27807E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .40106E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20099E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    46.196       1.0000          .0000       .10000E+07
     8 'Prefactor '    23.783       1.0000          .0000       .10000E+07
     9 'norm      '    .15987E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.520       1.0000          .0000       .10000E+07
    11 'Prefactor '    .69297E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .22204E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16864E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14159E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .34788E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .49676       1.0000          .0000       .10000E+07
    17 'Prefactor '    .55220       1.0000          .0000       .10000E+07
    18 'Prefactor '    49.746       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.1337       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88990       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=   3238.141     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1578 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.128        .19837E-07** at limit **
   2  norm          1.2839        .95815        .36860E-07   -.19218E-03
   3  norm          5.5215        2.7686       -.90001E-08    .39482E-03
   4  Prefactor     .13878E-08    22.910       -.16400E-07** at limit **
   5  Prefactor      .0000        31.021       -.45697E-06** at limit **
   6  Prefactor      .0000        3.3483        .19813E-06** at limit **
   7  Prefactor     46.409        4.4018       -.74618E-07   -.13416    
   8  Prefactor     19.690        81.924        .46046E-05   -.64735E-01
   9  norm           .0000        .33656       -.65221E-08** at limit **
  10  Prefactor     10.673        3.8756       -.33242E-06    .50440E-01
  11  Prefactor      .0000        14.944       -.49050E-06** at limit **
  12  norm           .0000        1.3675       -.78397E-07** at limit **
  13  Prefactor      .0000        .93177       -.29333E-07** at limit **
  14  Prefactor      .0000        2.4657        .96740E-07** at limit **
  15  Prefactor      .0000        5.8951       -.32949E-06** at limit **
  16  norm          .25796E-06    116.10        .57872E-05** at limit **
  17  Prefactor     .11270E-05    142.03        .11751E-05** at limit **
  18  Prefactor     48.482        27.065        .10405E-05    .29690    
  19  Normalizat    1.1329        .32537        .37049E-05    .43419E-05
  20  Prefactor     .89177        .20084       -.71604E-05    .71005E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.28389
  norm       = 5.52146
  Prefactor  = 1.38778e-09
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 46.4092
  Prefactor  = 19.6901
  norm       = 0
  Prefactor  = 10.6727
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.5796e-07
  Prefactor  = 1.12704e-06
  Prefactor  = 48.4822
  Normalizat = 1.1329
  Prefactor  = 0.89177
 **********
 **   18 **HESSE 
 **********

 FCN=   3238.141     FROM HESSE     STATUS=OK           323 CALLS     1901 TOTAL
                     EDM=   .21E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2839        .96385        .97767E-03   -1.5685    
   3  norm          5.5215        2.7641        .42723E-03   -1.5661    
   4  Prefactor     .13878E-08    22.919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        30.863        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.3440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     46.409        22.414        .14714E-03   -1.5572    
   8  Prefactor     19.690        86.450        .20510E-03   -1.5619    
   9  norm           .0000        .33375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.673        20.743        .30866E-03   -1.5643    
  11  Prefactor      .0000        14.974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        1.3689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .93266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        2.4737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        5.9016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .25796E-06    117.70        .79036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11270E-05    142.24        .73624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.482        103.31        .14179E-03   -1.5569    
  19  Normalizat    1.1329        .28667        .65530E-01   -.88702    
  20  Prefactor     .89177        .17202        .44876E-01   -.96429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05986e-05
Minuit parameter uncertainties:
  1  6.85738e-06
  2  0.963847
  3  2.76408
  4  0.000353777
  5  1.52421e-05
  6  3.57558e-06
  7  22.4142
  8  82.5177
  9  5.07723e-08
  10  20.7428
  11  1.51699e-05
  12  1.28553e-06
  13  2.62147e-07
  14  1.92247e-06
  15  6.97971e-06
  16  0.0110206
  17  0.0253234
  18  103.317
  19  0.287064
  20  0.172127
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
534    Prefactor:  8.918e-01  1.721e-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.133e+00  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/369106/likelihoodResults_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.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) = 3238.04789104
delta logL = 0.0930056625029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3238.03623309
delta logL = 0.104663613943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.978       1.0000          .0000       .10000E+07
     2 'Index     '    2.6213       1.0000          .0000       10.000    
     3 'Normalizat'    1.1147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89284       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=   3238.036     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      297 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.980        243.76        .11568E-04    .99604E-03
   2  Index         2.6202        3.0139        .65143E-02    .78109E-04
   3  Normalizat    1.1127        .33690        .29195E-03    .77628E-04
   4  Prefactor     .89405        .20808        .19737E-03    .16842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.98
  Index      = 2.62022
  Normalizat = 1.11266
  Prefactor  = 0.894045
 **********
 **   18 **HESSE 
 **********

 FCN=   3238.036     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.980        48.523        .46272E-06   -1.5639    
   2  Index         2.6202        1.4513        .26057E-03   -.49605    
   3  Normalizat    1.1127        .32488        .11678E-04   -.89346    
   4  Prefactor     .89405        .19900        .39475E-04   -.96349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69765e-10
Minuit parameter uncertainties:
  1  48.2211
  2  1.47903
  3  0.325469
  4  0.199161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369106': 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) = 3238.03620889
delta logL = 0.104687817013

Extracting fit parameters...

4FGL J0138.0+2247
   Spectrum: PowerLaw
257    Prefactor:  1.198e+01  4.822e+01  0.000e+00  1.000e+06 ( 1.000e-14)
258        Index:  2.620e+00  1.479e+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:  8.940e-01  1.992e-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.113e+00  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/369106/cmap_HighResolution_687484801_687744001_4FGL_J0138.0+2247_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.66e-07', time_completed='2022-10-18 00:14:13.208833', job_id='369106', GAL2='0.89', fit_tolerance='1e-08', EG2='1.11', EG='1.13', time_epoch_completed='1666077253.21', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.05e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.01' WHERE bin_id='1729' AND source_name='4FGL J0138.0+2247' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:14:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 369106: <4FGL_J0138.0+2247_daily_bin1729> in cluster <slac> Done

Job <4FGL_J0138.0+2247_daily_bin1729> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Oct 18 00:05:12 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:05:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:05:12 2022
Terminated at Tue Oct 18 00:14:14 2022
Results reported at Tue Oct 18 00:14:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0138.0+2247_daily_bin1729 24.5063 22.7962 687484801 687744001 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 :                                   451.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   541 sec.
    Turnaround time :                            542 sec.

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

