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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1120
RA = 202.693, Dec = 29.5536
tmin = 529632001, tmax = 529891201
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='722934', job_status='RUN', time_executed='2021-09-08 00:48:41.390390', time_epoch_executed='1631087321.39' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722934

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722934/ft1_4FGL_J1330.7+2933_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722934/ft2_4FGL_J1330.7+2933_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722934/ft1_4FGL_J1330.7+2933_daily_bin1120.fits outfile=/scratch/kocevski/722934/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1120.fits ra=202.693 dec=29.5536 rad=12.0 tmin=529632001.0 tmax=529891201.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.74
user 3.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722934/ft1_filtered_4FGL_J1330.7+2933_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/722934/ft2_4FGL_J1330.7+2933_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/722934/ltcube_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.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/722934/ft2_4FGL_J1330.7+2933_daily_bin1120.fits
.....................!
real 17.31
user 16.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722934/ft1_filtered_4FGL_J1330.7+2933_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/722934/ft2_4FGL_J1330.7+2933_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/722934/ltcube_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.fits outfile=/scratch/kocevski/722934/expmap_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.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/722934/ltcube_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.fits
.....................!
real 193.62
user 187.78
sys 5.33

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/722934/ft1_filtered_4FGL_J1330.7+2933_daily_bin1120.fits scfile=/scratch/kocevski/722934/ft2_4FGL_J1330.7+2933_daily_bin1120.fits outfile=/scratch/kocevski/722934/cmap_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722934/ft1_filtered_4FGL_J1330.7+2933_daily_bin1120.fits scfile=/scratch/kocevski/722934/ft2_4FGL_J1330.7+2933_daily_bin1120.fits outfile=/scratch/kocevski/722934/cmap_HighResolution_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722934/ft1_filtered_4FGL_J1330.7+2933_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/722934/ft2_4FGL_J1330.7+2933_daily_bin1120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722934/Model_4FGL_J1330.7+2933_daily_bin1120.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/722934/ft1_filtered_4FGL_J1330.7+2933_daily_bin1120.fits.....................!
real 49.15
user 47.60
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16311E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3247       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .34715       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.090       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .27708       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .99963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10681       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0648       1.0000         .10000E-03   10000.    
    15 'norm      '    36.052       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.154       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1022       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2915       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1045       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .26467E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.610       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99757       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0387       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=   5849.188     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2741 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.822       -.35412E-06** at limit **
   2  Prefactor     .10000E-03    36.094       -.73886E-07** at limit **
   3  Prefactor     .10001E-03    6.6761       -.27581E-05** at limit **
   4  Prefactor     .10000E-03    2.2647        .25840E-07** at limit **
   5  norm          2.3253        3.3673        .19257E-05    .24626E-03
   6  Prefactor     .10000E-03    7.7411        .18630E-06** at limit **
   7  norm          .33684        2.3812        .14412E-06    .15800E-03
   8  Prefactor     10.091        11.031        .24040E-06    .30133E-04
   9  norm          .10000E-03    2.0482       -.54864E-08** at limit **
  10  norm          .27568        3.2928        .53049E-09   -.33243E-03
  11  norm          .10000E-03    3.3005        .72607E-07** at limit **
  12  norm          1.0340        11.798       -.82691E-06    .56694E-04
  13  Prefactor     .11289        1.4172       -.25985E-06   -.25191E-03
  14  Prefactor     3.0621        9.3146        .51995E-05    .13637E-03
  15  norm          36.049        10.319        .10100E-07    .25248E-04
  16  Prefactor     17.126        32.669        .51926E-05   -.48514E-04
  17  norm          3.1007        6.2112        .28692E-06    .19587E-04
  18  Prefactor     9.2859        12.890        .21465E-06    .16677E-04
  19  Prefactor     7.1115        18.580       -.44525E-06    .10555E-04
  20  Prefactor     .10000E-03    21.243       -.97686E-06** at limit **
  21  Prefactor     .10000E-03    1.8455        .46255E-07** at limit **
  22  Prefactor     .10000E-03    19.364        .45848E-07** at limit **
  23  norm          .10000E-03    2.6132       -.60254E-06** at limit **
  24  Prefactor     14.612        4.9364        .33646E-07    .10949E-04
  25  Normalizat    .99753        .16670       -.69803E-06    .11401E-03
  26  Prefactor     1.0387        .18940       -.72560E-06    .50085E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 2.32534
  Prefactor  = 0.0001
  norm       = 0.336842
  Prefactor  = 10.0909
  norm       = 0.0001
  norm       = 0.27568
  norm       = 0.0001
  norm       = 1.03396
  Prefactor  = 0.112886
  Prefactor  = 3.06207
  norm       = 36.0486
  Prefactor  = 17.1263
  norm       = 3.10066
  Prefactor  = 9.28586
  Prefactor  = 7.11148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6116
  Normalizat = 0.997529
  Prefactor  = 1.03874
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.188     FROM HESSE     STATUS=OK           472 CALLS     3213 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    17.556        .34978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2798        .11238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3253        3.3671        .81906E-03   -1.5403    
   6  Prefactor     .10000E-03    7.7506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .33684        10.633        .21942E-02   -1.5592    
   8  Prefactor     10.091        11.021        .63072E-03   -1.5073    
   9  norm          .10000E-03    2.0569        .10682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .27568        2.5554        .23368E-03   -1.5603    
  11  norm          .10000E-03    5.8361        .23731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0340        60.871        .49818E-02   -1.5505    
  13  Prefactor     .11289        10.452        .16569E-02   -1.5641    
  14  Prefactor     3.0621        9.7984        .11586E-02   -1.5358    
  15  norm          36.049        10.302        .66746E-04   -1.4506    
  16  Prefactor     17.126        32.699        .96702E-04   -1.4880    
  17  norm          3.1007        6.1793        .23023E-03   -1.5356    
  18  Prefactor     9.2859        12.867        .13148E-03   -1.5098    
  19  Prefactor     7.1115        18.535        .15050E-03   -1.5175    
  20  Prefactor     .10000E-03    21.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8701        .10140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.1840        .23851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.612        4.9365        .95464E-04   -1.4943    
  25  Normalizat    .99753        .19813        .22824E-03   -.93113    
  26  Prefactor     1.0387        .22607        .26295E-03   -.91449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40936e-09
