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 68 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_J1311.0+3233_weekly_bin763
RA = 197.76, Dec = 32.5565
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='428983', job_status='RUN', time_executed='2023-03-21 01:41:37.206885', time_epoch_executed='1679388097.21' WHERE source_name='4FGL J1311.0+3233' and cadence='weekly' and bin_id='763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428983

Creating custom pfile directory:
/scratch/kocevski/428983/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/428983/ft1_4FGL_J1311.0+3233_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/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428983/ft1_4FGL_J1311.0+3233_weekly_bin763.fits outfile=/scratch/kocevski/428983/ft1_filteredMKT_4FGL_J1311.0+3233_weekly_bin763.fits ra=197.76 dec=32.5565 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 7.58
user 7.27
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_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/428983/ft1_filteredMKT_4FGL_J1311.0+3233_weekly_bin763.fits evtable="EVENTS" outfile="/scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_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.46
user 0.30
sys 0.15

Number of photons that the gtmktime cut: 1203

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits" evtable="EVENTS" scfile=/scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits sctable="SC_DATA" outfile=/scratch/kocevski/428983/ltcube_700444801_701049601_4FGL_J1311.0+3233_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/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits
.....................!
real 21.44
user 21.10
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits sctable="SC_DATA" expcube=/scratch/kocevski/428983/ltcube_700444801_701049601_4FGL_J1311.0+3233_weekly_bin763.fits outfile=/scratch/kocevski/428983/expmap_700444801_701049601_4FGL_J1311.0+3233_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/428983/ltcube_700444801_701049601_4FGL_J1311.0+3233_weekly_bin763.fits
.....................!
real 150.78
user 146.26
sys 4.27

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

