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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1130
RA = 202.693, Dec = 29.5536
tmin = 532224001, tmax = 532483201
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='722950', job_status='RUN', time_executed='2021-09-08 00:48:10.757252', time_epoch_executed='1631087290.76' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722950/ft1_4FGL_J1330.7+2933_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722950/ft2_4FGL_J1330.7+2933_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722950/ft1_4FGL_J1330.7+2933_daily_bin1130.fits outfile=/scratch/kocevski/722950/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1130.fits ra=202.693 dec=29.5536 rad=12.0 tmin=532224001.0 tmax=532483201.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722950/ft1_filtered_4FGL_J1330.7+2933_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/722950/ft2_4FGL_J1330.7+2933_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/722950/ltcube_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.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/722950/ft2_4FGL_J1330.7+2933_daily_bin1130.fits
.....................!
real 16.41
user 15.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722950/ft1_filtered_4FGL_J1330.7+2933_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/722950/ft2_4FGL_J1330.7+2933_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/722950/ltcube_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.fits outfile=/scratch/kocevski/722950/expmap_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.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/722950/ltcube_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.fits
.....................!
real 192.29
user 187.38
sys 4.10

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/722950/ft1_filtered_4FGL_J1330.7+2933_daily_bin1130.fits scfile=/scratch/kocevski/722950/ft2_4FGL_J1330.7+2933_daily_bin1130.fits outfile=/scratch/kocevski/722950/cmap_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722950/ft1_filtered_4FGL_J1330.7+2933_daily_bin1130.fits scfile=/scratch/kocevski/722950/ft2_4FGL_J1330.7+2933_daily_bin1130.fits outfile=/scratch/kocevski/722950/cmap_HighResolution_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722950/ft1_filtered_4FGL_J1330.7+2933_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/722950/ft2_4FGL_J1330.7+2933_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722950/Model_4FGL_J1330.7+2933_daily_bin1130.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/722950/ft1_filtered_4FGL_J1330.7+2933_daily_bin1130.fits.....................!
real 50.44
user 49.07
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.421       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.0715       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.468       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8801       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8469       1.0000         .10000E-03   10000.    
    11 'norm      '    .74885       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.999       1.0000         .10000E-03   10000.    
    15 'norm      '    4.7894       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.446       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    52.629       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8471       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4893       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .88491       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1839       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.303     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3063 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.502        .36709E-05** at limit **
   2  Prefactor     40.417        47.779        .12612E-05    .11871E-06
   3  Prefactor     .10000E-03    2.2455       -.52848E-07** at limit **
   4  Prefactor     .10020E-03    13.568        .13571E-04** at limit **
   5  norm          4.0716        4.2189        .45979E-06   -.95615E-04
   6  Prefactor     13.470        25.805       -.22026E-05   -.26375E-03
   7  norm          .10000E-03    1.4906       -.87043E-07** at limit **
   8  Prefactor     .10000E-03    40.556        .59634E-05** at limit **
   9  norm          2.8813        5.0044        .65171E-05    .11117E-02
  10  norm          3.8450        6.6398       -.64996E-06   -.67933E-05
  11  norm          .75132        19.456        .28758E-05    .16181E-03
  12  norm          .10000E-03    7.2918        .49645E-06** at limit **
  13  Prefactor     2.2747        3.7496       -.11806E-05   -.54547E-03
  14  Prefactor     14.998        16.446        .73387E-06   -.32215E-04
  15  norm          4.7891        5.0154        .97480E-07    .10517E-04
  16  Prefactor     .10000E-03    21.254       -.13918E-05** at limit **
  17  norm          15.447        10.002        .15723E-06    .28143E-04
  18  Prefactor     .10000E-03    6.5431       -.34712E-06** at limit **
  19  Prefactor     .10000E-03    10.899       -.11938E-05** at limit **
  20  Prefactor     52.643        72.036       -.26811E-05   -.59200E-04
  21  Prefactor     .10000E-03    2.2901       -.10345E-06** at limit **
  22  Prefactor     6.8469        13.197        .20646E-06    .99703E-05
  23  norm          .10000E-03    1.4935       -.28772E-07** at limit **
  24  Prefactor     3.4896        4.4380        .36375E-06    .10645E-03
  25  Normalizat    .88471        .17539       -.18340E-05   -.67685E-03
  26  Prefactor     1.1840        .18848        .10000E-05   -.24172E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.4175
  Prefactor  = 0.0001
  Prefactor  = 0.0001002
  norm       = 4.07162
  Prefactor  = 13.4698
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.8813
  norm       = 3.84499
  norm       = 0.751317
  norm       = 0.0001
  Prefactor  = 2.27472
  Prefactor  = 14.9984
  norm       = 4.78906
  Prefactor  = 0.0001
  norm       = 15.4475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.643
  Prefactor  = 0.0001
  Prefactor  = 6.84686
  norm       = 0.0001
  Prefactor  = 3.48958
  Normalizat = 0.884714
  Prefactor  = 1.18404
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.303     FROM HESSE     STATUS=OK           454 CALLS     3517 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.417        47.771        .63048E-04   -1.4436    
   3  Prefactor     .10000E-03    2.2536        .11528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10020E-03    30.115        .34863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.0716        4.2007        .14896E-03   -1.5304    
   6  Prefactor     13.470        25.662        .10915E-03   -1.4974    
   7  norm          .10000E-03    1.5101        .93902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8813        5.5306        .11975E-02   -1.5368    
  10  norm          3.8450        6.0866        .13166E-03   -1.5316    
  11  norm          .75132        16.588        .36147E-03   -1.5535    
  12  norm          .10000E-03    7.3014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2747        3.6930        .16302E-03   -1.5406    
  14  Prefactor     14.998        16.295        .10342E-03   -1.4933    
  15  norm          4.7891        5.0035        .16745E-03   -1.5270    
  16  Prefactor     .10000E-03    21.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.447        9.9827        .10191E-03   -1.4922    
  18  Prefactor     .10000E-03    6.5563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     52.643        72.410        .55286E-04   -1.4256    
  21  Prefactor     .10000E-03    2.3217        .11632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8469        13.194        .15333E-03   -1.5185    
  23  norm          .10000E-03    1.4955        .94008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4896        4.4311        .17943E-03   -1.5334    
  25  Normalizat    .88471        .20984        .25150E-03   -.96999    
  26  Prefactor     1.1840        .22646        .25159E-03   -.86824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79646e-09