Minuit parameter uncertainties:
  1  1.76126e-05
  2  1.10054e-05
  3  0.000839207
  4  6.35348e-07
  5  3.36737
  6  5.71049e-06
  7  3.78528
  8  11.0235
  9  2.16798e-06
  10  1.67846
  11  3.28765e-05
  12  15.883
  13  2.17191
  14  9.80348
  15  10.3021
  16  32.7335
  17  6.1806
  18  12.8708
  19  18.5502
  20  2.95237e-05
  21  3.31981e-06
  22  5.19469e-05
  23  9.1453e-05
  24  4.93661
  25  0.198281
  26  0.226279
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.286e+00  1.287e+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.039e+00  2.263e-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:  9.975e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722934/likelihoodResults_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.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) = 5849.17363993
delta logL = 0.0139920232905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5849.16890077
delta logL = 0.0187311888267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.741       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2622       1.0000          .0000       10.000    
     3 'Normalizat'    1.0015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0357       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=   5849.169     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.743        15.979        .12225E-03   -.59808E-03
   2  Index         2.2606        .96201        .10197E-01   -.19941E-03
   3  Normalizat    1.0017        .19262        .22783E-03    .47092E-03
   4  Prefactor     1.0356        .22525        .26329E-03    .43785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7433
  Index      = 2.26055
  Normalizat = 1.00165
  Prefactor  = 1.03559
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.169     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.743        15.605        .24450E-04   -1.5052    
   2  Index         2.2606        .93945        .40787E-03   -.57984    
   3  Normalizat    1.0017        .19270        .45565E-04   -.92975    
   4  Prefactor     1.0356        .22538        .52658E-04   -.91552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48807e-09
Minuit parameter uncertainties:
  1  15.6105
  2  0.947531
  3  0.192831
  4  0.225582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722934': 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) = 5849.16889909
delta logL = 0.018732868356

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.074e+01  1.561e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.261e+00  9.475e-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.036e+00  2.256e-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.002e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.80
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/722934/cmap_HighResolution_529632001_529891201_4FGL_J1330.7+2933_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-09-08 01:00:10.267128', job_id='722934', GAL2='1.04', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631088010.27', return_code2='0', ts='0.80', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.87e-02', ts2='0.83', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1120' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:00:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 722934: <4FGL_J1330.7+2933_daily_bin1120> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1120> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:41 2021
Job was executed on host(s) <bullet0144>, 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 01:00:10 2021
Results reported at Wed Sep  8 01:00:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1120 202.693 29.5536 529632001 529891201 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 :                                   684.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             280.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

