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


Performing analysis on: 4FGL_J1043.2+2408_daily_bin1778
RA = 160.805, Dec = 24.146
tmin = 700185601, tmax = 700444801
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='957328', job_status='RUN', time_executed='2023-03-14 00:37:50.313159', time_epoch_executed='1678779470.31' WHERE source_name='4FGL J1043.2+2408' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957328

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957328/ft1_4FGL_J1043.2+2408_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957328/ft1_4FGL_J1043.2+2408_daily_bin1778.fits outfile=/scratch/kocevski/957328/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin1778.fits ra=160.805 dec=24.146 rad=12.0 tmin=700185601.0 tmax=700444801.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 3.98
user 3.73
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.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/957328/ft1_filteredMKT_4FGL_J1043.2+2408_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/957328/ft1_filtered_4FGL_J1043.2+2408_daily_bin1778.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.31
sys 0.16

Number of photons that the gtmktime cut: 501

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957328/ft1_filtered_4FGL_J1043.2+2408_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/957328/ltcube_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.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/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits
.....................!
real 11.77
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957328/ft1_filtered_4FGL_J1043.2+2408_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/957328/ltcube_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.fits outfile=/scratch/kocevski/957328/expmap_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.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/957328/ltcube_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.fits
.....................!
real 191.17
user 184.85
sys 6.01

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/957328/ft1_filtered_4FGL_J1043.2+2408_daily_bin1778.fits scfile=/scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits outfile=/scratch/kocevski/957328/cmap_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957328/ft1_filtered_4FGL_J1043.2+2408_daily_bin1778.fits scfile=/scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits outfile=/scratch/kocevski/957328/cmap_HighResolution_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957328/ft1_filtered_4FGL_J1043.2+2408_daily_bin1778.fits', '/scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits', expMap='/scratch/kocevski/957328/expmap_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.fits', expCube='/scratch/kocevski/957328/ltcube_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957328/Model_4FGL_J1043.2+2408_daily_bin1778.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/957328/ft1_filtered_4FGL_J1043.2+2408_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/957328/ft2_4FGL_J1043.2+2408_daily_bin1778.fits
Exposure map: /scratch/kocevski/957328/expmap_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.fits
Exposure cube: /scratch/kocevski/957328/ltcube_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957328/Model_4FGL_J1043.2+2408_daily_bin1778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5618.07860546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10736E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.4541       1.0000          .0000       .10000E+07
     3 'norm      '    .36748E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.0976       1.0000          .0000       .10000E+07
     5 'Prefactor '    .47379E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .45486E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.0339       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.752       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15388E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .28477E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .17079E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .97411E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    24.491       1.0000          .0000       .10000E+07
    14 'Prefactor '    .79661       1.0000          .0000       .10000E+07
    15 'Prefactor '    .38691E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .31512E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.5060       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .71060       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=   5617.055     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1036 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.7690       -.11251E-06** at limit **
   2  Prefactor     1.4506        2.1480        .19179E-07   -.17878E-03
   3  norm           .0000        2.6243       -.18466E-07** at limit **
   4  Prefactor     1.3266        109.67        .32727E-06    .14964E-03
   5  Prefactor     .76938E-07    10.930       -.54399E-07** at limit **
   6  Prefactor     .12768E-08    3.8838       -.19366E-07** at limit **
   7  Prefactor     1.0318        2.1524       -.11729E-07    .42128E-04
   8  Prefactor     10.730        8.7717       -.63723E-07    .18488E-02
   9  Prefactor     .15654E-07    1.8081        .49004E-07** at limit **
  10  Prefactor     .15654E-07    10.660        .17018E-06** at limit **
  11  Prefactor     .16931E-06    4.6223        .60532E-07** at limit **
  12  Prefactor     .51070E-08    3.1750        .17765E-08** at limit **
  13  Prefactor     24.306        2.3414       -.39487E-08    .11662E-01
  14  Prefactor     .79046        2.8741        .16537E-06   -.22369E-03
  15  Prefactor     .72164E-08    2.8180        .69299E-07** at limit **
  16  Prefactor     .31641E-08    20.847       -.22013E-06** at limit **
  17  Normalizat    1.5066        .22298        .66397E-06   -.10733E-04
  18  Prefactor     .71148        .22751        .41956E-06   -.31817E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.45061
  norm       = 0
  Prefactor  = 1.32661
  Prefactor  = 7.69385e-08
  Prefactor  = 1.27676e-09
  Prefactor  = 1.0318
  Prefactor  = 10.7298
  Prefactor  = 1.56541e-08
  Prefactor  = 1.56541e-08
  Prefactor  = 1.69309e-07
  Prefactor  = 5.10703e-09
  Prefactor  = 24.3057
  Prefactor  = 0.790455
  Prefactor  = 7.21645e-09
  Prefactor  = 3.16414e-09
  Normalizat = 1.50655
  Prefactor  = 0.711483
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.055     FROM HESSE     STATUS=OK           278 CALLS     1314 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.8087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.4506        2.1774        .89271E-03   -1.5684    
   3  norm           .0000        2.6305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3266        110.78        .57595E-03   -1.5685    
   5  Prefactor     .76938E-07    14.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12768E-08    4.0781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0318        2.1950        .12420E-02   -1.5688    
   8  Prefactor     10.730        8.7964        .30530E-03   -1.5642    
   9  Prefactor     .15654E-07    3.8287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15654E-07    11.761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16931E-06    13.743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .51070E-08    3.8417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.306        15.874        .20211E-03   -1.5609    
  14  Prefactor     .79046        2.8797        .53188E-03   -1.5690    
  15  Prefactor     .72164E-08    3.6998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31641E-08    20.954        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.5066        .19042        .49073E-01   -.77594    
  18  Prefactor     .71148        .19366        .70441E-01   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81547e-07
