/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 184 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin81
RA = 202.693, Dec = 29.5536
tmin = 260323201, tmax = 260582401
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='705238', job_status='RUN', time_executed='2021-09-07 23:48:41.350032', time_epoch_executed='1631083721.35' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705238/ft1_4FGL_J1330.7+2933_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705238/ft2_4FGL_J1330.7+2933_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705238/ft1_4FGL_J1330.7+2933_daily_bin81.fits outfile=/scratch/kocevski/705238/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin81.fits ra=202.693 dec=29.5536 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.57
user 1.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705238/ft1_filtered_4FGL_J1330.7+2933_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/705238/ft2_4FGL_J1330.7+2933_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/705238/ltcube_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.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/705238/ft2_4FGL_J1330.7+2933_daily_bin81.fits
.....................!
real 16.81
user 16.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705238/ft1_filtered_4FGL_J1330.7+2933_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/705238/ft2_4FGL_J1330.7+2933_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/705238/ltcube_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.fits outfile=/scratch/kocevski/705238/expmap_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.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/705238/ltcube_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.fits
.....................!
real 192.46
user 185.87
sys 5.88

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/705238/ft1_filtered_4FGL_J1330.7+2933_daily_bin81.fits scfile=/scratch/kocevski/705238/ft2_4FGL_J1330.7+2933_daily_bin81.fits outfile=/scratch/kocevski/705238/cmap_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705238/ft1_filtered_4FGL_J1330.7+2933_daily_bin81.fits scfile=/scratch/kocevski/705238/ft2_4FGL_J1330.7+2933_daily_bin81.fits outfile=/scratch/kocevski/705238/cmap_HighResolution_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.639       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1641       1.0000         .10000E-03   10000.    
     5 'norm      '    .74426       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10958E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.694       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6651       1.0000         .10000E-03   10000.    
    12 'norm      '    8.9037       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.5472       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1574       1.0000         .10000E-03   10000.    
    17 'norm      '    13.054       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .55073E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.407       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0417       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89070       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0574       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=   8003.789     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     2153 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.638        1.0102        .16541E-07   -.37343E-03
   2  Prefactor     .10000E-03    12.046       -.66258E-06** at limit **
   3  Prefactor     .10000E-03    3.1955       -.35589E-06** at limit **
   4  Prefactor     4.1633        1.1265        .63575E-07   -.91169E-03
   5  norm          .74365        2.2968        .35447E-06    .83464E-04
   6  Prefactor     .10000E-03    5.9516       -.77630E-06** at limit **
   7  norm          5.1791        3.3006        .12929E-06    .27564E-03
   8  Prefactor     .10000E-03    16.147        .21042E-05** at limit **
   9  norm          .10000E-03    2.1057        .27763E-06** at limit **
  10  norm          15.699        3.1842       -.11704E-06   -.17696E-02
  11  norm          1.6576        2.2855       -.75161E-07   -.26101E-03
  12  norm          8.9035        1.0032        .24878E-08    .72507E-04
  13  Prefactor     3.5674        2.8052       -.26769E-06    .27221E-03
  14  Prefactor     .10002E-03    25.151        .10949E-05** at limit **
  15  norm          9.5472        1.0268       -.10582E-07    .13135E-02
  16  Prefactor     8.1609        1.0301       -.49027E-07   -.21088E-03
  17  norm          13.054        1.0106       -.81400E-08    .10507E-02
  18  Prefactor     .10000E-03    198.66        .19099E-04** at limit **
  19  Prefactor     30.387        3.8680        .13872E-06   -.94359E-02
  20  Prefactor     .10010E-03    32.805        .30565E-05** at limit **
  21  Prefactor     6.0411        1.4647       -.11025E-06    .32055E-02
  22  Prefactor     .10000E-03    3.9223       -.54380E-06** at limit **
  23  norm          .10000E-03    1.9101        .89639E-06** at limit **
  24  Prefactor     .10000E-03    5.6050        .30762E-06** at limit **
  25  Normalizat    .89063        .17197        .95660E-06   -.19953E-04
  26  Prefactor     1.0574        .19223       -.12315E-05   -.34917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.16328
  norm       = 0.743649
  Prefactor  = 0.0001
  norm       = 5.17912
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 15.6991
  norm       = 1.65763
  norm       = 8.90354
  Prefactor  = 3.56737
  Prefactor  = 0.00010002
  norm       = 9.54723
  Prefactor  = 8.16095
  norm       = 13.0545
  Prefactor  = 0.0001
  Prefactor  = 30.3868
  Prefactor  = 0.000100103
  Prefactor  = 6.04112
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.89063
  Prefactor  = 1.05745
 **********
 **   18 **HESSE 
 **********

 FCN=   8003.789     FROM HESSE     STATUS=OK           522 CALLS     2675 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.638        14.899        .24547E-02   -1.4892    
   2  Prefactor     .10000E-03    12.070        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1567        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1633        5.4597        .49378E-02   -1.5300    
   5  norm          .74365        2.3662        .12230E-01   -1.5536    
   6  Prefactor     .10000E-03    5.9824        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1791        3.3354        .44161E-02   -1.5253    
   8  Prefactor     .10000E-03    16.022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0884        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.699        8.1513        .25275E-02   -1.4915    
  11  norm          1.6576        23.613        .81706E-02   -1.5450    
  12  norm          8.9035        9.8070        .33581E-02   -1.5111    
  13  Prefactor     3.5674        2.9168        .53508E-02   -1.5330    
  14  Prefactor     .10002E-03    24.837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.5472        6.1719        .32424E-02   -1.5090    
  16  Prefactor     8.1609        45.062        .35093E-02   -1.5137    
  17  norm          13.054        7.0802        .27716E-02   -1.4985    
  18  Prefactor     .10000E-03    10.025        .92948E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.387        18.996        .18165E-02   -1.4605    
  20  Prefactor     .10010E-03    33.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0411        4.2009        .40837E-02   -1.5216    
  22  Prefactor     .10000E-03    3.9147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3958        .42576E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89063        .15107        .44783E-01   -.96790    
  26  Prefactor     1.0574        .16264        .58400E-01   -.90838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98224e-06
