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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin4
RA = 202.693, Dec = 29.5536
tmin = 240364801, tmax = 240624001
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='704000', job_status='RUN', time_executed='2021-09-07 23:45:40.310973', time_epoch_executed='1631083540.31' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/704000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/704000/ft1_4FGL_J1330.7+2933_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/704000/ft2_4FGL_J1330.7+2933_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/704000/ft1_4FGL_J1330.7+2933_daily_bin4.fits outfile=/scratch/kocevski/704000/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin4.fits ra=202.693 dec=29.5536 rad=12.0 tmin=240364801.0 tmax=240624001.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.45
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/704000/ft2_4FGL_J1330.7+2933_daily_bin4.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/704000/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/704000/ft1_filtered_4FGL_J1330.7+2933_daily_bin4.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/704000/ft1_filtered_4FGL_J1330.7+2933_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/704000/ft2_4FGL_J1330.7+2933_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/704000/ltcube_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.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/704000/ft2_4FGL_J1330.7+2933_daily_bin4.fits
.....................!
real 16.15
user 15.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/704000/ft1_filtered_4FGL_J1330.7+2933_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/704000/ft2_4FGL_J1330.7+2933_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/704000/ltcube_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.fits outfile=/scratch/kocevski/704000/expmap_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.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/704000/ltcube_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.fits
.....................!
real 192.12
user 186.67
sys 4.74

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/704000/ft1_filtered_4FGL_J1330.7+2933_daily_bin4.fits scfile=/scratch/kocevski/704000/ft2_4FGL_J1330.7+2933_daily_bin4.fits outfile=/scratch/kocevski/704000/cmap_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/704000/ft1_filtered_4FGL_J1330.7+2933_daily_bin4.fits scfile=/scratch/kocevski/704000/ft2_4FGL_J1330.7+2933_daily_bin4.fits outfile=/scratch/kocevski/704000/cmap_HighResolution_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/704000/ft1_filtered_4FGL_J1330.7+2933_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/704000/ft2_4FGL_J1330.7+2933_daily_bin4.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/704000/Model_4FGL_J1330.7+2933_daily_bin4.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/704000/ft1_filtered_4FGL_J1330.7+2933_daily_bin4.fits.....................!
real 46.83
user 45.39
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.552       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9760       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1047       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.794       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6948       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    37.225       1.0000         .10000E-03   10000.    
    11 'norm      '    27.122       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9876       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2998       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.5020       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1368       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5797       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4647       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .63003       1.0000         .10000E-03   10000.    
    23 'norm      '    .17241E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80153       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=   5433.919     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3142 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.543        20.683       -.16055E-05   -.78932E-04
   2  Prefactor     .10000E-03    61.747        .86738E-07** at limit **
   3  Prefactor     .10000E-03    2.0988        .47792E-07** at limit **
   4  Prefactor     3.9780        5.5192        .97516E-06    .48530E-04
   5  norm          1.1247        11.890        .39228E-05    .24967E-03
   6  Prefactor     20.681        44.809       -.35776E-05   -.22086E-03
   7  norm          1.6948        3.6605        .43553E-05   -.56764E-04
   8  Prefactor     .10000E-03    7.2660       -.22502E-06** at limit **
   9  norm          .10000E-03    4.6109        .16788E-06** at limit **
  10  norm          37.223        13.019       -.65156E-06   -.34858E-03
  11  norm          27.121        21.403        .60802E-06   -.36046E-03
  12  norm          .10000E-03    11.976        .14713E-06** at limit **
  13  Prefactor     2.9898        4.5470        .21698E-05   -.36930E-03
  14  Prefactor     9.2912        15.534       -.66300E-06    .14619E-04
  15  norm          .10000E-03    4.5838        .11205E-06** at limit **
  16  Prefactor     .10000E-03    29.662        .13202E-06** at limit **
  17  norm          9.4991        7.2047        .28146E-06   -.49466E-04
  18  Prefactor     4.1346        12.588        .39599E-06   -.43620E-05
  19  Prefactor     .10000E-03    8.0577        .13194E-06** at limit **
  20  Prefactor     8.5418        88.886        .77734E-05    .25445E-04
  21  Prefactor     4.4645        4.0137        .18072E-06   -.48323E-04
  22  Prefactor     .64285        21.705       -.16115E-04    .12641E-03
  23  norm          .10000E-03    3.3771       -.14103E-05** at limit **
  24  Prefactor     .10000E-03    2.6959        .87255E-06** at limit **
  25  Normalizat    1.0845        .18333       -.17632E-05   -.26690E-03
  26  Prefactor     .80144        .19335        .41634E-07   -.25319E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.97799
  norm       = 1.12466
  Prefactor  = 20.6814
  norm       = 1.6948
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 37.2232
  norm       = 27.1214
  norm       = 0.0001
  Prefactor  = 2.98982
  Prefactor  = 9.29118
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.49913
  Prefactor  = 4.13465
  Prefactor  = 0.0001
  Prefactor  = 8.5418
  Prefactor  = 4.46453
  Prefactor  = 0.642846
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Normalizat = 1.08448
  Prefactor  = 0.801444
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.919     FROM HESSE     STATUS=OK           462 CALLS     3604 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.543        20.667        .12334E-03   -1.5058    
   2  Prefactor     .10000E-03    61.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1013        .10430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9780        5.5263        .97193E-03   -1.5309    
   5  norm          1.1247        10.640        .38889E-03   -1.5496    
   6  Prefactor     20.681        42.243        .87836E-04   -1.4798    
   7  norm          1.6948        4.0639        .10997E-02   -1.5448    
   8  Prefactor     .10000E-03    7.2783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.7995        .30885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          37.223        13.099        .65689E-04   -1.4487    
  11  norm          27.121        21.526        .76924E-04   -1.4666    
  12  norm          .10000E-03    12.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9898        4.7163        .85914E-03   -1.5362    
  14  Prefactor     9.2912        15.505        .13142E-03   -1.5098    
  15  norm          .10000E-03    4.6697        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    29.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4991        7.1961        .65003E-03   -1.5091    
  18  Prefactor     4.1346        12.595        .19818E-03   -1.5301    
  19  Prefactor     .10000E-03    8.0669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.5418        90.279        .13685E-03   -1.5123    
  21  Prefactor     4.4645        4.0222        .13313E-03   -1.5285    
  22  Prefactor     .64285        44.481        .44396E-02   -1.5548    
  23  norm          .10000E-03    7.1327        .26021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.9108        .23317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0845        .21639        .22373E-03   -.90252    
  26  Prefactor     .80144        .22986        .28598E-03   -.99675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92956e-09
