aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 3 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 = 17070
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_weekly_bin139
RA = 202.693, Dec = 29.5536
tmin = 323049601, tmax = 323654401
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='938564', job_status='RUN', time_executed='2021-07-20 17:50:34.044389', time_epoch_executed='1626828634.04' WHERE source_name='4FGL J1330.7+2933' and cadence='weekly' and bin_id='139'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938564

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938564/ft1_4FGL_J1330.7+2933_weekly_bin139.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938564/ft1_4FGL_J1330.7+2933_weekly_bin139.fits outfile=/scratch/kocevski/938564/ft1_filteredMKT_4FGL_J1330.7+2933_weekly_bin139.fits ra=202.693 dec=29.5536 rad=12.0 tmin=323049601.0 tmax=323654401.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.08
user 6.71
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.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/938564/ft1_filteredMKT_4FGL_J1330.7+2933_weekly_bin139.fits evtable="EVENTS" outfile="/scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.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.59
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits" evtable="EVENTS" scfile=/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits sctable="SC_DATA" outfile=/scratch/kocevski/938564/ltcube_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.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/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits
.....................!
real 29.18
user 28.46
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits sctable="SC_DATA" expcube=/scratch/kocevski/938564/ltcube_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.fits outfile=/scratch/kocevski/938564/expmap_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.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/938564/ltcube_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.fits
.....................!
real 192.13
user 186.66
sys 4.97

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

Setting source of interest to:
4FGL J1330.7+2933 @ 202.693 29.5536

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits scfile=/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits outfile=/scratch/kocevski/938564/cmap_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.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.693 yref=29.5536 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.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits scfile=/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits outfile=/scratch/kocevski/938564/cmap_HighResolution_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.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.693 yref=29.5536 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.58
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits evtable="EVENTS" scfile=/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938564/Model_4FGL_J1330.7+2933_weekly_bin139.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/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits.....................!
real 84.51
user 83.00
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits', '/scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits', expMap='/scratch/kocevski/938564/expmap_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.fits', expCube='/scratch/kocevski/938564/ltcube_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938564/Model_4FGL_J1330.7+2933_weekly_bin139.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1330.7+2933'

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.755e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/938564/ft1_filtered_4FGL_J1330.7+2933_weekly_bin139.fits
Spacecraft file(s): /scratch/kocevski/938564/ft2_4FGL_J1330.7+2933_weekly_bin139.fits
Exposure map: /scratch/kocevski/938564/expmap_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.fits
Exposure cube: /scratch/kocevski/938564/ltcube_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938564/Model_4FGL_J1330.7+2933_weekly_bin139.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) = 12096.852543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14335       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11859E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6400       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0480       1.0000         .10000E-03   10000.    
     5 'norm      '    .63389E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21605E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7103       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3499       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2252       1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12743E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .37539       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.842       1.0000         .10000E-03   10000.    
    15 'norm      '    .11714E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.516       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.219       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.8696       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17153E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8007       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3350       1.0000         .10000E-03   10000.    
    23 'norm      '    3.6972       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .59585       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0482       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88658       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12096.75     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     2730 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    8.9865       -.75351E-06** at limit **
   2  Prefactor     .10000E-03    28.398        .42571E-06** at limit **
   3  Prefactor     4.6482        3.8630        .12850E-05    .96207E-04
   4  Prefactor     7.0652        5.3275        .58198E-06   -.14980E-03
   5  norm          .63590E-01    1.0609        .58367E-06   -.86652E-03
   6  Prefactor     .10000E-03    8.6400       -.17801E-06** at limit **
   7  norm          1.1748        1.4189        .47364E-07    .14591E-03
   8  Prefactor     2.7083        10.603        .32073E-06   -.34084E-05
   9  norm          1.3466        1.5814       -.54343E-07   -.48750E-04
  10  norm          1.2254        1.7243       -.49121E-07   -.21733E-03
  11  norm          .10000E-03    1.0765       -.14106E-07** at limit **
  12  norm          .10000E-03    11.253        .58754E-07** at limit **
  13  Prefactor     .37204        1.3444       -.32188E-06   -.65029E-03
  14  Prefactor     13.868        9.2332        .84977E-06   -.83741E-05
  15  norm          .10001E-03    3.2188       -.19793E-05** at limit **
  16  Prefactor     .10000E-03    6.8586       -.11497E-06** at limit **
  17  norm          17.495        6.5140        .93873E-06    .15847E-02
  18  Prefactor     51.268        14.316        .53624E-06   -.16408E-03
  19  Prefactor     9.8518        10.432       -.31767E-06    .74346E-04
  20  Prefactor     .10000E-03    28.451        .53874E-06** at limit **
  21  Prefactor     3.8003        2.3588        .36158E-07   -.19230E-04
  22  Prefactor     1.3395        11.943        .13689E-05    .17623E-04
  23  norm          3.6943        2.2821        .62655E-08   -.22176E-04
  24  Prefactor     .59583        1.6269        .47532E-06    .57690E-04
  25  Normalizat    1.0482        .11702        .24463E-06    .51803E-03
  26  Prefactor     .88659        .13075       -.11485E-05    .29575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100127
  Prefactor  = 0.0001
  Prefactor  = 4.64823
  Prefactor  = 7.06524
  norm       = 0.06359
  Prefactor  = 0.0001
  norm       = 1.17485
  Prefactor  = 2.70834
  norm       = 1.34659
  norm       = 1.22543
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.372036
  Prefactor  = 13.8679
  norm       = 0.000100014
  Prefactor  = 0.0001
  norm       = 17.495
  Prefactor  = 51.2681
  Prefactor  = 9.85176
  Prefactor  = 0.0001
  Prefactor  = 3.80031
  Prefactor  = 1.33947
  norm       = 3.69432
  Prefactor  = 0.595834
  Normalizat = 1.04825
  Prefactor  = 0.886591
 **********
 **   18 **HESSE 
 **********

 FCN=   12096.75     FROM HESSE     STATUS=OK           474 CALLS     3204 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    10.936        .10058       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    28.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6482        3.8673        .93420E-03   -1.5277    
   4  Prefactor     7.0652        5.4230        .75553E-03   -1.5176    
   5  norm          .63590E-01    8.4244        .20542E-02   -1.5658    
   6  Prefactor     .10000E-03    8.6813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1748        1.3915        .13959E-03   -1.5491    
   8  Prefactor     2.7083        10.440        .24741E-03   -1.5379    
   9  norm          1.3466        1.5691        .14413E-03   -1.5476    
  10  norm          1.2254        1.6717        .16029E-03   -1.5487    
  11  norm          .10000E-03    1.0787        .11120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .37204        1.3063        .22267E-03   -1.5586    
  14  Prefactor     13.868        9.0471        .10766E-03   -1.4963    
  15  norm          .10001E-03    12.391        .32618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.495        6.4268        .95697E-04   -1.4871    
  18  Prefactor     51.268        14.144        .56038E-04   -1.4275    
  19  Prefactor     9.8518        10.409        .12755E-03   -1.5080    
  20  Prefactor     .10000E-03    28.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8003        2.3577        .12748E-03   -1.5318    
  22  Prefactor     1.3395        12.047        .37975E-03   -1.5476    
  23  norm          3.6943        2.2824        .12697E-03   -1.5324    
  24  Prefactor     .59583        1.6087        .22363E-03   -1.5554    
  25  Normalizat    1.0482        .13494        .21724E-03   -.91431    
  26  Prefactor     .88659        .14987        .26989E-03   -.96611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46849e-09
