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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1115
RA = 202.693, Dec = 29.5536
tmin = 528336001, tmax = 528595201
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='722924', job_status='RUN', time_executed='2021-09-08 00:48:33.215523', time_epoch_executed='1631087313.22' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722924

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722924/ft1_4FGL_J1330.7+2933_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722924/ft2_4FGL_J1330.7+2933_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722924/ft1_4FGL_J1330.7+2933_daily_bin1115.fits outfile=/scratch/kocevski/722924/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1115.fits ra=202.693 dec=29.5536 rad=12.0 tmin=528336001.0 tmax=528595201.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.53
user 3.33
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722924/ft1_filtered_4FGL_J1330.7+2933_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/722924/ft2_4FGL_J1330.7+2933_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/722924/ltcube_528336001_528595201_4FGL_J1330.7+2933_daily_bin1115.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/722924/ft2_4FGL_J1330.7+2933_daily_bin1115.fits
.....................!
real 16.93
user 16.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722924/ft1_filtered_4FGL_J1330.7+2933_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/722924/ft2_4FGL_J1330.7+2933_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/722924/ltcube_528336001_528595201_4FGL_J1330.7+2933_daily_bin1115.fits outfile=/scratch/kocevski/722924/expmap_528336001_528595201_4FGL_J1330.7+2933_daily_bin1115.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/722924/ltcube_528336001_528595201_4FGL_J1330.7+2933_daily_bin1115.fits
.....................!
real 192.63
user 187.30
sys 4.80

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/722924/ft1_filtered_4FGL_J1330.7+2933_daily_bin1115.fits scfile=/scratch/kocevski/722924/ft2_4FGL_J1330.7+2933_daily_bin1115.fits outfile=/scratch/kocevski/722924/cmap_528336001_528595201_4FGL_J1330.7+2933_daily_bin1115.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.40
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    30.656       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6337       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .55519       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9804       1.0000         .10000E-03   10000.    
    10 'norm      '    3.7771       1.0000         .10000E-03   10000.    
    11 'norm      '    .65302E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .78742       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.068       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.529       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.106       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10223E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12310E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3546       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9875       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .60237       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3456       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=   5281.665     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3133 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3032       -.68531E-07** at limit **
   2  Prefactor     30.743        50.451        .15261E-05    .18310E-03
   3  Prefactor     5.3651        7.6251        .39301E-05   -.29129E-03
   4  Prefactor     3.6332        5.1257        .17336E-06   -.98315E-04
   5  norm          3.1067        3.0547       -.23420E-07   -.46315E-04
   6  Prefactor     .10000E-03    35.274        .28792E-06** at limit **
   7  norm          .55439        1.9348        .32536E-06   -.26289E-03
   8  Prefactor     .10000E-03    9.9069       -.11394E-06** at limit **
   9  norm          3.9796        4.6191        .43831E-07   -.30198E-04
  10  norm          3.7728        4.2299        .13928E-06   -.11281E-03
  11  norm          .10000E-03    5.4336       -.58480E-07** at limit **
  12  norm          .10000E-03    7.3786       -.14479E-07** at limit **
  13  Prefactor     .78719        1.9774        .53538E-06    .43190E-03
  14  Prefactor     .10000E-03    18.965       -.57994E-06** at limit **
  15  norm          28.264        10.772       -.70255E-07   -.49808E-04
  16  Prefactor     .10000E-03    19.024        .11910E-06** at limit **
  17  norm          29.067        13.344        .41774E-07   -.14494E-04
  18  Prefactor     28.529        17.576        .25288E-07   -.33960E-04
  19  Prefactor     21.106        16.151        .30671E-07   -.82806E-05
  20  Prefactor     .10001E-03    238.54        .39742E-05** at limit **
  21  Prefactor     .10000E-03    2.7299        .14954E-06** at limit **
  22  Prefactor     .10000E-03    5.8236       -.23976E-07** at limit **
  23  norm          4.3544        5.1092        .20248E-06    .50384E-04
  24  Prefactor     7.9872        5.5650        .17021E-06    .14688E-04
  25  Normalizat    .60242        .17384       -.38836E-06   -.10083E-03
  26  Prefactor     1.3457        .20144       -.29990E-06   -.60198E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.7427
  Prefactor  = 5.36508
  Prefactor  = 3.63323
  norm       = 3.10672
  Prefactor  = 0.0001
  norm       = 0.554392
  Prefactor  = 0.0001
  norm       = 3.97964
  norm       = 3.77282
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.787194
  Prefactor  = 0.0001
  norm       = 28.2639
  Prefactor  = 0.0001
  norm       = 29.0667
  Prefactor  = 28.5293
  Prefactor  = 21.1058
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.35441
  Prefactor  = 7.98717
  Normalizat = 0.602421
  Prefactor  = 1.34566
 **********
 **   18 **HESSE 
 **********

 FCN=   5281.665     FROM HESSE     STATUS=OK           464 CALLS     3597 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3045        .17821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.743        50.877        .72365E-04   -1.4598    
   3  Prefactor     5.3651        7.5477        .86745E-03   -1.5245    
   4  Prefactor     3.6332        5.1121        .18883E-03   -1.5327    
   5  norm          3.1067        3.0556        .12122E-03   -1.5355    
   6  Prefactor     .10000E-03    35.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .55439        1.9116        .18192E-03   -1.5559    
   8  Prefactor     .10000E-03    9.9798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9796        4.5834        .16071E-03   -1.5309    
  10  norm          3.7728        3.8001        .13345E-03   -1.5319    
  11  norm          .10000E-03    14.231        .29890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    7.3817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .78719        1.6278        .15498E-02   -1.5531    
  14  Prefactor     .10000E-03    19.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.264        10.769        .75357E-04   -1.4644    
  16  Prefactor     .10000E-03    19.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.067        13.344        .74310E-04   -1.4629    
  18  Prefactor     28.529        17.581        .75008E-04   -1.4639    
  19  Prefactor     21.106        16.150        .87185E-04   -1.4789    
  20  Prefactor     .10001E-03    245.28        .41496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2180        .23100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.8408        .17128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.3544        5.0989        .17055E-03   -1.5291    
  24  Prefactor     7.9872        5.5710        .13400E-03   -1.5143    
  25  Normalizat    .60242        .20126        .28242E-03   -1.0788    
  26  Prefactor     1.3457        .23617        .23645E-03   -.81959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69753e-10
