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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1011
RA = 202.693, Dec = 29.5536
tmin = 501379201, tmax = 501638401
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='722754', job_status='RUN', time_executed='2021-09-08 00:47:59.116058', time_epoch_executed='1631087279.12' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722754

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722754/ft1_4FGL_J1330.7+2933_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722754/ft2_4FGL_J1330.7+2933_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722754/ft1_4FGL_J1330.7+2933_daily_bin1011.fits outfile=/scratch/kocevski/722754/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1011.fits ra=202.693 dec=29.5536 rad=12.0 tmin=501379201.0 tmax=501638401.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.63
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722754/ft1_filtered_4FGL_J1330.7+2933_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/722754/ft2_4FGL_J1330.7+2933_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/722754/ltcube_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.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/722754/ft2_4FGL_J1330.7+2933_daily_bin1011.fits
.....................!
real 15.74
user 15.28
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722754/ft1_filtered_4FGL_J1330.7+2933_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/722754/ft2_4FGL_J1330.7+2933_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/722754/ltcube_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.fits outfile=/scratch/kocevski/722754/expmap_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.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/722754/ltcube_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.fits
.....................!
real 194.46
user 188.80
sys 5.07

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/722754/ft1_filtered_4FGL_J1330.7+2933_daily_bin1011.fits scfile=/scratch/kocevski/722754/ft2_4FGL_J1330.7+2933_daily_bin1011.fits outfile=/scratch/kocevski/722754/cmap_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722754/ft1_filtered_4FGL_J1330.7+2933_daily_bin1011.fits scfile=/scratch/kocevski/722754/ft2_4FGL_J1330.7+2933_daily_bin1011.fits outfile=/scratch/kocevski/722754/cmap_HighResolution_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.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/722754/ft1_filtered_4FGL_J1330.7+2933_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/722754/ft2_4FGL_J1330.7+2933_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722754/Model_4FGL_J1330.7+2933_daily_bin1011.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/722754/ft1_filtered_4FGL_J1330.7+2933_daily_bin1011.fits.....................!
real 49.09
user 47.69
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24722E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    15.416       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2457       1.0000         .10000E-03   10000.    
    10 'norm      '    .53828       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    29.930       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4897       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.517       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44074       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.878       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.964       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.406       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29064       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2878       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72704       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=   5881.619     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3261 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.102       -.27455E-07** at limit **
   2  Prefactor     .10000E-03    208.55        .46865E-06** at limit **
   3  Prefactor     .10000E-03    5.6807       -.40283E-07** at limit **
   4  Prefactor     .10000E-03    3.5747       -.34294E-07** at limit **
   5  norm          4.2338        5.1431        .21899E-05   -.16715E-03
   6  Prefactor     .10000E-03    12.083       -.20740E-05** at limit **
   7  norm          15.416        5.3621        .44459E-07   -.14075E-04
   8  Prefactor     .10000E-03    36.227        .11102E-06** at limit **
   9  norm          2.2450        3.0825       -.50136E-07   -.29482E-04
  10  norm          .53689        1.7261        .25692E-06    .16906E-03
  11  norm          .10000E-03    3.0519       -.80910E-07** at limit **
  12  norm          29.929        22.523        .43851E-06    .54051E-05
  13  Prefactor     4.4915        2.8598       -.12311E-06   -.21889E-03
  14  Prefactor     .10000E-03    3.8806        .57310E-07** at limit **
  15  norm          11.516        6.7667        .40250E-07   -.80654E-05
  16  Prefactor     .10783        68.239       -.67525E-06    .58821E-04
  17  norm          .10000E-03    2.7852       -.30682E-07** at limit **
  18  Prefactor     4.6421        12.950       -.17930E-05   -.49123E-04
  19  Prefactor     20.875        20.447        .55072E-06   -.32804E-05
  20  Prefactor     30.916        74.851       -.69302E-05   -.25764E-04
  21  Prefactor     .10000E-03    2.0451        .33456E-06** at limit **
  22  Prefactor     27.404        17.109        .67232E-06    .13406E-04
  23  norm          .10000E-03    1.4432       -.30186E-07** at limit **
  24  Prefactor     .28750        2.8215        .64170E-06   -.21744E-03
  25  Normalizat    1.2877        .17944       -.20723E-05   -.20975E-03
  26  Prefactor     .72714        .18911        .18029E-05   -.10687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.23383
  Prefactor  = 0.000100003
  norm       = 15.416
  Prefactor  = 0.0001
  norm       = 2.24495
  norm       = 0.536889
  norm       = 0.0001
  norm       = 29.9293
  Prefactor  = 4.49149
  Prefactor  = 0.0001
  norm       = 11.5161
  Prefactor  = 0.107831
  norm       = 0.0001
  Prefactor  = 4.64208
  Prefactor  = 20.8753
  Prefactor  = 30.9159
  Prefactor  = 0.0001
  Prefactor  = 27.4043
  norm       = 0.0001
  Prefactor  = 0.287503
  Normalizat = 1.2877
  Prefactor  = 0.727135
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.619     FROM HESSE     STATUS=OK           470 CALLS     3731 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    210.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7945        .17844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6170        .14156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2338        5.2125        .91095E-03   -1.5296    
   6  Prefactor     .10000E-03    135.41        .48004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.416        5.3607        .10014E-03   -1.4923    
   8  Prefactor     .10000E-03    37.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2450        3.0641        .15268E-03   -1.5408    
  10  norm          .53689        1.6853        .17014E-03   -1.5561    
  11  norm          .10000E-03    3.1080        .13039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          29.929        22.520        .73235E-04   -1.4613    
  13  Prefactor     4.4915        2.8565        .96736E-04   -1.5284    
  14  Prefactor     .10000E-03    3.8875        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.516        6.7604        .11804E-03   -1.5029    
  16  Prefactor     .10783        64.629        .15900       -1.5642    
  17  norm          .10000E-03    2.7894        .12495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6421        12.920        .18676E-03   -1.5277    
  19  Prefactor     20.875        20.439        .87658E-04   -1.4794    
  20  Prefactor     30.916        74.819        .72005E-04   -1.4595    
  21  Prefactor     .10000E-03    11.449        .20930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.404        17.115        .76526E-04   -1.4661    
  23  norm          .10000E-03    1.4464        .89970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .28750        6.7853        .24476E-02   -1.5601    
  25  Normalizat    1.2877        .20319        .21266E-03   -.83934    
  26  Prefactor     .72714        .21681        .31010E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59874e-08
