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


Performing analysis on: 4FGL_J1357.1+1921_weekly_bin762
RA = 209.29, Dec = 19.3608
tmin = 699840001, 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='440', job_status='RUN', time_executed='2023-03-14 03:28:04.426963', time_epoch_executed='1678789684.43' WHERE source_name='4FGL J1357.1+1921' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=699840001.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>=699840001.0 && nMetStart<700444801.0' /Data/Flight/Level1/LPA

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440/ft1_4FGL_J1357.1+1921_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440/ft1_4FGL_J1357.1+1921_weekly_bin762.fits outfile=/scratch/kocevski/440/ft1_filteredMKT_4FGL_J1357.1+1921_weekly_bin762.fits ra=209.29 dec=19.3608 rad=12.0 tmin=699840001.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 8.20
user 7.87
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.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/440/ft1_filteredMKT_4FGL_J1357.1+1921_weekly_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.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.56
user 0.38
sys 0.16

Number of photons that the gtmktime cut: 1367

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/440/ltcube_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.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/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits
.....................!
real 31.11
user 30.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/440/ltcube_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.fits outfile=/scratch/kocevski/440/expmap_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.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/440/ltcube_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.fits
.....................!
real 192.11
user 185.98
sys 5.19

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

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits scfile=/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits outfile=/scratch/kocevski/440/cmap_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.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=209.29 yref=19.3608 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.59
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits scfile=/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits outfile=/scratch/kocevski/440/cmap_HighResolution_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.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=209.29 yref=19.3608 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.59
user 0.45
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/440/Model_4FGL_J1357.1+1921_weekly_bin762.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/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits.....................!
real 103.54
user 102.11
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits', '/scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits', expMap='/scratch/kocevski/440/expmap_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.fits', expCube='/scratch/kocevski/440/ltcube_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/440/Model_4FGL_J1357.1+1921_weekly_bin762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1357.1+1921'

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.782e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/440/ft1_filtered_4FGL_J1357.1+1921_weekly_bin762.fits
Spacecraft file(s): /scratch/kocevski/440/ft2_4FGL_J1357.1+1921_weekly_bin762.fits
Exposure map: /scratch/kocevski/440/expmap_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.fits
Exposure cube: /scratch/kocevski/440/ltcube_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/440/Model_4FGL_J1357.1+1921_weekly_bin762.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) = 15554.1725616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7329       1.0000          .0000       .10000E+07
     2 'norm      '    20.743       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.164       1.0000          .0000       .10000E+07
     4 'norm      '    .56732E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    20.617       1.0000          .0000       .10000E+07
     6 'Prefactor '    8.0437       1.0000          .0000       .10000E+07
     7 'Prefactor '    33.060       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.6817       1.0000          .0000       .10000E+07
     9 'Prefactor '    .13151E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    12.307       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.897       1.0000          .0000       .10000E+07
    12 'Prefactor '    92.732       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13384E-06   1.0000          .0000       .10000E+07
    14 'norm      '    3.8623       1.0000          .0000       .10000E+07
    15 'norm      '    3.0709       1.0000          .0000       .10000E+07
    16 'Prefactor '    .33915E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1861       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .75955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15552.87     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      821 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6412        10.442        .50291E-07    .12623E-01
   2  norm          20.761        5.6160        .11794E-07    .12024E-02
   3  Prefactor     21.258        1.5826        .87651E-08   -.14040E-01
   4  norm          .99920E-09    8.1345       -.11301E-06** at limit **
   5  Prefactor     20.573        3.5691       -.32598E-07    .11939E-01
   6  Prefactor     8.0947        6.1933       -.99602E-07    .21846E-01
   7  Prefactor     32.485        19.384        .18603E-08    .10928    
   8  Prefactor     3.6834        2.5701       -.14937E-06   -.73202E-02
   9  Prefactor      .0000        1.2396        .11378E-06** at limit **
  10  Prefactor     12.353        6.8155        .76684E-07    .11901    
  11  Prefactor     11.887        7.6422        .20178E-07   -.18297E-01
  12  Prefactor     93.516        17.459       -.46989E-07    .19320    
  13  Prefactor     .11102E-09    3.2765       -.14155E-06** at limit **
  14  norm          3.8629        1.3861       -.43479E-08   -.64235E-03
  15  norm          3.0718        1.7657       -.39876E-07   -.37532E-02
  16  Prefactor     .18874E-07    17.808        .15927E-06** at limit **
  17  Normalizat    1.1857        .14233       -.11656E-05   -.29080E-03
  18  Prefactor     .75948        .11454        .18994E-06   -.22652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64122
  norm       = 20.761
  Prefactor  = 21.2581
  norm       = 9.99201e-10
  Prefactor  = 20.5733
  Prefactor  = 8.09469
  Prefactor  = 32.4853
  Prefactor  = 3.68339
  Prefactor  = 0
  Prefactor  = 12.3535
  Prefactor  = 11.8867
  Prefactor  = 93.5162
  Prefactor  = 1.11022e-10
  norm       = 3.86287
  norm       = 3.07175
  Prefactor  = 1.88738e-08
  Normalizat = 1.18575
  Prefactor  = 0.759482
 **********
 **   18 **HESSE 
 **********

 FCN=   15552.87     FROM HESSE     STATUS=OK           288 CALLS     1109 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6412        10.621        .52237E-03   -1.5670    
   2  norm          20.761        5.6222        .21963E-03   -1.5617    
   3  Prefactor     21.258        18.262        .21743E-03   -1.5616    
   4  norm          .99920E-09    8.0805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.573        18.831        .22030E-03   -1.5617    
   6  Prefactor     8.0947        16.295        .35328E-03   -1.5651    
   7  Prefactor     32.485        27.321        .17394E-03   -1.5594    
   8  Prefactor     3.6834        2.5767        .52614E-03   -1.5670    
   9  Prefactor      .0000        1.2359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.353        8.1198        .28529E-03   -1.5638    
  11  Prefactor     11.887        7.6456        .29017E-03   -1.5639    
  12  Prefactor     93.516        23.946        .10385E-03   -1.5515    
  13  Prefactor     .11102E-09    3.2620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8629        1.3879        .51323E-03   -1.5669    
  15  norm          3.0718        1.7741        .57859E-03   -1.5673    
  16  Prefactor     .18874E-07    17.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1857        .12101        .56111E-01   -.87044    
  18  Prefactor     .75948        .97036E-01    .43188E-01   -1.0124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5552e-07
