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


Performing analysis on: 4FGL_J1048.4+7143_daily_bin1674
RA = 162.107, Dec = 71.7297
tmin = 673228801, tmax = 673488001
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='669882', job_status='RUN', time_executed='2022-05-06 02:49:09.175215', time_epoch_executed='1651830549.18' WHERE source_name='4FGL J1048.4+7143' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/669882

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/669882/ft1_4FGL_J1048.4+7143_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/669882/ft1_4FGL_J1048.4+7143_daily_bin1674.fits outfile=/scratch/kocevski/669882/ft1_filteredMKT_4FGL_J1048.4+7143_daily_bin1674.fits ra=162.107 dec=71.7297 rad=12.0 tmin=673228801.0 tmax=673488001.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.78
user 2.56
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.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/669882/ft1_filteredMKT_4FGL_J1048.4+7143_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.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.51
user 0.30
sys 0.19

Number of photons that the gtmktime cut: 1291

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/669882/ltcube_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.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/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits
.....................!
real 15.47
user 15.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/669882/ltcube_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.fits outfile=/scratch/kocevski/669882/expmap_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.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/669882/ltcube_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.fits
.....................!
real 194.41
user 188.33
sys 5.49

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

Setting source of interest to:
4FGL J1048.4+7143 @ 162.107 71.7297

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits scfile=/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits outfile=/scratch/kocevski/669882/cmap_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.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=162.107 yref=71.7297 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits scfile=/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits outfile=/scratch/kocevski/669882/cmap_HighResolution_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.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=162.107 yref=71.7297 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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/669882/Model_4FGL_J1048.4+7143_daily_bin1674.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/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits.....................!
real 142.88
user 140.99
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits', '/scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits', expMap='/scratch/kocevski/669882/expmap_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.fits', expCube='/scratch/kocevski/669882/ltcube_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/669882/Model_4FGL_J1048.4+7143_daily_bin1674.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1048.4+7143'

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  2.733e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/669882/ft1_filtered_4FGL_J1048.4+7143_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/669882/ft2_4FGL_J1048.4+7143_daily_bin1674.fits
Exposure map: /scratch/kocevski/669882/expmap_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.fits
Exposure cube: /scratch/kocevski/669882/ltcube_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/669882/Model_4FGL_J1048.4+7143_daily_bin1674.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) = 13718.1181943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1171       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.7875       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7989       1.0000         .10000E-03   10000.    
    10 'norm      '    25.118       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18630E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.208       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.093       1.0000         .10000E-03   10000.    
    17 'norm      '    14.341       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0801       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3272       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0838       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7680       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.847       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .42619E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.5742       1.0000         .10000E-03   10000.    
    31 'norm      '    2.0634       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .97554       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13718.10     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     4813 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.762       -.72822E-06** at limit **
   2  Prefactor     3.1166        2.0481        .37795E-06   -.27248E-02
   3  norm          1.6328        1.3660       -.48682E-07   -.41571E-03
   4  Prefactor     .10000E-03    15.865       -.17332E-07** at limit **
   5  Prefactor     .10000E-03    3.7885       -.17305E-06** at limit **
   6  Prefactor     .10000E-03    3.4367       -.31553E-06** at limit **
   7  Prefactor     .10000E-03    3.5209        .79779E-07** at limit **
   8  Prefactor     9.7913        10.228        .76164E-06    .42204E-04
   9  norm          3.7988        .77236       -.20665E-07   -.13231E-03
  10  norm          25.120        16.004       -.51731E-08   -.66485E-06
  11  Prefactor     .10000E-03    11.169       -.19545E-05** at limit **
  12  Prefactor     .10000E-03    3.3905       -.55250E-07** at limit **
  13  Prefactor     .10000E-03    11.909        .29258E-05** at limit **
  14  Prefactor     10.210        10.845        .80572E-06    .60018E-04
  15  norm          .10000E-03    .67937        .67156E-08** at limit **
  16  Prefactor     35.159        30.470        .97329E-06    .42433E-04
  17  norm          14.342        4.2506        .76722E-07    .82944E-04
  18  Prefactor     .10000E-03    48.109       -.20018E-05** at limit **
  19  Prefactor     .10000E-03    2.6506        .22040E-06** at limit **
  20  norm          1.0807        .54008       -.34517E-07   -.61473E-03
  21  norm          1.3273        1.4643        .23776E-07   -.23376E-03
  22  Prefactor     .10000E-03    6.2397       -.51856E-06** at limit **
  23  Prefactor     .10000E-03    2.6224       -.33886E-07** at limit **
  24  Prefactor     7.0845        10.137        .35452E-06   -.39862E-03
  25  Prefactor     1.7677        1.7513        .50521E-07    .12026E-03
  26  norm          .10000E-03    4.7449        .30568E-06** at limit **
  27  Prefactor     12.846        7.8582        .11357E-06   -.12846E-04
  28  Prefactor     .10000E-03    72.320        .14791E-04** at limit **
  29  Prefactor     .10000E-03    4.5661       -.36097E-06** at limit **
  30  norm          1.5738        2.4085        .10150E-06   -.40412E-03
  31  norm          2.0630        1.8091        .31671E-08   -.17759E-03
  32  Prefactor     .10000E-03    6.8698        .59519E-06** at limit **
  33  Normalizat    .97552        .12244       -.40997E-06   -.26459E-04
  34  Prefactor     1.0554        .11160        .11083E-06   -.84567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.11658
  norm       = 1.63282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.79127
  norm       = 3.79882
  norm       = 25.1198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2096
  norm       = 0.0001
  Prefactor  = 35.1593
  norm       = 14.3417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.08067
  norm       = 1.32729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.08448
  Prefactor  = 1.76767
  norm       = 0.0001
  Prefactor  = 12.8457
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.5738
  norm       = 2.06296
  Prefactor  = 0.0001
  Normalizat = 0.97552
  Prefactor  = 1.05544
 **********
 **   18 **HESSE 
 **********

 FCN=   13718.10     FROM HESSE     STATUS=OK           734 CALLS     5547 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.1166        3.3231        .10741E-02   -1.5355    
   3  norm          1.6328        1.3554        .12060E-03   -1.5452    
   4  Prefactor     .10000E-03    15.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.7913        10.234        .12809E-03   -1.5082    
   9  norm          3.7988        .77192        .43594E-04   -1.5318    
  10  norm          25.120        16.001        .79928E-04   -1.4705    
  11  Prefactor     .10000E-03    11.680        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.210        10.820        .12541E-03   -1.5069    
  15  norm          .10000E-03    .68952        .93897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.159        30.259        .67648E-04   -1.4521    
  17  norm          14.342        4.2332        .10577E-03   -1.4950    
  18  Prefactor     .10000E-03    48.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.6942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0807        .51267        .52812E-04   -1.5500    
  21  norm          1.3273        1.2731        .12049E-03   -1.5478    
  22  Prefactor     .10000E-03    6.2800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.9676        .30723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.0845        10.453        .75360E-03   -1.5176    
  25  Prefactor     1.7677        1.7621        .14983E-03   -1.5442    
  26  norm          .10000E-03    4.7800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     12.846        7.8207        .11175E-03   -1.4991    
  28  Prefactor     .10000E-03    73.589        .21234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.5768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.5738        2.4041        .21882E-03   -1.5457    
  31  norm          2.0630        1.7970        .13934E-03   -1.5421    
  32  Prefactor     .10000E-03    6.8761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .97552        .13627        .26476E-03   -.93855    
  34  Prefactor     1.0554        .12516        .24083E-03   -.90904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05977e-09
