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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1128
RA = 202.693, Dec = 29.5536
tmin = 531705601, tmax = 531964801
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='722947', job_status='RUN', time_executed='2021-09-08 00:49:49.799680', time_epoch_executed='1631087389.8' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722947/ft1_4FGL_J1330.7+2933_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722947/ft2_4FGL_J1330.7+2933_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722947/ft1_4FGL_J1330.7+2933_daily_bin1128.fits outfile=/scratch/kocevski/722947/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1128.fits ra=202.693 dec=29.5536 rad=12.0 tmin=531705601.0 tmax=531964801.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.16
user 3.75
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722947/ft1_filtered_4FGL_J1330.7+2933_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/722947/ft2_4FGL_J1330.7+2933_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/722947/ltcube_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.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/722947/ft2_4FGL_J1330.7+2933_daily_bin1128.fits
.....................!
real 13.99
user 13.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722947/ft1_filtered_4FGL_J1330.7+2933_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/722947/ft2_4FGL_J1330.7+2933_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/722947/ltcube_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.fits outfile=/scratch/kocevski/722947/expmap_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.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/722947/ltcube_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.fits
.....................!
real 191.30
user 185.94
sys 4.86

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/722947/ft1_filtered_4FGL_J1330.7+2933_daily_bin1128.fits scfile=/scratch/kocevski/722947/ft2_4FGL_J1330.7+2933_daily_bin1128.fits outfile=/scratch/kocevski/722947/cmap_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722947/ft1_filtered_4FGL_J1330.7+2933_daily_bin1128.fits scfile=/scratch/kocevski/722947/ft2_4FGL_J1330.7+2933_daily_bin1128.fits outfile=/scratch/kocevski/722947/cmap_HighResolution_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722947/ft1_filtered_4FGL_J1330.7+2933_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/722947/ft2_4FGL_J1330.7+2933_daily_bin1128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722947/Model_4FGL_J1330.7+2933_daily_bin1128.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/722947/ft1_filtered_4FGL_J1330.7+2933_daily_bin1128.fits.....................!
real 51.68
user 50.39
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78843       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6071       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0579       1.0000         .10000E-03   10000.    
    15 'norm      '    11.294       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.567       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6127       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.607       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21291E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.753       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3519       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4172       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91530       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2131       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=   6066.634     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3128 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81772        13.217       -.34176E-05    .53910E-03
   2  Prefactor     .10000E-03    26.510       -.21105E-06** at limit **
   3  Prefactor     6.1868        9.1116        .53532E-05    .45905E-03
   4  Prefactor     .10000E-03    7.0332       -.24035E-06** at limit **
   5  norm          .10000E-03    2.6362       -.44583E-07** at limit **
   6  Prefactor     15.217        20.644        .56598E-06    .39785E-04
   7  norm          .10000E-03    2.7112       -.60707E-06** at limit **
   8  Prefactor     6.6059        8.9196        .17930E-06    .51422E-04
   9  norm          .10000E-03    1.4034        .72246E-08** at limit **
  10  norm          .10000E-03    1.0530       -.15533E-06** at limit **
  11  norm          .10000E-03    1.3703       -.60856E-07** at limit **
  12  norm          .10000E-03    18.618       -.43219E-06** at limit **
  13  Prefactor     1.8125        4.1622        .32583E-06    .50117E-04
  14  Prefactor     5.0721        17.841        .13639E-05   -.33912E-04
  15  norm          11.288        8.1241       -.52355E-07   -.12866E-03
  16  Prefactor     39.565        40.459        .31135E-07   -.10873E-04
  17  norm          2.6268        8.6366        .11056E-05   -.87616E-05
  18  Prefactor     .10000E-03    12.838       -.39569E-06** at limit **
  19  Prefactor     .38172        21.738        .30296E-05   -.26341E-03
  20  Prefactor     37.748        90.875        .50967E-05    .12756E-03
  21  Prefactor     .10000E-03    1.8371       -.15540E-07** at limit **
  22  Prefactor     11.753        16.366        .24258E-06    .67660E-06
  23  norm          5.3516        4.9842        .19339E-06    .49019E-04
  24  Prefactor     9.4170        5.5193        .19607E-06   -.65511E-04
  25  Normalizat    .91539        .19124       -.42777E-05    .52492E-04
  26  Prefactor     1.2130        .19978        .28265E-05   -.11792E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.817718
  Prefactor  = 0.0001
  Prefactor  = 6.18684
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2168
  norm       = 0.0001
  Prefactor  = 6.60588
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.81254
  Prefactor  = 5.07212
  norm       = 11.2878
  Prefactor  = 39.565
  norm       = 2.62684
  Prefactor  = 0.0001
  Prefactor  = 0.381716
  Prefactor  = 37.7476
  Prefactor  = 0.000100002
  Prefactor  = 11.7531
  norm       = 5.35161
  Prefactor  = 9.41701
  Normalizat = 0.915387
  Prefactor  = 1.21302
 **********
 **   18 **HESSE 
 **********

 FCN=   6066.634     FROM HESSE     STATUS=OK           468 CALLS     3596 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81772        63.149        .50830E-02   -1.5527    
   2  Prefactor     .10000E-03    26.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1868        9.3794        .80702E-03   -1.5210    
   4  Prefactor     .10000E-03    7.2949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.6745        .12320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.217        20.584        .10266E-03   -1.4928    
   7  norm          .10000E-03    2.7714        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6059        8.9051        .15612E-03   -1.5194    
   9  norm          .10000E-03    1.4079        .90086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0554        .77994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3708        .89039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8125        3.9698        .18250E-03   -1.5439    
  14  Prefactor     5.0721        17.187        .17879E-03   -1.5258    
  15  norm          11.288        8.0524        .11921E-03   -1.5036    
  16  Prefactor     39.565        40.394        .63722E-04   -1.4449    
  17  norm          2.6268        8.5309        .25235E-03   -1.5384    
  18  Prefactor     .10000E-03    12.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .38172        24.575        .97185E-01   -1.5584    
  20  Prefactor     37.748        91.500        .65356E-04   -1.4478    
  21  Prefactor     .10000E-03    14.972        .20338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.753        16.384        .11685E-03   -1.5022    
  23  norm          5.3516        4.9795        .16259E-03   -1.5245    
  24  Prefactor     9.4170        5.5201        .13059E-03   -1.5094    
  25  Normalizat    .91539        .21768        .25638E-03   -.95922    
  26  Prefactor     1.2130        .23047        .25516E-03   -.85931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78608e-09
