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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1129
RA = 202.693, Dec = 29.5536
tmin = 531964801, tmax = 532224001
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='722949', job_status='RUN', time_executed='2021-09-08 00:48:24.564493', time_epoch_executed='1631087304.56' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722949/ft1_4FGL_J1330.7+2933_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722949/ft2_4FGL_J1330.7+2933_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722949/ft1_4FGL_J1330.7+2933_daily_bin1129.fits outfile=/scratch/kocevski/722949/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1129.fits ra=202.693 dec=29.5536 rad=12.0 tmin=531964801.0 tmax=532224001.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.56
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722949/ft1_filtered_4FGL_J1330.7+2933_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/722949/ft2_4FGL_J1330.7+2933_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/722949/ltcube_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.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/722949/ft2_4FGL_J1330.7+2933_daily_bin1129.fits
.....................!
real 16.87
user 16.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722949/ft1_filtered_4FGL_J1330.7+2933_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/722949/ft2_4FGL_J1330.7+2933_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/722949/ltcube_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.fits outfile=/scratch/kocevski/722949/expmap_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.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/722949/ltcube_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.fits
.....................!
real 192.62
user 187.00
sys 5.13

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/722949/ft1_filtered_4FGL_J1330.7+2933_daily_bin1129.fits scfile=/scratch/kocevski/722949/ft2_4FGL_J1330.7+2933_daily_bin1129.fits outfile=/scratch/kocevski/722949/cmap_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.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.59
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722949/ft1_filtered_4FGL_J1330.7+2933_daily_bin1129.fits scfile=/scratch/kocevski/722949/ft2_4FGL_J1330.7+2933_daily_bin1129.fits outfile=/scratch/kocevski/722949/cmap_HighResolution_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.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.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722949/ft1_filtered_4FGL_J1330.7+2933_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/722949/ft2_4FGL_J1330.7+2933_daily_bin1129.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722949/Model_4FGL_J1330.7+2933_daily_bin1129.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/722949/ft1_filtered_4FGL_J1330.7+2933_daily_bin1129.fits.....................!
real 51.64
user 50.17
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3974       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.538       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.355       1.0000         .10000E-03   10000.    
     9 'norm      '    .24850       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8796       1.0000         .10000E-03   10000.    
    11 'norm      '    .49461E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.009       1.0000         .10000E-03   10000.    
    15 'norm      '    30.368       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.478       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6617       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10784E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6177       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.5116       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2754       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0787       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89026       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=   6256.115     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3597 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5433       -.34697E-07** at limit **
   2  Prefactor     .10000E-03    34.516       -.11100E-05** at limit **
   3  Prefactor     1.3991        12.503        .11516E-04    .22911E-03
   4  Prefactor     .10000E-03    7.8958       -.59667E-07** at limit **
   5  norm          .10000E-03    1.6636        .41494E-07** at limit **
   6  Prefactor     20.531        23.855       -.94964E-07    .16774E-04
   7  norm          .10000E-03    1.2305        .90724E-07** at limit **
   8  Prefactor     33.337        24.562        .56587E-06    .74170E-04
   9  norm          .28156        5.6303        .20563E-05   -.89022E-03
  10  norm          1.8795        2.5646       -.26941E-06    .62695E-04
  11  norm          .10014E-03    4.1340       -.13409E-05** at limit **
  12  norm          .10000E-03    5.4550        .16065E-07** at limit **
  13  Prefactor     1.1793        9.1853        .50615E-05   -.31377E-03
  14  Prefactor     22.023        23.122       -.50492E-05   -.27464E-03
  15  norm          30.371        10.201       -.27680E-06   -.32358E-04
  16  Prefactor     10.370        188.99        .14898E-04   -.23613E-04
  17  norm          4.2109        9.4016        .19091E-05    .70519E-04
  18  Prefactor     .10000E-03    31.684        .13756E-05** at limit **
  19  Prefactor     4.6585        17.523        .82382E-06   -.20527E-04
  20  Prefactor     .10000E-03    75.863       -.77908E-06** at limit **
  21  Prefactor     7.6154        5.1247        .12184E-06   -.13491E-03
  22  Prefactor     .10000E-03    18.518       -.13600E-06** at limit **
  23  norm          3.5125        3.7653        .12235E-06   -.10354E-04
  24  Prefactor     5.2755        3.9083        .13307E-06   -.27089E-04
  25  Normalizat    1.0787        .18670       -.47126E-06    .63950E-04
  26  Prefactor     .89021        .19138       -.20229E-05   -.15175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.39915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.531
  norm       = 0.0001
  Prefactor  = 33.3367
  norm       = 0.281557
  norm       = 1.87952
  norm       = 0.000100139
  norm       = 0.0001
  Prefactor  = 1.17934
  Prefactor  = 22.0233
  norm       = 30.3712
  Prefactor  = 10.3695
  norm       = 4.2109
  Prefactor  = 0.0001
  Prefactor  = 4.65847
  Prefactor  = 0.0001
  Prefactor  = 7.61536
  Prefactor  = 0.0001
  norm       = 3.51246
  Prefactor  = 5.27553
  Normalizat = 1.07874
  Prefactor  = 0.890215
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.115     FROM HESSE     STATUS=OK           474 CALLS     4071 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3991        12.913        .18361E-02   -1.5471    
   4  Prefactor     .10000E-03    8.1012        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6706        .99553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.531        23.796        .88380E-04   -1.4801    
   7  norm          .10000E-03    1.2375        .85673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.337        24.893        .69383E-04   -1.4553    
   9  norm          .28156        32.812        .27573E-02   -1.5602    
  10  norm          1.8795        2.6103        .12535E-03   -1.5434    
  11  norm          .10014E-03    3.8334        .48564E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.4562        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1793        9.6978        .30342E-03   -1.5491    
  14  Prefactor     22.023        23.449        .85380E-04   -1.4769    
  15  norm          30.371        10.166        .72706E-04   -1.4605    
  16  Prefactor     10.370        189.75        .12378E-03   -1.5064    
  17  norm          4.2109        9.3660        .98163E-03   -1.5298    
  18  Prefactor     .10000E-03    32.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6585        17.501        .18639E-03   -1.5276    
  20  Prefactor     .10000E-03    76.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6154        5.1414        .13823E-03   -1.5156    
  22  Prefactor     .10000E-03    18.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5125        3.7642        .15444E-03   -1.5333    
  24  Prefactor     5.2755        3.9078        .13020E-03   -1.5249    
  25  Normalizat    1.0787        .21721        .23686E-03   -.90437    
  26  Prefactor     .89021        .21988        .28212E-03   -.96484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83626e-09
