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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1468
RA = 202.693, Dec = 29.5536
tmin = 619833601, tmax = 620092801
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='725670', job_status='RUN', time_executed='2021-09-08 00:58:22.963641', time_epoch_executed='1631087902.96' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725670/ft1_4FGL_J1330.7+2933_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725670/ft2_4FGL_J1330.7+2933_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725670/ft1_4FGL_J1330.7+2933_daily_bin1468.fits outfile=/scratch/kocevski/725670/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1468.fits ra=202.693 dec=29.5536 rad=12.0 tmin=619833601.0 tmax=620092801.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.56
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725670/ft1_filtered_4FGL_J1330.7+2933_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/725670/ft2_4FGL_J1330.7+2933_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/725670/ltcube_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.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/725670/ft2_4FGL_J1330.7+2933_daily_bin1468.fits
.....................!
real 17.49
user 17.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725670/ft1_filtered_4FGL_J1330.7+2933_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/725670/ft2_4FGL_J1330.7+2933_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/725670/ltcube_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.fits outfile=/scratch/kocevski/725670/expmap_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.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/725670/ltcube_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.fits
.....................!
real 194.71
user 187.95
sys 5.15

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/725670/ft1_filtered_4FGL_J1330.7+2933_daily_bin1468.fits scfile=/scratch/kocevski/725670/ft2_4FGL_J1330.7+2933_daily_bin1468.fits outfile=/scratch/kocevski/725670/cmap_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.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.76
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725670/ft1_filtered_4FGL_J1330.7+2933_daily_bin1468.fits scfile=/scratch/kocevski/725670/ft2_4FGL_J1330.7+2933_daily_bin1468.fits outfile=/scratch/kocevski/725670/cmap_HighResolution_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.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.62
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725670/ft1_filtered_4FGL_J1330.7+2933_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/725670/ft2_4FGL_J1330.7+2933_daily_bin1468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725670/Model_4FGL_J1330.7+2933_daily_bin1468.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/725670/ft1_filtered_4FGL_J1330.7+2933_daily_bin1468.fits.....................!
real 47.88
user 46.03
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.107       1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.923       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4781       1.0000         .10000E-03   10000.    
     5 'norm      '    2.7301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .23995       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.297       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16377       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .86287E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2872       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.530       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.824       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17635E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11727E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7826       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.591       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .35662E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1553       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78254       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=   5694.210     FROM MIGRAD    STATUS=CONVERGED   1111 CALLS     3618 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.108        18.238        .79946E-04    .15216E-04
   2  Prefactor     56.835        57.898        .26585E-03   -.13855E-04
   3  Prefactor     .10000E-03    3.0455        .12807E-02** at limit **
   4  Prefactor     3.4781        5.3637        .20783E-03    .68870E-04
   5  norm          2.7300        3.9358        .17010E-03    .29716E-03
   6  Prefactor     .10000E-03    13.920        .18142E-02** at limit **
   7  norm          .24084        6.6938        .19541E-02    .84776E-03
   8  Prefactor     .10000E-03    5.3007        .16949E-02** at limit **
   9  norm          .10000E-03    1.4658        .88978E-03** at limit **
  10  norm          10.303        4.6433        .96099E-04    .21519E-02
  11  norm          .10000E-03    4.9961        .16358E-02** at limit **
  12  norm          2.8744        31.062        .24066E-03    .27447E-04
  13  Prefactor     .16213        16.832        .17679E-02   -.10185E-03
  14  Prefactor     .10020E-03    79.518        .45342E-02** at limit **
  15  norm          4.2870        6.0015        .19457E-03    .81508E-04
  16  Prefactor     .10000E-03    28.659        .18142E-02** at limit **
  17  norm          10.526        9.0761        .12347E-03    .11095E-03
  18  Prefactor     14.845        17.814        .10403E-03    .30043E-03
  19  Prefactor     .10002E-03    184.82        .50484E-02** at limit **
  20  Prefactor     .10000E-03    76.037        .18142E-02** at limit **
  21  Prefactor     1.7817        3.9131        .10338E-02    .71074E-04
  22  Prefactor     13.583        12.309        .10865E-03    .14335E-04
  23  norm          .10000E-03    1.6170        .93550E-03** at limit **
  24  Prefactor     .10019E-03    44.397        .20886E-02** at limit **
  25  Normalizat    1.1556        .20329        .20935E-03    .57440E-03
  26  Prefactor     .78248        .22224        .28603E-03    .67571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.108
  Prefactor  = 56.8346
  Prefactor  = 0.0001
  Prefactor  = 3.47808
  norm       = 2.73001
  Prefactor  = 0.0001
  norm       = 0.240838
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.3027
  norm       = 0.0001
  norm       = 2.87442
  Prefactor  = 0.162129
  Prefactor  = 0.000100201
  norm       = 4.28702
  Prefactor  = 0.0001
  norm       = 10.5259
  Prefactor  = 14.8454
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 1.78171
  Prefactor  = 13.5835
  norm       = 0.0001
  Prefactor  = 0.000100187
  Normalizat = 1.15558
  Prefactor  = 0.782479
 **********
 **   18 **HESSE 
 **********

 FCN=   5694.210     FROM HESSE     STATUS=OK           436 CALLS     4054 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.108        18.238        .31979E-05   -1.4705    
   2  Prefactor     56.835        57.893        .10634E-04   -1.4199    
   3  Prefactor     .10000E-03    3.0460        .25615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4781        5.3631        .83132E-05   -1.5335    
   5  norm          2.7300        3.9353        .68039E-05   -1.5377    
   6  Prefactor     .10000E-03    13.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .24084        6.6954        .78163E-04   -1.5610    
   8  Prefactor     .10000E-03    5.3010        .33898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4659        .17796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.303        4.5828        .19220E-04   -1.5066    
  11  norm          .10000E-03    4.9971        .32715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8744        31.023        .96262E-05   -1.5369    
  13  Prefactor     .16213        16.194        .70717E-04   -1.5627    
  14  Prefactor     .10020E-03    79.839        .90683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2870        5.9997        .77830E-05   -1.5294    
  16  Prefactor     .10000E-03    28.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.526        9.0740        .49389E-05   -1.5059    
  18  Prefactor     14.845        17.781        .41611E-05   -1.4937    
  19  Prefactor     .10002E-03    189.07        .20194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    76.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7817        3.9076        .41352E-04   -1.5441    
  22  Prefactor     13.583        12.309        .43459E-05   -1.4971    
  23  norm          .10000E-03    1.6170        .18710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10019E-03    46.050        .83546E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1556        .20277        .41870E-04   -.87987    
  26  Prefactor     .78248        .22228        .57207E-04   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02303e-08
