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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1193
RA = 202.693, Dec = 29.5536
tmin = 548553601, tmax = 548812801
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='724204', job_status='RUN', time_executed='2021-09-08 00:50:59.118829', time_epoch_executed='1631087459.12' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724204/ft1_4FGL_J1330.7+2933_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724204/ft2_4FGL_J1330.7+2933_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724204/ft1_4FGL_J1330.7+2933_daily_bin1193.fits outfile=/scratch/kocevski/724204/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1193.fits ra=202.693 dec=29.5536 rad=12.0 tmin=548553601.0 tmax=548812801.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.44
user 3.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724204/ft2_4FGL_J1330.7+2933_daily_bin1193.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/724204/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1193.fits evtable="EVENTS" outfile="/scratch/kocevski/724204/ft1_filtered_4FGL_J1330.7+2933_daily_bin1193.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724204/ft1_filtered_4FGL_J1330.7+2933_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/724204/ft2_4FGL_J1330.7+2933_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/724204/ltcube_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.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/724204/ft2_4FGL_J1330.7+2933_daily_bin1193.fits
.....................!
real 14.60
user 14.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724204/ft1_filtered_4FGL_J1330.7+2933_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/724204/ft2_4FGL_J1330.7+2933_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/724204/ltcube_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.fits outfile=/scratch/kocevski/724204/expmap_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.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/724204/ltcube_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.fits
.....................!
real 192.25
user 187.03
sys 4.65

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/724204/ft1_filtered_4FGL_J1330.7+2933_daily_bin1193.fits scfile=/scratch/kocevski/724204/ft2_4FGL_J1330.7+2933_daily_bin1193.fits outfile=/scratch/kocevski/724204/cmap_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724204/ft1_filtered_4FGL_J1330.7+2933_daily_bin1193.fits scfile=/scratch/kocevski/724204/ft2_4FGL_J1330.7+2933_daily_bin1193.fits outfile=/scratch/kocevski/724204/cmap_HighResolution_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3419       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6900       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9469       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.389       1.0000         .10000E-03   10000.    
     9 'norm      '    .10246E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5185       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .52459       1.0000         .10000E-03   10000.    
    15 'norm      '    9.8881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.438       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8100       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .30105       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9166       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76501       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3976       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=   10763.60     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2716 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6987       -.41956E-07** at limit **
   2  Prefactor     .10000E-03    30.268       -.11617E-06** at limit **
   3  Prefactor     1.4566        3.9602        .29560E-05   -.21506E-04
   4  Prefactor     7.3418        5.3027       -.18614E-07    .17183E-03
   5  norm          2.6909        2.6981       -.92735E-07   -.27408E-04
   6  Prefactor     9.9396        14.488        .49321E-06    .92225E-04
   7  norm          .10000E-03    .94222       -.66982E-09** at limit **
   8  Prefactor     14.381        13.005        .82252E-06    .23114E-03
   9  norm          .10000E-03    2.0094       -.53822E-06** at limit **
  10  norm          3.5226        2.6335        .12141E-05    .43593E-03
  11  norm          .10000E-03    2.4791       -.61913E-06** at limit **
  12  norm          15.367        12.436       -.75073E-07    .23752E-04
  13  Prefactor     .10000E-03    1.0115       -.76338E-06** at limit **
  14  Prefactor     .46635        5.9210       -.34263E-05    .17359E-03
  15  norm          9.8873        5.1575       -.20562E-06    .17003E-03
  16  Prefactor     56.464        34.474        .55603E-06   -.12480E-03
  17  norm          .10000E-03    4.5734       -.15971E-06** at limit **
  18  Prefactor     .10000E-03    4.9673       -.10660E-07** at limit **
  19  Prefactor     13.556        10.908        .45638E-07    .23244E-04
  20  Prefactor     7.8078        33.290        .11363E-06    .15200E-04
  21  Prefactor     .30071        1.0989       -.14222E-06   -.20768E-03
  22  Prefactor     .10000E-03    4.3739        .47661E-07** at limit **
  23  norm          .10000E-03    .92302       -.15848E-07** at limit **
  24  Prefactor     3.9164        2.6680       -.57160E-07    .43997E-05
  25  Normalizat    .76505        .13114        .10681E-05    .14462E-03
  26  Prefactor     1.3977        .14867       -.35642E-07    .45580E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.45658
  Prefactor  = 7.34184
  norm       = 2.69093
  Prefactor  = 9.93956
  norm       = 0.0001
  Prefactor  = 14.3813
  norm       = 0.0001
  norm       = 3.52257
  norm       = 0.0001
  norm       = 15.3674
  Prefactor  = 0.0001
  Prefactor  = 0.466354
  norm       = 9.88734
  Prefactor  = 56.4641
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5564
  Prefactor  = 7.8078
  Prefactor  = 0.300709
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.91635
  Normalizat = 0.765054
  Prefactor  = 1.39766
 **********
 **   18 **HESSE 
 **********

 FCN=   10763.60     FROM HESSE     STATUS=OK           464 CALLS     3180 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4566        4.0076        .16744E-02   -1.5467    
   4  Prefactor     7.3418        5.2865        .14802E-03   -1.5166    
   5  norm          2.6909        2.6794        .15872E-03   -1.5380    
   6  Prefactor     9.9396        14.398        .12705E-03   -1.5077    
   7  norm          .10000E-03    .95835        .98306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.381        12.817        .10559E-03   -1.4949    
   9  norm          .10000E-03    4.4301        .27686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5226        2.7032        .65982E-03   -1.5333    
  11  norm          .10000E-03    2.5413        .16003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.367        12.435        .10217E-03   -1.4924    
  13  Prefactor     .10000E-03    1.0269        .20263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .46635        52.250        .40387E-02   -1.5571    
  15  norm          9.8873        5.1468        .12743E-03   -1.5079    
  16  Prefactor     56.464        34.680        .26699E-03   -1.4204    
  17  norm          .10000E-03    4.6394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.556        10.913        .10879E-03   -1.4971    
  20  Prefactor     7.8078        33.368        .14348E-03   -1.5149    
  21  Prefactor     .30071        3.7345        .19778E-02   -1.5598    
  22  Prefactor     .10000E-03    4.3972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .92570        .97329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.9164        2.6671        .13510E-03   -1.5312    
  25  Normalizat    .76505        .15256        .26103E-03   -1.0138    
  26  Prefactor     1.3977        .17580        .24134E-03   -.80448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36652e-08