Minuit parameter uncertainties:
  1  1.00492e-05
  2  50.9491
  3  7.54907
  4  5.11275
  5  3.05578
  6  5.5173e-05
  7  1.91177
  8  6.88702e-06
  9  4.58378
  10  3.80032
  11  0.000167809
  12  1.95351e-06
  13  1.62786
  14  0.000101751
  15  10.7693
  16  6.45258e-05
  17  13.3457
  18  17.5842
  19  16.1532
  20  0.00356088
  21  1.47957e-05
  22  3.22225e-06
  23  5.0994
  24  5.57141
  25  0.201508
  26  0.236355
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.853e+01  1.758e+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:  1.346e+00  2.364e-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:  6.024e-01  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.78
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.11e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.16e-05

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) = 5281.62212401
delta logL = 0.0431231435487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5281.62077491
delta logL = 0.0444722439761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.724       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6395       1.0000          .0000       10.000    
     3 'Normalizat'    .59361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3533       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=   5281.621     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      286 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.721        26.888        .84027E-04    .56690E-04
   2  Index         2.6395        .73898        .49382E-02    .30601E-04
   3  Normalizat    .59360        .19691        .28433E-03   -.27917E-03
   4  Prefactor     1.3534        .23565        .23588E-03   -.40502E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.7213
  Index      = 2.63952
  Normalizat = 0.593602
  Prefactor  = 1.35344
 **********
 **   18 **HESSE 
 **********

 FCN=   5281.621     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.721        24.072        .33611E-05   -1.4754    
   2  Index         2.6395        .66163        .19753E-03   -.49167    
   3  Normalizat    .59360        .19669        .11373E-04   -1.0826    
   4  Prefactor     1.3534        .23547        .47176E-04   -.81732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95624e-10
Minuit parameter uncertainties:
  1  24.082
  2  0.664141
  3  0.196923
  4  0.235659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722924': 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) = 5281.6207744
delta logL = 0.0444727606018

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.272e+01  2.408e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.640e+00  6.641e-01  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.353e+00  2.357e-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:  5.936e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 202.693 29.554
Photon Index (Free Index): 2.64 +/- 0.66
Photon Flux (Free Index): 6.72e-08 +/- 4.42e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.14e-05

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/722924/cmap_HighResolution_528336001_528595201_4FGL_J1330.7+2933_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.11e-08', energy_flux2='1.70e-05', photon_flux_error='3.76e-08', dlogl='4.45e-02', energy_flux='1.88e-05', photon_flux2='6.72e-08', job_status='DONE', time_completed='2021-09-08 00:58:36.369027', photon_index_error2='0.66', photon_index2='2.64', ts='4.78', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.60', time_epoch_completed='1631087916.37', return_code='0', job_id='722924', GAL2='1.35', EG2='0.59', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='4.42e-08', ts2='4.88', photon_index='2.45' WHERE bin_id='1115' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:58:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 722924: <4FGL_J1330.7+2933_daily_bin1115> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1115> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:40 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:44 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:44 2021
Terminated at Wed Sep  8 00:58:37 2021
Results reported at Wed Sep  8 00:58:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1115 202.693 29.5536 528336001 528595201 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 :                                   599.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            777 sec.

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

