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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1495
RA = 202.693, Dec = 29.5536
tmin = 626832001, tmax = 627091201
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='725709', job_status='RUN', time_executed='2021-09-08 01:00:12.962005', time_epoch_executed='1631088012.96' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725709/ft1_4FGL_J1330.7+2933_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725709/ft2_4FGL_J1330.7+2933_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725709/ft1_4FGL_J1330.7+2933_daily_bin1495.fits outfile=/scratch/kocevski/725709/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1495.fits ra=202.693 dec=29.5536 rad=12.0 tmin=626832001.0 tmax=627091201.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 2.54
user 2.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725709/ft1_filtered_4FGL_J1330.7+2933_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/725709/ft2_4FGL_J1330.7+2933_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/725709/ltcube_626832001_627091201_4FGL_J1330.7+2933_daily_bin1495.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/725709/ft2_4FGL_J1330.7+2933_daily_bin1495.fits
.....................!
real 13.29
user 12.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725709/ft1_filtered_4FGL_J1330.7+2933_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/725709/ft2_4FGL_J1330.7+2933_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/725709/ltcube_626832001_627091201_4FGL_J1330.7+2933_daily_bin1495.fits outfile=/scratch/kocevski/725709/expmap_626832001_627091201_4FGL_J1330.7+2933_daily_bin1495.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/725709/ltcube_626832001_627091201_4FGL_J1330.7+2933_daily_bin1495.fits
.....................!
real 156.76
user 152.09
sys 4.19

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/725709/ft1_filtered_4FGL_J1330.7+2933_daily_bin1495.fits scfile=/scratch/kocevski/725709/ft2_4FGL_J1330.7+2933_daily_bin1495.fits outfile=/scratch/kocevski/725709/cmap_626832001_627091201_4FGL_J1330.7+2933_daily_bin1495.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.71
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725709/ft1_filtered_4FGL_J1330.7+2933_daily_bin1495.fits scfile=/scratch/kocevski/725709/ft2_4FGL_J1330.7+2933_daily_bin1495.fits outfile=/scratch/kocevski/725709/cmap_HighResolution_626832001_627091201_4FGL_J1330.7+2933_daily_bin1495.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725709/ft1_filtered_4FGL_J1330.7+2933_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/725709/ft2_4FGL_J1330.7+2933_daily_bin1495.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725709/Model_4FGL_J1330.7+2933_daily_bin1495.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/725709/ft1_filtered_4FGL_J1330.7+2933_daily_bin1495.fits.....................!
real 61.32
user 59.94
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.914       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6620       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6782       1.0000         .10000E-03   10000.    
     5 'norm      '    11.145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15576E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8056       1.0000         .10000E-03   10000.    
    10 'norm      '    5.3519       1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14592E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.755       1.0000         .10000E-03   10000.    
    15 'norm      '    14.188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.796       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.868       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.184       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11435E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4462       1.0000         .10000E-03   10000.    
    23 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.8310       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0562       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0335       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=   10153.46     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3126 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.914        12.093       -.60438E-07   -.19176E-04
   2  Prefactor     .10000E-03    14.184       -.29879E-05** at limit **
   3  Prefactor     5.6623        4.4019       -.21098E-08   -.56109E-03
   4  Prefactor     2.6780        2.7899       -.10535E-06   -.85656E-04
   5  norm          11.145        3.9197       -.58836E-07   -.29725E-03
   6  Prefactor     .10000E-03    11.137        .50821E-05** at limit **
   7  norm          .10000E-03    1.2775       -.15128E-07** at limit **
   8  Prefactor     .10000E-03    23.123        .70389E-06** at limit **
   9  norm          1.8057        1.0342        .18716E-06   -.33089E-02
  10  norm          5.3560        2.9776       -.12233E-06   -.52080E-03
  11  norm          .10000E-03    3.6871        .26659E-07** at limit **
  12  norm          .10000E-03    9.2370       -.39120E-05** at limit **
  13  Prefactor     .10000E-03    1.2393        .52561E-06** at limit **
  14  Prefactor     20.761        10.859        .93416E-06   -.31888E-03
  15  norm          14.188        5.9910       -.69129E-07   -.14927E-03
  16  Prefactor     33.781        38.172       -.14211E-04   -.11724E-03
  17  norm          .10000E-03    1.9936       -.12735E-08** at limit **
  18  Prefactor     40.867        15.037        .85121E-09   -.11836E-03
  19  Prefactor     20.184        14.552       -.13096E-06   -.32824E-04
  20  Prefactor     .10000E-03    79.837        .16637E-06** at limit **
  21  Prefactor     .10001E-03    1.3802        .37511E-06** at limit **
  22  Prefactor     6.4471        10.778       -.14550E-06   -.11538E-04
  23  norm          .10000E-03    2.5822       -.42279E-06** at limit **
  24  Prefactor     9.8305        3.8552       -.25591E-06    .85476E-04
  25  Normalizat    1.0563        .14146        .59461E-06   -.29562E-03
  26  Prefactor     1.0333        .15787        .10866E-06   -.13130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9142
  Prefactor  = 0.0001
  Prefactor  = 5.66232
  Prefactor  = 2.67802
  norm       = 11.145
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80575
  norm       = 5.35604
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.7613
  norm       = 14.1877
  Prefactor  = 33.7806
  norm       = 0.0001
  Prefactor  = 40.8673
  Prefactor  = 20.184
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 6.44715
  norm       = 0.000100001
  Prefactor  = 9.83048
  Normalizat = 1.05633
  Prefactor  = 1.03333
 **********
 **   18 **HESSE 
 **********

 FCN=   10153.46     FROM HESSE     STATUS=OK           460 CALLS     3586 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.914        12.090        .94629E-04   -1.4861    
   2  Prefactor     .10000E-03    14.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6623        4.4389        .84408E-03   -1.5232    
   4  Prefactor     2.6780        2.7949        .16655E-03   -1.5381    
   5  norm          11.145        3.9175        .11290E-03   -1.5040    
   6  Prefactor     .10000E-03    11.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2978        .11117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.052        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8057        3.4324        .12374E-02   -1.5439    
  10  norm          5.3560        2.9428        .11971E-03   -1.5245    
  11  norm          .10000E-03    3.7052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.2529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0927        .21005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.761        10.636        .87917E-04   -1.4796    
  15  norm          14.188        5.9943        .53167E-03   -1.4954    
  16  Prefactor     33.781        38.277        .68930E-04   -1.4545    
  17  norm          .10000E-03    1.9982        .13885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.867        15.034        .62704E-04   -1.4429    
  19  Prefactor     20.184        14.550        .89152E-04   -1.4809    
  20  Prefactor     .10000E-03    80.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    7.1447        .22412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.4471        10.792        .15808E-03   -1.5200    
  23  norm          .10000E-03    6.5700        .31008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.8305        3.8302        .11870E-03   -1.5081    
  25  Normalizat    1.0563        .16574        .24162E-03   -.91166    
  26  Prefactor     1.0333        .18725        .28212E-03   -.91627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08061e-09