Minuit parameter uncertainties:
  1  4.91205e-06
  2  3.99684e-05
  3  8.50333
  4  9.22125e-05
  5  3.01017e-06
  6  23.8067
  7  4.50951e-06
  8  24.9003
  9  6.08134
  10  2.61051
  11  0.00146016
  12  3.1494e-06
  13  6.76491
  14  23.459
  15  10.1667
  16  89.0444
  17  9.36928
  18  0.000155865
  19  17.5205
  20  0.00030221
  21  5.14173
  22  7.94091e-05
  23  3.76442
  24  3.90794
  25  0.217389
  26  0.220096
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.559e-04  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.902e-01  2.201e-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.079e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722949/likelihoodResults_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.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) = 6256.11478386
delta logL = -0.000147624369674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6255.92184283
delta logL = 0.192793410344

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47522E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4238       1.0000          .0000       10.000    
     3 'Normalizat'    1.0370       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92025       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=   6255.922     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      270 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46527E-01    .98652        .61070E-02    .53551E-02
   2  Index         5.4336        2.8343        .14470        .13215E-03
   3  Normalizat    1.0372        .25095E-01    .41522E-01    .59465E-05
   4  Prefactor     .91990        .27588E-01    .45263E-01    .14987E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0465271
  Index      = 5.43356
  Normalizat = 1.03724
  Prefactor  = 0.919895
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.922     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46527E-01    6.2412        .26824E-04   -1.5665    
   2  Index         5.4336        7.3643        .81736E-02    .86822E-01
   3  Normalizat    1.0372        .14987        .24089E-03   -.91793    
   4  Prefactor     .91990        .16089        .27809E-03   -.95449    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58174e-09
Minuit parameter uncertainties:
  1  1.0767
  2  10.9341
  3  0.149928
  4  0.16097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722949': 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): 102
logL (Free Index) = 6255.92183808
delta logL = 0.192798159746

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.653e-02  1.077e+00  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  5.434e+00  1.093e+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:  9.199e-01  1.610e-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.037e+00  1.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/722949/cmap_HighResolution_531964801_532224001_4FGL_J1330.7+2933_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-09-08 01:01:01.483412', job_id='722949', GAL2='0.92', fit_tolerance='1e-08', EG2='1.04', EG='1.08', time_epoch_completed='1631088061.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.93e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1129' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:01:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 722949: <4FGL_J1330.7+2933_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1129 202.693 29.5536 531964801 532224001 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 :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