Minuit parameter uncertainties:
  1  2.29882e-05
  2  3.32333
  3  1.35538
  4  1.43503e-08
  5  1.79158e-06
  6  4.87072e-06
  7  1.44063e-06
  8  10.236
  9  0.771923
  10  16.0036
  11  8.19233e-05
  12  1.7249e-06
  13  9.33731e-05
  14  10.8222
  15  2.85968e-06
  16  30.272
  17  4.23333
  18  0.000133748
  19  1.02983e-06
  20  0.512676
  21  1.27312
  22  2.06729e-05
  23  2.17995e-05
  24  10.4554
  25  1.76212
  26  6.41595e-06
  27  7.82128
  28  0.00106547
  29  6.44755e-06
  30  2.40428
  31  1.79703
  32  1.5327e-05
  33  0.136323
  34  0.12519
Done.

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

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  1.081e+00  5.127e-01  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.203e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.055e+00  1.252e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  9.755e-01  1.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.59
Ra Dec: 162.107 71.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.05e-05

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) = 13717.5074577
delta logL = 0.591985554136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13717.506689
delta logL = 0.592754242038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88834       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6740       1.0000          .0000       5.0000    
     3 'Normalizat'    .94835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13717.51     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88833        3.5017        .93434E-02    .15653E-02
   2  alpha         2.6740        3.6460        .33188        .10674E-03
   3  Normalizat    .94836        .38374E-01    .45516E-01    .31085E-04
   4  Prefactor     1.0691        .34002E-01    .38898E-01    .13974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.888327
  alpha      = 2.67396
  Normalizat = 0.94836
  Prefactor  = 1.06915
 **********
 **   18 **HESSE 
 **********

 FCN=   13717.51     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88833        .50802        .42073E-04   -1.5519    
   2  alpha         2.6740        .48260        .12214E-01    .69640E-01
   3  Normalizat    .94836        .13379        .26786E-03   -.94781    
   4  Prefactor     1.0691        .12469        .23939E-03   -.90459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57229e-12