Minuit parameter uncertainties:
  1  14.9024
  2  5.05945e-05
  3  3.33733e-06
  4  5.46039
  5  2.36647
  6  3.57282e-05
  7  3.33549
  8  0.000222401
  9  3.05404e-06
  10  8.15189
  11  12.5183
  12  9.80878
  13  2.91696
  14  0.0014055
  15  6.17231
  16  38.3977
  17  7.08066
  18  2.82076e-05
  19  18.9996
  20  0.00374285
  21  4.20112
  22  1.14122e-05
  23  9.44835e-06
  24  1.37841e-05
  25  0.151146
  26  0.162715
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.821e-05  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.057e+00  1.627e-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.906e-01  1.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/705238/likelihoodResults_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.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) = 8003.78863312
delta logL = -2.41247535087e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8003.78863312
delta logL = -2.4118597139e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4487       1.0000          .0000       10.000    
     3 'Normalizat'    .89061       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       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=   8003.788     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      293 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30639        5.6295        .90713E-01    .33812E-03
   2  Index         2.8784        1.0815        .50000        .37639E-06
   3  Normalizat    .88936        .42778E-02    .44782E-01    .10348E-03
   4  Prefactor     1.0580        .48728E-02    .58384E-01    .16450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.306385
  Index      = 2.87842
  Normalizat = 0.889361
  Prefactor  = 1.05802
 **********
 **   18 **HESSE 
 **********

 FCN=   8003.788     FROM HESSE     STATUS=OK            35 CALLS      328 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30639        279.90        .34612E-02   -1.5597    
   2  Index         2.8784        7.2727        .17591E-01   -.43821    
   3  Normalizat    .88936        .17626        .24630E-03   -.96835    
   4  Prefactor     1.0580        .19252        .25818E-03   -.90820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65273e-09
Minuit parameter uncertainties:
  1  18.6057
  2  14.5311
  3  0.176377
  4  0.192648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705238': 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) = 8003.78785014
delta logL = 0.000758853164371

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.064e-01  1.861e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.878e+00  1.453e+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.058e+00  1.926e-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.894e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

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/705238/cmap_HighResolution_260323201_260582401_4FGL_J1330.7+2933_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.57e-08', time_completed='2021-09-08 00:00:55.551336', job_id='705238', GAL2='1.06', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631084455.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='7.59e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='81' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 705238: <4FGL_J1330.7+2933_daily_bin81> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin81> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 23:45:17 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:45:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:45:29 2021
Terminated at Wed Sep  8 00:00:56 2021
Results reported at Wed Sep  8 00:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin81 202.693 29.5536 260323201 260582401 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 :                                   733.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            939 sec.

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

