/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 136 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 = 7479
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin519
RA = 202.693, Dec = 29.5536
tmin = 373852801, tmax = 374112001
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='718765', job_status='RUN', time_executed='2021-09-08 00:35:02.559504', time_epoch_executed='1631086502.56' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718765/ft1_4FGL_J1330.7+2933_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718765/ft2_4FGL_J1330.7+2933_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718765/ft1_4FGL_J1330.7+2933_daily_bin519.fits outfile=/scratch/kocevski/718765/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin519.fits ra=202.693 dec=29.5536 rad=12.0 tmin=373852801.0 tmax=374112001.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.52
user 4.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718765/ft1_filtered_4FGL_J1330.7+2933_daily_bin519.fits" evtable="EVENTS" scfile=/scratch/kocevski/718765/ft2_4FGL_J1330.7+2933_daily_bin519.fits sctable="SC_DATA" outfile=/scratch/kocevski/718765/ltcube_373852801_374112001_4FGL_J1330.7+2933_daily_bin519.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/718765/ft2_4FGL_J1330.7+2933_daily_bin519.fits
.....................!
real 14.39
user 13.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718765/ft1_filtered_4FGL_J1330.7+2933_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/718765/ft2_4FGL_J1330.7+2933_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/718765/ltcube_373852801_374112001_4FGL_J1330.7+2933_daily_bin519.fits outfile=/scratch/kocevski/718765/expmap_373852801_374112001_4FGL_J1330.7+2933_daily_bin519.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/718765/ltcube_373852801_374112001_4FGL_J1330.7+2933_daily_bin519.fits
.....................!
real 192.12
user 186.66
sys 4.86

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/718765/ft1_filtered_4FGL_J1330.7+2933_daily_bin519.fits scfile=/scratch/kocevski/718765/ft2_4FGL_J1330.7+2933_daily_bin519.fits outfile=/scratch/kocevski/718765/cmap_373852801_374112001_4FGL_J1330.7+2933_daily_bin519.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 1.00
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718765/ft1_filtered_4FGL_J1330.7+2933_daily_bin519.fits scfile=/scratch/kocevski/718765/ft2_4FGL_J1330.7+2933_daily_bin519.fits outfile=/scratch/kocevski/718765/cmap_HighResolution_373852801_374112001_4FGL_J1330.7+2933_daily_bin519.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718765/ft1_filtered_4FGL_J1330.7+2933_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/718765/ft2_4FGL_J1330.7+2933_daily_bin519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718765/Model_4FGL_J1330.7+2933_daily_bin519.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/718765/ft1_filtered_4FGL_J1330.7+2933_daily_bin519.fits.....................!
real 50.93
user 49.51
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.782       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8773       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18883E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11572E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57664E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .20424E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.5853       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.256       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11775E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    31.361       1.0000         .10000E-03   10000.    
    18 'Prefactor '    131.53       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.028       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.058       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .67277       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0099       1.0000         .10000E-03   10000.    
    23 'norm      '    6.8676       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1756       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86487       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=   6086.223     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     3048 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.783        1.0074        .11508E-07    .37046E-04
   2  Prefactor     .10003E-03    4.6617       -.58338E-06** at limit **
   3  Prefactor     8.7633        1.0719       -.30058E-06    .63498E-03
   4  Prefactor     2.8799        1.1420        .13074E-06   -.81397E-04
   5  norm          .10000E-03    1.9636       -.20717E-06** at limit **
   6  Prefactor     .10298E-03    174.38        .40939E-05** at limit **
   7  norm          .10000E-03    10.359       -.10715E-06** at limit **
   8  Prefactor     .13833E-03    17.146        .12019E-04** at limit **
   9  norm          .10024E-03    7.1745        .17411E-05** at limit **
  10  norm          8.5858        3.8693        .16401E-07   -.16868E-03
  11  norm          .10000E-03    2.8205       -.38770E-07** at limit **
  12  norm          23.262        1.5468       -.43455E-06    .12381E-02
  13  Prefactor     .10000E-03    1.2544        .26125E-07** at limit **
  14  Prefactor     .10000E-03    6.1505        .89365E-07** at limit **
  15  norm          .10003E-03    4.6282        .57121E-06** at limit **
  16  Prefactor     .10021E-03    7.1252       -.12488E-05** at limit **
  17  norm          31.377        8.9588       -.23115E-05    .16503E-02
  18  Prefactor     131.55        2.7538       -.10637E-06    .19739E-02
  19  Prefactor     46.029        1.2845       -.31075E-06    .28985E-02
  20  Prefactor     19.036        3.9188       -.11412E-05    .57566E-02
  21  Prefactor     .67357        5.8396        .50962E-05    .64744E-03
  22  Prefactor     5.0106        1.0087        .26584E-07    .71557E-04
  23  norm          6.8673        4.4209       -.51562E-05   -.68435E-02
  24  Prefactor     .10000E-03    .89472        .19593E-06** at limit **
  25  Normalizat    1.1756        .21815       -.11509E-05   -.14401E-03
  26  Prefactor     .86497        .24510        .20207E-05   -.45716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7834
  Prefactor  = 0.00010003
  Prefactor  = 8.76329
  Prefactor  = 2.87992
  norm       = 0.0001
  Prefactor  = 0.00010298
  norm       = 0.000100001
  Prefactor  = 0.000138328
  norm       = 0.000100241
  norm       = 8.58576
  norm       = 0.0001
  norm       = 23.2617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100031
  Prefactor  = 0.000100212
  norm       = 31.3769
  Prefactor  = 131.55
  Prefactor  = 46.0291
  Prefactor  = 19.0363
  Prefactor  = 0.673572
  Prefactor  = 5.01062
  norm       = 6.86733
  Prefactor  = 0.0001
  Normalizat = 1.17562
  Prefactor  = 0.864968
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.223     FROM HESSE     STATUS=OK           542 CALLS     3590 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.783        24.876        .29177E-02   -1.5021    
   2  Prefactor     .10003E-03    16.354        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7633        7.8574        .33858E-02   -1.5116    
   4  Prefactor     2.8799        7.8441        .59904E-02   -1.5369    
   5  norm          .10000E-03    1.9308        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10298E-03    17.258        .10896       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0897        .60165E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13833E-03    18.426        .10542       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10024E-03    3.2458        .45765E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.5858        3.9315        .34202E-02   -1.5122    
  11  norm          .10000E-03    2.8189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.262        24.253        .20765E-02   -1.4743    
  13  Prefactor     .10000E-03    1.2342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10003E-03    15.622        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10021E-03    16.544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          31.377        11.263        .17887E-02   -1.4587    
  18  Prefactor     131.55        29.817        .87774E-03   -1.3409    
  19  Prefactor     46.029        25.225        .14775E-02   -1.4350    
  20  Prefactor     19.036        68.515        .22936E-02   -1.4835    
  21  Prefactor     .67357        3.2843        .44394E-01   -1.5544    
  22  Prefactor     5.0106        14.116        .44915E-02   -1.5260    
  23  norm          6.8673        4.6130        .38274E-02   -1.5184    
  24  Prefactor     .10000E-03    .89155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1756        .19215        .52771E-01   -.87359    
  26  Prefactor     .86497        .20440        .69061E-01   -.97376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19422e-06
