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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin346
RA = 202.693, Dec = 29.5536
tmin = 329011201, tmax = 329270401
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='708666', job_status='RUN', time_executed='2021-09-07 23:59:49.954144', time_epoch_executed='1631084389.95' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708666

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708666/ft1_4FGL_J1330.7+2933_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708666/ft2_4FGL_J1330.7+2933_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708666/ft1_4FGL_J1330.7+2933_daily_bin346.fits outfile=/scratch/kocevski/708666/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin346.fits ra=202.693 dec=29.5536 rad=12.0 tmin=329011201.0 tmax=329270401.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 3.58
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/708666/ft2_4FGL_J1330.7+2933_daily_bin346.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/708666/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/708666/ft1_filtered_4FGL_J1330.7+2933_daily_bin346.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708666/ft1_filtered_4FGL_J1330.7+2933_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/708666/ft2_4FGL_J1330.7+2933_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/708666/ltcube_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.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/708666/ft2_4FGL_J1330.7+2933_daily_bin346.fits
.....................!
real 15.37
user 15.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708666/ft1_filtered_4FGL_J1330.7+2933_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/708666/ft2_4FGL_J1330.7+2933_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/708666/ltcube_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.fits outfile=/scratch/kocevski/708666/expmap_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.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/708666/ltcube_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.fits
.....................!
real 191.78
user 186.28
sys 4.74

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/708666/ft1_filtered_4FGL_J1330.7+2933_daily_bin346.fits scfile=/scratch/kocevski/708666/ft2_4FGL_J1330.7+2933_daily_bin346.fits outfile=/scratch/kocevski/708666/cmap_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708666/ft1_filtered_4FGL_J1330.7+2933_daily_bin346.fits scfile=/scratch/kocevski/708666/ft2_4FGL_J1330.7+2933_daily_bin346.fits outfile=/scratch/kocevski/708666/cmap_HighResolution_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/708666/ft1_filtered_4FGL_J1330.7+2933_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/708666/ft2_4FGL_J1330.7+2933_daily_bin346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708666/Model_4FGL_J1330.7+2933_daily_bin346.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/708666/ft1_filtered_4FGL_J1330.7+2933_daily_bin346.fits.....................!
real 45.91
user 44.51
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.699       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0464       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9827       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5131       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.536       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7217       1.0000         .10000E-03   10000.    
    15 'norm      '    .11289E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    105.38       1.0000         .10000E-03   10000.    
    17 'norm      '    20.015       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1724       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    80.827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11549E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.094       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1474       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81906       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1912       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=   5410.569     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3058 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.696        17.251        .17187E-06    .69710E-05
   2  Prefactor     .10000E-03    78.289       -.21721E-05** at limit **
   3  Prefactor     .10000E-03    4.3914        .49223E-07** at limit **
   4  Prefactor     .10000E-03    1.8447        .17597E-07** at limit **
   5  norm          2.0417        4.6653       -.16917E-06   -.23176E-03
   6  Prefactor     .10000E-03    23.419       -.45944E-06** at limit **
   7  norm          3.6500        3.6299        .51383E-06    .27475E-03
   8  Prefactor     .10000E-03    4.2846        .28315E-06** at limit **
   9  norm          3.9824        3.8667        .55060E-06   -.16274E-02
  10  norm          4.5131        3.6439        .74595E-06   -.22402E-02
  11  norm          .10000E-03    4.1757       -.62174E-06** at limit **
  12  norm          12.536        16.285       -.39415E-07   -.80495E-05
  13  Prefactor     .10000E-03    1.1387       -.60793E-07** at limit **
  14  Prefactor     4.7237        13.940       -.14500E-05   -.75346E-04
  15  norm          .10000E-03    8.4680       -.19983E-06** at limit **
  16  Prefactor     105.38        68.083        .10104E-05    .58883E-04
  17  norm          20.015        11.877       -.11885E-06   -.73729E-04
  18  Prefactor     2.1516        31.409        .85312E-05    .16206E-03
  19  Prefactor     .10000E-03    7.0325        .16092E-05** at limit **
  20  Prefactor     80.818        72.137       -.36876E-05   -.16766E-03
  21  Prefactor     .10000E-03    2.9144       -.89847E-06** at limit **
  22  Prefactor     26.093        19.238       -.19872E-06   -.63123E-04
  23  norm          4.1472        4.5157        .57111E-07   -.82920E-04
  24  Prefactor     .10000E-03    1.0492        .37675E-08** at limit **
  25  Normalizat    .81913        .18268       -.47700E-06    .78432E-04
  26  Prefactor     1.1911        .19713       -.24981E-06    .73612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6963
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.04169
  Prefactor  = 0.0001
  norm       = 3.65003
  Prefactor  = 0.0001
  norm       = 3.98236
  norm       = 4.51312
  norm       = 0.0001
  norm       = 12.5362
  Prefactor  = 0.0001
  Prefactor  = 4.72373
  norm       = 0.0001
  Prefactor  = 105.381
  norm       = 20.0149
  Prefactor  = 2.15155
  Prefactor  = 0.0001
  Prefactor  = 80.818
  Prefactor  = 0.000100002
  Prefactor  = 26.0929
  norm       = 4.14719
  Prefactor  = 0.0001
  Normalizat = 0.819128
  Prefactor  = 1.19112
 **********
 **   18 **HESSE 
 **********

 FCN=   5410.569     FROM HESSE     STATUS=OK           458 CALLS     3516 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.696        17.243        .12249E-03   -1.5054    
   2  Prefactor     .10000E-03    78.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.5564        .30102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8471        .97548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0417        4.6202        .22321E-03   -1.5422    
   6  Prefactor     .10000E-03    23.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6500        3.6250        .13483E-03   -1.5326    
   8  Prefactor     .10000E-03    4.2911        .14876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9824        4.1816        .74605E-03   -1.5309    
  10  norm          4.5131        4.2661        .66951E-03   -1.5283    
  11  norm          .10000E-03    4.2287        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.536        16.279        .11313E-03   -1.5000    
  13  Prefactor     .10000E-03    1.1424        .76562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7237        13.919        .18518E-03   -1.5273    
  15  norm          .10000E-03    8.5362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     105.38        68.215        .39173E-04   -1.3651    
  17  norm          20.015        11.857        .89526E-04   -1.4813    
  18  Prefactor     2.1516        32.801        .27938E-03   -1.5415    
  19  Prefactor     .10000E-03    7.0786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     80.818        73.916        .44674E-04   -1.3908    
  21  Prefactor     .10000E-03    6.7922        .23609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.093        19.274        .78422E-04   -1.4686    
  23  norm          4.1472        4.5124        .15828E-03   -1.5301    
  24  Prefactor     .10000E-03    1.0529        .73577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81913        .21308        .25617E-03   -.99363    
  26  Prefactor     1.1911        .23113        .24815E-03   -.86605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96601e-09