Minuit parameter uncertainties:
  1  20.6807
  2  2.31576e-05
  3  4.19433e-06
  4  5.52705
  5  6.91994
  6  42.3043
  7  4.06458
  8  1.24539e-05
  9  2.24793e-05
  10  13.1001
  11  21.5318
  12  2.57332e-05
  13  4.71687
  14  15.5121
  15  1.72554e-05
  16  2.09602e-05
  17  7.1968
  18  12.6034
  19  2.75868e-05
  20  55.6466
  21  4.02243
  22  10.7022
  23  0.000163693
  24  0.000129697
  25  0.216562
  26  0.230134
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.135e+00  1.260e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.449e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  8.014e-01  2.301e-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.084e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/704000/likelihoodResults_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.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): 0
logL (Free Index) = 5433.80711214
delta logL = 0.112217912656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5433.78905665
delta logL = 0.130273406957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5797       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1914       1.0000          .0000       10.000    
     3 'Normalizat'    1.0707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81026       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=   5433.789     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      218 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5737        128.21        .63524E-02    .41229E-03
   2  Index         3.1920        3.6820        .21701        .43474E-04
   3  Normalizat    1.0707        .38519E-01    .39340E-01   -.43753E-04
   4  Prefactor     .81036        .42488E-01    .64316E-01    .52561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.5737
  Index      = 3.19204
  Normalizat = 1.07066
  Prefactor  = 0.810359
 **********
 **   18 **HESSE 
 **********

 FCN=   5433.789     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5737        10.151        .20125E-03   -1.5387    
   2  Index         3.1920        1.9082        .80693E-02   -.36997    
   3  Normalizat    1.0707        .20295        .22492E-03   -.90700    
   4  Prefactor     .81036        .22430        .28450E-03   -.99348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98402e-11
Minuit parameter uncertainties:
  1  10.1574
  2  1.96591
  3  0.203099
  4  0.224549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/704000': 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) = 5433.78905612
delta logL = 0.130273932714

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.574e+00  1.016e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.192e+00  1.966e+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:  8.104e-01  2.245e-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.071e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/704000/cmap_HighResolution_240364801_240624001_4FGL_J1330.7+2933_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.05e-08', time_completed='2021-09-07 23:56:48.006677', job_id='704000', GAL2='0.81', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1631084208.01', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.30e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='4' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 23:56:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 704000: <4FGL_J1330.7+2933_daily_bin4> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin4> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 23:40:22 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:42:16 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:42:16 2021
Terminated at Tue Sep  7 23:56:48 2021
Results reported at Tue Sep  7 23:56:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin4 202.693 29.5536 240364801 240624001 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 :                                   667.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            986 sec.

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

