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


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1751
RA = 203.323, Dec = 27.4221
tmin = 693187201, tmax = 693446401
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='79065', job_status='RUN', time_executed='2022-12-23 00:45:38.201330', time_epoch_executed='1671785138.2' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79065

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79065/ft1_4FGL_J1333.2+2725_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79065/ft1_4FGL_J1333.2+2725_daily_bin1751.fits outfile=/scratch/kocevski/79065/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1751.fits ra=203.323 dec=27.4221 rad=12.0 tmin=693187201.0 tmax=693446401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.66
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.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/79065/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/79065/ft1_filtered_4FGL_J1333.2+2725_daily_bin1751.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 655

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79065/ft1_filtered_4FGL_J1333.2+2725_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/79065/ltcube_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.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/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits
.....................!
real 12.14
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79065/ft1_filtered_4FGL_J1333.2+2725_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/79065/ltcube_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.fits outfile=/scratch/kocevski/79065/expmap_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.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/79065/ltcube_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.fits
.....................!
real 190.99
user 185.65
sys 5.02

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/79065/ft1_filtered_4FGL_J1333.2+2725_daily_bin1751.fits scfile=/scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits outfile=/scratch/kocevski/79065/cmap_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79065/ft1_filtered_4FGL_J1333.2+2725_daily_bin1751.fits scfile=/scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits outfile=/scratch/kocevski/79065/cmap_HighResolution_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/79065/ft1_filtered_4FGL_J1333.2+2725_daily_bin1751.fits', '/scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits', expMap='/scratch/kocevski/79065/expmap_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.fits', expCube='/scratch/kocevski/79065/ltcube_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/79065/Model_4FGL_J1333.2+2725_daily_bin1751.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/79065/ft1_filtered_4FGL_J1333.2+2725_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/79065/ft2_4FGL_J1333.2+2725_daily_bin1751.fits
Exposure map: /scratch/kocevski/79065/expmap_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.fits
Exposure cube: /scratch/kocevski/79065/ltcube_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/79065/Model_4FGL_J1333.2+2725_daily_bin1751.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) = 6961.2017103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74472E-04   1.0000          .0000       .10000E+07
     2 'norm      '    4.0055       1.0000          .0000       .10000E+07
     3 'Prefactor '    37.476       1.0000          .0000       .10000E+07
     4 'norm      '    1.1395       1.0000          .0000       .10000E+07
     5 'Prefactor '    .43762E-03   1.0000          .0000       .10000E+07
     6 'norm      '    .27942E-03   1.0000          .0000       .10000E+07
     7 'norm      '    29.744       1.0000          .0000       .10000E+07
     8 'norm      '    17.365       1.0000          .0000       .10000E+07
     9 'norm      '    48.007       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.6791       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11222E-04   1.0000          .0000       .10000E+07
    12 'norm      '    33.962       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20383E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .69944E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    10.659       1.0000          .0000       .10000E+07
    16 'Prefactor '    23.389       1.0000          .0000       .10000E+07
    17 'Prefactor '    5.0644       1.0000          .0000       .10000E+07
    18 'Prefactor '    22.276       1.0000          .0000       .10000E+07
    19 'Prefactor '    26.428       1.0000          .0000       .10000E+07
    20 'Normalizat'    .81965       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0903       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=   6961.153     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1295 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26090E-08    4.2196       -.36234E-06** at limit **
   2  norm          3.9719        4.5523        .11687E-06    .16988E-02
   3  Prefactor     38.115        23.389        .20063E-06   -.76407E-01
   4  norm          1.1409        2.0255        .18995E-06    .39350E-03
   5  Prefactor     .28166E-06    21.660       -.15957E-05** at limit **
   6  norm          .40523E-08    6.8405        .10655E-06** at limit **
   7  norm          29.696        5.5924       -.42722E-07    .11928E-01
   8  norm          17.400        3.0542       -.21134E-07   -.11151E-01
   9  norm          47.803        2.4273       -.13208E-07   -.30044E-02
  10  Prefactor     1.6781        2.8708       -.18894E-06    .25761E-03
  11  Prefactor     .11102E-08    5.0921       -.61287E-06** at limit **
  12  norm          34.036        9.1912       -.53234E-07    .53311E-02
  13  Prefactor     .59974E-06    25.204       -.49732E-06** at limit **
  14  norm          .14100E-07    4.2301       -.81577E-07** at limit **
  15  Prefactor     10.651        1.3892       -.24051E-07   -.74344E-02
  16  Prefactor     23.553        11.375        .18820E-06    .12986    
  17  Prefactor     5.0678        3.6812       -.54864E-07   -.56928E-03
  18  Prefactor     22.424        1.2609        .10659E-07    .16812E-02
  19  Prefactor     26.428        7.4586        .57537E-07    .17493E-02
  20  Normalizat    .81888        .20415       -.29754E-05   -.14958E-04
  21  Prefactor     1.0905        .21389       -.75155E-07   -.19180E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60902e-09
  norm       = 3.97189
  Prefactor  = 38.1155
  norm       = 1.14087
  Prefactor  = 2.81664e-07
  norm       = 4.05231e-09
  norm       = 29.6958
  norm       = 17.4
  norm       = 47.8029
  Prefactor  = 1.67813
  Prefactor  = 1.11022e-09
  norm       = 34.0358
  Prefactor  = 5.99742e-07
  norm       = 1.40998e-08
  Prefactor  = 10.6507
  Prefactor  = 23.553
  Prefactor  = 5.06776
  Prefactor  = 22.4244
  Prefactor  = 26.4278
  Normalizat = 0.818879
  Prefactor  = 1.09046
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.153     FROM HESSE     STATUS=OK           369 CALLS     1664 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26090E-08    4.2173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9719        4.6770        .50366E-03   -1.5668    
   3  Prefactor     38.115        29.193        .16337E-03   -1.5584    
   4  norm          1.1409        2.4697        .35774E-02   -1.5687    
   5  Prefactor     .28166E-06    22.361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .40523E-08    6.7053        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          29.696        9.0418        .18339E-03   -1.5599    
   8  norm          17.400        13.895        .24008E-03   -1.5625    
   9  norm          47.803        25.786        .14434E-03   -1.5570    
  10  Prefactor     1.6781        2.9196        .81272E-03   -1.5682    
  11  Prefactor     .11102E-08    5.0959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          34.036        9.4247        .17162E-03   -1.5591    
  13  Prefactor     .59974E-06    26.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14100E-07    4.2655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.651        10.060        .30664E-03   -1.5643    
  16  Prefactor     23.553        16.576        .20682E-03   -1.5611    
  17  Prefactor     5.0678        3.6793        .44657E-03   -1.5663    
  18  Prefactor     22.424        12.772        .21193E-03   -1.5613    
  19  Prefactor     26.428        7.4689        .19456E-03   -1.5605    
  20  Normalizat    .81888        .17337        .63175E-01   -.99372    
  21  Prefactor     1.0905        .17995        .60631E-01   -.89772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78745e-07
