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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1394
RA = 202.693, Dec = 29.5536
tmin = 600652801, tmax = 600912001
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='724489', job_status='RUN', time_executed='2021-09-08 00:51:44.816715', time_epoch_executed='1631087504.82' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724489/ft1_4FGL_J1330.7+2933_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724489/ft2_4FGL_J1330.7+2933_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724489/ft1_4FGL_J1330.7+2933_daily_bin1394.fits outfile=/scratch/kocevski/724489/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1394.fits ra=202.693 dec=29.5536 rad=12.0 tmin=600652801.0 tmax=600912001.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.68
user 3.45
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724489/ft2_4FGL_J1330.7+2933_daily_bin1394.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/724489/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1394.fits evtable="EVENTS" outfile="/scratch/kocevski/724489/ft1_filtered_4FGL_J1330.7+2933_daily_bin1394.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.54
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724489/ft1_filtered_4FGL_J1330.7+2933_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/724489/ft2_4FGL_J1330.7+2933_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/724489/ltcube_600652801_600912001_4FGL_J1330.7+2933_daily_bin1394.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/724489/ft2_4FGL_J1330.7+2933_daily_bin1394.fits
.....................!
real 14.71
user 14.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724489/ft1_filtered_4FGL_J1330.7+2933_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/724489/ft2_4FGL_J1330.7+2933_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/724489/ltcube_600652801_600912001_4FGL_J1330.7+2933_daily_bin1394.fits outfile=/scratch/kocevski/724489/expmap_600652801_600912001_4FGL_J1330.7+2933_daily_bin1394.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/724489/ltcube_600652801_600912001_4FGL_J1330.7+2933_daily_bin1394.fits
.....................!
real 191.06
user 185.98
sys 4.57

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/724489/ft1_filtered_4FGL_J1330.7+2933_daily_bin1394.fits scfile=/scratch/kocevski/724489/ft2_4FGL_J1330.7+2933_daily_bin1394.fits outfile=/scratch/kocevski/724489/cmap_600652801_600912001_4FGL_J1330.7+2933_daily_bin1394.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724489/ft1_filtered_4FGL_J1330.7+2933_daily_bin1394.fits scfile=/scratch/kocevski/724489/ft2_4FGL_J1330.7+2933_daily_bin1394.fits outfile=/scratch/kocevski/724489/cmap_HighResolution_600652801_600912001_4FGL_J1330.7+2933_daily_bin1394.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .46071E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1016       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5461       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34769E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    7.4959       1.0000         .10000E-03   10000.    
    10 'norm      '    26.104       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .40422E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.758       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15368E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25974E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1844       1.0000         .10000E-03   10000.    
    24 'Prefactor '    273.59       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .63522       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5778       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=   9312.394     FROM MIGRAD    STATUS=CONVERGED   1139 CALLS     3713 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7021        .18142E-02** at limit **
   2  Prefactor     .10000E-03    231.60        .21197E-02** at limit **
   3  Prefactor     6.1014        8.3196        .16254E-03   -.56376E-04
   4  Prefactor     .10000E-03    2.1898        .13923E-02** at limit **
   5  norm          .10000E-03    6.8525        .36285E-02** at limit **
   6  Prefactor     .10000E-03    90.338        .18142E-02** at limit **
   7  norm          3.5464        4.6979        .21464E-03   -.98622E-04
   8  Prefactor     .10093E-03    15.680        .94435E-01** at limit **
   9  norm          7.4981        6.8009        .14648E-03    .57122E-04
  10  norm          26.106        6.5787        .78407E-04    .10854E-02
  11  norm          .10000E-03    3.6597        .17997E-02** at limit **
  12  norm          .10000E-03    5.7568        .18142E-02** at limit **
  13  Prefactor     1.2274        4.7338        .35066E-03    .71521E-04
  14  Prefactor     .10000E-03    10.989        .18142E-02** at limit **
  15  norm          .10001E-03    14.457        .36602E-02** at limit **
  16  Prefactor     .10000E-03    47.151        .18142E-02** at limit **
  17  norm          .10006E-03    63.212        .40394E-02** at limit **
  18  Prefactor     30.757        17.149        .72245E-04    .39026E-04
  19  Prefactor     .10006E-03    84.082        .51950E-02** at limit **
  20  Prefactor     .10000E-03    17.676        .18142E-02** at limit **
  21  Prefactor     .10000E-03    4.0535        .25594E-02** at limit **
  22  Prefactor     .10003E-03    25.853        .40172E-02** at limit **
  23  norm          3.1843        4.4055        .22708E-03    .14018E-05
  24  Prefactor     273.59        17.176        .24521E-04   -.11313E-04
  25  Normalizat    .63531        .21288        .37495E-03   -.59914E-04
  26  Prefactor     1.5777        .23749        .29063E-03   -.10898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.10141
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54645
  Prefactor  = 0.000100927
  norm       = 7.49807
  norm       = 26.1057
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.22737
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100058
  Prefactor  = 30.7571
  Prefactor  = 0.00010006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 3.18429
  Prefactor  = 273.589
  Normalizat = 0.635307
  Prefactor  = 1.57773
 **********
 **   18 **HESSE 
 **********

 FCN=   9312.394     FROM HESSE     STATUS=OK           440 CALLS     4153 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    231.73        .42395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1014        8.3184        .65014E-05   -1.5214    
   4  Prefactor     .10000E-03    2.1899        .27846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.9003        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    90.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5464        4.6969        .85857E-05   -1.5331    
   8  Prefactor     .10093E-03    14.538        .99481E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.4981        6.7932        .58593E-05   -1.5160    
  10  norm          26.106        6.5722        .15681E-04   -1.4686    
  11  norm          .10000E-03    3.6598        .35994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.7569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2274        4.7246        .14026E-04   -1.5486    
  14  Prefactor     .10000E-03    10.990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    14.632        .73204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    47.152        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10006E-03    65.411        .16157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.757        17.145        .28898E-05   -1.4598    
  19  Prefactor     .10006E-03    86.873        .20780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.676        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0736        .51189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    26.296        .80345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1843        4.4054        .90833E-05   -1.5351    
  24  Prefactor     273.59        17.176        .49042E-05   -1.2385    
  25  Normalizat    .63531        .21283        .14998E-04   -1.0651    
  26  Prefactor     1.5777        .23766        .58126E-04   -.75385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66442e-09
