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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin1780
RA = 160.805, Dec = 24.146
tmin = 700704001, tmax = 700963201
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='58534', job_status='RUN', time_executed='2023-03-20 00:38:00.443343', time_epoch_executed='1679297880.44' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58534/ft1_4FGL_J1043.2+2408_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58534/ft1_4FGL_J1043.2+2408_daily_bin1780.fits outfile=/scratch/kocevski/58534/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin1780.fits ra=160.805 dec=24.146 rad=12.0 tmin=700704001.0 tmax=700963201.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.09
user 3.88
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.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/58534/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 459

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/58534/ltcube_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.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/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits
.....................!
real 12.50
user 12.17
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/58534/ltcube_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.fits outfile=/scratch/kocevski/58534/expmap_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.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/58534/ltcube_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.fits
.....................!
real 190.23
user 184.81
sys 5.07

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

Setting source of interest to:
4FGL J1043.2+2408 @ 160.805 24.146

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits scfile=/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits outfile=/scratch/kocevski/58534/cmap_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.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=160.805 yref=24.146 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits scfile=/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits outfile=/scratch/kocevski/58534/cmap_HighResolution_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.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=160.805 yref=24.146 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58534/Model_4FGL_J1043.2+2408_daily_bin1780.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/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits.....................!
real 50.51
user 49.24
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits', '/scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits', expMap='/scratch/kocevski/58534/expmap_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.fits', expCube='/scratch/kocevski/58534/ltcube_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58534/Model_4FGL_J1043.2+2408_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1043.2+2408'

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.079e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/58534/ft1_filtered_4FGL_J1043.2+2408_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/58534/ft2_4FGL_J1043.2+2408_daily_bin1780.fits
Exposure map: /scratch/kocevski/58534/expmap_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.fits
Exposure cube: /scratch/kocevski/58534/ltcube_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58534/Model_4FGL_J1043.2+2408_daily_bin1780.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) = 5335.16169536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7241       1.0000          .0000       .10000E+07
     2 'Prefactor '    .80530E-05   1.0000          .0000       .10000E+07
     3 'norm      '    9.9360       1.0000          .0000       .10000E+07
     4 'Prefactor '    68.243       1.0000          .0000       .10000E+07
     5 'Prefactor '    62.183       1.0000          .0000       .10000E+07
     6 'Prefactor '    .45091E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .16270E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.777       1.0000          .0000       .10000E+07
     9 'Prefactor '    .33990E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .12341E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.8654       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14953E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    19.730       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.9673       1.0000          .0000       .10000E+07
    15 'Prefactor '    .24220E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .25411E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2079       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .76825       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5335.160     FROM MIGRAD    STATUS=CONVERGED    128 CALLS     1310 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7350        7.4803        .60785E-06    .11518E-01
   2  Prefactor     .55511E-10    2.6425       -.13756E-06** at limit **
   3  norm          9.9368        7.7135       -.12851E-05   -.87427E-01
   4  Prefactor     68.597        46.134        .13317E-05   -.17418E-01
   5  Prefactor     62.183        3.0489        .44689E-08   -.12847E-01
   6  Prefactor     .16653E-09    3.0454        .32918E-06** at limit **
   7  Prefactor      .0000        1.4151        .68223E-07** at limit **
   8  Prefactor     11.766        7.2302       -.24177E-06   -.11722    
   9  Prefactor      .0000        24.225       -.34432E-05** at limit **
  10  Prefactor     .77161E-08    11.960       -.39844E-06** at limit **
  11  Prefactor     6.8138        6.4600        .16083E-05    .11248E-01
  12  Prefactor     .16653E-08    5.5181       -.12163E-05** at limit **
  13  Prefactor     19.887        18.916       -.27809E-05    .51841E-01
  14  Prefactor     2.9692        3.1365       -.17007E-06   -.15039E-02
  15  Prefactor     .30420E-07    7.0980       -.50787E-07** at limit **
  16  Prefactor     .14433E-07    8.6481        .13708E-06** at limit **
  17  Normalizat    1.2078        .21651        .34702E-05    .53193E-05
  18  Prefactor     .76813        .21992        .10260E-04    .28995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.735
  Prefactor  = 5.55112e-11
  norm       = 9.93682
  Prefactor  = 68.5974
  Prefactor  = 62.183
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 11.7663
  Prefactor  = 0
  Prefactor  = 7.71605e-09
  Prefactor  = 6.81378
  Prefactor  = 1.66533e-09
  Prefactor  = 19.8871
  Prefactor  = 2.96916
  Prefactor  = 3.04201e-08
  Prefactor  = 1.44329e-08
  Normalizat = 1.20781
  Prefactor  = 0.768135
 **********
 **   18 **HESSE 
 **********

 FCN=   5335.160     FROM HESSE     STATUS=OK           288 CALLS     1598 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7350        7.5379        .41959E-03   -1.5660    
   2  Prefactor     .55511E-10    2.6134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9368        8.8471        .31765E-03   -1.5645    
   4  Prefactor     68.597        46.954        .12106E-03   -1.5542    
   5  Prefactor     62.183        46.207        .12682E-03   -1.5550    
   6  Prefactor     .16653E-09    3.0462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.4091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.766        10.828        .29166E-03   -1.5639    
   9  Prefactor      .0000        7.0542        .10006E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .77161E-08    11.994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.8138        13.427        .38267E-03   -1.5656    
  12  Prefactor     .16653E-08    5.5251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.887        22.389        .22521E-03   -1.5619    
  14  Prefactor     2.9692        3.1500        .58921E-03   -1.5674    
  15  Prefactor     .30420E-07    7.1817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14433E-07    8.6849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2078        .18533        .51224E-01   -.86362    
  18  Prefactor     .76813        .18690        .64810E-01   -1.0091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8799e-07
