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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1757
RA = 177.154, Dec = 18.6861
tmin = 694742401, tmax = 695001601
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='195564', job_status='RUN', time_executed='2023-01-10 00:55:31.521179', time_epoch_executed='1673340931.52' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195564

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195564/ft1_4FGL_J1148.6+1841_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195564/ft1_4FGL_J1148.6+1841_daily_bin1757.fits outfile=/scratch/kocevski/195564/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1757.fits ra=177.154 dec=18.6861 rad=12.0 tmin=694742401.0 tmax=695001601.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.46
user 2.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.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/195564/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1757.fits evtable="EVENTS" outfile="/scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.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.46
user 0.30
sys 0.14

Number of photons that the gtmktime cut: 1032

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/195564/ltcube_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.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/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits
.....................!
real 15.27
user 14.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/195564/ltcube_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.fits outfile=/scratch/kocevski/195564/expmap_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.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/195564/ltcube_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.fits
.....................!
real 157.05
user 152.34
sys 4.27

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1148.6+1841 @ 177.154 18.6861

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits scfile=/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits outfile=/scratch/kocevski/195564/cmap_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.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=177.154 yref=18.6861 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.51
user 0.33
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits scfile=/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits outfile=/scratch/kocevski/195564/cmap_HighResolution_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.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=177.154 yref=18.6861 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.51
user 0.33
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195564/Model_4FGL_J1148.6+1841_daily_bin1757.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/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits.....................!
real 71.44
user 70.17
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits', '/scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits', expMap='/scratch/kocevski/195564/expmap_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.fits', expCube='/scratch/kocevski/195564/ltcube_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/195564/Model_4FGL_J1148.6+1841_daily_bin1757.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.6+1841'

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.462e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/195564/ft1_filtered_4FGL_J1148.6+1841_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/195564/ft2_4FGL_J1148.6+1841_daily_bin1757.fits
Exposure map: /scratch/kocevski/195564/expmap_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.fits
Exposure cube: /scratch/kocevski/195564/ltcube_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/195564/Model_4FGL_J1148.6+1841_daily_bin1757.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) = 9858.76915919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.776       1.0000          .0000       .10000E+07
     2 'Prefactor '    .68741       1.0000          .0000       .10000E+07
     3 'norm      '    6.8655       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6137       1.0000          .0000       .10000E+07
     5 'Prefactor '    .88573E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    15.909       1.0000          .0000       .10000E+07
     7 'Prefactor '    6.0897       1.0000          .0000       .10000E+07
     8 'Prefactor '    .66728       1.0000          .0000       .10000E+07
     9 'Prefactor '    .22687E-06   1.0000          .0000       .10000E+07
    10 'norm      '    101.65       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83380E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.3668       1.0000          .0000       .10000E+07
    13 'Prefactor '    .53472       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4517       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.7227       1.0000          .0000       .10000E+07
    16 'Prefactor '    .52600E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .10897E-06   1.0000          .0000       .10000E+07
    18 'norm      '    6.3701       1.0000          .0000       .10000E+07
    19 'Prefactor '    .52805E-04   1.0000          .0000       .10000E+07
    20 'Normalizat'    .95266       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98963       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9858.758     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1635 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.764        1.5294        .49240E-09   -.26440E-01
   2  Prefactor     .64640        1.3088        .28368E-07   -.56595E-04
   3  norm          6.8804        1.7782       -.18014E-07    .33205E-01
   4  Prefactor     2.6475        8.0530        .20099E-06    .27072E-01
   5  Prefactor     .13434E-07    6.4178        .93176E-07** at limit **
   6  Prefactor     16.099        2.1331        .13615E-08   -.35581E-01
   7  Prefactor     6.0903        1.8961        .39656E-07   -.75340E-01
   8  Prefactor     .66392        1.1918        .35006E-09   -.16014E-03
   9  Prefactor     .68001E-07    7.9751       -.30744E-07** at limit **
  10  norm          101.64        4.8774        .28460E-08    .35602E-02
  11  Prefactor     .16526E-06    2.0763       -.11427E-06** at limit **
  12  Prefactor     1.3657        3.3248        .27750E-07    .25170E-02
  13  Prefactor     .22593E-07    57.806       -.17090E-09** at limit **
  14  Prefactor     2.4532        2.4991        .10203E-06    .76318E-02
  15  Prefactor     1.7255        2.2494       -.76632E-07   -.51131E-02
  16  Prefactor     .68334E-06    1.6916       -.51050E-07** at limit **
  17  norm           .0000        .48999E-01    .79562E-08** at limit **
  18  norm          6.3921        4.6142        .43421E-07    .31533E-03
  19  Prefactor     .56788E-07    2.1601       -.23772E-06** at limit **
  20  Normalizat    .95217        .20743       -.21103E-05   -.19819E-03
  21  Prefactor     .99024        .20550        .45022E-06   -.15027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.764
  Prefactor  = 0.646397
  norm       = 6.88043
  Prefactor  = 2.64747
  Prefactor  = 1.34337e-08
  Prefactor  = 16.0991
  Prefactor  = 6.09033
  Prefactor  = 0.663917
  Prefactor  = 6.80012e-08
  norm       = 101.644
  Prefactor  = 1.65257e-07
  Prefactor  = 1.36569
  Prefactor  = 2.2593e-08
  Prefactor  = 2.45322
  Prefactor  = 1.72554
  Prefactor  = 6.83342e-07
  norm       = 0
  norm       = 6.39211
  Prefactor  = 5.67879e-08
  Normalizat = 0.952173
  Prefactor  = 0.990244
 **********
 **   18 **HESSE 
 **********

 FCN=   9858.758     FROM HESSE     STATUS=OK           367 CALLS     2002 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.764        16.065        .30496E-03   -1.5642    
   2  Prefactor     .64640        18.497        .61736E-03   -1.5692    
   3  norm          6.8804        11.482        .38267E-03   -1.5656    
   4  Prefactor     2.6475        9.4720        .63066E-03   -1.5675    
   5  Prefactor     .13434E-07    7.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.099        22.088        .25084E-03   -1.5628    
   7  Prefactor     6.0903        10.268        .40662E-03   -1.5659    
   8  Prefactor     .66392        1.2372        .63405E-03   -1.5692    
   9  Prefactor     .68001E-07    8.4515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          101.64        4.9421        .99191E-04   -1.5506    
  11  Prefactor     .16526E-06    3.6549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3657        3.4371        .93281E-03   -1.5685    
  13  Prefactor     .22593E-07    58.346        .75291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4532        2.5503        .65302E-03   -1.5677    
  15  Prefactor     1.7255        2.2909        .79994E-03   -1.5682    
  16  Prefactor     .68334E-06    10.162        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .48177E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.3921        4.6350        .39745E-03   -1.5657    
  19  Prefactor     .56788E-07    3.5941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95217        .17286        .73503E-01   -.94650    
  21  Prefactor     .99024        .16850        .73280E-01   -.93055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83578e-07
