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 72 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1330.2+7002_weekly_bin723
RA = 202.573, Dec = 70.0406
tmin = 676252801, tmax = 676857601
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='710422', job_status='RUN', time_executed='2022-06-14 02:32:37.310998', time_epoch_executed='1655199157.31' WHERE source_name='4FGL J1330.2+7002' and cadence='weekly' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/710422

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/710422/ft1_4FGL_J1330.2+7002_weekly_bin723.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/710422/ft1_4FGL_J1330.2+7002_weekly_bin723.fits outfile=/scratch/kocevski/710422/ft1_filteredMKT_4FGL_J1330.2+7002_weekly_bin723.fits ra=202.573 dec=70.0406 rad=12.0 tmin=676252801.0 tmax=676857601.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 6.06
user 5.71
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.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/710422/ft1_filteredMKT_4FGL_J1330.2+7002_weekly_bin723.fits evtable="EVENTS" outfile="/scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.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.58
user 0.40
sys 0.17

Number of photons that the gtmktime cut: 2710

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/710422/ltcube_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.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/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits
.....................!
real 38.01
user 37.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/710422/ltcube_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.fits outfile=/scratch/kocevski/710422/expmap_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.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/710422/ltcube_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.fits
.....................!
real 193.32
user 187.69
sys 4.11

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

