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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1472
RA = 202.693, Dec = 29.5536
tmin = 620870401, tmax = 621129601
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='725675', job_status='RUN', time_executed='2021-09-08 00:59:33.016491', time_epoch_executed='1631087973.02' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725675/ft1_4FGL_J1330.7+2933_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725675/ft2_4FGL_J1330.7+2933_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725675/ft1_4FGL_J1330.7+2933_daily_bin1472.fits outfile=/scratch/kocevski/725675/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1472.fits ra=202.693 dec=29.5536 rad=12.0 tmin=620870401.0 tmax=621129601.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.66
user 3.03
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725675/ft1_filtered_4FGL_J1330.7+2933_daily_bin1472.fits" evtable="EVENTS" scfile=/scratch/kocevski/725675/ft2_4FGL_J1330.7+2933_daily_bin1472.fits sctable="SC_DATA" outfile=/scratch/kocevski/725675/ltcube_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.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/725675/ft2_4FGL_J1330.7+2933_daily_bin1472.fits
.....................!
real 18.35
user 17.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725675/ft1_filtered_4FGL_J1330.7+2933_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/725675/ft2_4FGL_J1330.7+2933_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/725675/ltcube_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.fits outfile=/scratch/kocevski/725675/expmap_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.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/725675/ltcube_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.fits
.....................!
real 193.99
user 188.22
sys 4.94

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/725675/ft1_filtered_4FGL_J1330.7+2933_daily_bin1472.fits scfile=/scratch/kocevski/725675/ft2_4FGL_J1330.7+2933_daily_bin1472.fits outfile=/scratch/kocevski/725675/cmap_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.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.80
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725675/ft1_filtered_4FGL_J1330.7+2933_daily_bin1472.fits scfile=/scratch/kocevski/725675/ft2_4FGL_J1330.7+2933_daily_bin1472.fits outfile=/scratch/kocevski/725675/cmap_HighResolution_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.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 1.00
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/725675/ft1_filtered_4FGL_J1330.7+2933_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/725675/ft2_4FGL_J1330.7+2933_daily_bin1472.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/725675/Model_4FGL_J1330.7+2933_daily_bin1472.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/725675/ft1_filtered_4FGL_J1330.7+2933_daily_bin1472.fits.....................!
real 39.23
user 34.55
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    111.73       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10202E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.4157       1.0000         .10000E-03   10000.    
    10 'norm      '    8.2587       1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83420       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1263       1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.293       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.026       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22618E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.167       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.656       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .87690       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99088       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=   3673.650     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3075 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.613       -.25511E-06** at limit **
   2  Prefactor     111.76        129.48        .74346E-06    .11203E-04
   3  Prefactor     .10000E-03    4.3845       -.10402E-06** at limit **
   4  Prefactor     .10000E-03    3.1343       -.24655E-07** at limit **
   5  norm          .10000E-03    6.4729        .37297E-06** at limit **
   6  Prefactor     .10000E-03    22.107       -.12273E-07** at limit **
   7  norm          .10000E-03    2.1625       -.17657E-06** at limit **
   8  Prefactor     .10000E-03    6.2321        .43516E-08** at limit **
   9  norm          5.4153        5.2887       -.18031E-06   -.35460E-04
  10  norm          8.2628        6.0453        .24480E-06    .49775E-04
  11  norm          .10000E-03    15.778        .55763E-06** at limit **
  12  norm          .10000E-03    14.331       -.20713E-06** at limit **
  13  Prefactor     .83414        3.0861        .17074E-05    .47263E-03
  14  Prefactor     .10000E-03    13.203       -.24675E-06** at limit **
  15  norm          28.495        11.880        .19016E-06    .11523E-03
  16  Prefactor     .10000E-03    164.88        .61083E-06** at limit **
  17  norm          .10000E-03    11.893       -.45638E-06** at limit **
  18  Prefactor     6.1265        16.091        .43291E-06    .52529E-04
  19  Prefactor     46.300        35.793        .84454E-06    .81067E-04
  20  Prefactor     16.170        107.65        .49542E-05    .40536E-04
  21  Prefactor     .10001E-03    2.7855       -.82960E-06** at limit **
  22  Prefactor     15.166        20.450       -.19945E-06    .51226E-04
  23  norm          .10000E-03    2.8824       -.28611E-06** at limit **
  24  Prefactor     30.658        7.1243        .19891E-06    .18091E-03
  25  Normalizat    .87621        .27832       -.96864E-05    .30089E-03
  26  Prefactor     .99151        .29561        .10461E-04    .19221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 111.764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.4153
  norm       = 8.26281
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.83414
  Prefactor  = 0.0001
  norm       = 28.4947
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.12646
  Prefactor  = 46.2997
  Prefactor  = 16.1702
  Prefactor  = 0.000100006
  Prefactor  = 15.1663
  norm       = 0.0001
  Prefactor  = 30.6585
  Normalizat = 0.876215
  Prefactor  = 0.991514
 **********
 **   18 **HESSE 
 **********

 FCN=   3673.650     FROM HESSE     STATUS=OK           444 CALLS     3519 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     111.76        129.32        .19028E-03   -1.3590    
   3  Prefactor     .10000E-03    4.3869        .12396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1354        .10480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.5172        .15041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1692        .87082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2332        .14779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.4153        5.2905        .13368E-03   -1.5243    
  10  norm          8.2628        5.9542        .11941E-03   -1.5133    
  11  norm          .10000E-03    15.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83414        3.0701        .19919E-03   -1.5525    
  14  Prefactor     .10000E-03    13.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.495        11.859        .75058E-04   -1.4640    
  16  Prefactor     .10000E-03    165.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1265        16.061        .16220E-03   -1.5213    
  19  Prefactor     46.300        35.780        .58930E-04   -1.4346    
  20  Prefactor     16.170        107.68        .10005E-03   -1.4904    
  21  Prefactor     .10001E-03    9.5030        .18862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.166        20.450        .10284E-03   -1.4929    
  23  norm          .10000E-03    2.9316        .10054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     30.658        7.1249        .72364E-04   -1.4600    
  25  Normalizat    .87621        .27897        .24863E-03   -.97301    
  26  Prefactor     .99151        .29769        .26316E-03   -.93013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05911e-09
