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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1775
RA = 202.693, Dec = 29.5536
tmin = 699408001, tmax = 699667201
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='783048', job_status='RUN', time_executed='2023-03-05 03:16:29.968370', time_epoch_executed='1678014989.97' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783048/ft1_4FGL_J1330.7+2933_daily_bin1775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783048/ft1_4FGL_J1330.7+2933_daily_bin1775.fits outfile=/scratch/kocevski/783048/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1775.fits ra=202.693 dec=29.5536 rad=12.0 tmin=699408001.0 tmax=699667201.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.72
user 4.46
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.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/783048/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1775.fits evtable="EVENTS" outfile="/scratch/kocevski/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.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.53
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 512

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits" evtable="EVENTS" scfile=/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits sctable="SC_DATA" outfile=/scratch/kocevski/783048/ltcube_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.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/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits
.....................!
real 16.86
user 16.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits sctable="SC_DATA" expcube=/scratch/kocevski/783048/ltcube_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.fits outfile=/scratch/kocevski/783048/expmap_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.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/783048/ltcube_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.fits
.....................!
real 191.63
user 185.88
sys 5.01

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/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits scfile=/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits outfile=/scratch/kocevski/783048/cmap_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits scfile=/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits outfile=/scratch/kocevski/783048/cmap_HighResolution_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783048/Model_4FGL_J1330.7+2933_daily_bin1775.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/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits.....................!
real 47.43
user 45.77
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits', '/scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits', expMap='/scratch/kocevski/783048/expmap_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.fits', expCube='/scratch/kocevski/783048/ltcube_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/783048/Model_4FGL_J1330.7+2933_daily_bin1775.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  0.000e+00  1.000e+06 ( 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/783048/ft1_filtered_4FGL_J1330.7+2933_daily_bin1775.fits
Spacecraft file(s): /scratch/kocevski/783048/ft2_4FGL_J1330.7+2933_daily_bin1775.fits
Exposure map: /scratch/kocevski/783048/expmap_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.fits
Exposure cube: /scratch/kocevski/783048/ltcube_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/783048/Model_4FGL_J1330.7+2933_daily_bin1775.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) = 5618.1114479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18488E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    10.268       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.7687       1.0000          .0000       .10000E+07
     4 'norm      '    4.5128       1.0000          .0000       .10000E+07
     5 'Prefactor '    25.162       1.0000          .0000       .10000E+07
     6 'norm      '    .66791E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .62321E-03   1.0000          .0000       .10000E+07
     8 'norm      '    1.3886       1.0000          .0000       .10000E+07
     9 'norm      '    7.9907       1.0000          .0000       .10000E+07
    10 'norm      '    21.019       1.0000          .0000       .10000E+07
    11 'norm      '    .12651E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .38158E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    31.298       1.0000          .0000       .10000E+07
    14 'norm      '    27.522       1.0000          .0000       .10000E+07
    15 'Prefactor '    .19000E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .18791E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16524E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.5461       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.1743       1.0000          .0000       .10000E+07
    20 'Prefactor '    15.591       1.0000          .0000       .10000E+07
    21 'norm      '    2.6033       1.0000          .0000       .10000E+07
    22 'Prefactor '    32.419       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0615       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79279       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5618.086     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     2008 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45353E-07    7.3975       -.82652E-06** at limit **
   2  Prefactor     10.296        8.0121       -.15144E-06    .24319E-03
   3  Prefactor     2.7563        3.6649       -.35153E-06    .10650E-02
   4  norm          4.4721        5.9096       -.55888E-06   -.20721E-03
   5  Prefactor     26.134        33.454        .16372E-05   -.22168E-01
   6  norm          .44409E-09    3.5978       -.13249E-05** at limit **
   7  Prefactor     .11308E-06    8.8909        .24401E-05** at limit **
   8  norm          1.3880        5.8655       -.75920E-06    .47435E-03
   9  norm          7.8312        5.5772       -.87563E-07    .57285E-02
  10  norm          21.205        4.6914        .32599E-06   -.14443E-01
  11  norm          .45414E-05    14.316        .17290E-05** at limit **
  12  Prefactor     .17208E-07    6.9055        .78420E-06** at limit **
  13  Prefactor     31.423        3.6320        .17183E-06   -.23304E-01
  14  norm          27.470        9.6723        .89918E-06    .32498E-01
  15  Prefactor     .43135E-05    12.360        .50270E-06** at limit **
  16  norm          .22204E-09    4.1637        .76255E-06** at limit **
  17  Prefactor     .12634E-06    12.685       -.23402E-06** at limit **
  18  Prefactor     1.2584        1.9316        .65155E-06   -.20438E-02
  19  Prefactor     2.1769        3.0858        .34008E-06    .10552E-02
  20  Prefactor     15.592        1.1051        .19068E-07   -.39364E-02
  21  norm          2.6049        2.7208       -.14343E-06    .38438E-03
  22  Prefactor     32.378        7.0998       -.14457E-06    .21353E-02
  23  Normalizat    1.0615        .20684        .89297E-05    .56940E-04
  24  Prefactor     .79294        .22548       -.78140E-05    .31363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.53526e-08
  Prefactor  = 10.2964
  Prefactor  = 2.75627
  norm       = 4.47206
  Prefactor  = 26.1335
  norm       = 4.44089e-10
  Prefactor  = 1.13076e-07
  norm       = 1.38804
  norm       = 7.83119
  norm       = 21.2051
  norm       = 4.54137e-06
  Prefactor  = 1.72085e-08
  Prefactor  = 31.4227
  norm       = 27.4702
  Prefactor  = 4.31349e-06
  norm       = 2.22045e-10
  Prefactor  = 1.26343e-07
  Prefactor  = 1.25841
  Prefactor  = 2.17687
  Prefactor  = 15.5923
  norm       = 2.60487
  Prefactor  = 32.3782
  Normalizat = 1.06147
  Prefactor  = 0.792942
 **********
 **   18 **HESSE 
 **********

 FCN=   5618.086     FROM HESSE     STATUS=OK           451 CALLS     2459 TOTAL
                     EDM=   .56E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45353E-07    7.5062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.296        8.0233        .31244E-03   -1.5644    
   3  Prefactor     2.7563        3.6825        .61139E-03   -1.5675    
   4  norm          4.4721        6.0555        .47369E-03   -1.5666    
   5  Prefactor     26.134        35.016        .19940E-03   -1.5606    
   6  norm          .44409E-09    3.5681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11308E-06    9.1689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3880        6.0967        .92215E-03   -1.5684    
   9  norm          7.8312        10.193        .35446E-03   -1.5652    
  10  norm          21.205        16.582        .21818E-03   -1.5616    
  11  norm          .45414E-05    24.639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17208E-07    6.8684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.423        18.237        .17877E-03   -1.5596    
  14  norm          27.470        9.7068        .19065E-03   -1.5603    
  15  Prefactor     .43135E-05    22.404        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .22204E-09    4.1717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12634E-06    13.292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2584        122.53        .85668E-03   -1.5686    
  19  Prefactor     2.1769        3.1063        .69800E-03   -1.5678    
  20  Prefactor     15.592        16.879        .25339E-03   -1.5629    
  21  norm          2.6049        2.7132        .63203E-03   -1.5676    
  22  Prefactor     32.378        7.1100        .17566E-03   -1.5594    
  23  Normalizat    1.0615        .18464        .39845E-01   -.90999    
  24  Prefactor     .79294        .19724        .67849E-01   -.99989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59401e-07
