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


Performing analysis on: 4FGL_J1043.2+2408_weekly_bin763
RA = 160.805, Dec = 24.146
tmin = 700444801, tmax = 701049601
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='421298', job_status='RUN', time_executed='2023-03-21 01:17:28.634300', time_epoch_executed='1679386648.63' WHERE source_name='4FGL J1043.2+2408' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421298

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421298/ft1_4FGL_J1043.2+2408_weekly_bin763.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421298/ft1_4FGL_J1043.2+2408_weekly_bin763.fits outfile=/scratch/kocevski/421298/ft1_filteredMKT_4FGL_J1043.2+2408_weekly_bin763.fits ra=160.805 dec=24.146 rad=12.0 tmin=700444801.0 tmax=701049601.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 9.56
user 9.20
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.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/421298/ft1_filteredMKT_4FGL_J1043.2+2408_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/421298/ft1_filtered_4FGL_J1043.2+2408_weekly_bin763.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.55
user 0.37
sys 0.15

Number of photons that the gtmktime cut: 1006

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421298/ft1_filtered_4FGL_J1043.2+2408_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/421298/ltcube_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.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/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits
.....................!
real 27.27
user 26.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421298/ft1_filtered_4FGL_J1043.2+2408_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/421298/ltcube_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.fits outfile=/scratch/kocevski/421298/expmap_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.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/421298/ltcube_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.fits
.....................!
real 194.80
user 189.61
sys 4.85

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/421298/ft1_filtered_4FGL_J1043.2+2408_weekly_bin763.fits scfile=/scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits outfile=/scratch/kocevski/421298/cmap_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421298/ft1_filtered_4FGL_J1043.2+2408_weekly_bin763.fits scfile=/scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits outfile=/scratch/kocevski/421298/cmap_HighResolution_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.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.57
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/421298/ft1_filtered_4FGL_J1043.2+2408_weekly_bin763.fits', '/scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits', expMap='/scratch/kocevski/421298/expmap_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.fits', expCube='/scratch/kocevski/421298/ltcube_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/421298/Model_4FGL_J1043.2+2408_weekly_bin763.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/421298/ft1_filtered_4FGL_J1043.2+2408_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/421298/ft2_4FGL_J1043.2+2408_weekly_bin763.fits
Exposure map: /scratch/kocevski/421298/expmap_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.fits
Exposure cube: /scratch/kocevski/421298/ltcube_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/421298/Model_4FGL_J1043.2+2408_weekly_bin763.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) = 11737.7267635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7992       1.0000          .0000       .10000E+07
     2 'Prefactor '    .39245       1.0000          .0000       .10000E+07
     3 'norm      '    11.689       1.0000          .0000       .10000E+07
     4 'Prefactor '    25.706       1.0000          .0000       .10000E+07
     5 'Prefactor '    27.552       1.0000          .0000       .10000E+07
     6 'Prefactor '    .93983E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .79530E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    11.034       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.653       1.0000          .0000       .10000E+07
    10 'Prefactor '    .32565E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .11469E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.3708       1.0000          .0000       .10000E+07
    13 'Prefactor '    16.910       1.0000          .0000       .10000E+07
    14 'Prefactor '    .60173       1.0000          .0000       .10000E+07
    15 'Prefactor '    .37853E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.9476       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2010       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .78309       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=   11737.62     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1121 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7288        5.1124       -.90358E-07    .44613E-02
   2  Prefactor     .39283        2.2864       -.97855E-07    .17046E-02
   3  norm          11.654        5.7522       -.60823E-07   -.29887E-02
   4  Prefactor     24.977        13.988        .25174E-05   -.36726E-01
   5  Prefactor     26.127        26.706       -.22471E-05    .31305E-02
   6  Prefactor     .32968E-06    12.172        .55139E-05** at limit **
   7  Prefactor     .79190E-01    3.5526        .31322E-06** at limit **
   8  Prefactor     11.031        6.4626        .23338E-07   -.66409E-03
   9  Prefactor     10.598        7.2695        .53469E-06    .41453E-02
  10  Prefactor     .63838E-08    10.445       -.17311E-05** at limit **
  11  Prefactor     .13878E-08    5.8269       -.53072E-05** at limit **
  12  Prefactor     8.3694        6.6629       -.30717E-06   -.30352E-02
  13  Prefactor     16.913        2.8217        .11069E-06   -.17137E-01
  14  Prefactor     .59437        1.8894        .29460E-06   -.59604E-02
  15  Prefactor     .66613E-09    6.4580        .41043E-05** at limit **
  16  Prefactor     2.9499        9.6610        .12148E-05    .19625E-02
  17  Normalizat    1.2019        .15304       -.68101E-05   -.89247E-03
  18  Prefactor     .78356        .15157        .61332E-05   -.52795E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72884
  Prefactor  = 0.392828
  norm       = 11.6535
  Prefactor  = 24.9766
  Prefactor  = 26.1271
  Prefactor  = 3.29681e-07
  Prefactor  = 0.0791899
  Prefactor  = 11.0307
  Prefactor  = 10.5982
  Prefactor  = 6.38378e-09
  Prefactor  = 1.38778e-09
  Prefactor  = 8.36937
  Prefactor  = 16.9128
  Prefactor  = 0.594368
  Prefactor  = 6.66134e-10
  Prefactor  = 2.94993
  Normalizat = 1.20193
  Prefactor  = 0.783556
 **********
 **   18 **HESSE 
 **********

 FCN=   11737.62     FROM HESSE     STATUS=OK           310 CALLS     1431 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7288        5.1481        .51763E-03   -1.5669    
   2  Prefactor     .39283        1.1052        .48174E-02   -1.5695    
   3  norm          11.654        5.7620        .29277E-03   -1.5640    
   4  Prefactor     24.977        20.897        .19727E-03   -1.5608    
   5  Prefactor     26.127        26.879        .19055E-03   -1.5606    
   6  Prefactor     .32968E-06    2.6303        .59257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .79190E-01    .56294        .42857E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.031        6.4787        .30136E-03   -1.5642    
   9  Prefactor     10.598        8.9478        .30673E-03   -1.5643    
  10  Prefactor     .63838E-08    10.640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .13878E-08    5.9117        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3694        6.7612        .34626E-03   -1.5650    
  13  Prefactor     16.913        16.351        .24329E-03   -1.5626    
  14  Prefactor     .59437        1.9346        .69073E-03   -1.5693    
  15  Prefactor     .66613E-09    6.4665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9499        9.6434        .59129E-03   -1.5674    
  17  Normalizat    1.2019        .12872        .51282E-01   -.86543    
  18  Prefactor     .78356        .12741        .64164E-01   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3751e-08