Minuit parameter uncertainties:
  1  4.24349e-05
  2  129.648
  3  5.56986e-06
  4  5.94249e-07
  5  2.17138e-05
  6  5.0478e-06
  7  8.16596e-06
  8  1.27175e-06
  9  5.29097
  10  5.95464
  11  1.53338e-06
  12  3.042e-05
  13  3.07072
  14  4.39493e-05
  15  11.8598
  16  0.000199759
  17  4.67992e-05
  18  16.0721
  19  35.7968
  20  83.673
  21  0.000479073
  22  20.4598
  23  1.3397e-05
  24  7.12506
  25  0.279431
  26  0.29818
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  6.126e+00  1.607e+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:  9.915e-01  2.982e-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.762e-01  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/725675/likelihoodResults_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.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) = 3673.61594648
delta logL = 0.0337192275015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3673.61427161
delta logL = 0.0353940961795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9651       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1111       1.0000          .0000       10.000    
     3 'Normalizat'    .87968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98689       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=   3673.614     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      217 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9857        24.297        .27923E-05    .77750E-05
   2  Index         2.1148        1.0928        .37808E-04   -.10184E-05
   3  Normalizat    .87959        .21970       -.25366E-06   -.29401E-04
   4  Prefactor     .98694        .24725       -.56629E-06   -.21367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.9857
  Index      = 2.11482
  Normalizat = 0.879592
  Prefactor  = 0.986936
 **********
 **   18 **HESSE 
 **********

 FCN=   3673.614     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9857        24.388        .12694E-03   -1.5076    
   2  Index         2.1148        1.0967        .10075E-02   -.61509    
   3  Normalizat    .87959        .25957        .24819E-03   -.97181    
   4  Prefactor     .98694        .29198        .26365E-03   -.93166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33073e-12
Minuit parameter uncertainties:
  1  24.4119
  2  1.11034
  3  0.259937
  4  0.292449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725675': 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) = 3673.61426342
delta logL = 0.0354022860292

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.986e+00  2.441e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.115e+00  1.110e+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:  9.869e-01  2.924e-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.796e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/725675/cmap_HighResolution_620870401_621129601_4FGL_J1330.7+2933_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-08 01:09:07.527638', job_id='725675', GAL2='0.99', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631088547.53', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.54e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1472' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:09:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 725675: <4FGL_J1330.7+2933_daily_bin1472> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1472> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 00:55:37 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:56:02 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:56:02 2021
Terminated at Wed Sep  8 01:09:08 2021
Results reported at Wed Sep  8 01:09:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1472 202.693 29.5536 620870401 621129601 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 :                                   561.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            811 sec.

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