Setting source of interest to:
4FGL J1311.0+3233 @ 197.76 32.5565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits scfile=/scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits outfile=/scratch/kocevski/428983/cmap_700444801_701049601_4FGL_J1311.0+3233_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=197.76 yref=32.5565 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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits scfile=/scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits outfile=/scratch/kocevski/428983/cmap_HighResolution_700444801_701049601_4FGL_J1311.0+3233_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=197.76 yref=32.5565 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.49
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits evtable="EVENTS" scfile=/scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428983/Model_4FGL_J1311.0+3233_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/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits.....................!
real 79.60
user 78.37
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits', '/scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits', expMap='/scratch/kocevski/428983/expmap_700444801_701049601_4FGL_J1311.0+3233_weekly_bin763.fits', expCube='/scratch/kocevski/428983/ltcube_700444801_701049601_4FGL_J1311.0+3233_weekly_bin763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428983/Model_4FGL_J1311.0+3233_weekly_bin763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1311.0+3233'

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.854e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/428983/ft1_filtered_4FGL_J1311.0+3233_weekly_bin763.fits
Spacecraft file(s): /scratch/kocevski/428983/ft2_4FGL_J1311.0+3233_weekly_bin763.fits
Exposure map: /scratch/kocevski/428983/expmap_700444801_701049601_4FGL_J1311.0+3233_weekly_bin763.fits
Exposure cube: /scratch/kocevski/428983/ltcube_700444801_701049601_4FGL_J1311.0+3233_weekly_bin763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428983/Model_4FGL_J1311.0+3233_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) = 13943.8503721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3361       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.0816       1.0000          .0000       .10000E+07
     3 'Prefactor '    .40234E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5607       1.0000          .0000       .10000E+07
     5 'norm      '    1.8658       1.0000          .0000       .10000E+07
     6 'Prefactor '    .49022E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    5.3042       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23154E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8099       1.0000          .0000       .10000E+07
    10 'norm      '    8.1695       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.4272       1.0000          .0000       .10000E+07
    12 'norm      '    .23591       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.2419       1.0000          .0000       .10000E+07
    14 'norm      '    2.2790       1.0000          .0000       .10000E+07
    15 'norm      '    .21207E-04   1.0000          .0000       .10000E+07
    16 'norm      '    16.051       1.0000          .0000       .10000E+07
    17 'norm      '    4.0377       1.0000          .0000       .10000E+07
    18 'norm      '    .14808E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .37040E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11280E-03   1.0000          .0000       .10000E+07
    21 'norm      '    22.639       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17917E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .48283E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .23444E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    10.627       1.0000          .0000       .10000E+07
    26 'Prefactor '    4.6338       1.0000          .0000       .10000E+07
    27 'Normalizat'    .82971       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1080       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13943.64     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     2021 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3341        1.8370        .25989E-07    .23492E-02
   2  Prefactor     6.0726        5.6144       -.13115E-07    .11455E-02
   3  Prefactor      .0000        .77614       -.21566E-08** at limit **
   4  Prefactor     1.5591        1.3675        .49602E-08    .66288E-03
   5  norm          1.8659        2.3101        .34595E-07    .11081E-02
   6  Prefactor     .88818E-09    3.8768        .12530E-06** at limit **
   7  Prefactor     5.2851        1.3318       -.60969E-08    .39766E-01
   8  Prefactor      .0000        1.3032       -.69172E-07** at limit **
   9  Prefactor     3.8017        3.8455       -.19106E-07   -.27533E-02
  10  norm          8.1760        3.1979       -.24001E-07   -.18393E-02
  11  Prefactor     1.3143        1.2315       -.11541E-07    .37280E-03
  12  norm          .23277        1.3878        .29259E-07** at limit **
  13  Prefactor     5.2806        1.2032       -.33976E-11   -.39376E-02
  14  norm          2.2800        2.8049        .42926E-07    .13079E-02
  15  norm          .21649E-08    5.5781        .18483E-06** at limit **
  16  norm          16.032        2.7880        .27138E-07    .16216E-01
  17  norm          4.0643        2.1356        .28957E-07   -.10168E-01
  18  norm          .38858E-09    3.6127        .13998E-06** at limit **
  19  Prefactor      .0000        .91462        .13151E-07** at limit **
  20  Prefactor     .60701E-06    8.6239        .80170E-08** at limit **
  21  norm          22.674        6.1984       -.20785E-07   -.19117E-02
  22  Prefactor     .14895E-05    7.2400       -.15409E-06** at limit **
  23  norm          .86819E-07    7.7819        .13653E-06** at limit **
  24  Prefactor     .83195E-06    14.034       -.22786E-06** at limit **
  25  Prefactor     10.669        2.0560        .20163E-07    .10899E-01
  26  Prefactor     4.6247        2.9085       -.73291E-07   -.36948E-02
  27  Normalizat    .82991        .13189       -.13042E-06   -.83210E-04
  28  Prefactor     1.1078        .15804       -.35242E-06   -.75377E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.33407
  Prefactor  = 6.07263
  Prefactor  = 0
  Prefactor  = 1.55911
  norm       = 1.86589
  Prefactor  = 8.88178e-10
  Prefactor  = 5.28515
  Prefactor  = 0
  Prefactor  = 3.8017
  norm       = 8.17599
  Prefactor  = 1.3143
  norm       = 0.232766
  Prefactor  = 5.28057
  norm       = 2.28003
  norm       = 2.16493e-09
  norm       = 16.0317
  norm       = 4.06426
  norm       = 3.88578e-10
  Prefactor  = 0
  Prefactor  = 6.07014e-07
  norm       = 22.6737
  Prefactor  = 1.48948e-06
  norm       = 8.68194e-08
  Prefactor  = 8.31946e-07
  Prefactor  = 10.6689
  Prefactor  = 4.62474
  Normalizat = 0.829913
  Prefactor  = 1.1078
 **********
 **   18 **HESSE 
 **********

 FCN=   13943.64     FROM HESSE     STATUS=OK           581 CALLS     2602 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3341        1.8476        .55390E-03   -1.5671    
   2  Prefactor     6.0726        5.6258        .40689E-03   -1.5659    
   3  Prefactor      .0000        .76899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5591        1.3841        .85141E-03   -1.5683    
   5  norm          1.8659        2.3323        .76238E-03   -1.5681    
   6  Prefactor     .88818E-09    3.9121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2851        7.1407        .43616E-03   -1.5662    
   8  Prefactor      .0000        1.3036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8017        4.2236        .51687E-03   -1.5669    
  10  norm          8.1760        3.4944        .35053E-03   -1.5651    
  11  Prefactor     1.3143        60.561        .90434E-03   -1.5685    
  12  norm          .23277        1.4157        .11169E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2806        10.173        .43879E-03   -1.5662    
  14  norm          2.2800        2.9741        .67987E-03   -1.5678    
  15  norm          .21649E-08    5.5786        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.032        6.5195        .24973E-03   -1.5628    
  17  norm          4.0643        9.9402        .50158E-03   -1.5668    
  18  norm          .38858E-09    3.6360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        .91234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .60701E-06    11.510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.674        6.2053        .21022E-03   -1.5613    
  22  Prefactor     .14895E-05    14.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .86819E-07    8.2663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .83195E-06    17.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.669        15.863        .30710E-03   -1.5643    
  26  Prefactor     4.6247        2.9098        .46731E-03   -1.5665    
  27  Normalizat    .82991        .11330        .43997E-01   -.98969    
  28  Prefactor     1.1078        .13346        .60621E-01   -.89218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6513e-07