Minuit parameter uncertainties:
  1  9.05461e-05
  2  47.8164
  3  4.56225e-06
  4  0.00491377
  5  4.201
  6  25.683
  7  7.1266e-06
  8  0.000678661
  9  5.53158
  10  6.08761
  11  7.06226
  12  7.27259e-06
  13  3.69337
  14  16.2998
  15  5.00395
  16  1.95751e-05
  17  9.98376
  18  2.0456e-05
  19  6.65455e-05
  20  72.5315
  21  1.13722e-05
  22  13.1998
  23  2.58429e-06
  24  4.43148
  25  0.210037
  26  0.226649
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.046e-05  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.184e+00  2.266e-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:  8.847e-01  2.100e-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: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722950/likelihoodResults_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.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) = 6205.30355782
delta logL = -0.000725859606973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6205.30283197
delta logL = -4.26643964602e-09

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     '    2.4508       1.0000          .0000       10.000    
     3 'Normalizat'    .88473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1840       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.303     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    670.34        .90712E-02** at limit **
   2  Index         2.4531        8.7178        .50000       -.32246E-05
   3  Normalizat    .88472        .48853E-01    .44706E-01   -.47790E-05
   4  Prefactor     1.1840        .55801E-01    .56895E-01    .36133E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45309
  Normalizat = 0.88472
  Prefactor  = 1.18403
 **********
 **   18 **HESSE 
 **********

 FCN=   6205.303     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1129.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4531        6.1755        .50000       -.53447    
   3  Normalizat    .88472        .79108E-01    .25150E-03   -.96999    
   4  Prefactor     1.1840        .90504E-01    .25158E-03   -.86824    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29506e-09
Minuit parameter uncertainties:
  1  6.18966e-05
  2  57.657
  3  0.079118
  4  0.0905159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722950': 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) = 6205.30283196
delta logL = 3.67617758457e-09

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  6.190e-05  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.453e+00  5.766e+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.184e+00  9.052e-02  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:  8.847e-01  7.912e-02  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/722950/cmap_HighResolution_532224001_532483201_4FGL_J1330.7+2933_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-08 00:59:49.360576', job_id='722950', GAL2='1.18', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631087989.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.68e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1130' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:59:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 722950: <4FGL_J1330.7+2933_daily_bin1130> in cluster <slac> Done

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

Your job looked like:

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

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

