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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1556
RA = 202.693, Dec = 29.5536
tmin = 642643201, tmax = 642902401
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='725794', job_status='RUN', time_executed='2021-09-08 01:00:25.580910', time_epoch_executed='1631088025.58' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1556'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725794

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725794/ft1_4FGL_J1330.7+2933_daily_bin1556.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725794/ft2_4FGL_J1330.7+2933_daily_bin1556.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725794/ft1_4FGL_J1330.7+2933_daily_bin1556.fits outfile=/scratch/kocevski/725794/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1556.fits ra=202.693 dec=29.5536 rad=12.0 tmin=642643201.0 tmax=642902401.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.72
user 3.36
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/725794/ft2_4FGL_J1330.7+2933_daily_bin1556.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/725794/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1556.fits evtable="EVENTS" outfile="/scratch/kocevski/725794/ft1_filtered_4FGL_J1330.7+2933_daily_bin1556.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.95
user 0.38
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725794/ft1_filtered_4FGL_J1330.7+2933_daily_bin1556.fits" evtable="EVENTS" scfile=/scratch/kocevski/725794/ft2_4FGL_J1330.7+2933_daily_bin1556.fits sctable="SC_DATA" outfile=/scratch/kocevski/725794/ltcube_642643201_642902401_4FGL_J1330.7+2933_daily_bin1556.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/725794/ft2_4FGL_J1330.7+2933_daily_bin1556.fits
.....................!
real 16.88
user 16.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725794/ft1_filtered_4FGL_J1330.7+2933_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/725794/ft2_4FGL_J1330.7+2933_daily_bin1556.fits sctable="SC_DATA" expcube=/scratch/kocevski/725794/ltcube_642643201_642902401_4FGL_J1330.7+2933_daily_bin1556.fits outfile=/scratch/kocevski/725794/expmap_642643201_642902401_4FGL_J1330.7+2933_daily_bin1556.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/725794/ltcube_642643201_642902401_4FGL_J1330.7+2933_daily_bin1556.fits
.....................!
real 192.42
user 186.86
sys 4.98

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

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

This is gtbin version HEAD
real 1.56
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725794/ft1_filtered_4FGL_J1330.7+2933_daily_bin1556.fits scfile=/scratch/kocevski/725794/ft2_4FGL_J1330.7+2933_daily_bin1556.fits outfile=/scratch/kocevski/725794/cmap_HighResolution_642643201_642902401_4FGL_J1330.7+2933_daily_bin1556.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 1.48
user 0.43
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725794/ft1_filtered_4FGL_J1330.7+2933_daily_bin1556.fits evtable="EVENTS" scfile=/scratch/kocevski/725794/ft2_4FGL_J1330.7+2933_daily_bin1556.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725794/Model_4FGL_J1330.7+2933_daily_bin1556.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/725794/ft1_filtered_4FGL_J1330.7+2933_daily_bin1556.fits.....................!
real 52.72
user 46.16
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    162.95       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4267       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1334       1.0000         .10000E-03   10000.    
     5 'norm      '    .10463E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.648       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5063       1.0000         .10000E-03   10000.    
     9 'norm      '    .68275       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8129       1.0000         .10000E-03   10000.    
    11 'norm      '    .26959E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3242       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5722       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.740       1.0000         .10000E-03   10000.    
    17 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.573       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.983       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.228       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9583       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.658       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95255       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0243       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5839.748     FROM MIGRAD    STATUS=CONVERGED    119 CALLS     2647 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    8.7959       -.47528E-05** at limit **
   2  Prefactor     162.95        1.2009        .13604E-06   -.37571E-02
   3  Prefactor     3.4268        1.9011       -.31594E-05   -.63035E-03
   4  Prefactor     3.1315        4.1936        .41948E-05    .16718E-02
   5  norm          .10000E-03    5.4765        .46492E-06** at limit **
   6  Prefactor     12.706        7.0050        .41421E-05   -.67105E-02
   7  norm          .10000E-03    .87602        .22671E-06** at limit **
   8  Prefactor     7.4977        8.1271       -.49460E-05    .63654E-05
   9  norm          .68030        2.9242        .44728E-06   -.51809E-05
  10  norm          4.7216        6.5526        .32651E-06    .15526E-02
  11  norm          .16526        104.38        .84137E-07    .66327E-03
  12  norm          .10000E-03    6.9729       -.58772E-06** at limit **
  13  Prefactor     .10000E-03    15.596        .67540E-06** at limit **
  14  Prefactor     3.3328        7.5493       -.26889E-05   -.34742E-02
  15  norm          5.5677        1.1905        .55799E-06   -.94296E-03
  16  Prefactor     22.698        3.3820       -.15709E-05    .53928E-02
  17  norm          .10000E-03    3.5704       -.18061E-06** at limit **
  18  Prefactor     25.570        2.1827       -.27663E-06    .12396E-03
  19  Prefactor     .10000E-03    8.4600        .31395E-05** at limit **
  20  Prefactor     .10006E-03    84.721       -.35486E-05** at limit **
  21  Prefactor     12.979        3.6970        .35047E-05    .17433E-02
  22  Prefactor     16.229        3.6352        .17532E-05   -.19586E-02
  23  norm          3.9581        2.2670        .37236E-06    .80611E-03
  24  Prefactor     12.657        3.2126        .27743E-05    .36441E-02
  25  Normalizat    .95306        .21033       -.47714E-05   -.58868E-03
  26  Prefactor     1.0239        .23749        .13279E-05   -.46534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Prefactor  = 162.947
  Prefactor  = 3.42684
  Prefactor  = 3.13151
  norm       = 0.0001
  Prefactor  = 12.7056
  norm       = 0.0001
  Prefactor  = 7.49771
  norm       = 0.680299
  norm       = 4.72157
  norm       = 0.165258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.3328
  norm       = 5.56765
  Prefactor  = 22.698
  norm       = 0.0001
  Prefactor  = 25.57
  Prefactor  = 0.000100001
  Prefactor  = 0.000100064
  Prefactor  = 12.9794
  Prefactor  = 16.2286
  norm       = 3.95807
  Prefactor  = 12.6571
  Normalizat = 0.953064
  Prefactor  = 1.0239
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.748     FROM HESSE     STATUS=OK           528 CALLS     3175 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.8155        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     162.95        85.636        .78985E-03   -1.3148    
   3  Prefactor     3.4268        5.5676        .54629E-02   -1.5338    
   4  Prefactor     3.1315        4.7322        .57255E-02   -1.5354    
   5  norm          .10000E-03    5.3281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.706        19.681        .28158E-02   -1.4995    
   7  norm          .10000E-03    .87470        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4977        12.852        .36595E-02   -1.5160    
   9  norm          .68030        3.2018        .11995E-01   -1.5543    
  10  norm          4.7216        4.3741        .45844E-02   -1.5273    
  11  norm          .16526        7.1842        .54069E-01   -1.5627    
  12  norm          .10000E-03    6.9775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4370        .52305E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3328        11.189        .55504E-02   -1.5343    
  15  norm          5.5677        5.5227        .42548E-02   -1.5236    
  16  Prefactor     22.698        52.217        .20999E-02   -1.4755    
  17  norm          .10000E-03    3.5637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.570        18.493        .19804E-02   -1.4696    
  19  Prefactor     .10000E-03    8.5013        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10006E-03    86.568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.979        5.2821        .27792E-02   -1.4987    
  22  Prefactor     16.229        15.355        .24856E-02   -1.4902    
  23  norm          3.9581        4.8050        .50686E-02   -1.5310    
  24  Prefactor     12.657        4.9882        .28147E-02   -1.4996    
  25  Normalizat    .95306        .17926        .45570E-01   -.94620    
  26  Prefactor     1.0239        .19896        .61193E-01   -.91937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93883e-07
