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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin686
RA = 202.693, Dec = 29.5536
tmin = 417139201, tmax = 417398401
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='720158', job_status='RUN', time_executed='2021-09-08 00:38:12.277753', time_epoch_executed='1631086692.28' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/720158

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/720158/ft1_4FGL_J1330.7+2933_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/720158/ft2_4FGL_J1330.7+2933_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/720158/ft1_4FGL_J1330.7+2933_daily_bin686.fits outfile=/scratch/kocevski/720158/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin686.fits ra=202.693 dec=29.5536 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.51
user 5.18
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/720158/ft2_4FGL_J1330.7+2933_daily_bin686.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/720158/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/720158/ft1_filtered_4FGL_J1330.7+2933_daily_bin686.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/720158/ft1_filtered_4FGL_J1330.7+2933_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/720158/ft2_4FGL_J1330.7+2933_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/720158/ltcube_417139201_417398401_4FGL_J1330.7+2933_daily_bin686.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/720158/ft2_4FGL_J1330.7+2933_daily_bin686.fits
.....................!
real 15.55
user 14.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/720158/ft1_filtered_4FGL_J1330.7+2933_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/720158/ft2_4FGL_J1330.7+2933_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/720158/ltcube_417139201_417398401_4FGL_J1330.7+2933_daily_bin686.fits outfile=/scratch/kocevski/720158/expmap_417139201_417398401_4FGL_J1330.7+2933_daily_bin686.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/720158/ltcube_417139201_417398401_4FGL_J1330.7+2933_daily_bin686.fits
.....................!
real 194.52
user 187.61
sys 4.76

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/720158/ft1_filtered_4FGL_J1330.7+2933_daily_bin686.fits scfile=/scratch/kocevski/720158/ft2_4FGL_J1330.7+2933_daily_bin686.fits outfile=/scratch/kocevski/720158/cmap_417139201_417398401_4FGL_J1330.7+2933_daily_bin686.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.62
user 0.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.4327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.129       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.640       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4890       1.0000         .10000E-03   10000.    
    10 'norm      '    13.929       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0302       1.0000         .10000E-03   10000.    
    15 'norm      '    14.497       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49236       1.0000         .10000E-03   10000.    
    17 'norm      '    18.541       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.6700       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8708       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5528       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90239       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87373       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=   4146.676     FROM MIGRAD    STATUS=CONVERGED   1133 CALLS     3581 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.854        .18142E-02** at limit **
   2  Prefactor     .10000E-03    29.230        .18142E-02** at limit **
   3  Prefactor     .10000E-03    7.6970        .17334E-02** at limit **
   4  Prefactor     .10000E-03    4.5396        .13379E-02** at limit **
   5  norm          4.4313        6.1239        .16707E-03   -.43686E-04
   6  Prefactor     19.167        41.527        .91575E-04    .12166E-04
   7  norm          .10000E-03    1.9515        .87679E-03** at limit **
   8  Prefactor     13.634        23.465        .10846E-03    .26940E-04
   9  norm          1.4873        9.3723        .32303E-03    .48039E-04
  10  norm          13.918        8.8499        .10732E-03    .80401E-04
  11  norm          .10000E-03    5.9280        .15275E-02** at limit **
  12  norm          18.677        18.848        .92681E-04    .58879E-05
  13  Prefactor     .10000E-03    1.7201        .82291E-03** at limit **
  14  Prefactor     6.1058        28.623        .16351E-03    .36017E-04
  15  norm          14.497        13.004        .10519E-03    .19885E-04
  16  Prefactor     .10107        80.525        .16157        .32560E-04
  17  norm          18.542        13.585        .93015E-04    .12467E-04
  18  Prefactor     .10000E-03    22.402        .18142E-02** at limit **
  19  Prefactor     .10000E-03    13.484        .18142E-02** at limit **
  20  Prefactor     .10000E-03    30.777        .18142E-02** at limit **
  21  Prefactor     5.6691        6.1122        .15278E-03    .57299E-04
  22  Prefactor     8.8684        16.928        .13458E-03    .61669E-05
  23  norm          .10000E-03    4.4559        .13151E-02** at limit **
  24  Prefactor     1.5516        4.3653        .21180E-03    .39881E-04
  25  Normalizat    .90242        .25602        .23825E-03    .89183E-04
  26  Prefactor     .87378        .26320        .26044E-03    .99178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.43131
  Prefactor  = 19.1667
  norm       = 0.0001
  Prefactor  = 13.6336
  norm       = 1.48727
  norm       = 13.9179
  norm       = 0.0001
  norm       = 18.6766
  Prefactor  = 0.0001
  Prefactor  = 6.10584
  norm       = 14.497
  Prefactor  = 0.101072
  norm       = 18.5417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.66912
  Prefactor  = 8.86845
  norm       = 0.0001
  Prefactor  = 1.55164
  Normalizat = 0.902416
  Prefactor  = 0.873781
 **********
 **   18 **HESSE 
 **********

 FCN=   4146.676     FROM HESSE     STATUS=OK           440 CALLS     4021 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.861        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.7006        .34668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5398        .26757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.4313        6.1228        .66829E-05   -1.5287    
   6  Prefactor     19.167        41.529        .36630E-05   -1.4832    
   7  norm          .10000E-03    1.9516        .17536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.634        23.429        .43382E-05   -1.4969    
   9  norm          1.4873        9.3382        .12921E-04   -1.5464    
  10  norm          13.918        8.8484        .42929E-05   -1.4962    
  11  norm          .10000E-03    5.9281        .30549E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.677        18.849        .37072E-05   -1.4843    
  13  Prefactor     .10000E-03    1.7201        .16458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1058        28.601        .65403E-05   -1.5214    
  15  norm          14.497        13.005        .42078E-05   -1.4946    
  16  Prefactor     .10107        79.960        .16237       -1.5644    
  17  norm          18.542        13.585        .37206E-05   -1.4846    
  18  Prefactor     .10000E-03    22.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.777        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.6691        6.1119        .61110E-05   -1.5232    
  22  Prefactor     8.8684        16.928        .53830E-05   -1.5112    
  23  norm          .10000E-03    4.4576        .26302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5516        4.3645        .84721E-05   -1.5459    
  25  Normalizat    .90242        .25632        .95301E-05   -.96375    
  26  Prefactor     .87378        .26354        .10418E-04   -.97063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70327e-11
