/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 106 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1033
RA = 202.693, Dec = 29.5536
tmin = 507081601, tmax = 507340801
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='722790', job_status='RUN', time_executed='2021-09-08 00:47:28.355276', time_epoch_executed='1631087248.36' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722790

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722790/ft1_4FGL_J1330.7+2933_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722790/ft2_4FGL_J1330.7+2933_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722790/ft1_4FGL_J1330.7+2933_daily_bin1033.fits outfile=/scratch/kocevski/722790/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1033.fits ra=202.693 dec=29.5536 rad=12.0 tmin=507081601.0 tmax=507340801.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.60
user 4.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722790/ft1_filtered_4FGL_J1330.7+2933_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/722790/ft2_4FGL_J1330.7+2933_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/722790/ltcube_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.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/722790/ft2_4FGL_J1330.7+2933_daily_bin1033.fits
.....................!
real 16.43
user 15.76
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722790/ft1_filtered_4FGL_J1330.7+2933_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/722790/ft2_4FGL_J1330.7+2933_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/722790/ltcube_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.fits outfile=/scratch/kocevski/722790/expmap_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.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/722790/ltcube_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.fits
.....................!
real 192.88
user 187.12
sys 4.29

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/722790/ft1_filtered_4FGL_J1330.7+2933_daily_bin1033.fits scfile=/scratch/kocevski/722790/ft2_4FGL_J1330.7+2933_daily_bin1033.fits outfile=/scratch/kocevski/722790/cmap_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722790/ft1_filtered_4FGL_J1330.7+2933_daily_bin1033.fits scfile=/scratch/kocevski/722790/ft2_4FGL_J1330.7+2933_daily_bin1033.fits outfile=/scratch/kocevski/722790/cmap_HighResolution_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722790/ft1_filtered_4FGL_J1330.7+2933_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/722790/ft2_4FGL_J1330.7+2933_daily_bin1033.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722790/Model_4FGL_J1330.7+2933_daily_bin1033.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/722790/ft1_filtered_4FGL_J1330.7+2933_daily_bin1033.fits.....................!
real 45.59
user 44.14
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.945       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21527E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .56425E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5323       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46845E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.5815       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9881       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.149       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7479       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    32.031       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6170       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.579       1.0000         .10000E-03   10000.    
    20 'Prefactor '    125.21       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .75862       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9840       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82706       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1149       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=   5471.462     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3211 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1054        .66767E-07** at limit **
   2  Prefactor     10.825        57.119       -.54386E-05   -.60234E-04
   3  Prefactor     .10002E-03    5.1981       -.11870E-05** at limit **
   4  Prefactor     .10000E-03    1.9804        .44372E-07** at limit **
   5  norm          .61762E-01    29.980        .41089E-05   -.46548E-03
   6  Prefactor     .10000E-03    6.6294        .18410E-06** at limit **
   7  norm          1.5334        3.1864       -.76045E-06   -.20150E-03
   8  Prefactor     .10040E-03    36.291        .24870E-05** at limit **
   9  norm          9.5801        5.4990       -.22010E-06   -.96368E-04
  10  norm          2.9861        3.0489       -.28224E-06   -.38637E-03
  11  norm          .10000E-03    2.4862        .27885E-07** at limit **
  12  norm          14.149        13.519       -.19276E-07   -.81250E-05
  13  Prefactor     1.7467        3.0158       -.39662E-06   -.21712E-03
  14  Prefactor     .10000E-03    18.972       -.18180E-06** at limit **
  15  norm          32.029        11.280       -.32072E-06   -.17279E-03
  16  Prefactor     .10000E-03    14.905       -.90173E-06** at limit **
  17  norm          3.6185        10.274        .26898E-06   -.30146E-04
  18  Prefactor     .10000E-03    7.0936       -.69836E-06** at limit **
  19  Prefactor     22.570        21.231        .16558E-05    .57769E-04
  20  Prefactor     125.20        75.819       -.18711E-05   -.55101E-04
  21  Prefactor     .75889        2.4624       -.11743E-05   -.34879E-03
  22  Prefactor     .10000E-03    5.3251       -.13005E-07** at limit **
  23  norm          .10000E-03    3.6508        .16539E-06** at limit **
  24  Prefactor     4.9838        3.8387       -.41482E-07   -.72762E-04
  25  Normalizat    .82726        .17899       -.76718E-06   -.21671E-03
  26  Prefactor     1.1146        .20029        .11954E-06   -.21400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.8249
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.0617617
  Prefactor  = 0.0001
  norm       = 1.53339
  Prefactor  = 0.000100402
  norm       = 9.58008
  norm       = 2.98613
  norm       = 0.0001
  norm       = 14.1487
  Prefactor  = 1.74673
  Prefactor  = 0.0001
  norm       = 32.0287
  Prefactor  = 0.0001
  norm       = 3.61848
  Prefactor  = 0.0001
  Prefactor  = 22.5703
  Prefactor  = 125.196
  Prefactor  = 0.758887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.98378
  Normalizat = 0.827259
  Prefactor  = 1.11462
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.462     FROM HESSE     STATUS=OK           462 CALLS     3673 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1061        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.825        57.423        .12110E-03   -1.5050    
   3  Prefactor     .10002E-03    13.075        .29703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9855        .10161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61762E-01    45.388        .20896E-02   -1.5658    
   6  Prefactor     .10000E-03    6.6353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5334        3.1614        .18277E-03   -1.5460    
   8  Prefactor     .10040E-03    81.815        .38659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.5801        5.3808        .12267E-03   -1.5089    
  10  norm          2.9861        3.0281        .12159E-03   -1.5362    
  11  norm          .10000E-03    2.4905        .11372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.149        13.516        .10648E-03   -1.4955    
  13  Prefactor     1.7467        2.9787        .15476E-03   -1.5444    
  14  Prefactor     .10000E-03    19.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          32.029        11.175        .70799E-04   -1.4575    
  16  Prefactor     .10000E-03    14.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6185        10.172        .21244E-03   -1.5327    
  18  Prefactor     .10000E-03    7.1163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.570        21.272        .84296E-04   -1.4757    
  20  Prefactor     125.20        76.107        .35974E-04   -1.3465    
  21  Prefactor     .75889        2.4595        .20498E-03   -1.5534    
  22  Prefactor     .10000E-03    5.3333        .16671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.7223        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.9838        3.8381        .12273E-03   -1.5261    
  25  Normalizat    .82726        .21504        .24274E-03   -.99065    
  26  Prefactor     1.1146        .24179        .25115E-03   -.89001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.19528e-09
