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


Performing analysis on: 4FGL_J1333.2+2725_weekly_bin761
RA = 203.323, Dec = 27.4221
tmin = 699235201, tmax = 699840001
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='488341', job_status='RUN', time_executed='2023-03-07 01:13:36.115416', time_epoch_executed='1678180416.12' WHERE source_name='4FGL J1333.2+2725' and cadence='weekly' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488341

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488341/ft1_4FGL_J1333.2+2725_weekly_bin761.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488341/ft1_4FGL_J1333.2+2725_weekly_bin761.fits outfile=/scratch/kocevski/488341/ft1_filteredMKT_4FGL_J1333.2+2725_weekly_bin761.fits ra=203.323 dec=27.4221 rad=12.0 tmin=699235201.0 tmax=699840001.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.54
user 8.21
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.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/488341/ft1_filteredMKT_4FGL_J1333.2+2725_weekly_bin761.fits evtable="EVENTS" outfile="/scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.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.16

Number of photons that the gtmktime cut: 1084

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits" evtable="EVENTS" scfile=/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits sctable="SC_DATA" outfile=/scratch/kocevski/488341/ltcube_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.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/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits
.....................!
real 27.64
user 27.22
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/488341/ltcube_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.fits outfile=/scratch/kocevski/488341/expmap_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.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/488341/ltcube_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.fits
.....................!
real 191.84
user 186.37
sys 5.12

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

Setting source of interest to:
4FGL J1333.2+2725 @ 203.323 27.4221

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits scfile=/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits outfile=/scratch/kocevski/488341/cmap_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.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=203.323 yref=27.4221 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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits scfile=/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits outfile=/scratch/kocevski/488341/cmap_HighResolution_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.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=203.323 yref=27.4221 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/488341/Model_4FGL_J1333.2+2725_weekly_bin761.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/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits.....................!
real 85.91
user 84.52
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits', '/scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits', expMap='/scratch/kocevski/488341/expmap_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.fits', expCube='/scratch/kocevski/488341/ltcube_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/488341/Model_4FGL_J1333.2+2725_weekly_bin761.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.2+2725'

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.668e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/488341/ft1_filtered_4FGL_J1333.2+2725_weekly_bin761.fits
Spacecraft file(s): /scratch/kocevski/488341/ft2_4FGL_J1333.2+2725_weekly_bin761.fits
Exposure map: /scratch/kocevski/488341/expmap_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.fits
Exposure cube: /scratch/kocevski/488341/ltcube_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/488341/Model_4FGL_J1333.2+2725_weekly_bin761.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) = 12072.6309591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1951       1.0000          .0000       .10000E+07
     2 'norm      '    1.7802       1.0000          .0000       .10000E+07
     3 'Prefactor '    19.650       1.0000          .0000       .10000E+07
     4 'norm      '    1.6912       1.0000          .0000       .10000E+07
     5 'Prefactor '    .33466E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .71498E-06   1.0000          .0000       .10000E+07
     7 'norm      '    17.998       1.0000          .0000       .10000E+07
     8 'norm      '    6.4727       1.0000          .0000       .10000E+07
     9 'norm      '    .80000E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .23309E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    11.243       1.0000          .0000       .10000E+07
    12 'norm      '    26.160       1.0000          .0000       .10000E+07
    13 'Prefactor '    .19979E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .24952E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0433       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.3815       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.0522       1.0000          .0000       .10000E+07
    18 'Prefactor '    15.614       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.289       1.0000          .0000       .10000E+07
    20 'Normalizat'    .97364       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99945       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12072.57     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1297 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2073        5.3830        .23644E-06    .39176E-01
   2  norm          1.7870        3.5702        .77597E-07    .38635E-02
   3  Prefactor     19.642        4.7483        .45565E-06   -.13973    
   4  norm          1.6898        1.9089        .14129E-07   -.35844E-02
   5  Prefactor     .13878E-08    6.3893       -.21407E-06** at limit **
   6  norm          .11102E-09    5.0423       -.19598E-06** at limit **
   7  norm          17.983        3.1163       -.17263E-07    .12996E-01
   8  norm          6.4913        2.0612        .92982E-07   -.72147E-02
   9  norm          .12823E-07    11.424       -.28244E-06** at limit **
  10  Prefactor     .16653E-09    1.2946       -.76510E-07** at limit **
  11  Prefactor     11.202        1.7331        .47153E-07   -.48227E-02
  12  norm          26.270        6.4015       -.60986E-07   -.75063E-01
  13  Prefactor     .77199E-06    15.392       -.32785E-05** at limit **
  14  norm           .0000        2.1526        .23026E-07** at limit **
  15  Prefactor     2.0495        2.6268       -.71565E-06    .10107E-01
  16  Prefactor     2.3672        1.5264       -.32246E-06    .57287E-02
  17  Prefactor     1.0553        2.1435        .16319E-07   -.23554E-02
  18  Prefactor     15.534        4.1569        .42887E-06   -.37581E-01
  19  Prefactor     17.241        3.9949       -.26766E-07   -.21820E-02
  20  Normalizat    .97373        .14441        .71826E-06   -.52224E-04
  21  Prefactor     .99946        .15134       -.49286E-05   -.60391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.20729
  norm       = 1.78702
  Prefactor  = 19.6419
  norm       = 1.6898
  Prefactor  = 1.38778e-09
  norm       = 1.11022e-10
  norm       = 17.9828
  norm       = 6.4913
  norm       = 1.28231e-08
  Prefactor  = 1.66533e-10
  Prefactor  = 11.2023
  norm       = 26.2695
  Prefactor  = 7.71994e-07
  norm       = 0
  Prefactor  = 2.04949
  Prefactor  = 2.36722
  Prefactor  = 1.05532
  Prefactor  = 15.5339
  Prefactor  = 17.2409
  Normalizat = 0.973728
  Prefactor  = 0.999455
 **********
 **   18 **HESSE 
 **********

 FCN=   12072.57     FROM HESSE     STATUS=OK           363 CALLS     1660 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2073        5.4738        .37371E-03   -1.5654    
   2  norm          1.7870        3.8441        .78412E-03   -1.5681    
   3  Prefactor     19.642        18.370        .22566E-03   -1.5619    
   4  norm          1.6898        1.9258        .80910E-03   -1.5682    
   5  Prefactor     .13878E-08    6.4610        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11102E-09    5.0778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.983        6.4232        .23581E-03   -1.5623    
   8  norm          6.4913        9.8162        .39424E-03   -1.5657    
   9  norm          .12823E-07    11.455        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    1.2934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.202        9.7350        .29853E-03   -1.5641    
  12  norm          26.270        6.6821        .19555E-03   -1.5605    
  13  Prefactor     .77199E-06    19.165        .17038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.1647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0495        17.249        .72308E-03   -1.5679    
  16  Prefactor     2.3672        28.490        .66351E-03   -1.5677    
  17  Prefactor     1.0553        2.2096        .12040E-02   -1.5687    
  18  Prefactor     15.534        9.2588        .25321E-03   -1.5629    
  19  Prefactor     17.241        4.0007        .24060E-03   -1.5625    
  20  Normalizat    .97373        .13050        .45836E-01   -.93916    
  21  Prefactor     .99946        .13180        .46260E-01   -.92748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43471e-07