Minuit parameter uncertainties:
  1  7.53787
  2  2.70043e-05
  3  8.84711
  4  46.9538
  5  46.2069
  6  4.7236e-05
  7  8.69891e-06
  8  10.8278
  9  2.18365e-05
  10  0.000608858
  11  13.4274
  12  0.000191939
  13  22.3892
  14  3.15
  15  0.000935045
  16  0.000708223
  17  0.185429
  18  0.187058
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  0.000e+00  8.699e-06  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  7.681e-01  1.871e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.208e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 160.805 24.146
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58534/likelihoodResults_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.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) = 5335.16558954
delta logL = -0.00580828227885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5335.15978271
delta logL = -1.45519243233e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22815E-07   1.0000          .0000       .10000E+07
     2 'Index     '    2.0207       1.0000          .0000       10.000    
     3 'Normalizat'    1.2081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5333.714     FROM MIGRAD    STATUS=CONVERGED    265 CALLS      457 TOTAL
                     EDM=   .15E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11331E-05    .89748E-06     .0000    ** at limit **
   2  Index        10.0000        .47980         .0000    ** at limit **
   3  Normalizat    1.1048        .18919         .0000        .78256E-03
   4  Prefactor     .84357        .19010         .0000        .63986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13309e-06
  Index      = 10
  Normalizat = 1.10479
  Prefactor  = 0.843572
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.714     FROM HESSE     STATUS=OK            35 CALLS      492 TOTAL
                     EDM=   .30E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11331E-05    .88987E-06    .12372E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .48497        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1048        .23216        .23498E-03   -.89598    
   4  Prefactor     .84357        .23244        .27503E-03   -.98142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000300562
Minuit parameter uncertainties:
  1  8.89853e-07
  2  9.87915e-05
  3  0.232371
  4  0.232711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58534': 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) = 5333.71413963
delta logL = 1.44564162493

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.133e-06  8.899e-07  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  1.000e+01  9.879e-05  0.000e+00  1.000e+01 (-1.000e+00)
249        Scale:  9.688e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  8.436e-01  2.327e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.105e+00  2.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 160.805 24.146
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 9.47e-08 +/- 7.20e-08
Energy Flux (Free Index): 1.06e-05 +/- 8.10e-06

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/58534/cmap_HighResolution_700704001_700963201_4FGL_J1043.2+2408_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.45e+00', photon_flux2='9.47e-08', job_status='DONE', time_completed='2023-03-20 00:46:29.712352', photon_index_error2='0.00', photon_index2='10.00', ts='0.00', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='7.50e-08', energy_flux_error2='8.10e-06', EG='1.21', time_epoch_completed='1679298389.71', return_code='0', job_id='58534', GAL2='0.84', EG2='1.10', return_code2='0', photon_flux_error2='7.20e-08', ts2='3.08', photon_index='2.32' WHERE bin_id='1780' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:46:29 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 58534: <4FGL_J1043.2+2408_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:35:19 2023
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:35:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:35:20 2023
Terminated at Mon Mar 20 00:46:30 2023
Results reported at Mon Mar 20 00:46:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin1780 160.805 24.146 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1043.2+2408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   512.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             312.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   669 sec.
    Turnaround time :                            671 sec.

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

