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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1484
RA = 202.693, Dec = 29.5536
tmin = 623980801, tmax = 624240001
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='725692', job_status='RUN', time_executed='2021-09-08 00:59:27.530307', time_epoch_executed='1631087967.53' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725692

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725692/ft1_4FGL_J1330.7+2933_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725692/ft2_4FGL_J1330.7+2933_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725692/ft1_4FGL_J1330.7+2933_daily_bin1484.fits outfile=/scratch/kocevski/725692/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1484.fits ra=202.693 dec=29.5536 rad=12.0 tmin=623980801.0 tmax=624240001.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 4.09
user 3.85
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725692/ft1_filtered_4FGL_J1330.7+2933_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/725692/ft2_4FGL_J1330.7+2933_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/725692/ltcube_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.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/725692/ft2_4FGL_J1330.7+2933_daily_bin1484.fits
.....................!
real 16.93
user 16.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725692/ft1_filtered_4FGL_J1330.7+2933_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/725692/ft2_4FGL_J1330.7+2933_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/725692/ltcube_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.fits outfile=/scratch/kocevski/725692/expmap_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.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/725692/ltcube_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.fits
.....................!
real 193.13
user 187.58
sys 4.79

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/725692/ft1_filtered_4FGL_J1330.7+2933_daily_bin1484.fits scfile=/scratch/kocevski/725692/ft2_4FGL_J1330.7+2933_daily_bin1484.fits outfile=/scratch/kocevski/725692/cmap_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.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.85
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725692/ft1_filtered_4FGL_J1330.7+2933_daily_bin1484.fits scfile=/scratch/kocevski/725692/ft2_4FGL_J1330.7+2933_daily_bin1484.fits outfile=/scratch/kocevski/725692/cmap_HighResolution_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    53.306       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.839       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.564       1.0000         .10000E-03   10000.    
     5 'norm      '    7.8311       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .16938       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.262       1.0000         .10000E-03   10000.    
    17 'norm      '    11.471       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.155       1.0000         .10000E-03   10000.    
    20 'Prefactor '    100.41       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.705       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.410       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84904       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0922       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=   5698.928     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3067 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.4579        .81986E-06** at limit **
   2  Prefactor     53.309        63.815        .43012E-05   -.57707E-05
   3  Prefactor     17.838        9.0833        .16480E-06   -.10973E-03
   4  Prefactor     15.565        7.7873       -.32941E-06    .69703E-05
   5  norm          7.8353        5.3676        .16327E-05   -.15796E-03
   6  Prefactor     .10000E-03    36.327        .53794E-06** at limit **
   7  norm          .10000E-03    .91686        .37096E-10** at limit **
   8  Prefactor     .10000E-03    8.0759       -.19527E-05** at limit **
   9  norm          .10000E-03    2.4741       -.16536E-07** at limit **
  10  norm          .10000E-03    2.8903       -.62261E-07** at limit **
  11  norm          .10000E-03    2.3625       -.31301E-07** at limit **
  12  norm          .10000E-03    7.6149        .12172E-05** at limit **
  13  Prefactor     .10000E-03    1.0724       -.38137E-07** at limit **
  14  Prefactor     .10000E-03    21.174       -.11626E-05** at limit **
  15  norm          .23616        9.5396        .31823E-05   -.44972E-05
  16  Prefactor     14.261        35.649        .29048E-05   -.47120E-05
  17  norm          11.443        9.5174       -.34854E-05   -.95163E-03
  18  Prefactor     9.9608        15.596        .40045E-05   -.49549E-04
  19  Prefactor     21.139        28.140       -.95807E-05   -.96199E-04
  20  Prefactor     100.44        67.228        .21190E-04   -.12337E-04
  21  Prefactor     .10000E-03    1.6148        .41703E-07** at limit **
  22  Prefactor     29.706        19.503        .23320E-05   -.53830E-04
  23  norm          .10000E-03    2.2759       -.17354E-08** at limit **
  24  Prefactor     43.412        8.1439        .16440E-06   -.21757E-04
  25  Normalizat    .84871        .17933       -.31385E-05   -.25413E-03
  26  Prefactor     1.0925        .19717        .90682E-06   -.40816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.3088
  Prefactor  = 17.8379
  Prefactor  = 15.5655
  norm       = 7.83529
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.236164
  Prefactor  = 14.2614
  norm       = 11.4434
  Prefactor  = 9.96077
  Prefactor  = 21.1391
  Prefactor  = 100.436
  Prefactor  = 0.0001
  Prefactor  = 29.7061
  norm       = 0.0001
  Prefactor  = 43.4123
  Normalizat = 0.848706
  Prefactor  = 1.09248
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.928     FROM HESSE     STATUS=OK           454 CALLS     3521 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.309        63.838        .54935E-04   -1.4246    
   3  Prefactor     17.838        9.0844        .94828E-04   -1.4863    
   4  Prefactor     15.565        7.7870        .10152E-03   -1.4919    
   5  norm          7.8353        5.3536        .13638E-03   -1.5148    
   6  Prefactor     .10000E-03    36.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .91960        .70588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.5027        .11593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.9853        .25017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3678        .11330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.6177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0803        .76296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .23616        88.614        .37990E-02   -1.5611    
  16  Prefactor     14.261        35.642        .10606E-03   -1.4953    
  17  norm          11.443        10.006        .11828E-03   -1.5031    
  18  Prefactor     9.9608        15.574        .12701E-03   -1.5077    
  19  Prefactor     21.139        28.131        .87084E-04   -1.4788    
  20  Prefactor     100.44        67.000        .20060E-03   -1.3700    
  21  Prefactor     .10000E-03    1.6292        .93643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.706        19.516        .73512E-04   -1.4617    
  23  norm          .10000E-03    2.2886        .11121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     43.412        8.1547        .60847E-04   -1.4389    
  25  Normalizat    .84871        .20944        .25623E-03   -.98287    
  26  Prefactor     1.0925        .23105        .26402E-03   -.89707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3404e-08