Setting source of interest to:
4FGL J1330.2+7002 @ 202.573 70.0406

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits scfile=/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits outfile=/scratch/kocevski/710422/cmap_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.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=202.573 yref=70.0406 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.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits scfile=/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits outfile=/scratch/kocevski/710422/cmap_HighResolution_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.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=202.573 yref=70.0406 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.61
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/710422/Model_4FGL_J1330.2+7002_weekly_bin723.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/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits.....................!
real 249.81
user 245.58
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits', '/scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits', expMap='/scratch/kocevski/710422/expmap_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.fits', expCube='/scratch/kocevski/710422/ltcube_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/710422/Model_4FGL_J1330.2+7002_weekly_bin723.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.2+7002'

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.366e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/710422/ft1_filtered_4FGL_J1330.2+7002_weekly_bin723.fits
Spacecraft file(s): /scratch/kocevski/710422/ft2_4FGL_J1330.2+7002_weekly_bin723.fits
Exposure map: /scratch/kocevski/710422/expmap_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.fits
Exposure cube: /scratch/kocevski/710422/ltcube_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/710422/Model_4FGL_J1330.2+7002_weekly_bin723.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) = 29350.9236267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4600       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4626       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.755       1.0000         .10000E-03   10000.    
     7 'norm      '    2.0323       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.936       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.851       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9853       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53879       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5379       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    100.71       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7524       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.993       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.332       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.5267       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.165       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90117       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   29350.81     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3078 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4600        5.9749        .35265E-07   -.66766E-03
   2  Prefactor     1.4626        1.1433       -.13887E-07   -.91193E-04
   3  Prefactor     .10000E-03    5.1714        .10769E-05** at limit **
   4  Prefactor     .10000E-03    3.9615       -.49483E-08** at limit **
   5  Prefactor     16.621        8.1746       -.17647E-06   -.30075E-04
   6  Prefactor     14.757        23.475        .35785E-05    .17925E-04
   7  norm          2.0323        1.4082       -.20055E-07   -.18023E-03
   8  norm          1.3122        1.1220       -.17236E-07    .13494E-05
   9  Prefactor     13.936        12.185       -.21505E-06   -.87225E-05
  10  Prefactor     .10000E-03    7.1022       -.27511E-06** at limit **
  11  Prefactor     6.1821        11.264        .25895E-06   -.32339E-03
  12  Prefactor     15.850        10.462       -.15200E-06   -.42546E-05
  13  Prefactor     .10000E-03    .62198       -.28138E-07** at limit **
  14  Prefactor     3.2011        3.3488        .42851E-06   -.26033E-02
  15  Prefactor     4.9851        2.9571       -.43557E-07   -.72949E-04
  16  Prefactor     .53859        1.3719        .12310E-07   -.37430E-03
  17  Prefactor     3.5376        4.7926        .43076E-06   -.18081E-02
  18  Prefactor     .10000E-03    5.0638       -.82799E-06** at limit **
  19  Prefactor     100.71        95.446        .32263E-06    .18760E-05
  20  Prefactor     .10000E-03    9.0703        .34056E-06** at limit **
  21  Prefactor     1.7525        3.9581       -.17880E-05   -.29647E-03
  22  Prefactor     12.993        10.398       -.10967E-06   -.94371E-05
  23  Prefactor     .10000E-03    16.615        .56297E-06** at limit **
  24  Prefactor     12.322        19.979       -.11807E-04   -.11347E-03
  25  Prefactor     7.5268        6.1343       -.56443E-07   -.31040E-04
  26  Prefactor     20.165        10.334       -.28872E-07    .75117E-05
  27  Normalizat    .90123        .69097E-01   -.11002E-06    .98013E-04
  28  Prefactor     .98543        .71684E-01    .35590E-06   -.75126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.46002
  Prefactor  = 1.46264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6212
  Prefactor  = 14.7572
  norm       = 2.03226
  norm       = 1.31216
  Prefactor  = 13.936
  Prefactor  = 0.0001
  Prefactor  = 6.18209
  Prefactor  = 15.8503
  Prefactor  = 0.0001
  Prefactor  = 3.20109
  Prefactor  = 4.98514
  Prefactor  = 0.538594
  Prefactor  = 3.53756
  Prefactor  = 0.0001
  Prefactor  = 100.711
  Prefactor  = 0.0001
  Prefactor  = 1.75253
  Prefactor  = 12.9927
  Prefactor  = 0.0001
  Prefactor  = 12.3223
  Prefactor  = 7.5268
  Prefactor  = 20.1649
  Normalizat = 0.901232
  Prefactor  = 0.985429
 **********
 **   18 **HESSE 
 **********

 FCN=   29350.81     FROM HESSE     STATUS=OK           531 CALLS     3609 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4600        6.0634        .78953E-03   -1.5200    
   2  Prefactor     1.4626        1.1473        .15743E-03   -1.5466    
   3  Prefactor     .10000E-03    5.1794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.621        8.1942        .98239E-04   -1.4892    
   6  Prefactor     14.757        23.451        .10427E-03   -1.4939    
   7  norm          2.0323        1.4047        .16405E-03   -1.5423    
   8  norm          1.3122        1.1237        .38482E-04   -1.5479    
   9  Prefactor     13.936        12.190        .10729E-03   -1.4961    
  10  Prefactor     .10000E-03    7.1116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1821        11.341        .80734E-03   -1.5211    
  12  Prefactor     15.850        10.547        .10060E-03   -1.4912    
  13  Prefactor     .10000E-03    .63644        .26219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2011        4.5720        .11322E-02   -1.5350    
  15  Prefactor     4.9851        2.9436        .18011E-03   -1.5261    
  16  Prefactor     .53859        5.0401        .29871E-02   -1.5561    
  17  Prefactor     3.5376        5.7942        .10745E-02   -1.5332    
  18  Prefactor     .10000E-03    5.0801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     100.71        95.454        .40061E-04   -1.3697    
  20  Prefactor     .10000E-03    9.1063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7525        3.9545        .31669E-03   -1.5443    
  22  Prefactor     12.993        10.402        .11112E-03   -1.4987    
  23  Prefactor     .10000E-03    16.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     12.322        20.039        .11407E-03   -1.5006    
  25  Prefactor     7.5268        6.1325        .14618E-03   -1.5159    
  26  Prefactor     20.165        10.326        .89194E-04   -1.4810    
  27  Normalizat    .90123        .81540E-01    .22272E-03   -.96417    
  28  Prefactor     .98543        .84191E-01    .22756E-03   -.93217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3157e-08
