/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 7 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin103
RA = 202.693, Dec = 29.5536
tmin = 266025601, tmax = 266284801
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='705269', job_status='RUN', time_executed='2021-09-07 23:46:37.897839', time_epoch_executed='1631083597.9' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705269/ft1_4FGL_J1330.7+2933_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705269/ft2_4FGL_J1330.7+2933_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705269/ft1_4FGL_J1330.7+2933_daily_bin103.fits outfile=/scratch/kocevski/705269/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin103.fits ra=202.693 dec=29.5536 rad=12.0 tmin=266025601.0 tmax=266284801.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 1.52
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705269/ft1_filtered_4FGL_J1330.7+2933_daily_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/705269/ft2_4FGL_J1330.7+2933_daily_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/705269/ltcube_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.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/705269/ft2_4FGL_J1330.7+2933_daily_bin103.fits
.....................!
real 18.66
user 18.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705269/ft1_filtered_4FGL_J1330.7+2933_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/705269/ft2_4FGL_J1330.7+2933_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/705269/ltcube_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.fits outfile=/scratch/kocevski/705269/expmap_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.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/705269/ltcube_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.fits
.....................!
real 196.92
user 191.98
sys 4.27

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/705269/ft1_filtered_4FGL_J1330.7+2933_daily_bin103.fits scfile=/scratch/kocevski/705269/ft2_4FGL_J1330.7+2933_daily_bin103.fits outfile=/scratch/kocevski/705269/cmap_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.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/705269/ft1_filtered_4FGL_J1330.7+2933_daily_bin103.fits scfile=/scratch/kocevski/705269/ft2_4FGL_J1330.7+2933_daily_bin103.fits outfile=/scratch/kocevski/705269/cmap_HighResolution_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705269/ft1_filtered_4FGL_J1330.7+2933_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/705269/ft2_4FGL_J1330.7+2933_daily_bin103.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705269/Model_4FGL_J1330.7+2933_daily_bin103.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/705269/ft1_filtered_4FGL_J1330.7+2933_daily_bin103.fits.....................!
real 68.87
user 67.50
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5229       1.0000         .10000E-03   10000.    
     5 'norm      '    .29325E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77260E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6932       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32508E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.282       1.0000         .10000E-03   10000.    
    10 'norm      '    9.8426       1.0000         .10000E-03   10000.    
    11 'norm      '    .18196E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.4570       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    78.596       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10501E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.429       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.975       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11432E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6405       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.231       1.0000         .10000E-03   10000.    
    23 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3639       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65708       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=   8684.682     FROM MIGRAD    STATUS=CONVERGED   1105 CALLS     3213 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.374        .18142E-02** at limit **
   2  Prefactor     .10000E-03    34.212        .18142E-02** at limit **
   3  Prefactor     .10000E-03    6.1158        .28960E-02** at limit **
   4  Prefactor     1.5259        3.2239        .23915E-03   -.26717E-03
   5  norm          .10000E-03    8.8186        .23796E-02** at limit **
   6  Prefactor     .10000E-03    18.236        .10106    ** at limit **
   7  norm          5.6917        3.8998        .14535E-03    .10966E-03
   8  Prefactor     .10000E-03    41.728        .53423E-02** at limit **
   9  norm          13.294        5.2621        .10991E-03    .41376E-04
  10  norm          9.8454        3.9113        .10750E-03    .46914E-03
  11  norm          .10001E-03    20.012        .34143E-02** at limit **
  12  norm          5.4526        16.437        .17201E-03    .11632E-04
  13  Prefactor     .10000E-03    1.4235        .10765E-02** at limit **
  14  Prefactor     .10000E-03    6.4602        .18142E-02** at limit **
  15  norm          78.595        11.243        .45298E-04    .55214E-05
  16  Prefactor     .10000E-03    14.539        .18142E-02** at limit **
  17  norm          10.428        6.8485        .12407E-03   -.38485E-05
  18  Prefactor     .10000E-03    5.4544        .18142E-02** at limit **
  19  Prefactor     14.959        16.855        .10350E-03    .18014E-04
  20  Prefactor     .10000E-03    35.346        .18142E-02** at limit **
  21  Prefactor     6.6362        4.1396        .14179E-03    .96375E-04
  22  Prefactor     13.236        15.464        .11012E-03    .49555E-05
  23  norm          .10000E-03    2.2014        .13449E-02** at limit **
  24  Prefactor     .10000E-03    1.3454        .10523E-02** at limit **
  25  Normalizat    1.3641        .17977        .22729E-03    .32257E-03
  26  Prefactor     .65688        .18873        .34408E-03    .26366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52595
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.69166
  Prefactor  = 0.000100003
  norm       = 13.2943
  norm       = 9.84539
  norm       = 0.000100006
  norm       = 5.45261
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 78.5949
  Prefactor  = 0.0001
  norm       = 10.4276
  Prefactor  = 0.0001
  Prefactor  = 14.959
  Prefactor  = 0.0001
  Prefactor  = 6.6362
  Prefactor  = 13.2358
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36414
  Prefactor  = 0.656878
 **********
 **   18 **HESSE 
 **********

 FCN=   8684.682     FROM HESSE     STATUS=OK           440 CALLS     3653 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1553        .57920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5259        3.2229        .95659E-05   -1.5461    
   5  norm          .10000E-03    8.8630        .47591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.006        .10614       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6917        3.8997        .58138E-05   -1.5231    
   8  Prefactor     .10000E-03    42.191        .10685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.294        5.2604        .43963E-05   -1.4979    
  10  norm          9.8454        3.8864        .42999E-05   -1.5080    
  11  norm          .10001E-03    20.135        .68287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4526        16.439        .68804E-05   -1.5241    
  13  Prefactor     .10000E-03    1.4238        .21530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          78.595        11.243        .18119E-05   -1.3933    
  16  Prefactor     .10000E-03    14.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.428        6.8482        .49629E-05   -1.5062    
  18  Prefactor     .10000E-03    5.4551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.959        16.856        .41400E-05   -1.4934    
  20  Prefactor     .10000E-03    35.347        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.6362        4.1394        .56717E-05   -1.5193    
  22  Prefactor     13.236        15.463        .44048E-05   -1.4980    
  23  norm          .10000E-03    2.2018        .26898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.3455        .21046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3641        .17988        .45457E-04   -.81672    
  26  Prefactor     .65688        .18886        .13763E-04   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06923e-10
