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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1530
RA = 202.693, Dec = 29.5536
tmin = 635904001, tmax = 636163201
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='725758', job_status='RUN', time_executed='2021-09-08 00:57:09.273862', time_epoch_executed='1631087829.27' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1530'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/725758

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/725758/ft1_4FGL_J1330.7+2933_daily_bin1530.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/725758/ft2_4FGL_J1330.7+2933_daily_bin1530.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/725758/ft1_4FGL_J1330.7+2933_daily_bin1530.fits outfile=/scratch/kocevski/725758/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1530.fits ra=202.693 dec=29.5536 rad=12.0 tmin=635904001.0 tmax=636163201.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.21
user 3.94
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/725758/ft1_filtered_4FGL_J1330.7+2933_daily_bin1530.fits" evtable="EVENTS" scfile=/scratch/kocevski/725758/ft2_4FGL_J1330.7+2933_daily_bin1530.fits sctable="SC_DATA" outfile=/scratch/kocevski/725758/ltcube_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.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/725758/ft2_4FGL_J1330.7+2933_daily_bin1530.fits
.....................!
real 15.88
user 15.46
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/725758/ft1_filtered_4FGL_J1330.7+2933_daily_bin1530.fits evtable="EVENTS" scfile=/scratch/kocevski/725758/ft2_4FGL_J1330.7+2933_daily_bin1530.fits sctable="SC_DATA" expcube=/scratch/kocevski/725758/ltcube_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.fits outfile=/scratch/kocevski/725758/expmap_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.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/725758/ltcube_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.fits
.....................!
real 192.27
user 187.10
sys 4.72

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/725758/ft1_filtered_4FGL_J1330.7+2933_daily_bin1530.fits scfile=/scratch/kocevski/725758/ft2_4FGL_J1330.7+2933_daily_bin1530.fits outfile=/scratch/kocevski/725758/cmap_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/725758/ft1_filtered_4FGL_J1330.7+2933_daily_bin1530.fits scfile=/scratch/kocevski/725758/ft2_4FGL_J1330.7+2933_daily_bin1530.fits outfile=/scratch/kocevski/725758/cmap_HighResolution_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.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.61
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4075       1.0000         .10000E-03   10000.    
     2 'Prefactor '    78.520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2834       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .37764       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.392       1.0000         .10000E-03   10000.    
     7 'norm      '    8.3189       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.833       1.0000         .10000E-03   10000.    
    10 'norm      '    20.527       1.0000         .10000E-03   10000.    
    11 'norm      '    .18499       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.966       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.349       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2766       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7441       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16138E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.402       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.046       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2662       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72112       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=   6205.785     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3087 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4114        14.908        .13577E-05    .99531E-04
   2  Prefactor     78.564        76.862        .27842E-05    .14270E-03
   3  Prefactor     4.2844        5.9908        .17384E-06   -.23409E-04
   4  Prefactor     .10000E-03    3.4646        .16705E-06** at limit **
   5  norm          .38993        6.0565        .54124E-05   -.19020E-04
   6  Prefactor     30.412        29.171       -.25180E-05   -.40512E-04
   7  norm          8.3192        4.4933       -.10796E-06   -.12407E-03
   8  Prefactor     .10000E-03    13.661        .17594E-06** at limit **
   9  norm          11.835        6.1135        .60446E-07    .88318E-04
  10  norm          20.520        7.9757       -.24960E-06    .11131E-02
  11  norm          .23877        11.775       -.18987E-05    .88722E-03
  12  norm          .10000E-03    6.2619       -.48734E-07** at limit **
  13  Prefactor     .10000E-03    2.2270       -.65576E-06** at limit **
  14  Prefactor     11.972        17.936       -.21637E-05   -.19726E-03
  15  norm          .10000E-03    2.6919       -.14220E-08** at limit **
  16  Prefactor     32.327        49.588       -.26918E-05   -.11168E-03
  17  norm          4.2769        5.8590        .82725E-07   -.16027E-04
  18  Prefactor     9.7448        13.774       -.37901E-06   -.63847E-04
  19  Prefactor     .10000E-03    9.3992       -.71080E-07** at limit **
  20  Prefactor     .10000E-03    187.02       -.59473E-05** at limit **
  21  Prefactor     .10000E-03    1.9185       -.35173E-07** at limit **
  22  Prefactor     .10000E-03    7.6109        .46152E-07** at limit **
  23  norm          12.403        8.4780        .11833E-06    .38695E-04
  24  Prefactor     17.046        6.4077        .19291E-08    .31883E-04
  25  Normalizat    1.2664        .18034        .96872E-06   -.65044E-04
  26  Prefactor     .72077        .18902       -.16147E-05    .65471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.41143
  Prefactor  = 78.5644
  Prefactor  = 4.28435
  Prefactor  = 0.0001
  norm       = 0.389927
  Prefactor  = 30.4116
  norm       = 8.31916
  Prefactor  = 0.0001
  norm       = 11.8349
  norm       = 20.5204
  norm       = 0.238773
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9717
  norm       = 0.0001
  Prefactor  = 32.3266
  norm       = 4.27692
  Prefactor  = 9.74481
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4025
  Prefactor  = 17.0462
  Normalizat = 1.26644
  Prefactor  = 0.720767
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.785     FROM HESSE     STATUS=OK           460 CALLS     3547 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4114        14.925        .15856E-03   -1.5201    
   2  Prefactor     78.564        78.170        .22660E-03   -1.3933    
   3  Prefactor     4.2844        5.9826        .19466E-03   -1.5294    
   4  Prefactor     .10000E-03    3.4888        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .38993        6.3322        .35596E-03   -1.5583    
   6  Prefactor     30.412        29.323        .72678E-04   -1.4604    
   7  norm          8.3192        4.4964        .11797E-03   -1.5131    
   8  Prefactor     .10000E-03    13.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.835        6.1091        .11646E-03   -1.5020    
  10  norm          20.520        10.173        .88403E-04   -1.4802    
  11  norm          .23877        139.59        .37661E-02   -1.5610    
  12  norm          .10000E-03    6.2645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2270        .11385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.972        18.223        .11581E-03   -1.5016    
  15  norm          .10000E-03    2.7017        .12617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.327        49.806        .70450E-04   -1.4570    
  17  norm          4.2769        5.8511        .19482E-03   -1.5294    
  18  Prefactor     9.7448        13.789        .12837E-03   -1.5084    
  19  Prefactor     .10000E-03    9.4159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    188.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.9428        .10650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.6441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.403        8.4767        .11375E-03   -1.5003    
  24  Prefactor     17.046        6.4137        .97007E-04   -1.4882    
  25  Normalizat    1.2664        .21502        .22926E-03   -.84574    
  26  Prefactor     .72077        .22224        .31993E-03   -1.0272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11698e-08