Minuit parameter uncertainties:
  1  14.3868
  2  3.79399e-05
  3  9.38158
  4  2.64162e-05
  5  1.18849e-06
  6  20.5937
  7  2.59189e-05
  8  8.90684
  9  3.87237e-07
  10  2.39961e-06
  11  1.2656e-06
  12  1.77848e-05
  13  3.97038
  14  17.2042
  15  8.0532
  16  40.4218
  17  8.53481
  18  3.52062e-05
  19  6.12737
  20  91.8426
  21  0.000318716
  22  16.3906
  23  4.97986
  24  5.52037
  25  0.217887
  26  0.230663
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  3.521e-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.213e+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:  9.154e-01  2.179e-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: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722947/likelihoodResults_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.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) = 6066.63427957
delta logL = -0.00036955442647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6066.6339099
delta logL = 1.1777774489e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4205       1.0000          .0000       10.000    
     3 'Normalizat'    .91539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2130       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=   6066.634     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10175E-03    119.21        .18142E-02** at limit **
   2  Index         2.3541        5.7424        .50000        .13432E-04
   3  Normalizat    .91538        .12636E-01    .25639E-03   -.41947E-04
   4  Prefactor     1.2130        .14314E-01    .25516E-03    .28917E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101749
  Index      = 2.35409
  Normalizat = 0.915384
  Prefactor  = 1.21303
 **********
 **   18 **HESSE 
 **********

 FCN=   6066.634     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10175E-03    502.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3541        5.0846        .50000       -.55764    
   3  Normalizat    .91538        .26935E-01    .10255E-04   -.95922    
   4  Prefactor     1.2130        .30511E-01    .10206E-04   -.85931    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07973e-08
Minuit parameter uncertainties:
  1  0.0598042
  2  675.18
  3  0.026935
  4  0.0305114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722947': 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) = 6066.63390972
delta logL = 2.94235178444e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.017e-04  5.980e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.354e+00  6.752e+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:  1.213e+00  3.051e-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:  9.154e-01  2.693e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/722947/cmap_HighResolution_531705601_531964801_4FGL_J1330.7+2933_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-08 01:01:24.937762', job_id='722947', GAL2='1.21', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631088084.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1128' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 722947: <4FGL_J1330.7+2933_daily_bin1128> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1128> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:42 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:45 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:45:45 2021
Terminated at Wed Sep  8 01:01:25 2021
Results reported at Wed Sep  8 01:01:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1128 202.693 29.5536 531705601 531964801 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            943 sec.

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