Minuit parameter uncertainties:
  1  0.00235435
  2  2.82149e-05
  3  3.86751
  4  5.42337
  5  1.4629
  6  2.62051e-06
  7  1.39155
  8  10.4472
  9  1.5691
  10  1.67172
  11  5.50901e-08
  12  1.52196e-05
  13  1.30644
  14  9.04799
  15  0.000835762
  16  4.44642e-07
  17  6.42705
  18  14.1446
  19  10.4106
  20  1.98077e-05
  21  2.35779
  22  8.03584
  23  2.28248
  24  1.60877
  25  0.134986
  26  0.149944
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.127e+01  1.414e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.866e-01  1.499e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.048e+00  1.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.44
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 3.02e-08
Energy Flux (Fixed Index): 3.38e-05 +/- 9.33e-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) = 12096.7452307
delta logL = 0.00695761610405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12096.7357561
delta logL = 0.0164322428609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.488       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4986       1.0000          .0000       10.000    
     3 'Normalizat'    1.0441       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+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=   12096.74     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.485        21.514        .57587E-04    .14867E-02
   2  Index         2.4987        .29488        .39091E-02    .67288E-03
   3  Normalizat    1.0441        .13165        .21760E-03   -.42123E-03
   4  Prefactor     .89015        .14977        .26943E-03   -.54359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.4854
  Index      = 2.49868
  Normalizat = 1.04405
  Prefactor  = 0.890149
 **********
 **   18 **HESSE 
 **********

 FCN=   12096.74     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.485        20.361        .11517E-04   -1.4314    
   2  Index         2.4987        .27890        .15636E-03   -.52390    
   3  Normalizat    1.0441        .13159        .43519E-04   -.91569    
   4  Prefactor     .89015        .14975        .53885E-04   -.96486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13382e-09
Minuit parameter uncertainties:
  1  20.3643
  2  0.279092
  3  0.131632
  4  0.149819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938564': 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) = 12096.735756
delta logL = 0.0164323509762

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.849e+01  2.036e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.499e+00  2.791e-01  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.901e-01  1.498e-01  0.000e+00  1.000e+01 ( 1.000e+00)
546        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
547        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
544   Normalization:  1.044e+00  1.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.51
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.50 +/- 0.28
Photon Flux (Free Index): 1.13e-07 +/- 3.46e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.04e-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/938564/cmap_HighResolution_323049601_323654401_4FGL_J1330.7+2933_weekly_bin139.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='3.28e-05', photon_flux_error='3.02e-08', dlogl='1.64e-02', energy_flux='3.38e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-07-20 18:06:18.110935', photon_index_error2='0.28', photon_index2='2.50', ts='29.44', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.05', time_epoch_completed='1626829578.11', return_code='0', job_id='938564', GAL2='0.89', EG2='1.04', return_code2='0', energy_flux_error='9.33e-06', photon_flux_error2='3.46e-08', ts2='29.51', photon_index='2.45' WHERE bin_id='139' AND source_name='4FGL J1330.7+2933' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 18:06:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 938564: <4FGL_J1330.7+2933_weekly_bin139> in cluster <slac> Done

Job <4FGL_J1330.7+2933_weekly_bin139> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul 20 17:50:15 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 17:50:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 20 17:50:17 2021
Terminated at Tue Jul 20 18:06:19 2021
Results reported at Tue Jul 20 18:06:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_weekly_bin139 202.693 29.5536 323049601 323654401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1330.7+2933 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   932.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