Minuit parameter uncertainties:
  1  6.06401
  2  1.14731
  3  1.0985e-05
  4  7.64864e-07
  5  8.1948
  6  23.4659
  7  1.40472
  8  1.12371
  9  12.1922
  10  3.7711e-06
  11  11.3452
  12  10.5483
  13  3.32414e-07
  14  4.57249
  15  2.94367
  16  3.29526
  17  5.79507
  18  6.24034e-06
  19  95.6001
  20  1.56184e-06
  21  3.95506
  22  10.4035
  23  5.59681e-05
  24  20.05
  25  6.13298
  26  10.3264
  27  0.0815512
  28  0.0842025
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.585e+01  1.055e+01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.967e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  9.854e-01  8.420e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  9.012e-01  8.155e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.38
Ra Dec: 202.573 70.041
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 9.04e-09 +/- 6.01e-09
Energy Flux (Fixed Index): 6.79e-06 +/- 4.52e-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) = 29350.7872151
delta logL = 0.0227536392667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29350.7776247
delta logL = 0.0323440484499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.530       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8560       1.0000          .0000       10.000    
     3 'Normalizat'    .90263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+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=   29350.78     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.532        13.418        .95661E-04   -.35653E-04
   2  Index         1.8559        .44568        .11733E-01    .10049E-02
   3  Normalizat    .90263        .77510E-01    .22256E-03   -.82567E-03
   4  Prefactor     .98467        .82709E-01    .22764E-03   -.77177E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.5322
  Index      = 1.85589
  Normalizat = 0.902631
  Prefactor  = 0.984669
 **********
 **   18 **HESSE 
 **********

 FCN=   29350.78     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.532        12.971        .38264E-05   -1.4870    
   2  Index         1.8559        .43106        .23465E-02   -.68004    
   3  Normalizat    .90263        .77549E-01    .89025E-05   -.96368    
   4  Prefactor     .98467        .82771E-01    .45528E-04   -.93242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68105e-10
Minuit parameter uncertainties:
  1  12.9728
  2  0.43195
  3  0.0775589
  4  0.0827817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/710422': 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) = 29350.7776247
delta logL = 0.0323440731772

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  1.753e+01  1.297e+01  1.000e-04  1.000e+04 ( 1.000e-14)
380        Index:  1.856e+00  4.319e-01  0.000e+00  1.000e+01 (-1.000e+00)
381        Scale:  2.478e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
732    Prefactor:  9.847e-01  8.278e-02  0.000e+00  1.000e+01 ( 1.000e+00)
733        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
734        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
731   Normalization:  9.026e-01  7.756e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.44
Ra Dec: 202.573 70.041
Photon Index (Free Index): 1.86 +/- 0.43
Photon Flux (Free Index): 7.90e-09 +/- 6.82e-09
Energy Flux (Free Index): 8.02e-06 +/- 7.62e-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/710422/cmap_HighResolution_676252801_676857601_4FGL_J1330.2+7002_weekly_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.04e-09', energy_flux2='8.02e-06', photon_flux_error='6.01e-09', dlogl='3.23e-02', energy_flux='6.79e-06', photon_flux2='7.90e-09', job_status='DONE', time_completed='2022-06-14 03:15:24.375518', photon_index_error2='0.43', photon_index2='1.86', ts='6.38', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='7.62e-06', EG='0.90', time_epoch_completed='1655201724.38', return_code='0', job_id='710422', GAL2='0.98', EG2='0.90', return_code2='0', energy_flux_error='4.52e-06', photon_flux_error2='6.82e-09', ts2='6.44', photon_index='1.97' WHERE bin_id='723' AND source_name='4FGL J1330.2+7002' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 14 03:15:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 710422: <4FGL_J1330.2+7002_weekly_bin723> in cluster <slac> Done

Job <4FGL_J1330.2+7002_weekly_bin723> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jun 14 02:05:24 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 14 02:31:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 14 02:31:15 2022
Terminated at Tue Jun 14 03:15:24 2022
Results reported at Tue Jun 14 03:15:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_weekly_bin723 202.573 70.0406 676252801 676857601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.2+7002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2538.62 sec.
    Max Memory :                                 628 MB
    Average Memory :                             361.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2936 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2649 sec.
    Turnaround time :                            4200 sec.

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