Minuit parameter uncertainties:
  1  17.2514
  2  0.000536321
  3  3.00552e-07
  4  9.2497e-07
  5  4.62104
  6  4.46339e-05
  7  3.62518
  8  1.80896e-05
  9  4.18188
  10  4.26636
  11  2.92232e-05
  12  16.285
  13  7.35939e-07
  14  13.9289
  15  5.96603e-06
  16  68.266
  17  11.8586
  18  16.8121
  19  0.000107131
  20  74.0005
  21  0.00024763
  22  19.2791
  23  4.51276
  24  4.07931e-07
  25  0.213294
  26  0.23133
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.152e+00  1.681e+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:  1.191e+00  2.313e-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:  8.191e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/708666/likelihoodResults_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.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) = 5410.51992796
delta logL = 0.0488355234856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5410.51858108
delta logL = 0.0501824067651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1951       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1748       1.0000          .0000       10.000    
     3 'Normalizat'    .80509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1996       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=   5410.519     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      235 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1999        229.43        .69437E-02    .71321E-03
   2  Index         3.1702        6.5851        .21734        .80325E-04
   3  Normalizat    .80538        .33497E-01    .43677E-01    .83220E-04
   4  Prefactor     1.1992        .37964E-01    .55955E-01    .35078E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19986
  Index      = 3.17017
  Normalizat = 0.805375
  Prefactor  = 1.19919
 **********
 **   18 **HESSE 
 **********

 FCN=   5410.519     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1999        34.291        .27775E-03   -1.5411    
   2  Index         3.1702        3.4902        .12028E-01   -.37467    
   3  Normalizat    .80538        .20596        .25815E-03   -.99870    
   4  Prefactor     1.1992        .23123        .24742E-03   -.86356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6627e-10
Minuit parameter uncertainties:
  1  17.3821
  2  3.94674
  3  0.206156
  4  0.231423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708666': 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) = 5410.51857608
delta logL = 0.0501874030642

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.200e+00  1.738e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.170e+00  3.947e+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:  1.199e+00  2.314e-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:  8.054e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/708666/cmap_HighResolution_329011201_329270401_4FGL_J1330.7+2933_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.33e-03', job_status='DONE', photon_flux_upper_limit='9.46e-08', time_completed='2021-09-08 00:10:39.268241', job_id='708666', GAL2='1.20', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1631085039.27', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='5.02e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='346' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:10:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 708666: <4FGL_J1330.7+2933_daily_bin346> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin346> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 23:55:22 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:55:44 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:55:44 2021
Terminated at Wed Sep  8 00:10:40 2021
Results reported at Wed Sep  8 00:10:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin346 202.693 29.5536 329011201 329270401 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 :                                   647.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            918 sec.

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