Minuit parameter uncertainties:
  1  1.5369e-06
  2  1.38206e-05
  3  5.2465e-06
  4  8.32789e-07
  5  5.21308
  6  0.00131917
  7  5.36084
  8  5.93341e-05
  9  3.06428
  10  1.68544
  11  8.0541e-06
  12  22.5261
  13  2.85663
  14  6.41038e-06
  15  6.7608
  16  5.28305
  17  6.87827e-07
  18  12.9277
  19  20.4455
  20  75.0474
  21  1.22953e-05
  22  17.1182
  23  1.19942e-07
  24  2.79329
  25  0.203318
  26  0.217067
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  4.642e+00  1.293e+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.271e-01  2.171e-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.288e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722754/likelihoodResults_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.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) = 5881.58053845
delta logL = 0.0383801469052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5881.57173256
delta logL = 0.0471860370444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1766       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0027       1.0000          .0000       10.000    
     3 'Normalizat'    1.2779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73367       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5881.572     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      266 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1920        24.508        .11369E-02    .37093E-03
   2  Index         2.9983        2.9744        .11019E-01    .97203E-05
   3  Normalizat    1.2781        .19663        .21332E-03    .44766E-05
   4  Prefactor     .73348        .21817        .30887E-03    .45642E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19203
  Index      = 2.99829
  Normalizat = 1.27806
  Prefactor  = 0.733476
 **********
 **   18 **HESSE 
 **********

 FCN=   5881.572     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1920        10.762        .22738E-03   -1.5351    
   2  Index         2.9983        1.9065        .44075E-03   -.41189    
   3  Normalizat    1.2781        .19561        .85330E-05   -.84224    
   4  Prefactor     .73348        .21714        .12355E-04   -1.0223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67604e-13
Minuit parameter uncertainties:
  1  10.7686
  2  1.96631
  3  0.195726
  4  0.217393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722754': 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) = 5881.57172944
delta logL = 0.0471891586412

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  3.192e+00  1.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.998e+00  1.966e+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.335e-01  2.174e-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.278e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 202.693 29.554

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/722754/cmap_HighResolution_501379201_501638401_4FGL_J1330.7+2933_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-03', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-09-08 01:00:05.439234', job_id='722754', GAL2='0.73', fit_tolerance='1e-08', EG2='1.28', EG='1.29', time_epoch_completed='1631088005.44', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='4.72e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1011' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:00:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 722754: <4FGL_J1330.7+2933_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1011 202.693 29.5536 501379201 501638401 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 :                                 1257 MB
    Average Memory :                             248.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            881 sec.

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

