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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin594
RA = 202.693, Dec = 29.5536
tmin = 393292801, tmax = 393552001
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='720012', job_status='RUN', time_executed='2021-09-08 00:36:14.813556', time_epoch_executed='1631086574.81' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/720012

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/720012/ft1_4FGL_J1330.7+2933_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/720012/ft2_4FGL_J1330.7+2933_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/720012/ft1_4FGL_J1330.7+2933_daily_bin594.fits outfile=/scratch/kocevski/720012/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin594.fits ra=202.693 dec=29.5536 rad=12.0 tmin=393292801.0 tmax=393552001.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.90
user 3.64
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/720012/ft1_filtered_4FGL_J1330.7+2933_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/720012/ft2_4FGL_J1330.7+2933_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/720012/ltcube_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.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/720012/ft2_4FGL_J1330.7+2933_daily_bin594.fits
.....................!
real 13.26
user 12.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/720012/ft1_filtered_4FGL_J1330.7+2933_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/720012/ft2_4FGL_J1330.7+2933_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/720012/ltcube_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.fits outfile=/scratch/kocevski/720012/expmap_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.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/720012/ltcube_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.fits
.....................!
real 160.19
user 155.11
sys 4.70

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/720012/ft1_filtered_4FGL_J1330.7+2933_daily_bin594.fits scfile=/scratch/kocevski/720012/ft2_4FGL_J1330.7+2933_daily_bin594.fits outfile=/scratch/kocevski/720012/cmap_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.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.50
user 0.30
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/720012/ft1_filtered_4FGL_J1330.7+2933_daily_bin594.fits scfile=/scratch/kocevski/720012/ft2_4FGL_J1330.7+2933_daily_bin594.fits outfile=/scratch/kocevski/720012/cmap_HighResolution_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/720012/ft1_filtered_4FGL_J1330.7+2933_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/720012/ft2_4FGL_J1330.7+2933_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/720012/Model_4FGL_J1330.7+2933_daily_bin594.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/720012/ft1_filtered_4FGL_J1330.7+2933_daily_bin594.fits.....................!
real 43.24
user 42.13
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.703       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5882       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5318       1.0000         .10000E-03   10000.    
     9 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.857       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9161       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.773       1.0000         .10000E-03   10000.    
    15 'norm      '    18.249       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13287E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60892       1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.642       1.0000         .10000E-03   10000.    
    23 'norm      '    6.1051       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14281E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0168       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6385.196     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3097 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.624        21.251       -.26291E-07   -.20553E-04
   2  Prefactor     35.719        58.325        .10522E-05    .11233E-03
   3  Prefactor     2.4208        3.4984        .96339E-07    .35588E-04
   4  Prefactor     .10000E-03    4.7523       -.74845E-07** at limit **
   5  norm          .10000E-03    5.7081        .53846E-06** at limit **
   6  Prefactor     .10000E-03    35.240       -.10236E-05** at limit **
   7  norm          3.5887        3.9527        .36046E-06    .93393E-04
   8  Prefactor     3.5288        14.360        .75303E-06    .11175E-04
   9  norm          .10000E-03    2.7907       -.90527E-07** at limit **
  10  norm          19.862        5.3704       -.97792E-07   -.33101E-03
  11  norm          .10000E-03    8.8836        .15223E-06** at limit **
  12  norm          .10000E-03    5.7629        .10884E-06** at limit **
  13  Prefactor     3.9141        4.1573        .18306E-06   -.95666E-04
  14  Prefactor     20.767        17.512       -.15117E-06   -.39568E-04
  15  norm          18.249        7.9336        .29529E-06   -.65988E-03
  16  Prefactor     .10000E-03    151.69       -.11658E-05** at limit **
  17  norm          .10006E-03    10.340        .31643E-05** at limit **
  18  Prefactor     .10000E-03    18.030       -.11662E-05** at limit **
  19  Prefactor     9.3456        18.973       -.18328E-06   -.96007E-04
  20  Prefactor     .10001E-03    40.796        .14143E-05** at limit **
  21  Prefactor     .60899        2.3375        .21291E-05    .58934E-03
  22  Prefactor     54.645        20.996        .11254E-06   -.11300E-03
  23  norm          6.1049        4.4281        .58354E-07    .13089E-04
  24  Prefactor     .10000E-03    2.1352       -.28274E-06** at limit **
  25  Normalizat    1.0167        .17637       -.77762E-06   -.39864E-03
  26  Prefactor     .91038        .19007       -.15374E-06   -.34218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.6236
  Prefactor  = 35.7188
  Prefactor  = 2.42079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 3.58871
  Prefactor  = 3.52877
  norm       = 0.0001
  norm       = 19.8615
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.91413
  Prefactor  = 20.767
  norm       = 18.2486
  Prefactor  = 0.000100002
  norm       = 0.000100059
  Prefactor  = 0.000100002
  Prefactor  = 9.34559
  Prefactor  = 0.000100005
  Prefactor  = 0.608987
  Prefactor  = 54.6446
  norm       = 6.10491
  Prefactor  = 0.0001
  Normalizat = 1.01668
  Prefactor  = 0.910378
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.196     FROM HESSE     STATUS=OK           450 CALLS     3547 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.624        21.222        .80724E-04   -1.4715    
   2  Prefactor     35.719        58.826        .67070E-04   -1.4512    
   3  Prefactor     2.4208        3.4844        .17488E-03   -1.5397    
   4  Prefactor     .10000E-03    4.7987        .16965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.8971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    35.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5887        3.9597        .15970E-03   -1.5329    
   8  Prefactor     3.5288        14.282        .21510E-03   -1.5332    
   9  norm          .10000E-03    2.8101        .13008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.862        5.3405        .88946E-04   -1.4816    
  11  norm          .10000E-03    8.9633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.7682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9141        4.1351        .14019E-03   -1.5312    
  14  Prefactor     20.767        17.443        .87880E-04   -1.4796    
  15  norm          18.249        7.4716        .93756E-04   -1.4853    
  16  Prefactor     .10000E-03    153.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10006E-03    19.225        .34792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3456        18.993        .13112E-03   -1.5096    
  20  Prefactor     .10001E-03    41.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .60899        2.4918        .24287E-03   -1.5552    
  22  Prefactor     54.645        20.997        .54263E-04   -1.4228    
  23  norm          6.1049        4.4256        .13910E-03   -1.5214    
  24  Prefactor     .10000E-03    5.1028        .22448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0167        .20676        .23745E-03   -.92474    
  26  Prefactor     .91038        .22182        .28077E-03   -.95779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2117e-09