Minuit parameter uncertainties:
  1  10.6206
  2  5.6222
  3  18.2624
  4  0.000178139
  5  18.8307
  6  16.2953
  7  27.321
  8  2.57671
  9  1.59651e-06
  10  8.11985
  11  7.64563
  12  23.9465
  13  4.1484e-05
  14  1.38789
  15  1.7741
  16  0.00115933
  17  0.121039
  18  0.0970577
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.189e+01  7.646e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  7.595e-01  9.706e-02  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.186e+00  1.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 2.97e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 6.85e-06

TS (Fixed Index): 3.19
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/440/likelihoodResults_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.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) = 15552.665917
delta logL = 0.20747347943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15552.6582055
delta logL = 0.215184990444

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15552.66     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      265 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.934        8.4334        .11131E-04    .16751E-03
   2  Index         2.3821        .52480        .11504E-01   -.14806E-04
   3  Normalizat    1.2001        .13919        .24683E-03   -.21832E-04
   4  Prefactor     .75087        .11270        .24760E-03    .77139E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9337
  Index      = 2.38214
  Normalizat = 1.20012
  Prefactor  = 0.750869
 **********
 **   18 **HESSE 
 **********

 FCN=   15552.66     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.934        8.4953        .44522E-06   -1.5636    
   2  Index         2.3821        .52862        .46015E-03   -.55104    
   3  Normalizat    1.2001        .13935        .98730E-05   -.86599    
   4  Prefactor     .75087        .11278        .99039E-05   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71084e-12
Minuit parameter uncertainties:
  1  8.49535
  2  0.52999
  3  0.139391
  4  0.112819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440': 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) = 15552.6582055
delta logL = 0.21518499386

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.293e+01  8.495e+00  0.000e+00  1.000e+06 ( 1.000e-12)
268        Index:  2.382e+00  5.300e-01  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  7.509e-01  1.128e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.200e+00  1.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.38 +/- 0.53
Photon Flux (Free Index): 3.60e-08 +/- 3.03e-08
Energy Flux (Free Index): 1.21e-05 +/- 8.11e-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/440/cmap_HighResolution_699840001_700444801_4FGL_J1357.1+1921_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.21e-05', photon_flux_error='2.97e-08', dlogl='2.15e-01', energy_flux='1.07e-05', photon_flux2='3.60e-08', job_status='DONE', time_completed='2023-03-14 03:40:21.465115', photon_index_error2='0.53', photon_index2='2.38', ts='3.19', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='8.11e-06', EG='1.19', time_epoch_completed='1678790421.47', return_code='0', job_id='440', GAL2='0.75', EG2='1.20', return_code2='0', energy_flux_error='6.85e-06', photon_flux_error2='3.03e-08', ts2='3.60', photon_index='2.76' WHERE bin_id='762' AND source_name='4FGL J1357.1+1921' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 03:40:21 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 440: <4FGL_J1357.1+1921_weekly_bin762> in cluster <slac> Done

Job <4FGL_J1357.1+1921_weekly_bin762> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Mar 14 03:25:20 2023
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 03:25:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 03:25:22 2023
Terminated at Tue Mar 14 03:40:22 2023
Results reported at Tue Mar 14 03:40:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_weekly_bin762 209.29 19.3608 699840001 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1357.1+1921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   736.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