Minuit parameter uncertainties:
  1  5.14808
  2  1.10516
  3  5.76196
  4  20.8976
  5  26.8786
  6  0.00186237
  7  0.422276
  8  6.47875
  9  8.94783
  10  0.000521665
  11  0.000181042
  12  6.76122
  13  16.3514
  14  1.9346
  15  0.000130238
  16  9.64341
  17  0.128755
  18  0.127458
Done.

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

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  7.919e-02  4.223e-01  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.836e-01  1.275e-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.202e+00  1.288e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/421298/likelihoodResults_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.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) = 11737.6159574
delta logL = 0.00111548633322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11737.6159441
delta logL = 0.00112881503082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80615E-01   1.0000          .0000       .10000E+07
     2 'Index     '    2.4672       1.0000          .0000       10.000    
     3 'Normalizat'    1.2019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78349       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=   11737.62     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      241 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84459E-01    2.2478        .28375E-02** at limit **
   2  Index         2.4631        1.6953        .50000        .10136E-04
   3  Normalizat    1.2016        .55679E-02    .51287E-01   -.36299E-05
   4  Prefactor     .78363        .57840E-02    .64161E-01    .27808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0844592
  Index      = 2.46311
  Normalizat = 1.20165
  Prefactor  = 0.783626
 **********
 **   18 **HESSE 
 **********

 FCN=   11737.62     FROM HESSE     STATUS=OK            35 CALLS      276 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84459E-01    4.8176        .17728E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4631        3.3625        .23908E-01   -.53214    
   3  Normalizat    1.2016        .14518        .22675E-03   -.86552    
   4  Prefactor     .78363        .15076        .28382E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54447e-07
Minuit parameter uncertainties:
  1  1.27576
  2  3.85767
  3  0.145228
  4  0.150842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421298': 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) = 11737.6159352
delta logL = 0.00113768955634

Extracting fit parameters...

4FGL J1043.2+2408
   Spectrum: PowerLaw
247    Prefactor:  8.446e-02  1.276e+00  0.000e+00  1.000e+06 ( 1.000e-12)
248        Index:  2.463e+00  3.858e+00  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.836e-01  1.508e-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.202e+00  1.452e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/421298/cmap_HighResolution_700444801_701049601_4FGL_J1043.2+2408_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.65e-08', time_completed='2023-03-21 01:29:48.736250', job_id='421298', GAL2='0.78', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1679387388.74', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.14e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='763' AND source_name='4FGL J1043.2+2408' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:29:48 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 421298: <4FGL_J1043.2+2408_weekly_bin763> in cluster <slac> Done

Job <4FGL_J1043.2+2408_weekly_bin763> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Mar 21 01:15:27 2023
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 01:15:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 21 01:15:29 2023
Terminated at Tue Mar 21 01:29:49 2023
Results reported at Tue Mar 21 01:29:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1043.2+2408_weekly_bin763 160.805 24.146 700444801 701049601 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 :                                   739.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             287.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

