/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 6 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin217
RA = 202.693, Dec = 29.5536
tmin = 295574401, tmax = 295833601
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='707291', job_status='RUN', time_executed='2021-09-07 23:50:49.191769', time_epoch_executed='1631083849.19' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707291

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707291/ft1_4FGL_J1330.7+2933_daily_bin217.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707291/ft1_4FGL_J1330.7+2933_daily_bin217.fits outfile=/scratch/kocevski/707291/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin217.fits ra=202.693 dec=29.5536 rad=12.0 tmin=295574401.0 tmax=295833601.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 2.40
user 2.17
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits" evtable="EVENTS" scfile=/scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits sctable="SC_DATA" outfile=/scratch/kocevski/707291/ltcube_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.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/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits
.....................!
real 17.66
user 17.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits sctable="SC_DATA" expcube=/scratch/kocevski/707291/ltcube_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.fits outfile=/scratch/kocevski/707291/expmap_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.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/707291/ltcube_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.fits
.....................!
real 193.33
user 187.94
sys 4.82

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/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits scfile=/scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits outfile=/scratch/kocevski/707291/cmap_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits scfile=/scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits outfile=/scratch/kocevski/707291/cmap_HighResolution_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits evtable="EVENTS" scfile=/scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707291/Model_4FGL_J1330.7+2933_daily_bin217.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/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits.....................!
real 47.06
user 45.68
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits', '/scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits', expMap='/scratch/kocevski/707291/expmap_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.fits', expCube='/scratch/kocevski/707291/ltcube_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707291/Model_4FGL_J1330.7+2933_daily_bin217.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/707291/ft1_filtered_4FGL_J1330.7+2933_daily_bin217.fits
Spacecraft file(s): /scratch/kocevski/707291/ft2_4FGL_J1330.7+2933_daily_bin217.fits
Exposure map: /scratch/kocevski/707291/expmap_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.fits
Exposure cube: /scratch/kocevski/707291/ltcube_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707291/Model_4FGL_J1330.7+2933_daily_bin217.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) = 5617.47142493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6276       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5089       1.0000         .10000E-03   10000.    
     5 'norm      '    4.6901       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38370E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0414       1.0000         .10000E-03   10000.    
    10 'norm      '    8.2754       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .80516E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12393E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.4612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    31.234       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2299       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1533       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94742       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1170       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=   5617.384     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3194 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2179        .10856E-06** at limit **
   2  Prefactor     29.833        61.444        .20231E-05   -.11333E-03
   3  Prefactor     1.6275        5.0626       -.57474E-05   -.15073E-03
   4  Prefactor     6.5070        6.5519        .24229E-05    .15485E-05
   5  norm          4.6861        4.7464       -.76431E-06    .20273E-04
   6  Prefactor     .10000E-03    27.850        .44506E-07** at limit **
   7  norm          .10000E-03    1.2809        .60290E-07** at limit **
   8  Prefactor     .10001E-03    69.873        .72529E-05** at limit **
   9  norm          3.0402        3.9476        .63280E-06    .90953E-04
  10  norm          8.2751        3.6869        .13361E-06    .54863E-03
  11  norm          .10000E-03    6.6150       -.24887E-06** at limit **
  12  norm          .10000E-03    120.65        .35389E-04** at limit **
  13  Prefactor     .10000E-03    2.3913       -.83301E-06** at limit **
  14  Prefactor     .10001E-03    35.326       -.24541E-05** at limit **
  15  norm          8.4574        6.9304       -.63768E-06    .40548E-03
  16  Prefactor     .10000E-03    26.215       -.80064E-06** at limit **
  17  norm          31.236        11.507       -.85520E-07    .23807E-03
  18  Prefactor     .10000E-03    4.4001       -.13453E-07** at limit **
  19  Prefactor     .10000E-03    12.201        .13263E-06** at limit **
  20  Prefactor     .10000E-03    23.315        .32636E-06** at limit **
  21  Prefactor     3.2301        3.2480       -.54733E-06    .64075E-04
  22  Prefactor     .10000E-03    40.437        .10137E-05** at limit **
  23  norm          2.1534        3.7052       -.17323E-05   -.26161E-04
  24  Prefactor     .10000E-03    1.4548        .25955E-07** at limit **
  25  Normalizat    .94731        .16878        .13248E-05    .29994E-03
  26  Prefactor     1.1171        .19496        .83442E-06    .25706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.8325
  Prefactor  = 1.62755
  Prefactor  = 6.50701
  norm       = 4.68607
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100011
  norm       = 3.04017
  norm       = 8.27512
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 8.4574
  Prefactor  = 0.000100001
  norm       = 31.2364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.2301
  Prefactor  = 0.0001
  norm       = 2.15344
  Prefactor  = 0.0001
  Normalizat = 0.947307
  Prefactor  = 1.11707
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.384     FROM HESSE     STATUS=OK           454 CALLS     3648 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.833        61.253        .73580E-04   -1.4615    
   3  Prefactor     1.6275        5.0712        .29083E-03   -1.5453    
   4  Prefactor     6.5070        6.4852        .15731E-03   -1.5198    
   5  norm          4.6861        4.7307        .15330E-03   -1.5275    
   6  Prefactor     .10000E-03    28.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2901        .82825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    69.401        .39091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0402        3.9204        .16319E-03   -1.5359    
  10  norm          8.2751        3.6447        .45502E-03   -1.5133    
  11  norm          .10000E-03    6.6630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    115.51        .50218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9495        .21971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    36.220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.4574        6.8946        .13781E-03   -1.5126    
  16  Prefactor     .10000E-03    26.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.236        11.499        .71694E-04   -1.4590    
  18  Prefactor     .10000E-03    4.4034        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    23.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2301        3.2447        .13017E-03   -1.5349    
  22  Prefactor     .10000E-03    41.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1534        3.6912        .18406E-03   -1.5414    
  24  Prefactor     .10000E-03    1.4655        .88266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .94731        .19863        .23612E-03   -.94817    
  26  Prefactor     1.1171        .23057        .25874E-03   -.88923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59099e-10
