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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1427
RA = 202.693, Dec = 29.5536
tmin = 609206401, tmax = 609465601
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='724522', job_status='RUN', time_executed='2021-09-08 00:54:11.730217', time_epoch_executed='1631087651.73' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724522

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724522/ft1_4FGL_J1330.7+2933_daily_bin1427.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724522/ft2_4FGL_J1330.7+2933_daily_bin1427.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724522/ft1_4FGL_J1330.7+2933_daily_bin1427.fits outfile=/scratch/kocevski/724522/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1427.fits ra=202.693 dec=29.5536 rad=12.0 tmin=609206401.0 tmax=609465601.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 2.99
user 2.77
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724522/ft1_filtered_4FGL_J1330.7+2933_daily_bin1427.fits" evtable="EVENTS" scfile=/scratch/kocevski/724522/ft2_4FGL_J1330.7+2933_daily_bin1427.fits sctable="SC_DATA" outfile=/scratch/kocevski/724522/ltcube_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.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/724522/ft2_4FGL_J1330.7+2933_daily_bin1427.fits
.....................!
real 17.30
user 16.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724522/ft1_filtered_4FGL_J1330.7+2933_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/724522/ft2_4FGL_J1330.7+2933_daily_bin1427.fits sctable="SC_DATA" expcube=/scratch/kocevski/724522/ltcube_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.fits outfile=/scratch/kocevski/724522/expmap_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.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/724522/ltcube_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.fits
.....................!
real 193.00
user 187.09
sys 5.16

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/724522/ft1_filtered_4FGL_J1330.7+2933_daily_bin1427.fits scfile=/scratch/kocevski/724522/ft2_4FGL_J1330.7+2933_daily_bin1427.fits outfile=/scratch/kocevski/724522/cmap_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724522/ft1_filtered_4FGL_J1330.7+2933_daily_bin1427.fits scfile=/scratch/kocevski/724522/ft2_4FGL_J1330.7+2933_daily_bin1427.fits outfile=/scratch/kocevski/724522/cmap_HighResolution_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724522/ft1_filtered_4FGL_J1330.7+2933_daily_bin1427.fits evtable="EVENTS" scfile=/scratch/kocevski/724522/ft2_4FGL_J1330.7+2933_daily_bin1427.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724522/Model_4FGL_J1330.7+2933_daily_bin1427.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/724522/ft1_filtered_4FGL_J1330.7+2933_daily_bin1427.fits.....................!
real 52.99
user 51.04
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4224       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0090       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.351       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1278       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7251       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1356       1.0000         .10000E-03   10000.    
    12 'norm      '    11.246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0038       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13863E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.279       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0459       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26426       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6162       1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.406       1.0000         .10000E-03   10000.    
    23 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.318       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0724       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83798       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6592.105     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     2642 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4164        6.5409        .99001E-06    .21389E-02
   2  Prefactor     11.395        69.000       -.23256E-05   -.41975E-02
   3  Prefactor     .10000E-03    2.6415        .27522E-05** at limit **
   4  Prefactor     5.0070        5.8107        .27103E-05   -.71543E-04
   5  norm          .10000E-03    2.7271       -.10163E-05** at limit **
   6  Prefactor     39.415        23.435       -.52041E-05   -.23328E-02
   7  norm          .10000E-03    1.3972        .18334E-05** at limit **
   8  Prefactor     .10000E-03    13.750        .73345E-05** at limit **
   9  norm          1.1258        2.7325        .17922E-05    .25381E-04
  10  norm          5.7272        6.1573        .45681E-05   -.38303E-04
  11  norm          4.1251        8.0872       -.54895E-05    .24347E-03
  12  norm          11.239        3.1555       -.75716E-06   -.93843E-03
  13  Prefactor     .10000E-03    .87632       -.59403E-06** at limit **
  14  Prefactor     2.0004        9.9038       -.44916E-05   -.40235E-03
  15  norm          6.1369        8.4298       -.11718E-05    .20570E-02
  16  Prefactor     .10000E-03    34.752       -.16688E-05** at limit **
  17  norm          10.286        13.736        .15774E-05    .45821E-02
  18  Prefactor     5.0416        1.3995       -.57758E-07   -.16395E-04
  19  Prefactor     .10000E-03    8.5719        .25890E-05** at limit **
  20  Prefactor     .55430E-01    6340.5       -.15650E-04    .67811E-03
  21  Prefactor     8.6156        4.1989        .72122E-06    .10136E-03
  22  Prefactor     30.354        14.282        .37167E-05   -.52188E-02
  23  norm          .10000E-03    1.2142       -.46274E-06** at limit **
  24  Prefactor     13.308        5.0415       -.87359E-06    .15057E-03
  25  Normalizat    1.0724        .19660        .44220E-06   -.67433E-04
  26  Prefactor     .83826        .20960       -.47368E-05   -.46165E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.41635
  Prefactor  = 11.395
  Prefactor  = 0.0001
  Prefactor  = 5.00702
  norm       = 0.0001
  Prefactor  = 39.4149
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12578
  norm       = 5.72721
  norm       = 4.12506
  norm       = 11.2391
  Prefactor  = 0.0001
  Prefactor  = 2.0004
  norm       = 6.13694
  Prefactor  = 0.0001
  norm       = 10.2861
  Prefactor  = 5.04158
  Prefactor  = 0.0001
  Prefactor  = 0.0554297
  Prefactor  = 8.61565
  Prefactor  = 30.3542
  norm       = 0.0001
  Prefactor  = 13.3082
  Normalizat = 1.07241
  Prefactor  = 0.838259
 **********
 **   18 **HESSE 
 **********

 FCN=   6592.105     FROM HESSE     STATUS=OK           522 CALLS     3164 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4164        28.584        .47874E-02   -1.5288    
   2  Prefactor     11.395        136.18        .29304E-02   -1.5033    
   3  Prefactor     .10000E-03    2.6380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0070        6.6178        .44920E-02   -1.5260    
   5  norm          .10000E-03    2.7071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.415        27.475        .15974E-02   -1.4452    
   7  norm          .10000E-03    1.3934        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1258        2.7998        .11014E-01   -1.5496    
  10  norm          5.7272        5.9780        .41967E-02   -1.5229    
  11  norm          4.1251        7.8175        .49553E-02   -1.5302    
  12  norm          11.239        25.055        .29866E-02   -1.5037    
  13  Prefactor     .10000E-03    .87111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0004        10.226        .73134E-02   -1.5425    
  15  norm          6.1369        12.520        .40502E-02   -1.5212    
  16  Prefactor     .10000E-03    34.666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.286        15.261        .31244E-02   -1.5066    
  18  Prefactor     5.0416        13.685        .44752E-02   -1.5259    
  19  Prefactor     .10000E-03    8.5621        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55430E-01    58.033        .14575       -1.5661    
  21  Prefactor     8.6156        4.2141        .34140E-02   -1.5121    
  22  Prefactor     30.354        28.711        .18165E-02   -1.4606    
  23  norm          .10000E-03    1.2108        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.308        5.0546        .27439E-02   -1.4978    
  25  Normalizat    1.0724        .17109        .39255E-01   -.90643    
  26  Prefactor     .83826        .18125        .65323E-01   -.98333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32076e-06
