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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1064
RA = 202.693, Dec = 29.5536
tmin = 515116801, tmax = 515376001
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='722838', job_status='RUN', time_executed='2021-09-08 00:45:51.377803', time_epoch_executed='1631087151.38' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722838/ft1_4FGL_J1330.7+2933_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722838/ft2_4FGL_J1330.7+2933_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722838/ft1_4FGL_J1330.7+2933_daily_bin1064.fits outfile=/scratch/kocevski/722838/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1064.fits ra=202.693 dec=29.5536 rad=12.0 tmin=515116801.0 tmax=515376001.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.52
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722838/ft2_4FGL_J1330.7+2933_daily_bin1064.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/722838/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1064.fits evtable="EVENTS" outfile="/scratch/kocevski/722838/ft1_filtered_4FGL_J1330.7+2933_daily_bin1064.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/722838/ft1_filtered_4FGL_J1330.7+2933_daily_bin1064.fits" evtable="EVENTS" scfile=/scratch/kocevski/722838/ft2_4FGL_J1330.7+2933_daily_bin1064.fits sctable="SC_DATA" outfile=/scratch/kocevski/722838/ltcube_515116801_515376001_4FGL_J1330.7+2933_daily_bin1064.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/722838/ft2_4FGL_J1330.7+2933_daily_bin1064.fits
.....................!
real 14.09
user 13.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722838/ft1_filtered_4FGL_J1330.7+2933_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/722838/ft2_4FGL_J1330.7+2933_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/722838/ltcube_515116801_515376001_4FGL_J1330.7+2933_daily_bin1064.fits outfile=/scratch/kocevski/722838/expmap_515116801_515376001_4FGL_J1330.7+2933_daily_bin1064.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/722838/ltcube_515116801_515376001_4FGL_J1330.7+2933_daily_bin1064.fits
.....................!
real 194.36
user 188.77
sys 4.87

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/722838/ft1_filtered_4FGL_J1330.7+2933_daily_bin1064.fits scfile=/scratch/kocevski/722838/ft2_4FGL_J1330.7+2933_daily_bin1064.fits outfile=/scratch/kocevski/722838/cmap_515116801_515376001_4FGL_J1330.7+2933_daily_bin1064.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722838/ft1_filtered_4FGL_J1330.7+2933_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/722838/ft2_4FGL_J1330.7+2933_daily_bin1064.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722838/Model_4FGL_J1330.7+2933_daily_bin1064.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/722838/ft1_filtered_4FGL_J1330.7+2933_daily_bin1064.fits.....................!
real 47.98
user 46.43
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.080       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.202       1.0000         .10000E-03   10000.    
     7 'norm      '    11.978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.7606       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6276       1.0000         .10000E-03   10000.    
    11 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8619       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8184       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.962       1.0000         .10000E-03   10000.    
    15 'norm      '    6.8356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.550       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39674E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16934E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13722E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8420       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33150       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88904       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1417       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=   5704.010     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3113 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.086        21.375        .18632E-06   -.42130E-05
   2  Prefactor     11.085        62.000        .75909E-06    .19516E-04
   3  Prefactor     .10000E-03    3.0465       -.29908E-07** at limit **
   4  Prefactor     .10000E-03    2.3962        .42929E-08** at limit **
   5  norm          2.9582        4.3071        .86257E-07   -.84914E-04
   6  Prefactor     22.203        25.640        .55076E-06   -.18745E-04
   7  norm          11.978        4.9275       -.51020E-07   -.51846E-03
   8  Prefactor     .10000E-03    4.2365       -.32254E-08** at limit **
   9  norm          5.7608        4.5178        .20020E-07   -.40549E-04
  10  norm          3.6276        3.1451       -.17670E-07   -.32148E-05
  11  norm          .10000E-03    3.2050        .53529E-08** at limit **
  12  norm          3.8599        10.340        .24484E-06   -.28753E-04
  13  Prefactor     2.8190        3.2670        .14951E-06   -.25998E-04
  14  Prefactor     25.965        16.648       -.51571E-07   -.10472E-04
  15  norm          6.8319        6.6753        .24919E-06    .71085E-04
  16  Prefactor     .10000E-03    47.349       -.14106E-07** at limit **
  17  norm          .10000E-03    8.8586        .25182E-06** at limit **
  18  Prefactor     .10000E-03    13.118        .13646E-06** at limit **
  19  Prefactor     13.560        21.820        .34267E-06    .12173E-04
  20  Prefactor     .10003E-03    191.92       -.55506E-05** at limit **
  21  Prefactor     .10000E-03    1.9914       -.20017E-07** at limit **
  22  Prefactor     .10003E-03    9.4199        .66911E-06** at limit **
  23  norm          2.8421        3.4196       -.26014E-07   -.30239E-04
  24  Prefactor     .33179        3.1688        .22913E-05   -.11766E-03
  25  Normalizat    .88895        .17011       -.55910E-06   -.83055E-04
  26  Prefactor     1.1417        .19082       -.31425E-06   -.83645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0858
  Prefactor  = 11.0849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95823
  Prefactor  = 22.2028
  norm       = 11.9783
  Prefactor  = 0.0001
  norm       = 5.76077
  norm       = 3.62757
  norm       = 0.0001
  norm       = 3.85988
  Prefactor  = 2.81901
  Prefactor  = 25.9646
  norm       = 6.83191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5595
  Prefactor  = 0.000100029
  Prefactor  = 0.000100001
  Prefactor  = 0.000100032
  norm       = 2.84206
  Prefactor  = 0.331793
  Normalizat = 0.888946
  Prefactor  = 1.14171
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.010     FROM HESSE     STATUS=OK           468 CALLS     3581 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.086        21.359        .12615E-03   -1.5073    
   2  Prefactor     11.085        61.859        .12036E-03   -1.5042    
   3  Prefactor     .10000E-03    3.0595        .12872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4044        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9582        4.2639        .16844E-03   -1.5364    
   6  Prefactor     22.203        25.491        .42504E-03   -1.4765    
   7  norm          11.978        4.9318        .10354E-03   -1.5016    
   8  Prefactor     .10000E-03    4.2402        .15181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.7608        4.5108        .13661E-03   -1.5228    
  10  norm          3.6276        3.1288        .11540E-03   -1.5327    
  11  norm          .10000E-03    3.2202        .13174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8599        10.319        .20534E-03   -1.5315    
  13  Prefactor     2.8190        3.2416        .12935E-03   -1.5372    
  14  Prefactor     25.965        16.621        .78620E-04   -1.4688    
  15  norm          6.8319        6.6407        .15346E-03   -1.5185    
  16  Prefactor     .10000E-03    47.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.9601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.560        21.883        .10881E-03   -1.4971    
  20  Prefactor     .10003E-03    198.46        .42535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.610        .20272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    79.131        .44130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8421        3.4134        .14895E-03   -1.5371    
  24  Prefactor     .33179        3.1889        .26069E-03   -1.5593    
  25  Normalizat    .88895        .19939        .23917E-03   -.96850    
  26  Prefactor     1.1417        .22564        .25230E-03   -.88144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90361e-10
