/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 114 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 = 7630
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin97
RA = 202.693, Dec = 29.5536
tmin = 264470401, tmax = 264729601
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='705261', job_status='RUN', time_executed='2021-09-07 23:48:03.769515', time_epoch_executed='1631083683.77' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='97'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705261/ft1_4FGL_J1330.7+2933_daily_bin97.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705261/ft2_4FGL_J1330.7+2933_daily_bin97.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705261/ft1_4FGL_J1330.7+2933_daily_bin97.fits outfile=/scratch/kocevski/705261/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin97.fits ra=202.693 dec=29.5536 rad=12.0 tmin=264470401.0 tmax=264729601.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 1.32
user 1.12
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705261/ft1_filtered_4FGL_J1330.7+2933_daily_bin97.fits" evtable="EVENTS" scfile=/scratch/kocevski/705261/ft2_4FGL_J1330.7+2933_daily_bin97.fits sctable="SC_DATA" outfile=/scratch/kocevski/705261/ltcube_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.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/705261/ft2_4FGL_J1330.7+2933_daily_bin97.fits
.....................!
real 15.47
user 15.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705261/ft1_filtered_4FGL_J1330.7+2933_daily_bin97.fits evtable="EVENTS" scfile=/scratch/kocevski/705261/ft2_4FGL_J1330.7+2933_daily_bin97.fits sctable="SC_DATA" expcube=/scratch/kocevski/705261/ltcube_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.fits outfile=/scratch/kocevski/705261/expmap_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.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/705261/ltcube_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.fits
.....................!
real 155.02
user 150.91
sys 3.56

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/705261/ft1_filtered_4FGL_J1330.7+2933_daily_bin97.fits scfile=/scratch/kocevski/705261/ft2_4FGL_J1330.7+2933_daily_bin97.fits outfile=/scratch/kocevski/705261/cmap_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705261/ft1_filtered_4FGL_J1330.7+2933_daily_bin97.fits scfile=/scratch/kocevski/705261/ft2_4FGL_J1330.7+2933_daily_bin97.fits outfile=/scratch/kocevski/705261/cmap_HighResolution_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.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.52
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705261/ft1_filtered_4FGL_J1330.7+2933_daily_bin97.fits evtable="EVENTS" scfile=/scratch/kocevski/705261/ft2_4FGL_J1330.7+2933_daily_bin97.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705261/Model_4FGL_J1330.7+2933_daily_bin97.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/705261/ft1_filtered_4FGL_J1330.7+2933_daily_bin97.fits.....................!
real 50.76
user 49.23
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.849       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6963       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5551       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6542       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7196       1.0000         .10000E-03   10000.    
    11 'norm      '    10.172       1.0000         .10000E-03   10000.    
    12 'norm      '    11.420       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8300       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.237       1.0000         .10000E-03   10000.    
    15 'norm      '    17.358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.182       1.0000         .10000E-03   10000.    
    17 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.849       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.733       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9420       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .82029       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.0592       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97262       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1032       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=   8420.751     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3082 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5443        .76981E-05** at limit **
   2  Prefactor     .10000E-03    19.276        .42576E-06** at limit **
   3  Prefactor     5.8644        5.8239       -.50056E-06   -.10297E-02
   4  Prefactor     .10000E-03    3.6467        .15388E-06** at limit **
   5  norm          .10000E-03    1.3260       -.59422E-08** at limit **
   6  Prefactor     10.848        14.402        .10345E-05   -.16667E-06
   7  norm          6.6963        3.2008        .58577E-06    .12088E-04
   8  Prefactor     4.5555        15.846       -.43038E-05   -.47931E-04
   9  norm          1.6535        3.8518        .27445E-06   -.20285E-04
  10  norm          4.7198        4.7641        .19338E-06   -.45397E-04
  11  norm          10.172        7.8132       -.59913E-07    .12890E-04
  12  norm          11.421        10.103        .16131E-07    .20451E-05
  13  Prefactor     1.8275        .99240        .19303E-06   -.43040E-02
  14  Prefactor     10.242        13.400       -.47646E-05   -.47841E-04
  15  norm          17.360        6.1093       -.18172E-06    .75885E-04
  16  Prefactor     37.185        48.901        .31811E-05    .50052E-05
  17  norm          .10000E-03    6.7799       -.83860E-06** at limit **
  18  Prefactor     14.847        17.401        .31387E-05   -.13443E-05
  19  Prefactor     11.730        22.871        .22969E-05   -.84805E-05
  20  Prefactor     .10000E-03    136.67       -.56754E-05** at limit **
  21  Prefactor     5.9419        4.1368        .21780E-05   -.15273E-04
  22  Prefactor     .10000E-03    8.8666       -.69264E-05** at limit **
  23  norm          .82166        2.4405       -.19100E-06   -.21808E-03
  24  Prefactor     3.0595        2.5503       -.43308E-07   -.18190E-04
  25  Normalizat    .97270        .15100       -.26144E-06    .10129E-03
  26  Prefactor     1.1030        .16296       -.50630E-06    .95104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.86442
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8477
  norm       = 6.69633
  Prefactor  = 4.55548
  norm       = 1.65351
  norm       = 4.71977
  norm       = 10.1725
  norm       = 11.4206
  Prefactor  = 1.82749
  Prefactor  = 10.2419
  norm       = 17.3599
  Prefactor  = 37.1852
  norm       = 0.0001
  Prefactor  = 14.8474
  Prefactor  = 11.7298
  Prefactor  = 0.0001
  Prefactor  = 5.94194
  Prefactor  = 0.0001
  norm       = 0.821663
  Prefactor  = 3.05953
  Normalizat = 0.9727
  Prefactor  = 1.10304
 **********
 **   18 **HESSE 
 **********

 FCN=   8420.751     FROM HESSE     STATUS=OK           470 CALLS     3552 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8644        5.9488        .82919E-03   -1.5224    
   4  Prefactor     .10000E-03    3.7324        .34136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.3359        .10314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.848        14.388        .12164E-03   -1.5049    
   7  norm          6.6963        3.1990        .10939E-03   -1.5190    
   8  Prefactor     4.5555        15.469        .18862E-03   -1.5281    
   9  norm          1.6535        3.7139        .23546E-03   -1.5451    
  10  norm          4.7198        4.8687        .14241E-03   -1.5273    
  11  norm          10.172        8.0072        .12563E-03   -1.5070    
  12  norm          11.421        10.102        .11855E-03   -1.5032    
  13  Prefactor     1.8275        3.5214        .92344E-03   -1.5438    
  14  Prefactor     10.242        15.111        .12523E-03   -1.5068    
  15  norm          17.360        6.0984        .96133E-04   -1.4874    
  16  Prefactor     37.185        49.982        .65727E-04   -1.4488    
  17  norm          .10000E-03    6.8780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.847        17.332        .10394E-03   -1.4937    
  19  Prefactor     11.730        22.773        .11695E-03   -1.5023    
  20  Prefactor     .10000E-03    137.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.9419        4.1324        .14654E-03   -1.5220    
  22  Prefactor     .10000E-03    8.9074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .82166        2.5625        .23853E-02   -1.5527    
  24  Prefactor     3.0595        2.5423        .12953E-03   -1.5358    
  25  Normalizat    .97270        .17938        .24716E-03   -.93951    
  26  Prefactor     1.1030        .19307        .26572E-03   -.89369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02519e-08