Minuit parameter uncertainties:
  1  14.9337
  2  78.273
  3  5.9834
  4  1.35456e-06
  5  3.14266
  6  29.337
  7  4.49655
  8  1.83867e-05
  9  6.10938
  10  10.1741
  11  11.5711
  12  2.52488e-06
  13  3.18747e-05
  14  18.2314
  15  1.87532e-07
  16  49.8705
  17  5.85191
  18  13.794
  19  3.85839e-06
  20  0.00194261
  21  2.04282e-06
  22  2.66909e-06
  23  8.47755
  24  6.41399
  25  0.215169
  26  0.222519
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.745e+00  1.379e+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:  7.208e-01  2.225e-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.266e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/725758/likelihoodResults_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.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) = 6205.6881368
delta logL = 0.0963845271499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6205.67909628
delta logL = 0.10542504698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2097       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2002       1.0000          .0000       10.000    
     3 'Normalizat'    1.2378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74148       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6205.679     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      259 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2181        172.20        .44029E-02    .29853E-03
   2  Index         3.2005        6.5985        .14262        .11955E-03
   3  Normalizat    1.2380        .63563E-01    .52352E-01    .38075E-05
   4  Prefactor     .74123        .58574E-01    .71391E-01    .21438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21807
  Index      = 3.20047
  Normalizat = 1.23801
  Prefactor  = 0.741231
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.679     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2181        49.090        .17612E-03   -1.5251    
   2  Index         3.2005        3.6412        .86978E-02   -.36817    
   3  Normalizat    1.2380        .24363        .23147E-03   -.85436    
   4  Prefactor     .74123        .24441        .31594E-03   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88512e-10
Minuit parameter uncertainties:
  1  32.0439
  2  4.17758
  3  0.243852
  4  0.244771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/725758': 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) = 6205.6790935
delta logL = 0.105427825672

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  5.218e+00  3.204e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.200e+00  4.178e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  1.041e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  7.412e-01  2.448e-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.238e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 202.693 29.554
Photon Index (Free Index): 3.20 +/- 4.18
Photon Flux (Free Index): 4.28e-08 +/- 9.40e-08
Energy Flux (Free Index): 7.84e-06 +/- 9.47e-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/725758/cmap_HighResolution_635904001_636163201_4FGL_J1330.7+2933_daily_bin1530.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', energy_flux2='7.84e-06', dlogl='1.05e-01', photon_flux2='4.28e-08', job_status='DONE', time_completed='2021-09-08 01:09:57.303871', photon_index_error2='4.18', photon_index2='3.20', ts='0.77', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='9.47e-06', EG='1.27', time_epoch_completed='1631088597.3', return_code='0', job_id='725758', GAL2='0.74', EG2='1.24', return_code2='0', photon_flux_error2='9.40e-08', ts2='1.00', photon_index='2.45' WHERE bin_id='1530' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:09:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 725758: <4FGL_J1330.7+2933_daily_bin1530> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1530> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 00:55:43 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:56:54 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:56:54 2021
Terminated at Wed Sep  8 01:09:58 2021
Results reported at Wed Sep  8 01:09:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1530 202.693 29.5536 635904001 636163201 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 :                                   723.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            855 sec.

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