Minuit parameter uncertainties:
  1  2.90036e-06
  2  63.92
  3  9.08513
  4  7.78755
  5  5.35395
  6  0.000274838
  7  1.2026e-06
  8  5.91659e-06
  9  1.7851e-06
  10  1.17073e-05
  11  2.94347e-06
  12  5.30412e-06
  13  3.74733e-06
  14  4.64232e-05
  15  9.16103
  16  35.6952
  17  10.007
  18  15.5799
  19  28.1482
  20  67.0505
  21  6.03433e-06
  22  19.5199
  23  8.49752e-07
  24  8.15491
  25  0.209636
  26  0.231258
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.961e+00  1.558e+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.092e+00  2.313e-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.487e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/725692/likelihoodResults_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5698.8954628
delta logL = 0.0326886733719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5698.87812506
delta logL = 0.0500264100237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9428       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8257       1.0000          .0000       10.000    
     3 'Normalizat'    .83884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1000       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5698.878     FROM MIGRAD    STATUS=FAILED       102 CALLS      273 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9261        22.297        .76129E-03    .10934E-03
   2  Index         2.8263        1.7986        .90141E-02    .38711E-03
   3  Normalizat    .83886        .20224        .25758E-03    .88274E-07
   4  Prefactor     1.1000        .23110        .26325E-03   -.36707E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5698.878     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      349 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9261        22.297        .25310E-03   -1.5182    
   2  Index         2.8263        1.7986        .92896E-03   -.44975    
   3  Normalizat    .83886        .20224        .31429E-03   -.98643    
   4  Prefactor     1.1000        .23110        .24889E-03   -.89468    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5698.878     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      380 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9261        16.237        .15226E-03   -.89601E-06
   2  Index         2.8263        1.3259        .18028E-02    .14402E-04
   3  Normalizat    .83886        .20178        .10303E-04    .88274E-07
   4  Prefactor     1.1000        .23042        .10530E-04   -.36707E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.92611
  Index      = 2.82631
  Normalizat = 0.838863
  Prefactor  = 1.09997
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.878     FROM HESSE     STATUS=OK            25 CALLS      405 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9261        15.567        .60903E-05   -1.5182    
   2  Index         2.8263        1.2723        .36056E-03   -.44975    
   3  Normalizat    .83886        .20186        .10303E-04   -.98643    
   4  Prefactor     1.1000        .23053        .21060E-05   -.89468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95303e-13
Minuit parameter uncertainties:
  1  15.576
  2  1.28987
  3  0.202043
  4  0.230739
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725692': 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) = 5698.87812428
delta logL = 0.0500271880373

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  6.926e+00  1.558e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.826e+00  1.290e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.100e+00  2.307e-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.389e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/725692/cmap_HighResolution_623980801_624240001_4FGL_J1330.7+2933_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='9.95e-08', time_completed='2021-09-08 01:11:28.090304', job_id='725692', GAL2='1.10', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1631088688.09', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='5.00e-02', ts2='0.69', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1484' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 725692: <4FGL_J1330.7+2933_daily_bin1484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1484 202.693 29.5536 623980801 624240001 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 :                                   697.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            950 sec.

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