Minuit parameter uncertainties:
  1  0.000128999
  2  6.87897e-06
  3  4.38201e-05
  4  3.22325
  5  7.36097e-05
  6  5.7875e-05
  7  3.89985
  8  0.000681417
  9  5.26057
  10  3.88645
  11  0.000704001
  12  16.4522
  13  3.13102e-06
  14  7.41628e-06
  15  11.2435
  16  2.7608e-06
  17  6.84867
  18  2.5804e-05
  19  16.8613
  20  5.20986e-06
  21  4.13958
  22  15.468
  23  2.53862e-06
  24  1.49321e-06
  25  0.179964
  26  0.189039
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.580e-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:  6.569e-01  1.890e-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.364e+00  1.800e-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.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705269/likelihoodResults_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.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) = 8684.68328495
delta logL = -0.000871906495377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8684.68241302
delta logL = 2.2064341465e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4389       1.0000          .0000       10.000    
     3 'Normalizat'    1.3641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65688       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=   8684.682     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10177E-03    3.9494        .18142E-01** at limit **
   2  Index         2.2678        5.1941        .50000        .80938E-05
   3  Normalizat    1.3641        .31729E-02    .22728E-03   -.29732E-04
   4  Prefactor     .65688        .34727E-02    .34408E-03   -.14538E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101772
  Index      = 2.2678
  Normalizat = 1.36413
  Prefactor  = 0.656881
 **********
 **   18 **HESSE 
 **********

 FCN=   8684.682     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10177E-03    288.88        .21758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2678        6.6108        .50000       -.57811    
   3  Normalizat    1.3641        .28730E-01    .45457E-04   -.81672    
   4  Prefactor     .65688        .31441E-01    .13763E-04   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.09545e-07
Minuit parameter uncertainties:
  1  0.0454709
  2  1642.41
  3  0.0287302
  4  0.0314415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705269': 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) = 8684.68241269
delta logL = 3.51923517883e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.018e-04  4.547e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.268e+00  1.642e+03  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:  6.569e-01  3.144e-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.364e+00  2.873e-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/705269/cmap_HighResolution_266025601_266284801_4FGL_J1330.7+2933_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-08 00:01:24.078632', job_id='705269', GAL2='0.66', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631084484.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='103' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 705269: <4FGL_J1330.7+2933_daily_bin103> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin103> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 23:45:19 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:46:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:46:18 2021
Terminated at Wed Sep  8 00:01:24 2021
Results reported at Wed Sep  8 00:01:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin103 202.693 29.5536 266025601 266284801 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 :                                   884.03 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             339.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            965 sec.

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

