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


Performing analysis on: 4FGL_J1330.2+7002_daily_bin1712
RA = 202.573, Dec = 70.0406
tmin = 683078401, tmax = 683337601
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='133826', job_status='RUN', time_executed='2022-09-16 17:36:36.988870', time_epoch_executed='1663374996.99' WHERE source_name='4FGL J1330.2+7002' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/133826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/133826/ft1_4FGL_J1330.2+7002_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/133826/ft1_4FGL_J1330.2+7002_daily_bin1712.fits outfile=/scratch/kocevski/133826/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1712.fits ra=202.573 dec=70.0406 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.82
user 4.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.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/133826/ft1_filteredMKT_4FGL_J1330.2+7002_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/133826/ft1_filtered_4FGL_J1330.2+7002_daily_bin1712.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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 651

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/133826/ft1_filtered_4FGL_J1330.2+7002_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/133826/ltcube_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.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/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits
.....................!
real 14.95
user 14.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/133826/ft1_filtered_4FGL_J1330.2+7002_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/133826/ltcube_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.fits outfile=/scratch/kocevski/133826/expmap_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.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/133826/ltcube_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.fits
.....................!
real 191.68
user 185.86
sys 4.75

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/133826/ft1_filtered_4FGL_J1330.2+7002_daily_bin1712.fits scfile=/scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits outfile=/scratch/kocevski/133826/cmap_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/133826/ft1_filtered_4FGL_J1330.2+7002_daily_bin1712.fits scfile=/scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits outfile=/scratch/kocevski/133826/cmap_HighResolution_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/133826/ft1_filtered_4FGL_J1330.2+7002_daily_bin1712.fits', '/scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits', expMap='/scratch/kocevski/133826/expmap_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.fits', expCube='/scratch/kocevski/133826/ltcube_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/133826/Model_4FGL_J1330.2+7002_daily_bin1712.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  0.000e+00  1.000e+06 ( 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/133826/ft1_filtered_4FGL_J1330.2+7002_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/133826/ft2_4FGL_J1330.2+7002_daily_bin1712.fits
Exposure map: /scratch/kocevski/133826/expmap_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.fits
Exposure cube: /scratch/kocevski/133826/ltcube_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/133826/Model_4FGL_J1330.2+7002_daily_bin1712.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7050.99162004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17664E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .45259E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    51.164       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12878       1.0000          .0000       .10000E+07
     5 'Prefactor '    23.107       1.0000          .0000       .10000E+07
     6 'norm      '    .14205E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .93747E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31983E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .98191E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    29.454       1.0000          .0000       .10000E+07
    11 'Prefactor '    .17830E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.6269       1.0000          .0000       .10000E+07
    13 'Prefactor '    .23826E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .68828E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.9322       1.0000          .0000       .10000E+07
    16 'Prefactor '    95.885       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12345E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    10.976       1.0000          .0000       .10000E+07
    19 'Prefactor '    .89961E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .78859E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .17640E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.0229       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82690       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7050.791     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1490 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58192E-06    11.035       -.34388E-05** at limit **
   2  Prefactor     .92204E-07    5.7644       -.22180E-05** at limit **
   3  Prefactor     50.930        11.950        .12545E-05   -.73980E-01
   4  Prefactor     .37803E-07    2.0803       -.10642E-05** at limit **
   5  Prefactor     23.118        1.1921        .33355E-07    .86364E-02
   6  norm          .11102E-09    3.4144        .28403E-07** at limit **
   7  norm          .67446E-07    5.5753        .17873E-05** at limit **
   8  Prefactor     .33473E-07    3.9371       -.54327E-06** at limit **
   9  Prefactor     .79220E-06    5.7911        .89000E-06** at limit **
  10  Prefactor     29.981        21.064        .94016E-06   -.11073E-01
  11  Prefactor     .20756E-06    7.3311        .15069E-05** at limit **
  12  Prefactor     1.6428        3.4084       -.13413E-08    .74642E-02
  13  Prefactor     .81762E-06    4.5973       -.10827E-05** at limit **
  14  Prefactor     .19207E-07    6.8086        .17919E-05** at limit **
  15  Prefactor     7.0011        42.765       -.16525E-05   -.13723E-01
  16  Prefactor     96.110        16.978        .15141E-05   -.21059    
  17  Prefactor     .41189E-07    5.8612        .17592E-05** at limit **
  18  Prefactor     10.676        16.769        .46278E-05    .67795E-02
  19  Prefactor     .11896E-06    7.4909        .82183E-06** at limit **
  20  Prefactor     .63305E-06    14.039        .15230E-05** at limit **
  21  Prefactor     .68445E-07    6.6872       -.61566E-06** at limit **
  22  Normalizat    1.0234        .16192       -.28989E-05   -.93409E-04
  23  Prefactor     .82673        .16523        .38212E-05   -.59021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81923e-07
  Prefactor  = 9.2204e-08
  Prefactor  = 50.93
  Prefactor  = 3.78031e-08
  Prefactor  = 23.1177
  norm       = 1.11022e-10
  norm       = 6.7446e-08
  Prefactor  = 3.34732e-08
  Prefactor  = 7.922e-07
  Prefactor  = 29.9807
  Prefactor  = 2.07556e-07
  Prefactor  = 1.64276
  Prefactor  = 8.17624e-07
  Prefactor  = 1.92069e-08
  Prefactor  = 7.00111
  Prefactor  = 96.1096
  Prefactor  = 4.11893e-08
  Prefactor  = 10.6761
  Prefactor  = 1.1896e-07
  Prefactor  = 6.33049e-07
  Prefactor  = 6.84452e-08
  Normalizat = 1.02343
  Prefactor  = 0.82673
 **********
 **   18 **HESSE 
 **********

 FCN=   7050.791     FROM HESSE     STATUS=OK           404 CALLS     1894 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58192E-06    19.974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .92204E-07    5.8493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     50.930        34.798        .13981E-03   -1.5565    
   4  Prefactor     .37803E-07    191.67        .13213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.118        15.149        .20808E-03   -1.5612    
   6  norm          .11102E-09    3.3855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .67446E-07    5.6005        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33473E-07    10.081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .79220E-06    10.622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.981        46.375        .18429E-03   -1.5598    
  11  Prefactor     .20756E-06    7.8549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6428        3.4701        .82900E-03   -1.5682    
  13  Prefactor     .81762E-06    9.7810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .19207E-07    14.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0011        62.598        .35577E-03   -1.5655    
  16  Prefactor     96.110        69.094        .10213E-03   -1.5512    
  17  Prefactor     .41189E-07    5.9355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.676        25.436        .30215E-03   -1.5643    
  19  Prefactor     .11896E-06    14.684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .63305E-06    21.074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .68445E-07    6.8417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0234        .14022        .42958E-01   -.92250    
  23  Prefactor     .82673        .14177        .44066E-01   -.98750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73493e-06
Minuit parameter uncertainties:
  1  0.00681865
  2  0.00146889
  3  34.7984
  4  0.00538523
  5  15.1493
  6  3.49436e-05
  7  0.00122943
  8  0.00116193
  9  0.00580173
  10  46.3754
  11  0.00255357
  12  3.4701
  13  0.00565578
  14  0.00105203
  15  41.8698
  16  69.0949
  17  0.000989082
  18  25.4362
  19  0.00264339
  20  0.00730496
  21  0.00136879
  22  0.140269
  23  0.141828
Done.

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

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  2.076e-07  2.554e-03  0.000e+00  1.000e+06 ( 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:  8.267e-01  1.418e-01  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:  1.023e+00  1.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.573 70.041
Photon Flux Upper Limit: 2.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/133826/likelihoodResults_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.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): 102
logL (Free Index) = 7050.85216315
delta logL = -0.0607856812831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7050.79137812
delta logL = -6.54386894894e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13829E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .79963       1.0000          .0000       10.000    
     3 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82674       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.

 FCN=   7050.791     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      219 TOTAL
                     EDM=   .42E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .25054E-01    .42118E-03** at limit **
   2  Index         1.9073        5.8514        .43712        .26008E-10
   3  Normalizat    1.0234        .18658E-03    .42901E-01    .25234E-03
   4  Prefactor     .82673        .19489E-03    .44064E-01    .41726E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.90729
  Normalizat = 1.02343
  Prefactor  = 0.826732
 **********
 **   18 **HESSE 
 **********

 FCN=   7050.791     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      248 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .84554E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9073        5.6928        .50000       -.66689    
   3  Normalizat    1.0234        .34255E-03    .20878E-03   -.92250    
   4  Prefactor     .82673        .35773E-03    .23884E-03   -.98750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24534e-13
Minuit parameter uncertainties:
  1  5.06007e-06
  2  8542.79
  3  0.000342548
  4  0.000357731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/133826': 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) = 7050.79137745
delta logL = 1.31094566314e-08

Extracting fit parameters...

4FGL J1330.2+7002
   Spectrum: PowerLaw
379    Prefactor:  5.551e-11  5.060e-06  0.000e+00  1.000e+06 ( 1.000e-14)
380        Index:  1.907e+00  8.543e+03  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:  8.267e-01  3.577e-04  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:  1.023e+00  3.425e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.573 70.041

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/133826/cmap_HighResolution_683078401_683337601_4FGL_J1330.2+7002_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-03', job_status='DONE', photon_flux_upper_limit='2.41e-08', time_completed='2022-09-16 17:49:03.860481', job_id='133826', GAL2='0.83', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1663375743.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.31e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1712' AND source_name='4FGL J1330.2+7002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:49:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 133826: <4FGL_J1330.2+7002_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1330.2+7002_daily_bin1712> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 17:35:21 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:36:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:36:08 2022
Terminated at Fri Sep 16 17:49:04 2022
Results reported at Fri Sep 16 17:49:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.2+7002_daily_bin1712 202.573 70.0406 683078401 683337601 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 :                                   747.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             338.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            823 sec.

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

