/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 44 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 = 7404
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1602
RA = 202.693, Dec = 29.5536
tmin = 654566401, tmax = 654825601
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='856477', job_status='RUN', time_executed='2021-10-02 00:03:59.513594', time_epoch_executed='1633158239.51' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856477/ft1_4FGL_J1330.7+2933_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856477/ft1_4FGL_J1330.7+2933_daily_bin1602.fits outfile=/scratch/kocevski/856477/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1602.fits ra=202.693 dec=29.5536 rad=12.0 tmin=654566401.0 tmax=654825601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.98
user 4.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.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/856477/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/856477/ft1_filtered_4FGL_J1330.7+2933_daily_bin1602.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/856477/ft1_filtered_4FGL_J1330.7+2933_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/856477/ltcube_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.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/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.fits
.....................!
real 11.89
user 11.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856477/ft1_filtered_4FGL_J1330.7+2933_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856477/ltcube_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.fits outfile=/scratch/kocevski/856477/expmap_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.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/856477/ltcube_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.fits
.....................!
real 190.60
user 185.72
sys 4.55

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/856477/ft1_filtered_4FGL_J1330.7+2933_daily_bin1602.fits scfile=/scratch/kocevski/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.fits outfile=/scratch/kocevski/856477/cmap_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856477/ft1_filtered_4FGL_J1330.7+2933_daily_bin1602.fits scfile=/scratch/kocevski/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.fits outfile=/scratch/kocevski/856477/cmap_HighResolution_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856477/ft1_filtered_4FGL_J1330.7+2933_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856477/ft2_4FGL_J1330.7+2933_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856477/Model_4FGL_J1330.7+2933_daily_bin1602.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/856477/ft1_filtered_4FGL_J1330.7+2933_daily_bin1602.fits.....................!
real 47.96
user 46.62
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2702       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11380E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5227       1.0000         .10000E-03   10000.    
     5 'norm      '    11.301       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10810E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.132       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8197       1.0000         .10000E-03   10000.    
    12 'norm      '    8.3615       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7228       1.0000         .10000E-03   10000.    
    15 'norm      '    .80998       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12191E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15235E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7013       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.606       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0395       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6086       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86531       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4526       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=   6017.582     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3108 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2618        25.542        .41360E-05    .19899E-04
   2  Prefactor     .10000E-03    54.437        .31763E-06** at limit **
   3  Prefactor     .10000E-03    4.9343       -.38078E-07** at limit **
   4  Prefactor     4.5231        4.8138       -.14893E-06   -.47966E-04
   5  norm          11.303        6.6267       -.36743E-06   -.65809E-04
   6  Prefactor     .10000E-03    20.033        .10713E-05** at limit **
   7  norm          .10000E-03    1.9350       -.55944E-07** at limit **
   8  Prefactor     .10000E-03    16.118       -.10387E-06** at limit **
   9  norm          .10000E-03    2.9306       -.19241E-07** at limit **
  10  norm          11.133        8.0712        .24350E-06    .11069E-03
  11  norm          4.8175        11.594        .18808E-06    .69709E-04
  12  norm          8.4433        29.439        .12464E-05    .14648E-04
  13  Prefactor     5.5646        3.9982        .20693E-06    .19146E-03
  14  Prefactor     3.7130        15.555       -.27148E-05   -.15931E-04
  15  norm          .78860        6.9091        .60170E-06   -.81689E-04
  16  Prefactor     .10000E-03    19.744       -.79017E-06** at limit **
  17  norm          .10000E-03    2.8365       -.19524E-07** at limit **
  18  Prefactor     .10000E-03    9.1854        .77357E-07** at limit **
  19  Prefactor     .10000E-03    21.693       -.88798E-07** at limit **
  20  Prefactor     .11076E-03    101.55       -.72595E-05** at limit **
  21  Prefactor     3.7013        4.3811        .15488E-05    .59719E-03
  22  Prefactor     12.611        18.854        .21520E-06    .58486E-05
  23  norm          4.0391        4.5644       -.26242E-06   -.44834E-05
  24  Prefactor     9.6091        5.6606        .61376E-07    .36658E-04
  25  Normalizat    .86513        .19462       -.79391E-06    .17061E-03
  26  Prefactor     1.4529        .21834        .30041E-06    .15771E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.26177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.52306
  norm       = 11.303
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.1335
  norm       = 4.81751
  norm       = 8.44331
  Prefactor  = 5.5646
  Prefactor  = 3.71299
  norm       = 0.788596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000110763
  Prefactor  = 3.70128
  Prefactor  = 12.6109
  norm       = 4.0391
  Prefactor  = 9.60913
  Normalizat = 0.865131
  Prefactor  = 1.45289
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.582     FROM HESSE     STATUS=OK           470 CALLS     3578 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2618        25.460        .22393E-03   -1.5347    
   2  Prefactor     .10000E-03    54.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9811        .16828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5231        4.8097        .16930E-03   -1.5283    
   5  norm          11.303        6.6393        .11917E-03   -1.5035    
   6  Prefactor     .10000E-03    20.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9557        .10535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.9624        .12963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.133        8.2633        .11292E-03   -1.5041    
  11  norm          4.8175        11.878        .18325E-03   -1.5269    
  12  norm          8.4433        28.902        .13864E-03   -1.5127    
  13  Prefactor     5.5646        3.9837        .11941E-03   -1.5236    
  14  Prefactor     3.7130        15.444        .20929E-03   -1.5323    
  15  norm          .78860        13.778        .34802E-02   -1.5530    
  16  Prefactor     .10000E-03    19.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.8403        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.2080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11076E-03    63.724        .18103       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7013        4.4228        .85005E-03   -1.5323    
  22  Prefactor     12.611        18.897        .11282E-03   -1.4998    
  23  norm          4.0391        4.5594        .17068E-03   -1.5306    
  24  Prefactor     9.6091        5.6593        .12928E-03   -1.5088    
  25  Normalizat    .86513        .23565        .28410E-03   -.97696    
  26  Prefactor     1.4529        .26692        .26092E-03   -.78868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8444e-08
