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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1295
RA = 202.693, Dec = 29.5536
tmin = 574992001, tmax = 575251201
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='724351', job_status='RUN', time_executed='2021-09-08 00:53:06.453173', time_epoch_executed='1631087586.45' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1295'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724351

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724351/ft1_4FGL_J1330.7+2933_daily_bin1295.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724351/ft1_4FGL_J1330.7+2933_daily_bin1295.fits outfile=/scratch/kocevski/724351/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1295.fits ra=202.693 dec=29.5536 rad=12.0 tmin=574992001.0 tmax=575251201.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 4.45
user 4.17
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.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/724351/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1295.fits evtable="EVENTS" outfile="/scratch/kocevski/724351/ft1_filtered_4FGL_J1330.7+2933_daily_bin1295.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.47
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/724351/ft1_filtered_4FGL_J1330.7+2933_daily_bin1295.fits" evtable="EVENTS" scfile=/scratch/kocevski/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.fits sctable="SC_DATA" outfile=/scratch/kocevski/724351/ltcube_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.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/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.fits
.....................!
real 14.43
user 14.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724351/ft1_filtered_4FGL_J1330.7+2933_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.fits sctable="SC_DATA" expcube=/scratch/kocevski/724351/ltcube_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.fits outfile=/scratch/kocevski/724351/expmap_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.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/724351/ltcube_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.fits
.....................!
real 157.66
user 152.94
sys 4.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/724351/ft1_filtered_4FGL_J1330.7+2933_daily_bin1295.fits scfile=/scratch/kocevski/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.fits outfile=/scratch/kocevski/724351/cmap_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.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.50
user 0.32
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724351/ft1_filtered_4FGL_J1330.7+2933_daily_bin1295.fits scfile=/scratch/kocevski/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.fits outfile=/scratch/kocevski/724351/cmap_HighResolution_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.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.51
user 0.34
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/724351/ft1_filtered_4FGL_J1330.7+2933_daily_bin1295.fits evtable="EVENTS" scfile=/scratch/kocevski/724351/ft2_4FGL_J1330.7+2933_daily_bin1295.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/724351/Model_4FGL_J1330.7+2933_daily_bin1295.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/724351/ft1_filtered_4FGL_J1330.7+2933_daily_bin1295.fits.....................!
real 36.76
user 35.45
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    64.754       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.0552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3872       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7537       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36244       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1247       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.550       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2956       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.199       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.572       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12377E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11443E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2383       1.0000         .10000E-03   10000.    
    23 'norm      '    4.5274       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.4670       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78993       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1241       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=   4909.230     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3138 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2162       -.20699E-06** at limit **
   2  Prefactor     64.753        65.160       -.12888E-05    .34819E-04
   3  Prefactor     .10000E-03    2.2048       -.11216E-06** at limit **
   4  Prefactor     .10000E-03    2.2959       -.23109E-06** at limit **
   5  norm          .10000E-03    1.4470        .17934E-06** at limit **
   6  Prefactor     .10000E-03    6.9866       -.14038E-05** at limit **
   7  norm          6.0549        4.0980        .92574E-06   -.67469E-03
   8  Prefactor     .10000E-03    41.911       -.30805E-08** at limit **
   9  norm          3.3871        3.5213        .72476E-06   -.10124E-03
  10  norm          1.7536        2.3635        .26315E-07   -.30151E-03
  11  norm          .10000E-03    6.1646        .13225E-05** at limit **
  12  norm          .10000E-03    9.5979       -.21824E-05** at limit **
  13  Prefactor     .36254        2.6421       -.32702E-05   -.11497E-02
  14  Prefactor     .10000E-03    9.1003        .32876E-05** at limit **
  15  norm          3.1246        3.7436        .11200E-06   -.37833E-04
  16  Prefactor     32.549        55.274       -.66940E-06    .13624E-03
  17  norm          9.2953        7.9168       -.65475E-06    .66110E-04
  18  Prefactor     19.201        19.865       -.11904E-05    .69567E-04
  19  Prefactor     18.568        19.693        .27725E-05   -.20881E-03
  20  Prefactor     .10000E-03    221.91       -.32870E-05** at limit **
  21  Prefactor     .10000E-03    2.3754       -.30067E-06** at limit **
  22  Prefactor     8.2365        11.785       -.30117E-05    .25922E-03
  23  norm          4.5276        4.4817       -.15088E-05    .45309E-03
  24  Prefactor     9.4671        5.1420       -.36063E-06    .19441E-03
  25  Normalizat    .78990        .17229        .75797E-06    .16417E-03
  26  Prefactor     1.1241        .19628        .71953E-07    .15006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 64.7526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.05493
  Prefactor  = 0.0001
  norm       = 3.38706
  norm       = 1.75363
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.362544
  Prefactor  = 0.0001
  norm       = 3.12458
  Prefactor  = 32.5486
  norm       = 9.29527
  Prefactor  = 19.2011
  Prefactor  = 18.5685
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 8.23649
  norm       = 4.52756
  Prefactor  = 9.46708
  Normalizat = 0.789899
  Prefactor  = 1.12415
 **********
 **   18 **HESSE 
 **********

 FCN=   4909.230     FROM HESSE     STATUS=OK           454 CALLS     3592 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.753        65.128        .49871E-04   -1.4097    
   3  Prefactor     .10000E-03    2.2087        .10160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2998        .10366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4515        .82274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9651        .18052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.0549        4.0540        .11130E-03   -1.5216    
   8  Prefactor     .10000E-03    42.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3871        3.5241        .13009E-03   -1.5340    
  10  norm          1.7536        2.3122        .11903E-03   -1.5443    
  11  norm          .10000E-03    6.2495        .33524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.5661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .36254        3.4204        .23464E-03   -1.5588    
  14  Prefactor     .10000E-03    9.1411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1246        3.7352        .14257E-03   -1.5354    
  16  Prefactor     32.549        54.142        .70233E-04   -1.4566    
  17  norm          9.2953        7.9089        .13145E-03   -1.5098    
  18  Prefactor     19.201        19.853        .91408E-04   -1.4831    
  19  Prefactor     18.568        19.485        .92939E-04   -1.4846    
  20  Prefactor     .10000E-03    223.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6947        .20843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.2365        11.688        .13968E-03   -1.5134    
  23  norm          4.5276        4.4455        .14202E-03   -1.5282    
  24  Prefactor     9.4671        5.1470        .11211E-03   -1.5092    
  25  Normalizat    .78990        .20168        .23882E-03   -1.0044    
  26  Prefactor     1.1241        .23078        .24095E-03   -.88698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98505e-09