Minuit parameter uncertainties:
  1  21.2283
  2  58.9215
  3  3.48467
  4  5.97671e-06
  5  2.50046e-05
  6  0.000675204
  7  3.95998
  8  14.2042
  9  4.70667e-06
  10  5.34059
  11  2.66507e-05
  12  2.67452e-05
  13  4.13543
  14  17.4472
  15  7.472
  16  0.00104396
  17  0.00213116
  18  0.000386528
  19  19.0053
  20  0.000931961
  21  2.46367
  22  20.9998
  23  4.42582
  24  5.24557e-05
  25  0.206919
  26  0.222043
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  3.865e-04  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:  9.104e-01  2.220e-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.017e+00  2.069e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/720012/likelihoodResults_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.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) = 6385.19644777
delta logL = -0.000258401821156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6385.19618998
delta logL = -6.12070834904e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13153E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4904       1.0000          .0000       10.000    
     3 'Normalizat'    1.0167       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91034       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=   6385.195     FROM MIGRAD    STATUS=CONVERGED    223 CALLS      373 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22883        132.44        .36285E-02   -.15788E-03
   2  Index         3.3058        1.7212        .50000        .45946E-05
   3  Normalizat    1.0140        .11718E-01    .23745E-03    .19151E-05
   4  Prefactor     .91199        .13249E-01    .28077E-03    .32393E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.228828
  Index      = 3.30579
  Normalizat = 1.01401
  Prefactor  = 0.911991
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.195     FROM HESSE     STATUS=OK            29 CALLS      402 TOTAL
                     EDM=   .60E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22883        24.947        .14514E-03   -1.5804    
   2  Index         3.3058        6.6051        .10282E-01   -.34569    
   3  Normalizat    1.0140        .19992        .94981E-05   -.92563    
   4  Prefactor     .91199        .22147        .11231E-04   -.95723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98713e-13
Minuit parameter uncertainties:
  1  4.77955
  2  4.84222
  3  0.200072
  4  0.221693
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/720012': 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) = 6385.19461744
delta logL = 0.00157192686675

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.288e-01  4.780e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.306e+00  4.842e+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:  9.120e-01  2.217e-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.014e+00  2.001e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/720012/cmap_HighResolution_393292801_393552001_4FGL_J1330.7+2933_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-08 00:46:33.972540', job_id='720012', GAL2='0.91', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1631087193.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.57e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='594' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:46:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 720012: <4FGL_J1330.7+2933_daily_bin594> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin594> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:35:34 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:36:02 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:36:02 2021
Terminated at Wed Sep  8 00:46:34 2021
Results reported at Wed Sep  8 00:46:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin594 202.693 29.5536 393292801 393552001 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 :                                   616.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             381.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            660 sec.

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