Minuit parameter uncertainties:
  1  0.508018
  2  0.485668
  3  0.133834
  4  0.12472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/669882': 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) = 13717.506689
delta logL = 0.592754247944

Extracting fit parameters...

4FGL J1048.4+7143
   Spectrum: LogParabola
389         norm:  8.883e-01  5.080e-01  1.000e-04  1.000e+04 ( 1.000e-11)
390        alpha:  2.674e+00  4.857e-01  0.000e+00  5.000e+00 ( 1.000e+00)
391         beta:  8.500e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
392           Eb:  6.970e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
712    Prefactor:  1.069e+00  1.247e-01  0.000e+00  1.000e+01 ( 1.000e+00)
713        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
714        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
711   Normalization:  9.484e-01  1.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.78
Ra Dec: 162.107 71.730
Photon Index (Free Index): 2.67 +/- 0.49
Photon Flux (Free Index): 7.98e-08 +/- 3.58e-08
Energy Flux (Free Index): 2.02e-05 +/- 8.36e-06

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/669882/cmap_HighResolution_673228801_673488001_4FGL_J1048.4+7143_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='2.02e-05', photon_flux_error='2.63e-08', dlogl='5.93e-01', energy_flux='2.22e-05', photon_flux2='7.98e-08', job_status='DONE', time_completed='2022-05-06 03:19:53.428773', photon_index_error2='0.49', photon_index2='2.67', ts='8.59', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='8.36e-06', EG='0.98', time_epoch_completed='1651832393.43', return_code='0', job_id='669882', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.58e-08', ts2='9.78', photon_index='2.20' WHERE bin_id='1674' AND source_name='4FGL J1048.4+7143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:19:53 PDT 2022

95', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.58e-08', ts2='9.78', photon_index='2.20' WHERE bin_id='1674' AND source_name='4FGL J1048.4+7143' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:18:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 669845: <4FGL_J1048.4+7143_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1048.4+7143_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:07:03 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:48:04 2022
Terminated at Fri May  6 03:18:41 2022
Results reported at Fri May  6 03:18:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1048.4+7143_daily_bin1674 162.107 71.7297 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1048.4+7143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1820.42 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             365.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1837 sec.
    Turnaround time :                            11498 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 669882: <4FGL_J1048.4+7143_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1048.4+7143_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:07:05 2022
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:48:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:48:17 2022
Terminated at Fri May  6 03:19:54 2022
Results reported at Fri May  6 03:19:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1048.4+7143_daily_bin1674 162.107 71.7297 673228801 673488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1048.4+7143 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1845.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             342.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1896 sec.
    Turnaround time :                            11569 sec.

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