Minuit parameter uncertainties:
  1  9.34891e-06
  2  65.1997
  3  3.9688e-07
  4  5.70892e-06
  5  2.46618e-06
  6  6.64418e-05
  7  4.05415
  8  4.87137e-05
  9  3.52428
  10  2.31229
  11  6.28145e-05
  12  0.000105861
  13  2.22701
  14  8.14038e-05
  15  3.73551
  16  54.2242
  17  7.90978
  18  19.8596
  19  19.4913
  20  0.000860674
  21  0.000111247
  22  11.6916
  23  4.44586
  24  5.14725
  25  0.201873
  26  0.23099
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.920e+01  1.986e+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.124e+00  2.310e-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.899e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.11e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/724351/likelihoodResults_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.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) = 4906.55212873
delta logL = 2.6776136177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4905.91553924
delta logL = 3.31420310346

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 'Index     '    8.7867       1.0000          .0000       10.000    
     3 'Normalizat'    .66453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2452       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=   4905.916     FROM MIGRAD    STATUS=CONVERGED    389 CALLS      688 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .32061E-02    .22277E-03** at limit **
   2  Index         8.7868        2.1966        .95548E-01    .28082E-04
   3  Normalizat    .66447        .66276E-01    .23422E-02    .12305E-03
   4  Prefactor     1.2452        .77550E-01    .24228E-02   -.35527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.78678
  Normalizat = 0.66447
  Prefactor  = 1.24522
 **********
 **   18 **HESSE 
 **********

 FCN=   4905.916     FROM HESSE     STATUS=OK            27 CALLS      715 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30840E-03    .64244E-05   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7868        .20952        .41821E-03   -55.689    
   3  Normalizat    .66447        .20166        .93688E-04   -2.0885    
   4  Prefactor     1.2452        .23826        .96910E-04   -.84951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16109e-11
Minuit parameter uncertainties:
  1  2.09132e-09
  2  0.209661
  3  0.201888
  4  0.23847
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724351': 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) = 4905.91553831
delta logL = 3.31420403279

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.091e-09  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  8.787e+00  2.097e-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.245e+00  2.385e-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.645e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.47
Ra Dec: 202.693 29.554
Photon Index (Free Index): 8.79 +/- 0.21
Photon Flux (Free Index): 1.14e-07 +/- 5.18e-08
Energy Flux (Free Index): 1.30e-05 +/- 5.90e-06

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/724351/cmap_HighResolution_574992001_575251201_4FGL_J1330.7+2933_daily_bin1295.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.88e-03', comment='SUCCESS', photon_flux='4.11e-08', energy_flux2='1.30e-05', photon_flux_error='4.25e-08', dlogl='3.31e+00', energy_flux='1.27e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-08 01:03:00.641189', photon_index_error2='0.21', photon_index2='8.79', ts='1.28', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='5.90e-06', EG='0.79', time_epoch_completed='1631088180.64', return_code='0', job_id='724351', GAL2='1.25', EG2='0.66', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.18e-08', ts2='8.47', photon_index='2.45' WHERE bin_id='1295' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:03:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 724351: <4FGL_J1330.7+2933_daily_bin1295> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1295 202.693 29.5536 574992001 575251201 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 :                                   550.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            735 sec.

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

