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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1252
RA = 202.693, Dec = 29.5536
tmin = 563846401, tmax = 564105601
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='724289', job_status='RUN', time_executed='2021-09-08 00:53:20.459932', time_epoch_executed='1631087600.46' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724289/ft1_4FGL_J1330.7+2933_daily_bin1252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724289/ft2_4FGL_J1330.7+2933_daily_bin1252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724289/ft1_4FGL_J1330.7+2933_daily_bin1252.fits outfile=/scratch/kocevski/724289/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1252.fits ra=202.693 dec=29.5536 rad=12.0 tmin=563846401.0 tmax=564105601.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 2.83
user 2.60
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724289/ft1_filtered_4FGL_J1330.7+2933_daily_bin1252.fits" evtable="EVENTS" scfile=/scratch/kocevski/724289/ft2_4FGL_J1330.7+2933_daily_bin1252.fits sctable="SC_DATA" outfile=/scratch/kocevski/724289/ltcube_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.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/724289/ft2_4FGL_J1330.7+2933_daily_bin1252.fits
.....................!
real 15.59
user 15.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724289/ft1_filtered_4FGL_J1330.7+2933_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/724289/ft2_4FGL_J1330.7+2933_daily_bin1252.fits sctable="SC_DATA" expcube=/scratch/kocevski/724289/ltcube_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.fits outfile=/scratch/kocevski/724289/expmap_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.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/724289/ltcube_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.fits
.....................!
real 191.99
user 185.88
sys 5.41

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/724289/ft1_filtered_4FGL_J1330.7+2933_daily_bin1252.fits scfile=/scratch/kocevski/724289/ft2_4FGL_J1330.7+2933_daily_bin1252.fits outfile=/scratch/kocevski/724289/cmap_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724289/ft1_filtered_4FGL_J1330.7+2933_daily_bin1252.fits scfile=/scratch/kocevski/724289/ft2_4FGL_J1330.7+2933_daily_bin1252.fits outfile=/scratch/kocevski/724289/cmap_HighResolution_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=202.693 yref=29.5536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724289/ft1_filtered_4FGL_J1330.7+2933_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/724289/ft2_4FGL_J1330.7+2933_daily_bin1252.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724289/Model_4FGL_J1330.7+2933_daily_bin1252.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/724289/ft1_filtered_4FGL_J1330.7+2933_daily_bin1252.fits.....................!
real 60.47
user 58.99
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8528       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2278       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2513       1.0000         .10000E-03   10000.    
     5 'norm      '    .24541E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.3212       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.864       1.0000         .10000E-03   10000.    
    10 'norm      '    4.9120       1.0000         .10000E-03   10000.    
    11 'norm      '    8.5260       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41072       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4319       1.0000         .10000E-03   10000.    
    15 'norm      '    10.320       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.485       1.0000         .10000E-03   10000.    
    17 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.503       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.030       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7648       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3547       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.604       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2732       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .54615       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=   7750.404     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3095 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8531        8.9702       -.29897E-06   -.17571E-05
   2  Prefactor     .10000E-03    26.920        .14404E-06** at limit **
   3  Prefactor     3.2275        6.3656        .38646E-05    .12514E-03
   4  Prefactor     5.2522        4.3644        .36630E-06    .14235E-03
   5  norm          .10001E-03    2.2769       -.15383E-05** at limit **
   6  Prefactor     .10000E-03    11.600       -.37423E-06** at limit **
   7  norm          7.3211        4.0850        .12375E-06   -.18358E-04
   8  Prefactor     .10000E-03    8.2813       -.37235E-07** at limit **
   9  norm          12.865        5.3014        .11409E-06    .28565E-03
  10  norm          4.9039        5.6460       -.13674E-06    .24508E-03
  11  norm          8.5396        9.5945        .20932E-06    .13040E-03
  12  norm          .10000E-03    10.417        .30260E-06** at limit **
  13  Prefactor     .41190        2.1414       -.19568E-07   -.27529E-03
  14  Prefactor     1.4337        8.1407        .68593E-06    .28559E-04
  15  norm          10.317        6.5079        .29497E-06   -.67164E-04
  16  Prefactor     27.475        36.742        .92395E-06   -.77566E-04
  17  norm          .10000E-03    3.7668        .76169E-07** at limit **
  18  Prefactor     .10000E-03    3.6246       -.98235E-07** at limit **
  19  Prefactor     20.498        19.057        .31430E-06   -.10112E-03
  20  Prefactor     27.017        56.125        .12517E-05   -.71051E-04
  21  Prefactor     5.7644        3.0824        .79051E-07   -.20058E-03
  22  Prefactor     2.3540        15.386        .10089E-05    .71790E-05
  23  norm          .10000E-03    1.1092        .22120E-07** at limit **
  24  Prefactor     11.604        3.8766        .24509E-07   -.48317E-04
  25  Normalizat    1.2734        .15832        .10934E-05    .23416E-03
  26  Prefactor     .54602        .16989       -.32810E-05   -.64048E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.85306
  Prefactor  = 0.0001
  Prefactor  = 3.22745
  Prefactor  = 5.25223
  norm       = 0.000100011
  Prefactor  = 0.0001
  norm       = 7.3211
  Prefactor  = 0.0001
  norm       = 12.8651
  norm       = 4.90395
  norm       = 8.53959
  norm       = 0.0001
  Prefactor  = 0.411903
  Prefactor  = 1.43366
  norm       = 10.3175
  Prefactor  = 27.4752
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4981
  Prefactor  = 27.0169
  Prefactor  = 5.76437
  Prefactor  = 2.35401
  norm       = 0.0001
  Prefactor  = 11.6036
  Normalizat = 1.27336
  Prefactor  = 0.546019
 **********
 **   18 **HESSE 
 **********

 FCN=   7750.404     FROM HESSE     STATUS=OK           462 CALLS     3557 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8531        8.9728        .67356E-03   -1.5113    
   2  Prefactor     .10000E-03    26.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2275        6.5059        .11274E-02   -1.5349    
   4  Prefactor     5.2522        4.3671        .80932E-03   -1.5250    
   5  norm          .10001E-03    10.315        .22489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.3211        4.0826        .63290E-03   -1.5167    
   8  Prefactor     .10000E-03    8.3183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.865        5.2829        .55841E-03   -1.4990    
  10  norm          4.9039        6.0467        .12838E-03   -1.5265    
  11  norm          8.5396        10.354        .13729E-03   -1.5123    
  12  norm          .10000E-03    10.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .41190        2.0005        .23538E-03   -1.5580    
  14  Prefactor     1.4337        7.8111        .36095E-03   -1.5468    
  15  norm          10.317        6.5086        .62363E-03   -1.5065    
  16  Prefactor     27.475        36.757        .76416E-04   -1.4659    
  17  norm          .10000E-03    3.7873        .16667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.6288        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.498        19.090        .88455E-04   -1.4802    
  20  Prefactor     27.017        56.559        .77054E-04   -1.4668    
  21  Prefactor     5.7644        3.0824        .10865E-03   -1.5228    
  22  Prefactor     2.3540        15.383        .26711E-03   -1.5401    
  23  norm          .10000E-03    1.1158        .90541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.604        3.8792        .96955E-04   -1.5027    
  25  Normalizat    1.2734        .18289        .20747E-03   -.84365    
  26  Prefactor     .54602        .19203        .33750E-03   -1.0991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74943e-09