Minuit parameter uncertainties:
  1  1.84759
  2  5.62577
  3  1.45721e-06
  4  1.38411
  5  2.33232
  6  0.000119186
  7  7.1407
  8  3.44222e-06
  9  4.22359
  10  3.49443
  11  17.8434
  12  1.1481
  13  10.1729
  14  2.97411
  15  0.000219894
  16  6.51953
  17  9.94027
  18  7.44917e-05
  19  1.46313e-06
  20  0.00528639
  21  6.20535
  22  0.00917982
  23  0.00169452
  24  0.00762033
  25  15.8627
  26  2.90975
  27  0.113328
  28  0.133499
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  4.064e+00  9.940e+00  0.000e+00  1.000e+06 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.108e+00  1.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.299e-01  1.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 197.760 32.556
Photon Flux Upper Limit: 4.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428983/likelihoodResults_700444801_701049601_4FGL_J1311.0+3233_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) = 13943.5571615
delta logL = 0.0825101955324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13943.5256898
delta logL = 0.113981972641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6889       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7666       1.0000          .0000       5.0000    
     3 'Normalizat'    .82316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   13943.53     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      260 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6822        6.6735        .21761E-04    .34271E-03
   2  alpha         2.7671        1.2929        .15195E-01    .13726E-04
   3  Normalizat    .82311        .13131        .25331E-03   -.24684E-04
   4  Prefactor     1.1115        .15814        .26762E-03   -.21750E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.68219
  alpha      = 2.76708
  Normalizat = 0.823112
  Prefactor  = 1.11148
 **********
 **   18 **HESSE 
 **********

 FCN=   13943.53     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6822        5.0763        .87046E-06   -1.5675    
   2  alpha         2.7671        1.0040        .60781E-03    .10704    
   3  Normalizat    .82311        .13064        .10133E-04   -.99217    
   4  Prefactor     1.1115        .15771        .10705E-04   -.89100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98443e-13
Minuit parameter uncertainties:
  1  5.07631
  2  1.03355
  3  0.13069
  4  0.157775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428983': 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) = 13943.5256883
delta logL = 0.113983393872

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.682e+00  5.076e+00  0.000e+00  1.000e+06 ( 1.000e-13)
333        alpha:  2.767e+00  1.034e+00  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  2.509e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.111e+00  1.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  8.231e-01  1.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
Ra Dec: 197.760 32.556

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/428983/cmap_HighResolution_700444801_701049601_4FGL_J1311.0+3233_weekly_bin763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-05', job_status='DONE', photon_flux_upper_limit='4.33e-08', time_completed='2023-03-21 01:56:10.677034', job_id='428983', GAL2='1.11', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1679388970.68', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.14e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='763' AND source_name='4FGL J1311.0+3233' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 21 01:56:10 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 428983: <4FGL_J1311.0+3233_weekly_bin763> in cluster <slac> Done

Job <4FGL_J1311.0+3233_weekly_bin763> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 21 01:40:21 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 21 01:40:22 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:40:22 2023
Terminated at Tue Mar 21 01:56:11 2023
Results reported at Tue Mar 21 01:56:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_weekly_bin763 197.76 32.5565 700444801 701049601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1311.0+3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   871.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