Minuit parameter uncertainties:
  1  3.38329e-06
  2  49.9387
  3  0.000943782
  4  5.21165e-06
  5  3.3484
  6  1.27497e-05
  7  3.16171
  8  0.011479
  9  5.38108
  10  3.02829
  11  6.58731e-06
  12  13.5186
  13  2.97891
  14  5.01543e-05
  15  11.1759
  16  2.40147e-05
  17  10.1765
  18  4.24066e-05
  19  21.2789
  20  76.1667
  21  2.45979
  22  2.74392e-06
  23  1.16977e-05
  24  3.83831
  25  0.215264
  26  0.242025
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.241e-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.115e+00  2.420e-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.273e-01  2.153e-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.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722790/likelihoodResults_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.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) = 5471.46308182
delta logL = -0.000668941111144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5471.46241288
delta logL = 1.77078618435e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4361       1.0000          .0000       10.000    
     3 'Normalizat'    .82725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1146       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=   5471.462     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10154E-03    131.80        .18142E-02** at limit **
   2  Index         2.3516        6.6212        .50000        .12039E-04
   3  Normalizat    .82726        .17646E-01    .24274E-03    .94137E-05
   4  Prefactor     1.1146        .20982E-01    .25115E-03    .13218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101536
  Index      = 2.35163
  Normalizat = 0.827259
  Prefactor  = 1.11463
 **********
 **   18 **HESSE 
 **********

 FCN=   5471.462     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10154E-03    541.22        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3516        7.4744        .50000       -.55822    
   3  Normalizat    .82726        .38759E-01    .97097E-05   -.99065    
   4  Prefactor     1.1146        .46077E-01    .10046E-04   -.89001    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.46942e-08
Minuit parameter uncertainties:
  1  0.05819
  2  1407.9
  3  0.0387605
  4  0.0460786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722790': 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) = 5471.46241268
delta logL = 2.06726326724e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.015e-04  5.819e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.352e+00  1.408e+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.115e+00  4.608e-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.273e-01  3.876e-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/722790/cmap_HighResolution_507081601_507340801_4FGL_J1330.7+2933_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.04e-08', time_completed='2021-09-08 00:59:03.475664', job_id='722790', GAL2='1.11', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631087943.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1033' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:59:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 722790: <4FGL_J1330.7+2933_daily_bin1033> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1033> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:29 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:31 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:31 2021
Terminated at Wed Sep  8 00:59:04 2021
Results reported at Wed Sep  8 00:59:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1033 202.693 29.5536 507081601 507340801 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 :                                   689.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