Minuit parameter uncertainties:
  1  22.4866
  2  79.0101
  3  2.87584e-06
  4  6.61875
  5  4.23621e-07
  6  27.4842
  7  1.24597e-06
  8  2.51251e-05
  9  2.80008
  10  5.97864
  11  7.81945
  12  25.0782
  13  1.62557e-07
  14  9.04775
  15  12.5252
  16  5.27624e-05
  17  15.2667
  18  13.693
  19  5.43892e-06
  20  3.58731
  21  4.21422
  22  28.7238
  23  4.12638e-07
  24  5.05476
  25  0.171181
  26  0.181375
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.042e+00  1.369e+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.383e-01  1.814e-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.072e+00  1.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/724522/likelihoodResults_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.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) = 6592.00797194
delta logL = 0.097116082874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6591.99901383
delta logL = 0.106074184478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6680       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9278       1.0000          .0000       10.000    
     3 'Normalizat'    1.0784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83062       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=   6591.999     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      277 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6698        17.892        .12888E-03   -.10329E-02
   2  Index         1.9278        .91810        .13953E-01   -.32289E-03
   3  Normalizat    1.0783        .18230        .22872E-03    .28560E-03
   4  Prefactor     .83064        .20646        .29004E-03    .30138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.6698
  Index      = 1.9278
  Normalizat = 1.07835
  Prefactor  = 0.830641
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.999     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6698        17.837        .25776E-04   -1.5086    
   2  Index         1.9278        .91573        .55814E-03   -.66168    
   3  Normalizat    1.0783        .18242        .45744E-04   -.90450    
   4  Prefactor     .83064        .20660        .11602E-04   -.98609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46287e-09
Minuit parameter uncertainties:
  1  17.8465
  2  0.924162
  3  0.182528
  4  0.206792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724522': 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) = 6591.99901381
delta logL = 0.106074205866

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.670e+00  1.785e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.928e+00  9.242e-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:  8.306e-01  2.068e-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.078e+00  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
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/724522/cmap_HighResolution_609206401_609465601_4FGL_J1330.7+2933_daily_bin1427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-08 01:07:36.229356', job_id='724522', GAL2='0.83', fit_tolerance='1e-08', EG2='1.08', EG='1.07', time_epoch_completed='1631088456.23', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.06e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1427' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:07:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 724522: <4FGL_J1330.7+2933_daily_bin1427> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1427> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 00:51:00 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:51:39 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:51:39 2021
Terminated at Wed Sep  8 01:07:37 2021
Results reported at Wed Sep  8 01:07:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1427 202.693 29.5536 609206401 609465601 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 :                                   693.59 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            997 sec.

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