Minuit parameter uncertainties:
  1  6.99014e-05
  2  2.89083e-05
  3  6.65534e-06
  4  2.12417e-05
  5  6.12365
  6  41.5914
  7  2.14593e-06
  8  23.4444
  9  7.45491
  10  8.84922
  11  1.24442e-06
  12  18.8549
  13  7.06193e-06
  14  26.4503
  15  13.0073
  16  5.6905
  17  13.5876
  18  4.23049e-05
  19  1.35056e-05
  20  2.16008e-06
  21  6.11258
  22  16.9374
  23  1.19752e-05
  24  4.36539
  25  0.256667
  26  0.263927
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.230e-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:  8.738e-01  2.639e-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.024e-01  2.567e-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: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/720158/likelihoodResults_417139201_417398401_4FGL_J1330.7+2933_daily_bin686.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) = 4146.67644368
delta logL = -0.000212673500755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4146.67623118
delta logL = -1.65894562087e-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.3599       1.0000          .0000       10.000    
     3 'Normalizat'    .90243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87379       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.

 FCN=   4146.676     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1792.7        .90712E-02** at limit **
   2  Index         2.3755        7.8382        .50000       -.66086E-05
   3  Normalizat    .90242        .51816E-01    .44933E-01    .20635E-04
   4  Prefactor     .87378        .56039E-01    .44670E-01    .18164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37547
  Normalizat = 0.902416
  Prefactor  = 0.87378
 **********
 **   18 **HESSE 
 **********

 FCN=   4146.676     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6883.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3755        5.4356        .50000       -.55260    
   3  Normalizat    .90242        .11564        .23825E-03   -.96375    
   4  Prefactor     .87378        .12520        .26044E-03   -.97063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.79716e-09
Minuit parameter uncertainties:
  1  0.000288514
  2  61.2033
  3  0.115676
  4  0.125238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/720158': 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) = 4146.67623113
delta logL = -1.17285708257e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.885e-04  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.375e+00  6.120e+01  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:  8.738e-01  1.252e-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.024e-01  1.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.693 29.554

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/720158/cmap_HighResolution_417139201_417398401_4FGL_J1330.7+2933_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-08 00:48:17.116659', job_id='720158', GAL2='0.87', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631087297.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='686' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:48:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 720158: <4FGL_J1330.7+2933_daily_bin686> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin686> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:35:47 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:37:58 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:37:58 2021
Terminated at Wed Sep  8 00:48:17 2021
Results reported at Wed Sep  8 00:48:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin686 202.693 29.5536 417139201 417398401 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 :                                   595.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            750 sec.

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

