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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1068
RA = 202.693, Dec = 29.5536
tmin = 516153601, tmax = 516412801
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='722844', job_status='RUN', time_executed='2021-09-08 00:49:08.985921', time_epoch_executed='1631087348.99' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722844

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722844/ft1_4FGL_J1330.7+2933_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722844/ft2_4FGL_J1330.7+2933_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722844/ft1_4FGL_J1330.7+2933_daily_bin1068.fits outfile=/scratch/kocevski/722844/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1068.fits ra=202.693 dec=29.5536 rad=12.0 tmin=516153601.0 tmax=516412801.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.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722844/ft1_filtered_4FGL_J1330.7+2933_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/722844/ft2_4FGL_J1330.7+2933_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/722844/ltcube_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.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/722844/ft2_4FGL_J1330.7+2933_daily_bin1068.fits
.....................!
real 17.28
user 16.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722844/ft1_filtered_4FGL_J1330.7+2933_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/722844/ft2_4FGL_J1330.7+2933_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/722844/ltcube_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.fits outfile=/scratch/kocevski/722844/expmap_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.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/722844/ltcube_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.fits
.....................!
real 194.18
user 189.00
sys 4.66

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/722844/ft1_filtered_4FGL_J1330.7+2933_daily_bin1068.fits scfile=/scratch/kocevski/722844/ft2_4FGL_J1330.7+2933_daily_bin1068.fits outfile=/scratch/kocevski/722844/cmap_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722844/ft1_filtered_4FGL_J1330.7+2933_daily_bin1068.fits scfile=/scratch/kocevski/722844/ft2_4FGL_J1330.7+2933_daily_bin1068.fits outfile=/scratch/kocevski/722844/cmap_HighResolution_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722844/ft1_filtered_4FGL_J1330.7+2933_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/722844/ft2_4FGL_J1330.7+2933_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722844/Model_4FGL_J1330.7+2933_daily_bin1068.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/722844/ft1_filtered_4FGL_J1330.7+2933_daily_bin1068.fits.....................!
real 45.41
user 43.90
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    31.900       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12174E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.426       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8983       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6792       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .74973       1.0000         .10000E-03   10000.    
    11 'norm      '    .10871E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.6934       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29044E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6232       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .75825       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3774       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    78.725       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15523E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.396       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5690       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0755       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81979       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=   5297.144     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3110 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7060        .32767E-06** at limit **
   2  Prefactor     31.874        44.233        .52527E-05   -.30544E-05
   3  Prefactor     .10000E-03    10.494        .58319E-06** at limit **
   4  Prefactor     .10000E-03    1.7197        .64227E-07** at limit **
   5  norm          .10000E-03    4.1020        .70703E-06** at limit **
   6  Prefactor     31.436        24.394       -.23978E-05   -.15363E-03
   7  norm          3.8980        3.1983        .74637E-07   -.70503E-04
   8  Prefactor     1.6777        8.5688        .10323E-05    .40570E-05
   9  norm          .10000E-03    .96687        .40884E-07** at limit **
  10  norm          .74742        2.4626        .16003E-05    .58905E-03
  11  norm          .10000E-03    5.0591       -.54867E-06** at limit **
  12  norm          8.6928        15.089       -.52387E-06   -.32779E-04
  13  Prefactor     .34210E-01    1.1246       -.34719E-06    .36961E-03
  14  Prefactor     .10000E-03    7.3478        .21953E-06** at limit **
  15  norm          1.6180        4.8227        .67985E-05   -.35910E-03
  16  Prefactor     .10000E-03    18.265       -.14018E-06** at limit **
  17  norm          .76091        10.066       -.32353E-07    .27972E-04
  18  Prefactor     6.3755        8.4158        .33862E-06   -.47655E-04
  19  Prefactor     .10000E-03    11.285        .36397E-07** at limit **
  20  Prefactor     78.651        82.607        .99943E-05   -.43293E-08
  21  Prefactor     .10000E-03    2.3474        .34038E-06** at limit **
  22  Prefactor     11.396        12.743        .32992E-06   -.27591E-04
  23  norm          2.5688        4.8984        .42489E-06   -.22278E-04
  24  Prefactor     .10000E-03    1.0960        .44417E-07** at limit **
  25  Normalizat    1.0760        .17096        .37866E-06   -.19880E-03
  26  Prefactor     .81923        .18862       -.36773E-05   -.30677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.8741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.4364
  norm       = 3.89798
  Prefactor  = 1.67774
  norm       = 0.0001
  norm       = 0.747417
  norm       = 0.0001
  norm       = 8.69276
  Prefactor  = 0.0342101
  Prefactor  = 0.0001
  norm       = 1.61805
  Prefactor  = 0.0001
  norm       = 0.760906
  Prefactor  = 6.37547
  Prefactor  = 0.0001
  Prefactor  = 78.6515
  Prefactor  = 0.0001
  Prefactor  = 11.3958
  norm       = 2.56884
  Prefactor  = 0.0001
  Normalizat = 1.07603
  Prefactor  = 0.819232
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.144     FROM HESSE     STATUS=OK           458 CALLS     3568 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7064        .15421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.874        44.131        .70944E-04   -1.4578    
   3  Prefactor     .10000E-03    10.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7239        .93162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.1857        .28664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.436        24.196        .71475E-04   -1.4586    
   7  norm          3.8980        3.1938        .11378E-03   -1.5313    
   8  Prefactor     1.6777        8.5079        .32511E-03   -1.5449    
   9  norm          .10000E-03    .96723        .69881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .74742        2.3619        .18987E-03   -1.5535    
  11  norm          .10000E-03    5.1635        .31628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.6928        15.074        .67975E-03   -1.5118    
  13  Prefactor     .34210E-01    15.497        .14773E-02   -1.5671    
  14  Prefactor     .10000E-03    7.4450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6180        4.8636        .12733E-02   -1.5454    
  16  Prefactor     .10000E-03    18.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .76091        10.195        .41926E-03   -1.5534    
  18  Prefactor     6.3755        8.4256        .79469E-03   -1.5203    
  19  Prefactor     .10000E-03    11.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     78.651        82.964        .22631E-03   -1.3932    
  21  Prefactor     .10000E-03    4.7578        .21494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.396        12.745        .11868E-03   -1.5033    
  23  norm          2.5688        4.8876        .21428E-03   -1.5387    
  24  Prefactor     .10000E-03    1.0993        .74404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0760        .20026        .20374E-03   -.90525    
  26  Prefactor     .81923        .22074        .26580E-03   -.99023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16219e-09