Minuit parameter uncertainties:
  1  24.8981
  2  0.00140475
  3  7.85836
  4  7.84692
  5  1.37706e-05
  6  0.0143472
  7  8.44895e-05
  8  0.0531664
  9  0.00176973
  10  3.9316
  11  5.1414e-06
  12  24.2633
  13  3.78404e-06
  14  9.85613e-06
  15  0.00138625
  16  0.00374512
  17  11.2635
  18  29.82
  19  25.2312
  20  68.8006
  21  2.97476
  22  14.1256
  23  4.61324
  24  1.13701e-05
  25  0.192262
  26  0.204585
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.650e-01  2.046e-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.176e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 47.48
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.82e-07 +/- 6.38e-08
Energy Flux (Fixed Index): 8.68e-05 +/- 1.97e-05

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) = 6086.21560322
delta logL = 0.00692793437611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6086.20128097
delta logL = 0.0212501830201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    124.05       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4983       1.0000          .0000       10.000    
     3 'Normalizat'    1.1664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87307       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=   6086.201     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      268 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     124.06        47.391        .36139E-04   -.91066E-03
   2  Index         2.4983        .25328        .23617E-02   -.74120E-03
   3  Normalizat    1.1662        .22162        .23406E-03    .48474E-04
   4  Prefactor     .87332        .24868        .30427E-03    .13825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 124.056
  Index      = 2.49835
  Normalizat = 1.16617
  Prefactor  = 0.873325
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.201     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     124.06        45.603        .72278E-05   -1.3476    
   2  Index         2.4983        .24362        .94469E-04   -.52398    
   3  Normalizat    1.1662        .22164        .93626E-05   -.87655    
   4  Prefactor     .87332        .24874        .12171E-04   -.97080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00016e-10
Minuit parameter uncertainties:
  1  45.6154
  2  0.243748
  3  0.221814
  4  0.249063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718765': 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) = 6086.20128042
delta logL = 0.0212507296155

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.733e-01  2.491e-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.166e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.85
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.50 +/- 0.24
Photon Flux (Free Index): 2.88e-07 +/- 7.09e-08
Energy Flux (Free Index): 8.39e-05 +/- 2.26e-05

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/718765/cmap_HighResolution_373852801_374112001_4FGL_J1330.7+2933_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.82e-07', energy_flux2='8.39e-05', photon_flux_error='6.38e-08', dlogl='2.13e-02', energy_flux='8.68e-05', photon_flux2='2.88e-07', job_status='DONE', time_completed='2021-09-08 00:45:51.329828', photon_index_error2='0.24', photon_index2='2.50', ts='47.48', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.26e-05', EG='1.18', time_epoch_completed='1631087151.33', return_code='0', job_id='718765', GAL2='0.87', EG2='1.17', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='7.09e-08', ts2='47.85', photon_index='2.45' WHERE bin_id='519' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:45:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 718765: <4FGL_J1330.7+2933_daily_bin519> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin519> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 00:30:39 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:32:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:32:38 2021
Terminated at Wed Sep  8 00:45:52 2021
Results reported at Wed Sep  8 00:45:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin519 202.693 29.5536 373852801 374112001 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 :                                   646.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            913 sec.

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