Minuit parameter uncertainties:
  1  0.00065889
  2  85.7019
  3  5.56844
  4  4.73273
  5  3.09688e-05
  6  19.6911
  7  1.21321e-05
  8  12.8565
  9  2.95178
  10  4.37441
  11  2.17884
  12  7.01357e-05
  13  5.21787e-05
  14  11.1964
  15  5.52317
  16  52.3222
  17  2.27474e-05
  18  18.4975
  19  0.000153236
  20  0.00471618
  21  5.28228
  22  15.3588
  23  4.80546
  24  4.98838
  25  0.179375
  26  0.199101
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.557e+01  1.850e+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.024e+00  1.991e-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.531e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/725794/likelihoodResults_642643201_642902401_4FGL_J1330.7+2933_daily_bin1556.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) = 5838.93347201
delta logL = 0.814296428484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5838.92392425
delta logL = 0.823844188446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5685       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3126       1.0000          .0000       10.000    
     3 'Normalizat'    .89668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       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=   5838.924     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      257 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5585        93.223        .32388E-02    .20291E-03
   2  Index         3.3131        2.7867        .10360        .14842E-03
   3  Normalizat    .89664        .68843E-01    .44859E-01   -.22225E-04
   4  Prefactor     1.0677        .74628E-01    .60060E-01   -.19823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.55854
  Index      = 3.31309
  Normalizat = 0.896639
  Prefactor  = 1.0677
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.924     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5585        18.107        .12261E-03   -1.5090    
   2  Index         3.3131        1.0376        .40011E-02   -.34414    
   3  Normalizat    .89664        .21077        .24619E-03   -.96578    
   4  Prefactor     1.0677        .24065        .26561E-03   -.90506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76275e-08
Minuit parameter uncertainties:
  1  18.1177
  2  1.04619
  3  0.210969
  4  0.24089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725794': 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) = 5838.9239239
delta logL = 0.823844539978

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.559e+00  1.812e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.313e+00  1.046e+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.068e+00  2.409e-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:  8.966e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.77
Ra Dec: 202.693 29.554
Photon Index (Free Index): 3.31 +/- 1.05
Photon Flux (Free Index): 9.72e-08 +/- 5.71e-08
Energy Flux (Free Index): 1.71e-05 +/- 9.91e-06

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/725794/cmap_HighResolution_642643201_642902401_4FGL_J1330.7+2933_daily_bin1556.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='1.71e-05', photon_flux_error='3.96e-08', dlogl='8.24e-01', energy_flux='1.69e-05', photon_flux2='9.72e-08', job_status='DONE', time_completed='2021-09-08 01:11:57.794682', photon_index_error2='1.05', photon_index2='3.31', ts='2.96', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='9.91e-06', EG='0.95', time_epoch_completed='1631088717.79', return_code='0', job_id='725794', GAL2='1.07', EG2='0.90', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.71e-08', ts2='4.77', photon_index='2.45' WHERE bin_id='1556' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:11:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 725794: <4FGL_J1330.7+2933_daily_bin1556> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1556> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 00:55:45 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:57:15 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:57:15 2021
Terminated at Wed Sep  8 01:11:58 2021
Results reported at Wed Sep  8 01:11:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1556 202.693 29.5536 642643201 642902401 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 :                                   678.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            973 sec.

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