Minuit parameter uncertainties:
  1  1.89337e-05
  2  4.62965e-06
  3  5.94941
  4  3.67578e-05
  5  9.61681e-07
  6  14.3927
  7  3.19907
  8  15.483
  9  3.71444
  10  4.86909
  11  8.00804
  12  10.1039
  13  3.52182
  14  15.1164
  15  6.09862
  16  50.0386
  17  1.47403e-05
  18  17.3377
  19  22.7897
  20  0.000105552
  21  4.13259
  22  1.21587e-05
  23  2.56281
  24  2.54239
  25  0.179487
  26  0.193197
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.485e+01  1.734e+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.103e+00  1.932e-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.727e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.18e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 9.79e-06 +/- 1.14e-05

TS (Fixed Index): 1.05
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705261/likelihoodResults_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.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) = 8420.16057223
delta logL = 0.590825023168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8420.15189531
delta logL = 0.59950194502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5547       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4292       1.0000          .0000       10.000    
     3 'Normalizat'    .93891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1297       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=   8420.152     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      262 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5283        70.751        .47156E-02    .54135E-03
   2  Index         3.4323        3.0780        .11490        .20955E-03
   3  Normalizat    .93876        .48664E-01    .45397E-01    .17394E-04
   4  Prefactor     1.1298        .54155E-01    .59465E-01    .93000E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.52833
  Index      = 3.43225
  Normalizat = 0.938761
  Prefactor  = 1.12985
 **********
 **   18 **HESSE 
 **********

 FCN=   8420.152     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      293 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5283        125.74        .13924E-03   -1.5282    
   2  Index         3.4323        6.6985        .58224E-02   -.31893    
   3  Normalizat    .93876        .16332        .25088E-03   -.95111    
   4  Prefactor     1.1298        .18933        .26297E-03   -.88518    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51116e-09
Minuit parameter uncertainties:
  1  47.8347
  2  5.38009
  3  0.163407
  4  0.189443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705261': 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) = 8420.15189167
delta logL = 0.599505576056

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.528e+00  4.783e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.432e+00  5.380e+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.130e+00  1.894e-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.388e-01  1.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 202.693 29.554
Photon Index (Free Index): 3.43 +/- 5.38
Photon Flux (Free Index): 5.79e-08 +/- 4.43e-08
Energy Flux (Free Index): 9.82e-06 +/- 1.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/705261/cmap_HighResolution_264470401_264729601_4FGL_J1330.7+2933_daily_bin97.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', comment='SUCCESS', photon_flux='3.18e-08', energy_flux2='9.82e-06', photon_flux_error='3.71e-08', dlogl='6.00e-01', energy_flux='9.79e-06', photon_flux2='5.79e-08', job_status='DONE', time_completed='2021-09-07 23:59:33.218529', photon_index_error2='5.38', photon_index2='3.43', ts='1.05', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.81e-05', EG='0.97', time_epoch_completed='1631084373.22', return_code='0', job_id='705261', GAL2='1.13', EG2='0.94', return_code2='102', energy_flux_error='1.14e-05', photon_flux_error2='4.43e-08', ts2='2.33', photon_index='2.45' WHERE bin_id='97' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 23:59:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 705261: <4FGL_J1330.7+2933_daily_bin97> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin97> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 23:45:19 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:46:00 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:46:00 2021
Terminated at Tue Sep  7 23:59:33 2021
Results reported at Tue Sep  7 23:59:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin97 202.693 29.5536 264470401 264729601 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 :                                   687.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            854 sec.

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