Minuit parameter uncertainties:
  1  3.9363e-05
  2  61.3822
  3  5.07253
  4  6.48594
  5  4.73107
  6  6.01578e-07
  7  4.1448e-06
  8  0.00177112
  9  3.92075
  10  3.64479
  11  2.98617e-05
  12  0.00100618
  13  3.55266e-05
  14  0.000878764
  15  6.8952
  16  0.000334338
  17  11.5
  18  4.9401e-06
  19  1.3087e-05
  20  0.000218092
  21  3.2449
  22  0.000104843
  23  3.69163
  24  1.66317e-06
  25  0.198781
  26  0.230773
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.940e-06  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:  1.117e+00  2.308e-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:  9.473e-01  1.988e-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: 4.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707291/likelihoodResults_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.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) = 5617.3847377
delta logL = -0.00107747063703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5617.38366001
delta logL = 2.25747498916e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4257       1.0000          .0000       10.000    
     3 'Normalizat'    .94732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1171       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=   5617.384     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      261 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.937        .15682E-01** at limit **
   2  Index         1.7567        5.8443        .50000       -.33083E-07
   3  Normalizat    .94731        .82894E-02    .23612E-03   -.13847E-03
   4  Prefactor     1.1171        .98208E-02    .25874E-03   -.11297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7567
  Normalizat = 0.947306
  Prefactor  = 1.11707
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.384     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.54        .18581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7567        8.5788        .50000       -.70582    
   3  Normalizat    .94731        .25887E-01    .94448E-05   -.94817    
   4  Prefactor     1.1171        .30670E-01    .10350E-04   -.88923    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69658e-10
Minuit parameter uncertainties:
  1  6.88697e-05
  2  873.45
  3  0.0258874
  4  0.0306702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707291': 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.38365663
delta logL = 3.60114154319e-06

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  6.887e-05  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.757e+00  8.734e+02  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:  1.117e+00  3.067e-02  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:  9.473e-01  2.589e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

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/707291/cmap_HighResolution_295574401_295833601_4FGL_J1330.7+2933_daily_bin217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2021-09-08 00:02:21.333993', job_id='707291', GAL2='1.12', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631084541.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.60e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='217' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 707291: <4FGL_J1330.7+2933_daily_bin217> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin217> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 23:50:18 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:50:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:50:34 2021
Terminated at Wed Sep  8 00:02:22 2021
Results reported at Wed Sep  8 00:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin217 202.693 29.5536 295574401 295833601 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 :                                   688.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            724 sec.

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