Minuit parameter uncertainties:
  1  1.76636e-05
  2  8.82747e-05
  3  4.00835
  4  5.28685
  5  2.67955
  6  14.4032
  7  5.12685e-06
  8  12.8196
  9  5.45659e-05
  10  2.70334
  11  5.21105e-05
  12  12.4367
  13  1.63961e-05
  14  9.88035
  15  5.14698
  16  34.6921
  17  1.15753e-05
  18  1.56664e-05
  19  10.9146
  20  32.3125
  21  2.11925
  22  8.8033e-06
  23  2.55855e-06
  24  2.66721
  25  0.15265
  26  0.175876
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.567e-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.398e+00  1.759e-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:  7.651e-01  1.526e-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: 3.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724204/likelihoodResults_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.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) = 10763.5991795
delta logL = -0.000951304073169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10763.5982279
delta logL = 2.52546669799e-07

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 'Index     '    2.4234       1.0000          .0000       10.000    
     3 'Normalizat'    .76506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3977       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=   10763.60     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10227E-03    2.9606        .18142E-01** at limit **
   2  Index         2.3445        5.0396        .50000        .33179E-04
   3  Normalizat    .76505        .22598E-02    .26103E-03   -.13197E-03
   4  Prefactor     1.3977        .27440E-02    .24134E-03    .77049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102268
  Index      = 2.3445
  Normalizat = 0.765055
  Prefactor  = 1.39766
 **********
 **   18 **HESSE 
 **********

 FCN=   10763.60     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10227E-03    183.73        .46896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3445        5.8503        .50000       -.55990    
   3  Normalizat    .76505        .18218E-01    .10441E-04   -1.0138    
   4  Prefactor     1.3977        .22122E-01    .48267E-04   -.80448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41538e-08
Minuit parameter uncertainties:
  1  0.0409557
  2  481.251
  3  0.0182184
  4  0.0221217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724204': 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) = 10763.5982274
delta logL = 7.27679434931e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.023e-04  4.096e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.345e+00  4.813e+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.398e+00  2.212e-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:  7.651e-01  1.822e-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/724204/cmap_HighResolution_548553601_548812801_4FGL_J1330.7+2933_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-03', job_status='DONE', photon_flux_upper_limit='3.66e-08', time_completed='2021-09-08 01:06:55.733805', job_id='724204', GAL2='1.40', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631088415.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='7.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1193' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:06:55 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1193 202.693 29.5536 548553601 548812801 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 :                                   950.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            979 sec.

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