Minuit parameter uncertainties:
  1  16.0654
  2  6.91555
  3  11.4819
  4  9.47205
  5  0.00063021
  6  22.0882
  7  10.2676
  8  1.23723
  9  0.00151589
  10  4.94211
  11  0.00155424
  12  3.43713
  13  0.00229624
  14  2.55027
  15  2.29091
  16  0.0052703
  17  3.34169e-07
  18  4.63502
  19  0.000903707
  20  0.172957
  21  0.168589
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  6.090e+00  1.027e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.902e-01  1.686e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.522e-01  1.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 9.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195564/likelihoodResults_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.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) = 9858.63339682
delta logL = 0.124654381978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9858.62819623
delta logL = 0.129854970613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8166       1.0000          .0000       .10000E+07
     2 'Index     '    2.8313       1.0000          .0000       10.000    
     3 'Normalizat'    .93616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99858       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+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=   9858.628     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      286 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8160        11.568        .20656E-04   -.33353E-02
   2  Index         2.8315        1.4916        .94302E-02   -.60596E-04
   3  Normalizat    .93618        .20676        .32772E-03   -.24561E-03
   4  Prefactor     .99855        .20740        .32295E-03   -.30878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.81596
  Index      = 2.83147
  Normalizat = 0.936175
  Prefactor  = 0.998549
 **********
 **   18 **HESSE 
 **********

 FCN=   9858.628     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8160        8.1575        .82625E-06   -1.5669    
   2  Index         2.8315        1.0597        .37721E-03   -.44860    
   3  Normalizat    .93618        .20578        .13109E-04   -.95200    
   4  Prefactor     .99855        .20633        .64591E-04   -.92778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37012e-10
Minuit parameter uncertainties:
  1  8.1575
  2  1.06976
  3  0.205952
  4  0.206497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195564': 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) = 9858.6281962
delta logL = 0.129854999088

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  3.816e+00  8.158e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.831e+00  1.070e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.985e-01  2.065e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.362e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
Ra Dec: 177.154 18.686

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/195564/cmap_HighResolution_694742401_695001601_4FGL_J1148.6+1841_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', job_status='DONE', photon_flux_upper_limit='9.42e-08', time_completed='2023-01-10 01:06:32.583732', job_id='195564', GAL2='1.00', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1673341592.58', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.30e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1757' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 01:06:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 195564: <4FGL_J1148.6+1841_daily_bin1757> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 00:50:16 2023
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 00:51:58 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 00:51:58 2023
Terminated at Tue Jan 10 01:06:33 2023
Results reported at Tue Jan 10 01:06:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1757 177.154 18.6861 694742401 695001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.6+1841 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   662.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            977 sec.

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