Minuit parameter uncertainties:
  1  3.00315e-06
  2  0.000591341
  3  8.31992
  4  6.27847e-06
  5  9.60146e-05
  6  6.11802e-05
  7  4.69734
  8  0.00734317
  9  6.79386
  10  6.57242
  11  1.0349e-05
  12  1.06566e-06
  13  4.72599
  14  2.01517e-05
  15  0.000695601
  16  0.000283011
  17  0.00388972
  18  17.1473
  19  0.00458639
  20  2.36296e-05
  21  2.55498e-05
  22  0.00173418
  23  4.40588
  24  17.1759
  25  0.21311
  26  0.237825
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.076e+01  1.715e+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.578e+00  2.378e-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:  6.353e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.70
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.58e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.13e-05

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) = 9312.39376297
delta logL = 0.000282469236481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9312.39347112
delta logL = 0.000574316974962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.293       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4287       1.0000          .0000       10.000    
     3 'Normalizat'    .63656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5770       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=   9312.393     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      278 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.323        25.613        .71626E-04    .41268E-05
   2  Index         2.4296        .59226        .71554E-02    .25990E-04
   3  Normalizat    .63656        .20585        .37461E-03    .10318E-05
   4  Prefactor     1.5767        .23725        .29071E-03   -.86035E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3228
  Index      = 2.42962
  Normalizat = 0.636558
  Prefactor  = 1.5767
 **********
 **   18 **HESSE 
 **********

 FCN=   9312.393     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .43E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.323        23.990        .28650E-05   -1.4588    
   2  Index         2.4296        .55433        .28622E-03   -.53993    
   3  Normalizat    .63656        .20562        .14984E-04   -1.0645    
   4  Prefactor     1.5767        .23715        .11628E-04   -.75414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33802e-14
Minuit parameter uncertainties:
  1  23.9977
  2  0.55589
  3  0.20587
  4  0.237318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724489': 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) = 9312.39346124
delta logL = 0.00058419987181

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.132e+01  2.400e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.430e+00  5.559e-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.577e+00  2.373e-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:  6.366e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.62
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.43 +/- 0.56
Photon Flux (Free Index): 6.50e-08 +/- 4.41e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.31e-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/724489/cmap_HighResolution_600652801_600912001_4FGL_J1330.7+2933_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.58e-08', energy_flux2='2.05e-05', photon_flux_error='3.67e-08', dlogl='5.84e-04', energy_flux='2.03e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-08 01:06:42.886965', photon_index_error2='0.56', photon_index2='2.43', ts='6.70', fit_tolerance='1e-08', GAL='1.58', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.64', time_epoch_completed='1631088402.89', return_code='0', job_id='724489', GAL2='1.58', EG2='0.64', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.41e-08', ts2='6.62', photon_index='2.45' WHERE bin_id='1394' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 724489: <4FGL_J1330.7+2933_daily_bin1394> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1394> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 00:50:56 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:51:29 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:51:29 2021
Terminated at Wed Sep  8 01:06:43 2021
Results reported at Wed Sep  8 01:06:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1394 202.693 29.5536 600652801 600912001 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 :                                   891.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            947 sec.

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