Minuit parameter uncertainties:
  1  5.47379
  2  3.84408
  3  18.3697
  4  1.92579
  5  0.000189181
  6  5.3083e-05
  7  6.4232
  8  9.81619
  9  0.000766552
  10  2.76869e-05
  11  9.73502
  12  6.68206
  13  0.00769309
  14  8.53758e-06
  15  11.8916
  16  16.4246
  17  2.20956
  18  9.25882
  19  4.00065
  20  0.130541
  21  0.131844
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.367e+00  1.642e+01  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.995e-01  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  9.737e-01  1.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488341/likelihoodResults_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.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) = 12071.1303393
delta logL = 1.43484277665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12071.107192
delta logL = 1.45799005604

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12071.11     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      309 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31503        2.4830        .87129E-03    .36640E-01
   2  Index         4.9498        2.1338        .11306        .24426E-03
   3  Normalizat    .90062        .28393E-01    .44910E-01   -.13904E-03
   4  Prefactor     1.0497        .30404E-01    .58436E-01   -.15815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.315029
  Index      = 4.94975
  Normalizat = 0.900616
  Prefactor  = 1.04971
 **********
 **   18 **HESSE 
 **********

 FCN=   12071.11     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      344 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31503        6.6425        .40135E-04   -1.5697    
   2  Index         4.9498        3.9130        .56153E-02   -.10050E-01
   3  Normalizat    .90062        .10514        .25967E-03   -.96438    
   4  Prefactor     1.0497        .11045        .25840E-03   -.91090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02321e-06
Minuit parameter uncertainties:
  1  2.89316
  2  4.49426
  3  0.105164
  4  0.110469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488341': 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): 102
logL (Free Index) = 12071.1071918
delta logL = 1.45799029267

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.150e-01  2.893e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  4.950e+00  4.494e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.050e+00  1.105e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  9.006e-01  1.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.16
Ra Dec: 203.323 27.422
Photon Index (Free Index): 4.95 +/- 4.49
Photon Flux (Free Index): 5.90e-08 +/- 3.72e-08
Energy Flux (Free Index): 7.88e-06 +/- 6.33e-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/488341/cmap_HighResolution_699235201_699840001_4FGL_J1333.2+2725_weekly_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', comment='SUCCESS', energy_flux2='7.88e-06', dlogl='1.46e+00', photon_flux2='5.90e-08', job_status='DONE', time_completed='2023-03-07 01:26:27.509462', photon_index_error2='4.49', photon_index2='4.95', ts='0.03', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.52e-08', energy_flux_error2='6.33e-06', EG='0.97', time_epoch_completed='1678181187.51', return_code='0', job_id='488341', GAL2='1.05', EG2='0.90', return_code2='102', photon_flux_error2='3.72e-08', ts2='3.16', photon_index='2.32' WHERE bin_id='761' AND source_name='4FGL J1333.2+2725' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar  7 01:26:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 488341: <4FGL_J1333.2+2725_weekly_bin761> in cluster <slac> Done

Job <4FGL_J1333.2+2725_weekly_bin761> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Mar  7 01:10:26 2023
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  7 01:10:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  7 01:10:28 2023
Terminated at Tue Mar  7 01:26:28 2023
Results reported at Tue Mar  7 01:26:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_weekly_bin761 203.323 27.4221 699235201 699840001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.2+2725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   769.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

