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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin903
RA = 202.693, Dec = 29.5536
tmin = 473385601, tmax = 473644801
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='721555', job_status='RUN', time_executed='2021-09-08 00:42:21.428072', time_epoch_executed='1631086941.43' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/721555

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/721555/ft1_4FGL_J1330.7+2933_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/721555/ft2_4FGL_J1330.7+2933_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/721555/ft1_4FGL_J1330.7+2933_daily_bin903.fits outfile=/scratch/kocevski/721555/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin903.fits ra=202.693 dec=29.5536 rad=12.0 tmin=473385601.0 tmax=473644801.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.58
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/721555/ft1_filtered_4FGL_J1330.7+2933_daily_bin903.fits" evtable="EVENTS" scfile=/scratch/kocevski/721555/ft2_4FGL_J1330.7+2933_daily_bin903.fits sctable="SC_DATA" outfile=/scratch/kocevski/721555/ltcube_473385601_473644801_4FGL_J1330.7+2933_daily_bin903.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/721555/ft2_4FGL_J1330.7+2933_daily_bin903.fits
.....................!
real 13.41
user 13.00
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/721555/ft1_filtered_4FGL_J1330.7+2933_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/721555/ft2_4FGL_J1330.7+2933_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/721555/ltcube_473385601_473644801_4FGL_J1330.7+2933_daily_bin903.fits outfile=/scratch/kocevski/721555/expmap_473385601_473644801_4FGL_J1330.7+2933_daily_bin903.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/721555/ltcube_473385601_473644801_4FGL_J1330.7+2933_daily_bin903.fits
.....................!
real 192.81
user 187.27
sys 5.02

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/721555/ft1_filtered_4FGL_J1330.7+2933_daily_bin903.fits scfile=/scratch/kocevski/721555/ft2_4FGL_J1330.7+2933_daily_bin903.fits outfile=/scratch/kocevski/721555/cmap_473385601_473644801_4FGL_J1330.7+2933_daily_bin903.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=202.693 yref=29.5536 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/721555/ft1_filtered_4FGL_J1330.7+2933_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/721555/ft2_4FGL_J1330.7+2933_daily_bin903.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/721555/Model_4FGL_J1330.7+2933_daily_bin903.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/721555/ft1_filtered_4FGL_J1330.7+2933_daily_bin903.fits.....................!
real 51.28
user 49.74
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    75.965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3480       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0510       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1282       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4164       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1727       1.0000         .10000E-03   10000.    
    11 'norm      '    10.280       1.0000         .10000E-03   10000.    
    12 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45637       1.0000         .10000E-03   10000.    
    14 'Prefactor '    48.434       1.0000         .10000E-03   10000.    
    15 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5621       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.343       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3089       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6606       1.0000         .10000E-03   10000.    
    23 'norm      '    4.2110       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9762       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .72993       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1966       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=   6098.686     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3064 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7646       -.10339E-06** at limit **
   2  Prefactor     75.970        62.708       -.37772E-06   -.97876E-05
   3  Prefactor     2.1084        4.5244        .37179E-06    .27040E-04
   4  Prefactor     1.3489        4.0945        .25826E-06    .22081E-05
   5  norm          4.0516        5.0055       -.25047E-06   -.81174E-04
   6  Prefactor     5.1237        37.271        .35249E-05    .80279E-04
   7  norm          .10000E-03    1.2121        .47152E-07** at limit **
   8  Prefactor     5.4163        5.6323       -.41003E-07    .98471E-05
   9  norm          .10000E-03    .98332       -.45458E-08** at limit **
  10  norm          4.1733        6.4051       -.20593E-06   -.68852E-04
  11  norm          10.279        9.7515       -.11227E-07   -.52026E-04
  12  norm          .10000E-03    15.556       -.58565E-06** at limit **
  13  Prefactor     .45743        2.6362        .16329E-06   -.19402E-03
  14  Prefactor     48.427        18.561        .51082E-06    .19321E-03
  15  norm          .10000E-03    6.3571        .45066E-06** at limit **
  16  Prefactor     .10000E-03    35.098        .22653E-07** at limit **
  17  norm          3.5676        7.7892        .39294E-05   -.16601E-03
  18  Prefactor     .10000E-03    7.7970       -.88039E-06** at limit **
  19  Prefactor     .10000E-03    10.486        .77107E-06** at limit **
  20  Prefactor     40.342        51.717        .81636E-06    .40603E-05
  21  Prefactor     5.3095        4.7608        .35305E-06    .45095E-04
  22  Prefactor     6.6608        11.680        .23823E-06   -.96253E-05
  23  norm          4.2110        3.6816        .11131E-06   -.10685E-04
  24  Prefactor     1.9767        3.7389        .50021E-06    .47165E-04
  25  Normalizat    .72980        .16658       -.11282E-05   -.91498E-04
  26  Prefactor     1.1967        .18173       -.62834E-06   -.20592E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 75.9704
  Prefactor  = 2.10842
  Prefactor  = 1.34887
  norm       = 4.05158
  Prefactor  = 5.12371
  norm       = 0.0001
  Prefactor  = 5.41634
  norm       = 0.0001
  norm       = 4.17328
  norm       = 10.2792
  norm       = 0.0001
  Prefactor  = 0.457426
  Prefactor  = 48.4271
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.3416
  Prefactor  = 5.30953
  Prefactor  = 6.66084
  norm       = 4.21104
  Prefactor  = 1.97668
  Normalizat = 0.729803
  Prefactor  = 1.19669
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.686     FROM HESSE     STATUS=OK           460 CALLS     3524 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     75.970        62.632        .46070E-04   -1.3963    
   3  Prefactor     2.1084        4.5020        .23616E-03   -1.5418    
   4  Prefactor     1.3489        4.0621        .26472E-03   -1.5476    
   5  norm          4.0516        4.9209        .15856E-03   -1.5305    
   6  Prefactor     5.1237        36.572        .17754E-03   -1.5255    
   7  norm          .10000E-03    1.2237        .83953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.4163        5.6323        .17266E-03   -1.5242    
   9  norm          .10000E-03    .98395        .75617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1733        6.3871        .15591E-03   -1.5299    
  11  norm          10.279        9.8120        .12497E-03   -1.5067    
  12  norm          .10000E-03    15.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .45743        2.4823        .23036E-03   -1.5573    
  14  Prefactor     48.427        18.337        .57618E-04   -1.4315    
  15  norm          .10000E-03    6.4814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5676        7.8249        .10707E-02   -1.5330    
  18  Prefactor     .10000E-03    7.8011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.342        51.837        .63108E-04   -1.4437    
  21  Prefactor     5.3095        4.7687        .14977E-03   -1.5247    
  22  Prefactor     6.6608        11.680        .15548E-03   -1.5192    
  23  norm          4.2110        3.6825        .13601E-03   -1.5298    
  24  Prefactor     1.9767        3.7264        .19780E-03   -1.5427    
  25  Normalizat    .72980        .19666        .25419E-03   -1.0273    
  26  Prefactor     1.1967        .21578        .23898E-03   -.86433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25921e-10