Minuit parameter uncertainties:
  1  21.3751
  2  52.4549
  3  1.76649e-06
  4  8.53029e-07
  5  4.26435
  6  25.5033
  7  4.932
  8  2.80417e-07
  9  4.51103
  10  3.12897
  11  8.50546e-08
  12  10.3235
  13  3.24179
  14  16.6242
  15  6.64143
  16  6.90606e-06
  17  1.04364e-05
  18  2.62308e-05
  19  21.8956
  20  0.00483238
  21  0.000246718
  22  0.00317204
  23  3.4136
  24  2.05708
  25  0.199551
  26  0.225825
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.623e-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.142e+00  2.258e-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:  8.889e-01  1.996e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722838/likelihoodResults_515116801_515376001_4FGL_J1330.7+2933_daily_bin1064.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) = 5704.01029144
delta logL = -0.00035990755714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5704.00993184
delta logL = -3.01412001136e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4305       1.0000          .0000       10.000    
     3 'Normalizat'    .88882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1419       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=   5704.010     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      248 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10239E-03    6.3122        .18142E-01** at limit **
   2  Index         2.3393        8.7830        .50000        .95511E-05
   3  Normalizat    .88895        .27795E-02    .23917E-03    .28283E-04
   4  Prefactor     1.1417        .32948E-02    .25230E-03    .23116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102391
  Index      = 2.33929
  Normalizat = 0.888946
  Prefactor  = 1.14171
 **********
 **   18 **HESSE 
 **********

 FCN=   5704.010     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10239E-03    656.71        .54663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3393        6.8597        .50000       -.56113    
   3  Normalizat    .88895        .29639E-01    .95667E-05   -.96850    
   4  Prefactor     1.1417        .35130E-01    .10092E-04   -.88144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93751e-08
Minuit parameter uncertainties:
  1  0.0801421
  2  1261.95
  3  0.0296395
  4  0.0351308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722838': 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) = 5704.00993135
delta logL = 1.89005731954e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.024e-04  8.014e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.339e+00  1.262e+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:  1.142e+00  3.513e-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:  8.889e-01  2.964e-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/722838/cmap_HighResolution_515116801_515376001_4FGL_J1330.7+2933_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-08 00:57:18.877813', job_id='722838', GAL2='1.14', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631087838.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1064' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:57:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 722838: <4FGL_J1330.7+2933_daily_bin1064> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1064 202.693 29.5536 515116801 515376001 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 :                                   681.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