Minuit parameter uncertainties:
  1  3.85846e-06
  2  44.1757
  3  6.20305e-05
  4  4.13021e-06
  5  7.14497e-05
  6  24.2039
  7  3.19394
  8  7.55767
  9  1.5411e-06
  10  2.36216
  11  3.71629e-05
  12  15.0811
  13  1.45449
  14  1.26056e-05
  15  4.86478
  16  1.3401e-05
  17  5.57128
  18  8.42713
  19  2.70677e-05
  20  83.0863
  21  2.5212e-05
  22  12.7481
  23  4.88835
  24  2.29127e-06
  25  0.2004
  26  0.220979
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  6.375e+00  8.427e+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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.192e-01  2.210e-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.076e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.36e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 4.20e-06 +/- 5.56e-06

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

Saving results to:
/scratch/kocevski/722844/likelihoodResults_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.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) = 5292.81872525
delta logL = 4.32516395683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5292.4478592
delta logL = 4.69603000813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62093       1.0000         .10000E-03   10000.    
     2 'Index     '    .21275       1.0000          .0000       10.000    
     3 'Normalizat'    1.0816       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81897       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=   5292.448     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      229 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61629        .91494        .11755E-01   -.14919E-02
   2  Index         .21066        .53340        .31339        .97162E-04
   3  Normalizat    1.0814        .15942        .38805E-01   -.59172E-05
   4  Prefactor     .81919        .18507        .43964E-01   -.12799E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.616289
  Index      = 0.21066
  Normalizat = 1.08139
  Prefactor  = 0.819194
 **********
 **   18 **HESSE 
 **********

 FCN=   5292.448     FROM HESSE     STATUS=OK            35 CALLS      264 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61629        2.1805        .50501E-03   -1.5551    
   2  Index         .21066        1.0871        .16488E-01   -1.2795    
   3  Normalizat    1.0814        .18527        .20304E-03   -.90352    
   4  Prefactor     .81919        .21498        .26576E-03   -.99025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18999e-10
Minuit parameter uncertainties:
  1  2.18077
  2  0.986858
  3  0.185379
  4  0.2152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722844': 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) = 5292.44785645
delta logL = 4.69603275281

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  6.163e-01  2.181e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.107e-01  9.869e-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.192e-01  2.152e-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.081e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.51
Ra Dec: 202.693 29.554
Photon Index (Free Index): 0.21 +/- 0.99
Photon Flux (Free Index): 2.97e-09 +/- 2.99e-09
Energy Flux (Free Index): 1.32e-04 +/- 1.51e-04

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/722844/cmap_HighResolution_516153601_516412801_4FGL_J1330.7+2933_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', comment='SUCCESS', photon_flux='1.36e-08', energy_flux2='1.32e-04', photon_flux_error='1.80e-08', dlogl='4.70e+00', energy_flux='4.20e-06', photon_flux2='2.97e-09', job_status='DONE', time_completed='2021-09-08 01:00:34.800654', photon_index_error2='0.99', photon_index2='0.21', ts='1.12', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='6.81e-08', energy_flux_error2='1.51e-04', EG='1.08', time_epoch_completed='1631088034.8', return_code='0', job_id='722844', GAL2='0.82', EG2='1.08', return_code2='0', energy_flux_error='5.56e-06', photon_flux_error2='2.99e-09', ts2='10.51', photon_index='2.45' WHERE bin_id='1068' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:00:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 722844: <4FGL_J1330.7+2933_daily_bin1068> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1068> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:34 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:36 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:36 2021
Terminated at Wed Sep  8 01:00:35 2021
Results reported at Wed Sep  8 01:00:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1068 202.693 29.5536 516153601 516412801 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 :                                   672.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              6
    Max Threads :                                22
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