Minuit parameter uncertainties:
  1  8.56225e-06
  2  62.6866
  3  4.50275
  4  4.06296
  5  4.92135
  6  27.401
  7  1.83825e-06
  8  5.6328
  9  7.98013e-07
  10  6.38818
  11  9.81351
  12  5.84482e-06
  13  2.13108
  14  18.339
  15  5.38368e-05
  16  4.14463e-05
  17  7.82719
  18  1.4904e-05
  19  1.77803e-05
  20  51.8949
  21  4.76905
  22  11.6841
  23  3.68273
  24  3.72679
  25  0.196852
  26  0.21594
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.490e-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.197e+00  2.159e-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:  7.298e-01  1.969e-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: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/721555/likelihoodResults_473385601_473644801_4FGL_J1330.7+2933_daily_bin903.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) = 6098.68645662
delta logL = -0.000610525942648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6098.68584625
delta logL = -1.51845597429e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4536       1.0000          .0000       10.000    
     3 'Normalizat'    .72975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1968       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=   6098.686     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1353.5        .90712E-02** at limit **
   2  Index         2.4585        6.2211        .50000       -.56709E-05
   3  Normalizat    .72980        .74908E-01    .42686E-01    .31723E-04
   4  Prefactor     1.1967        .87681E-01    .54051E-01    .10679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45854
  Normalizat = 0.729802
  Prefactor  = 1.19669
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.686     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4585        6.1955        .50000       -.53320    
   3  Normalizat    .72980        .17836        .25419E-03   -1.0273    
   4  Prefactor     1.1967        .21076        .23898E-03   -.86433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38593e-11
Minuit parameter uncertainties:
  1  6.14467e-06
  2  5.17669
  3  0.1785
  4  0.210905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/721555': 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) = 6098.68584608
delta logL = 1.28948158817e-08

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  6.145e-06  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.459e+00  5.177e+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.197e+00  2.109e-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:  7.298e-01  1.785e-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/721555/cmap_HighResolution_473385601_473644801_4FGL_J1330.7+2933_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-08 00:54:02.905612', job_id='721555', GAL2='1.20', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1631087642.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='903' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:54:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 721555: <4FGL_J1330.7+2933_daily_bin903> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin903> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 00:40:48 2021
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:42:11 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:42:11 2021
Terminated at Wed Sep  8 00:54:03 2021
Results reported at Wed Sep  8 00:54:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin903 202.693 29.5536 473385601 473644801 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 :                                   695.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             364.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            795 sec.

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