Minuit parameter uncertainties:
  1  2.29815e-05
  2  2.17745
  3  1.44806e-05
  4  24.2457
  5  0.0021117
  6  0.000142772
  7  2.195
  8  8.79641
  9  0.000489274
  10  0.00085757
  11  0.0030506
  12  0.000279639
  13  15.8742
  14  2.8797
  15  0.000326777
  16  0.000515306
  17  0.190513
  18  0.193841
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.032e+00  2.195e+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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  7.115e-01  1.938e-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.507e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/957328/likelihoodResults_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.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) = 5616.90857176
delta logL = 0.14681273417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5616.90613312
delta logL = 0.149251377542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2580       1.0000          .0000       .10000E+07
     2 'Index     '    1.6808       1.0000          .0000       10.000    
     3 'Normalizat'    1.5183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70210       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.

 FCN=   5616.906     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2577        15.049        .99476E-03    .43167E-02
   2  Index         1.6807        2.5301        .28026       -.47416E-04
   3  Normalizat    1.5183        .19795        .48912E-01   -.19727E-05
   4  Prefactor     .70208        .20751        .70844E-01    .22306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25773
  Index      = 1.6807
  Normalizat = 1.51834
  Prefactor  = 0.702078
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.906     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2577        2.2563        .13733E-04   -1.5686    
   2  Index         1.6807        .95885        .13149E-01   -.72597    
   3  Normalizat    1.5183        .21953        .21622E-03   -.77264    
   4  Prefactor     .70208        .22692        .31353E-03   -1.0345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4454e-09
Minuit parameter uncertainties:
  1  2.25635
  2  0.969679
  3  0.219668
  4  0.227221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957328': 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) = 5616.9061331
delta logL = 0.149251394413

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  1.258e+00  2.256e+00  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  1.681e+00  9.697e-01  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:  7.021e-01  2.272e-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.518e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 160.805 24.146

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/957328/cmap_HighResolution_700185601_700444801_4FGL_J1043.2+2408_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.28e-03', job_status='DONE', photon_flux_upper_limit='9.47e-08', time_completed='2023-03-14 00:45:52.726053', job_id='957328', GAL2='0.70', fit_tolerance='1e-08', EG2='1.52', EG='1.51', time_epoch_completed='1678779952.73', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='1.49e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1778' AND source_name='4FGL J1043.2+2408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 00:45:52 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0014>
Subject: Job 957328: <4FGL_J1043.2+2408_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1043.2+2408_daily_bin1778> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Mar 14 00:35:27 2023
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 00:35:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 00:35:28 2023
Terminated at Tue Mar 14 00:45:53 2023
Results reported at Tue Mar 14 00:45:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_daily_bin1778 160.805 24.146 700185601 700444801 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 :                                   485.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            626 sec.

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

