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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1110
RA = 202.693, Dec = 29.5536
tmin = 527040001, tmax = 527299201
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='722914', job_status='RUN', time_executed='2021-09-08 00:45:59.795212', time_epoch_executed='1631087159.8' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722914

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722914/ft1_4FGL_J1330.7+2933_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722914/ft1_4FGL_J1330.7+2933_daily_bin1110.fits outfile=/scratch/kocevski/722914/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1110.fits ra=202.693 dec=29.5536 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.02
user 5.72
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.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/722914/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/722914/ft1_filtered_4FGL_J1330.7+2933_daily_bin1110.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722914/ft1_filtered_4FGL_J1330.7+2933_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/722914/ltcube_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.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/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.fits
.....................!
real 14.89
user 14.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722914/ft1_filtered_4FGL_J1330.7+2933_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/722914/ltcube_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.fits outfile=/scratch/kocevski/722914/expmap_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.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/722914/ltcube_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.fits
.....................!
real 193.55
user 188.63
sys 4.46

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/722914/ft1_filtered_4FGL_J1330.7+2933_daily_bin1110.fits scfile=/scratch/kocevski/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.fits outfile=/scratch/kocevski/722914/cmap_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=202.693 yref=29.5536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722914/ft1_filtered_4FGL_J1330.7+2933_daily_bin1110.fits scfile=/scratch/kocevski/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.fits outfile=/scratch/kocevski/722914/cmap_HighResolution_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722914/ft1_filtered_4FGL_J1330.7+2933_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/722914/ft2_4FGL_J1330.7+2933_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722914/Model_4FGL_J1330.7+2933_daily_bin1110.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/722914/ft1_filtered_4FGL_J1330.7+2933_daily_bin1110.fits......................!
real 38.44
user 37.06
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0426       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8991       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10228E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.674       1.0000         .10000E-03   10000.    
     7 'norm      '    7.8464       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5281       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3551       1.0000         .10000E-03   10000.    
    11 'norm      '    .10484E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59924E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.002       1.0000         .10000E-03   10000.    
    15 'norm      '    29.058       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9808       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.282       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7165       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7070       1.0000         .10000E-03   10000.    
    23 'norm      '    .13697E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3187       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3734       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64643       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=   3835.869     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3124 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0425        48.196       -.78667E-06   -.12831E-03
   2  Prefactor     .10000E-03    58.165        .20115E-04** at limit **
   3  Prefactor     3.8989        7.6240       -.83201E-07   -.13648E-04
   4  Prefactor     .10000E-03    2.6399        .19475E-06** at limit **
   5  norm          .10000E-03    3.5174        .89602E-06** at limit **
   6  Prefactor     14.665        33.585       -.86027E-05   -.80534E-04
   7  norm          7.8466        6.0130       -.15924E-06   -.94873E-05
   8  Prefactor     .10000E-03    9.8209        .65142E-06** at limit **
   9  norm          1.5270        2.9951        .41759E-06   -.11766E-02
  10  norm          5.3533        4.9332        .39994E-06   -.17373E-03
  11  norm          .10000E-03    7.9294       -.15716E-06** at limit **
  12  norm          .10000E-03    41.499       -.18344E-05** at limit **
  13  Prefactor     .10000E-03    3.2027        .73783E-06** at limit **
  14  Prefactor     32.985        22.196       -.13715E-05   -.20804E-03
  15  norm          29.059        12.685       -.58024E-07   -.33020E-05
  16  Prefactor     .10000E-03    32.771       -.99880E-05** at limit **
  17  norm          2.9806        7.2162       -.28584E-06   -.45115E-03
  18  Prefactor     29.285        26.337        .11623E-05   -.45485E-04
  19  Prefactor     .10000E-03    27.827        .69296E-05** at limit **
  20  Prefactor     .10000E-03    75.783       -.14868E-04** at limit **
  21  Prefactor     1.7173        8.7872       -.45458E-06   -.73180E-04
  22  Prefactor     3.7052        25.389       -.10452E-05   -.61738E-05
  23  norm          .10000E-03    5.8576       -.11525E-06** at limit **
  24  Prefactor     5.3204        6.6670       -.38694E-06   -.95429E-05
  25  Normalizat    1.3732        .24010       -.20937E-06   -.12527E-03
  26  Prefactor     .64658        .24160        .12616E-05   -.69394E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04253
  Prefactor  = 0.0001
  Prefactor  = 3.89887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.665
  norm       = 7.84664
  Prefactor  = 0.0001
  norm       = 1.527
  norm       = 5.3533
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.9848
  norm       = 29.0588
  Prefactor  = 0.0001
  norm       = 2.98064
  Prefactor  = 29.2848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71734
  Prefactor  = 3.70522
  norm       = 0.0001
  Prefactor  = 5.32038
  Normalizat = 1.3732
  Prefactor  = 0.646579
 **********
 **   18 **HESSE 
 **********

 FCN=   3835.869     FROM HESSE     STATUS=OK           462 CALLS     3586 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0425        52.321        .14467E-02   -1.5422    
   2  Prefactor     .10000E-03    57.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8989        7.6202        .20433E-03   -1.5313    
   4  Prefactor     .10000E-03    2.6423        .98281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5467        .11356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.665        33.951        .10456E-03   -1.4942    
   7  norm          7.8466        6.0088        .12697E-03   -1.5148    
   8  Prefactor     .10000E-03    9.8408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5270        6.3311        .14824E-02   -1.5461    
  10  norm          5.3533        4.8894        .12139E-03   -1.5245    
  11  norm          .10000E-03    7.9544        .16954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    41.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    90.565        .19974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.985        21.431        .69752E-04   -1.4559    
  15  norm          29.059        12.685        .74323E-04   -1.4629    
  16  Prefactor     .10000E-03    32.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9806        7.5703        .11758E-02   -1.5363    
  18  Prefactor     29.285        26.343        .74039E-04   -1.4625    
  19  Prefactor     .10000E-03    27.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    75.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7173        8.8409        .32073E-03   -1.5446    
  22  Prefactor     3.7052        25.343        .20975E-03   -1.5323    
  23  norm          .10000E-03    15.894        .28920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.3204        6.6379        .16962E-03   -1.5247    
  25  Normalizat    1.3732        .28513        .22416E-03   -.81407    
  26  Prefactor     .64658        .28454        .33002E-03   -1.0566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02491e-09