Minuit parameter uncertainties:
  1  18.242
  2  57.9506
  3  1.73777e-06
  4  5.36382
  5  3.93563
  6  1.08793e-05
  7  2.53947
  8  2.10027e-05
  9  4.16397e-06
  10  4.58292
  11  2.30933e-05
  12  18.8984
  13  3.2406
  14  0.0080266
  15  6.00059
  16  1.58671e-05
  17  9.07523
  18  17.787
  19  0.00384237
  20  0.000224483
  21  3.90819
  22  12.3114
  23  3.39442e-06
  24  0.00586608
  25  0.20291
  26  0.222536
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.485e+01  1.779e+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:  7.825e-01  2.225e-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.156e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/725670/likelihoodResults_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.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): 102
logL (Free Index) = 5694.20303351
delta logL = 0.00656007109774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5693.92070422
delta logL = 0.288889357596

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.3699       1.0000          .0000       10.000    
     3 'Normalizat'    1.1186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82764       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=   5693.921     FROM MIGRAD    STATUS=CONVERGED    402 CALLS      835 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .34435E-02    .34030E-03** at limit **
   2  Index         8.3713        2.6553        .19216        .11281E-03
   3  Normalizat    1.1185        .36526E-01    .20748E-03   -.12279E-03
   4  Prefactor     .82775        .41666E-01    .28708E-02   -.15030E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.37134
  Normalizat = 1.11848
  Prefactor  = 0.827747
 **********
 **   18 **HESSE 
 **********

 FCN=   5693.921     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      872 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .27648E-01    .16981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3713        8.5439        .71985E-02    69.855    
   3  Normalizat    1.1185        .88839E-01    .41497E-04   -.89161    
   4  Prefactor     .82775        .10171        .11483E-03   -.98713    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2983e-09
Minuit parameter uncertainties:
  1  9.6861e-08
  2  5.82651
  3  0.0888506
  4  0.101733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725670': 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): 102
logL (Free Index) = 5693.92069222
delta logL = 0.288901355098

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  9.686e-08  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  8.371e+00  5.827e+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:  8.277e-01  1.017e-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.118e+00  8.885e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 202.693 29.554
Photon Index (Free Index): 8.37 +/- 5.83
Photon Flux (Free Index): 4.55e-08 +/- 5.73e-07
Energy Flux (Free Index): 5.24e-06 +/- 6.56e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/725670/cmap_HighResolution_619833601_620092801_4FGL_J1330.7+2933_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', comment='SUCCESS', energy_flux2='5.24e-06', dlogl='2.89e-01', photon_flux2='4.55e-08', job_status='DONE', time_completed='2021-09-08 01:11:11.736353', photon_index_error2='5.83', photon_index2='8.37', ts='0.85', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='6.56e-05', EG='1.16', time_epoch_completed='1631088671.74', return_code='0', job_id='725670', GAL2='0.83', EG2='1.12', return_code2='102', photon_flux_error2='5.73e-07', ts2='1.50', photon_index='2.45' WHERE bin_id='1468' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:11:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 725670: <4FGL_J1330.7+2933_daily_bin1468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1468 202.693 29.5536 619833601 620092801 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 :                                   754.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            935 sec.

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