Minuit parameter uncertainties:
  1  18.2364
  2  7.35921e-05
  3  3.07777e-06
  4  4.81006
  5  6.63977
  6  4.97481e-05
  7  3.18675e-06
  8  1.23662e-05
  9  4.57597e-07
  10  8.26415
  11  11.8838
  12  28.9497
  13  3.98388
  14  15.1517
  15  6.59388
  16  3.25923e-06
  17  2.41222e-06
  18  7.27626e-06
  19  4.95481e-06
  20  0.0524327
  21  4.42323
  22  18.9056
  23  4.5598
  24  5.65965
  25  0.235934
  26  0.267174
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  7.276e-06  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.453e+00  2.672e-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.651e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856477/likelihoodResults_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.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) = 6017.58259367
delta logL = -0.000517114157446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6017.58207678
delta logL = -2.23375536734e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10400E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4352       1.0000          .0000       10.000    
     3 'Normalizat'    .86508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4530       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=   6017.582     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.051        .90712E-02** at limit **
   2  Index         2.4222        5.9319        .50000        .12157E-04
   3  Normalizat    .86513        .18399        .64228E-01    .40334E-04
   4  Prefactor     1.4529        .21308        .59006E-01    .20451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42222
  Normalizat = 0.865131
  Prefactor  = 1.45289
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.582     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4222        5.9738        .50000       -.54166    
   3  Normalizat    .86513        .22199        .28410E-03   -.97696    
   4  Prefactor     1.4529        .25736        .26092E-03   -.78868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84584e-10
Minuit parameter uncertainties:
  1  4.293e-05
  2  6.29081
  3  0.222226
  4  0.257591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856477': 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): 0
logL (Free Index) = 6017.58207648
delta logL = 7.63293428463e-08

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.293e-05  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.422e+00  6.291e+00  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.453e+00  2.576e-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.651e-01  2.222e-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/856477/cmap_HighResolution_654566401_654825601_4FGL_J1330.7+2933_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-10-02 00:15:16.029924', job_id='856477', GAL2='1.45', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1633158916.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='7.63e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1602' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:15:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 856477: <4FGL_J1330.7+2933_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:02:49 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:02:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:02:50 2021
Terminated at Sat Oct  2 00:15:16 2021
Results reported at Sat Oct  2 00:15:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1602 202.693 29.5536 654566401 654825601 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 :                                   678.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            747 sec.

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