Minuit parameter uncertainties:
  1  0.000209093
  2  4.677
  3  29.1932
  4  2.46973
  5  0.00501925
  6  0.000330293
  7  9.04179
  8  13.8952
  9  25.7861
  10  2.9196
  11  0.000148552
  12  9.42469
  13  0.00803395
  14  0.000490455
  15  10.0598
  16  16.5759
  17  3.67926
  18  12.772
  19  7.4689
  20  0.173486
  21  0.180053
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  2.355e+01  1.658e+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:  1.090e+00  1.801e-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:  8.189e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.42
Ra Dec: 203.323 27.422
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.38e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 8.81e-06

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) = 6960.68820932
delta logL = 0.464785578967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6960.66023586
delta logL = 0.49275904035

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6960.660     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      245 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.017        21.825        .35917E-04   -.73979E-02
   2  Index         1.7660        .49097        .83948E-02   -.26537E-03
   3  Normalizat    .83603        .19313        .27656E-03    .94547E-04
   4  Prefactor     1.0774        .21143        .26947E-03    .74674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.0174
  Index      = 1.76601
  Normalizat = 0.836032
  Prefactor  = 1.0774
 **********
 **   18 **HESSE 
 **********

 FCN=   6960.660     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.017        21.863        .71833E-05   -1.5597    
   2  Index         1.7660        .49188        .33579E-03   -.70338    
   3  Normalizat    .83603        .19331        .11062E-04   -.98746    
   4  Prefactor     1.0774        .21163        .10779E-04   -.90192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19318e-09
Minuit parameter uncertainties:
  1  21.8634
  2  0.49325
  3  0.193467
  4  0.211792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79065': 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) = 6960.66023572
delta logL = 0.492759187077

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  3.102e+01  2.186e+01  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  1.766e+00  4.932e-01  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.077e+00  2.118e-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:  8.360e-01  1.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.40
Ra Dec: 203.323 27.422
Photon Index (Free Index): 1.77 +/- 0.49
Photon Flux (Free Index): 2.20e-08 +/- 1.95e-08
Energy Flux (Free Index): 2.91e-05 +/- 3.50e-05

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/79065/cmap_HighResolution_693187201_693446401_4FGL_J1333.2+2725_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.38e-08', energy_flux2='2.91e-05', photon_flux_error='2.38e-08', dlogl='4.93e-01', energy_flux='1.25e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2022-12-23 00:54:05.407278', photon_index_error2='0.49', photon_index2='1.77', ts='6.42', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='3.50e-05', EG='0.82', time_epoch_completed='1671785645.41', return_code='0', job_id='79065', GAL2='1.08', EG2='0.84', return_code2='0', energy_flux_error='8.81e-06', photon_flux_error2='1.95e-08', ts2='7.40', photon_index='2.32' WHERE bin_id='1751' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:54:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 79065: <4FGL_J1333.2+2725_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:45:23 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:45:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:45:24 2022
Terminated at Fri Dec 23 00:54:06 2022
Results reported at Fri Dec 23 00:54:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1751 203.323 27.4221 693187201 693446401 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 :                                   510.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            523 sec.

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