Minuit parameter uncertainties:
  1  0.00116659
  2  8.02333
  3  3.6825
  4  6.0555
  5  35.0162
  6  8.12183e-05
  7  0.00203632
  8  5.81808
  9  10.1929
  10  16.5816
  11  0.0211563
  12  0.000687538
  13  18.2369
  14  9.70685
  15  0.0196612
  16  6.10006e-05
  17  0.00259186
  18  24.8351
  19  3.10627
  20  16.8792
  21  2.71315
  22  7.11001
  23  0.184751
  24  0.197415
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.263e-07  2.592e-03  0.000e+00  1.000e+06 ( 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:  7.929e-01  1.974e-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.061e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 8.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/783048/likelihoodResults_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5618.12260602
delta logL = -0.0366395852388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5618.08596721
delta logL = -7.72042767494e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12656E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.9644       1.0000          .0000       10.000    
     3 'Normalizat'    1.0616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79276       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.

 FCN=   5617.546     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      332 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17441E-03    .27436E-02    .25043E-04** at limit **
   2  Index         8.1575        2.4437        .19839        .63718E-04
   3  Normalizat    1.0013        .33450E-01    .39840E-01    .26814E-03
   4  Prefactor     .83812        .37701E-01    .66210E-01    .25613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00017441
  Index      = 8.15749
  Normalizat = 1.00129
  Prefactor  = 0.838125
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.546     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      365 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17441E-03    .10129E-01    .10698E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1575        8.7630        .69645E-02    .68348    
   3  Normalizat    1.0013        .14355        .24103E-03   -.92987    
   4  Prefactor     .83812        .15911        .29289E-03   -.98338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.54008e-06
Minuit parameter uncertainties:
  1  0.00265821
  2  6.77012
  3  0.143606
  4  0.159194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783048': 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) = 5617.5458074
delta logL = 0.540159038459

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.744e-04  2.658e-03  0.000e+00  1.000e+06 ( 1.000e-13)
306        Index:  8.157e+00  6.770e+00  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.381e-01  1.592e-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.001e+00  1.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 202.693 29.554
Photon Index (Free Index): 8.16 +/- 6.77
Photon Flux (Free Index): 4.95e-08 +/- 5.06e-08
Energy Flux (Free Index): 5.72e-06 +/- 6.18e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/783048/cmap_HighResolution_699408001_699667201_4FGL_J1330.7+2933_daily_bin1775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', comment='SUCCESS', energy_flux2='5.72e-06', dlogl='5.40e-01', photon_flux2='4.95e-08', job_status='DONE', time_completed='2023-03-05 03:26:14.787590', photon_index_error2='6.77', photon_index2='8.16', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='8.15e-08', energy_flux_error2='6.18e-06', EG='1.06', time_epoch_completed='1678015574.79', return_code='0', job_id='783048', GAL2='0.84', EG2='1.00', return_code2='102', photon_flux_error2='5.06e-08', ts2='1.16', photon_index='2.45' WHERE bin_id='1775' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar  5 03:26:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 783048: <4FGL_J1330.7+2933_daily_bin1775> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1775> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Mar  5 03:10:37 2023
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar  5 03:16:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar  5 03:16:13 2023
Terminated at Sun Mar  5 03:26:15 2023
Results reported at Sun Mar  5 03:26:15 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1775 202.693 29.5536 699408001 699667201 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 :                                   586.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            938 sec.

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