Minuit parameter uncertainties:
  1  8.97416
  2  1.35234e-05
  3  6.50734
  4  4.36737
  5  0.000685506
  6  0.000143255
  7  4.0828
  8  4.20568e-05
  9  5.28308
  10  6.04749
  11  10.3566
  12  5.02795e-05
  13  1.81538
  14  6.69393
  15  6.50907
  16  36.787
  17  4.39471e-06
  18  6.02795e-06
  19  19.0953
  20  56.6719
  21  3.08252
  22  12.0395
  23  1.68329e-06
  24  3.87932
  25  0.182978
  26  0.192263
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  6.028e-06  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:  5.460e-01  1.923e-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.273e+00  1.830e-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: 4.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724289/likelihoodResults_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.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) = 7750.40572761
delta logL = -0.00130344926492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7750.40442436
delta logL = -1.94850144908e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4293       1.0000          .0000       10.000    
     3 'Normalizat'    1.2734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54594       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=   7750.404     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      258 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.439        .16611E-01** at limit **
   2  Index         1.8800        5.7690        .50000        .26105E-06
   3  Normalizat    1.2734        .58821E-02    .20747E-03    .21492E-03
   4  Prefactor     .54602        .65312E-02    .33750E-03    .13791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87995
  Normalizat = 1.27335
  Prefactor  = 0.546023
 **********
 **   18 **HESSE 
 **********

 FCN=   7750.404     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    126.38        .18508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8800        5.8671        .50000       -.67386    
   3  Normalizat    1.2734        .19284E-01    .41495E-04   -.84365    
   4  Prefactor     .54602        .21411E-01    .13500E-04   -1.0991    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97744e-09
Minuit parameter uncertainties:
  1  1.38574e-05
  2  642.722
  3  0.0192837
  4  0.0214117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724289': 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) = 7750.40442117
delta logL = 2.99714793073e-06

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.386e-05  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.880e+00  6.427e+02  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:  5.460e-01  2.141e-02  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.273e+00  1.928e-02  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/724289/cmap_HighResolution_563846401_564105601_4FGL_J1330.7+2933_daily_bin1252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-03', job_status='DONE', photon_flux_upper_limit='4.03e-08', time_completed='2021-09-08 01:06:47.995313', job_id='724289', GAL2='0.55', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631088408.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='3.00e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1252' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:06:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 724289: <4FGL_J1330.7+2933_daily_bin1252> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1252 202.693 29.5536 563846401 564105601 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 :                                   803.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            965 sec.

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