Minuit parameter uncertainties:
  1  20.6951
  2  0.00010286
  3  7.62212
  4  3.53257e-06
  5  3.896e-05
  6  33.9959
  7  6.00922
  8  1.09409e-05
  9  6.21947
  10  4.8898
  11  5.92504e-06
  12  3.77808e-06
  13  0.000180726
  14  21.4364
  15  12.6862
  16  1.17559e-05
  17  7.57273
  18  26.3535
  19  2.6044e-05
  20  3.96478e-05
  21  7.7946
  22  19.3919
  23  8.78746e-05
  24  6.63879
  25  0.285463
  26  0.28518
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.928e+01  2.635e+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:  6.466e-01  2.852e-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.373e+00  2.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.27e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.74e-05

TS (Fixed Index): 1.93
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722914/likelihoodResults_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.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) = 3835.85425815
delta logL = 0.0148316512154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3835.84370097
delta logL = 0.0253888292596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.920       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6208       1.0000          .0000       10.000    
     3 'Normalizat'    1.3640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65331       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=   3835.844     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      241 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.912        32.339        .80244E-04    .52977E-03
   2  Index         2.6211        .83437        .58729E-02    .20766E-03
   3  Normalizat    1.3640        .27135        .22478E-03   -.90496E-03
   4  Prefactor     .65336        .28099        .32847E-03   -.66464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9115
  Index      = 2.6211
  Normalizat = 1.36395
  Prefactor  = 0.653355
 **********
 **   18 **HESSE 
 **********

 FCN=   3835.844     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.912        30.489        .16049E-04   -1.4709    
   2  Index         2.6211        .78617        .23492E-03   -.49585    
   3  Normalizat    1.3640        .27126        .44956E-04   -.81677    
   4  Prefactor     .65336        .28094        .65694E-04   -1.0538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47246e-09
Minuit parameter uncertainties:
  1  30.5084
  2  0.790423
  3  0.271543
  4  0.281554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722914': 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) = 3835.84370086
delta logL = 0.0253889417327

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.491e+01  3.051e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.621e+00  7.904e-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:  6.534e-01  2.816e-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.364e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.62 +/- 0.79
Photon Flux (Free Index): 7.14e-08 +/- 7.24e-08
Energy Flux (Free Index): 1.84e-05 +/- 1.65e-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/722914/cmap_HighResolution_527040001_527299201_4FGL_J1330.7+2933_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', photon_flux='6.27e-08', energy_flux2='1.84e-05', photon_flux_error='5.64e-08', dlogl='2.54e-02', energy_flux='1.93e-05', photon_flux2='7.14e-08', job_status='DONE', time_completed='2021-09-08 00:55:53.436628', photon_index_error2='0.79', photon_index2='2.62', ts='1.93', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.65e-05', EG='1.37', time_epoch_completed='1631087753.44', return_code='0', job_id='722914', GAL2='0.65', EG2='1.36', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.24e-08', ts2='1.98', photon_index='2.45' WHERE bin_id='1110' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 722914: <4FGL_J1330.7+2933_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1110> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:39 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:44 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:45:44 2021
Terminated at Wed Sep  8 00:55:54 2021
Results reported at Wed Sep  8 00:55:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1110 202.693 29.5536 527040001 527299201 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 :                                   576.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            615 sec.

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