Minuit parameter uncertainties:
  1  12.0912
  2  1.12825e-05
  3  4.43918
  4  2.79502
  5  3.91762
  6  6.87969e-06
  7  1.495e-06
  8  5.90542e-06
  9  3.43277
  10  2.94287
  11  4.17387e-06
  12  7.60046e-06
  13  0.000108653
  14  10.6373
  15  5.99458
  16  38.3052
  17  5.83388e-07
  18  15.0354
  19  14.5521
  20  4.67639e-05
  21  0.000511879
  22  10.7956
  23  0.000164039
  24  3.83033
  25  0.165818
  26  0.187372
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.087e+01  1.504e+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.033e+00  1.874e-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.056e+00  1.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.27
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 8.75e-08 +/- 3.22e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 9.91e-06

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) = 10153.2101717
delta logL = 0.252495200932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10153.2099966
delta logL = 0.252670282644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.131       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2009       1.0000          .0000       10.000    
     3 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0182       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=   10153.21     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      269 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.111        278.88        .14303E-02    .15686E-03
   2  Index         2.2003        2.8320        .16230        .25305E-03
   3  Normalizat    1.0769        .94417E-01    .39034E-01    .11911E-03
   4  Prefactor     1.0182        .71610E-01    .64205E-01    .10712E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.1109
  Index      = 2.20029
  Normalizat = 1.07688
  Prefactor  = 1.01817
 **********
 **   18 **HESSE 
 **********

 FCN=   10153.21     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.111        21.046        .57210E-04   -1.4305    
   2  Index         2.2003        .35448        .57144E-02   -.59432    
   3  Normalizat    1.0769        .16314        .23971E-03   -.90498    
   4  Prefactor     1.0182        .18601        .28397E-03   -.92126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13049e-10
Minuit parameter uncertainties:
  1  21.0495
  2  0.354911
  3  0.163216
  4  0.186125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725709': 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) = 10153.209993
delta logL = 0.252673803781

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.911e+01  2.105e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.200e+00  3.549e-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:  1.018e+00  1.861e-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.077e+00  1.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.75
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.20 +/- 0.35
Photon Flux (Free Index): 7.09e-08 +/- 3.61e-08
Energy Flux (Free Index): 3.18e-05 +/- 1.58e-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/725709/cmap_HighResolution_626832001_627091201_4FGL_J1330.7+2933_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.75e-08', energy_flux2='3.18e-05', photon_flux_error='3.22e-08', dlogl='2.53e-01', energy_flux='2.70e-05', photon_flux2='7.09e-08', job_status='DONE', time_completed='2021-09-08 01:12:04.578026', photon_index_error2='0.35', photon_index2='2.20', ts='20.27', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='1.06', time_epoch_completed='1631088724.58', return_code='0', job_id='725709', GAL2='1.02', EG2='1.08', return_code2='0', energy_flux_error='9.91e-06', photon_flux_error2='3.61e-08', ts2='20.75', photon_index='2.45' WHERE bin_id='1495' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 725709: <4FGL_J1330.7+2933_daily_bin1495> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1495> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 00:55:39 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:56:16 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:56:16 2021
Terminated at Wed Sep  8 01:12:05 2021
Results reported at Wed Sep  8 01:12:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1495 202.693 29.5536 626832001 627091201 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 :                                   700.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            986 sec.

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

