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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1138
RA = 202.693, Dec = 29.5536
tmin = 534297601, tmax = 534556801
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='722966', job_status='RUN', time_executed='2021-09-08 00:48:21.589897', time_epoch_executed='1631087301.59' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722966/ft1_4FGL_J1330.7+2933_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722966/ft1_4FGL_J1330.7+2933_daily_bin1138.fits outfile=/scratch/kocevski/722966/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1138.fits ra=202.693 dec=29.5536 rad=12.0 tmin=534297601.0 tmax=534556801.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.57
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.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/722966/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1138.fits evtable="EVENTS" outfile="/scratch/kocevski/722966/ft1_filtered_4FGL_J1330.7+2933_daily_bin1138.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.55
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722966/ft1_filtered_4FGL_J1330.7+2933_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/722966/ltcube_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.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/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.fits
.....................!
real 16.23
user 15.71
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722966/ft1_filtered_4FGL_J1330.7+2933_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/722966/ltcube_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.fits outfile=/scratch/kocevski/722966/expmap_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.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/722966/ltcube_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.fits
.....................!
real 191.92
user 186.70
sys 4.62

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/722966/ft1_filtered_4FGL_J1330.7+2933_daily_bin1138.fits scfile=/scratch/kocevski/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.fits outfile=/scratch/kocevski/722966/cmap_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722966/ft1_filtered_4FGL_J1330.7+2933_daily_bin1138.fits scfile=/scratch/kocevski/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.fits outfile=/scratch/kocevski/722966/cmap_HighResolution_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.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/722966/ft1_filtered_4FGL_J1330.7+2933_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/722966/ft2_4FGL_J1330.7+2933_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722966/Model_4FGL_J1330.7+2933_daily_bin1138.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/722966/ft1_filtered_4FGL_J1330.7+2933_daily_bin1138.fits.....................!
real 47.44
user 46.00
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.454       1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .87310       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7100       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5532       1.0000         .10000E-03   10000.    
    11 'norm      '    .77325       1.0000         .10000E-03   10000.    
    12 'norm      '    10.320       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.998       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5815       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.352       1.0000         .10000E-03   10000.    
    20 'Prefactor '    83.126       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2771       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2302       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91931       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1013       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=   5604.581     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3085 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.463        30.799        .23376E-05    .20526E-03
   2  Prefactor     45.005        42.584       -.42161E-06   -.27395E-04
   3  Prefactor     4.0665        5.4090        .53911E-07   -.67053E-04
   4  Prefactor     .87190        9.3034        .22745E-06   -.47517E-03
   5  norm          .10000E-03    2.2070        .12779E-06** at limit **
   6  Prefactor     .10000E-03    5.9508        .46950E-06** at limit **
   7  norm          .10000E-03    2.9528        .50745E-07** at limit **
   8  Prefactor     3.7111        8.1325       -.27552E-05   -.31835E-03
   9  norm          .10000E-03    1.7777        .31016E-07** at limit **
  10  norm          3.5535        4.8612       -.14376E-05   -.30561E-03
  11  norm          .77375        18.544        .51514E-05   -.44220E-03
  12  norm          10.319        24.360        .14968E-06   -.22004E-04
  13  Prefactor     .10000E-03    .76308       -.92807E-09** at limit **
  14  Prefactor     .10000E-03    6.4318       -.45247E-06** at limit **
  15  norm          10.999        7.1055       -.63983E-06   -.29037E-03
  16  Prefactor     .10000E-03    125.90       -.56793E-07** at limit **
  17  norm          .10000E-03    4.5198       -.93281E-07** at limit **
  18  Prefactor     6.5810        9.7912        .12911E-05    .11848E-03
  19  Prefactor     14.352        17.530        .44521E-06    .24578E-04
  20  Prefactor     83.134        60.930        .40775E-05    .14611E-03
  21  Prefactor     .10000E-03    2.3238       -.63353E-07** at limit **
  22  Prefactor     6.2777        18.761       -.26689E-06   -.32983E-04
  23  norm          .10000E-03    2.0042        .17573E-08** at limit **
  24  Prefactor     6.2303        4.0784       -.52272E-08   -.61369E-04
  25  Normalizat    .91924        .16953       -.44099E-06   -.23234E-04
  26  Prefactor     1.1014        .19483        .14023E-07   -.67841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.4629
  Prefactor  = 45.0049
  Prefactor  = 4.06645
  Prefactor  = 0.871902
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.71111
  norm       = 0.0001
  norm       = 3.55352
  norm       = 0.773747
  norm       = 10.3189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9986
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.581
  Prefactor  = 14.3518
  Prefactor  = 83.1335
  Prefactor  = 0.0001
  Prefactor  = 6.27769
  norm       = 0.0001
  Prefactor  = 6.23029
  Normalizat = 0.91924
  Prefactor  = 1.10137
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.581     FROM HESSE     STATUS=OK           456 CALLS     3541 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.463        30.950        .63813E-04   -1.4451    
   2  Prefactor     45.005        42.596        .59763E-04   -1.4365    
   3  Prefactor     4.0665        5.4018        .19492E-03   -1.5305    
   4  Prefactor     .87190        9.7324        .40143E-03   -1.5521    
   5  norm          .10000E-03    2.2527        .10855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9613        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.0237        .25095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7111        8.0174        .20966E-03   -1.5323    
   9  norm          .10000E-03    1.8075        .97470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5535        5.5734        .99778E-04   -1.5331    
  11  norm          .77375        28.317        .35570E-03   -1.5532    
  12  norm          10.319        24.317        .12473E-03   -1.5065    
  13  Prefactor     .10000E-03    .76690        .63844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.999        7.1141        .12081E-03   -1.5045    
  16  Prefactor     .10000E-03    127.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.5384        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5810        9.7908        .15643E-03   -1.5195    
  19  Prefactor     14.352        17.533        .10573E-03   -1.4950    
  20  Prefactor     83.134        61.430        .44057E-04   -1.3882    
  21  Prefactor     .10000E-03    2.3610        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.2777        18.775        .16022E-03   -1.5207    
  23  norm          .10000E-03    2.0121        .10349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.2303        4.0781        .11809E-03   -1.5209    
  25  Normalizat    .91924        .20366        .23157E-03   -.95787    
  26  Prefactor     1.1014        .23450        .25186E-03   -.89423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9645e-09
Minuit parameter uncertainties:
  1  30.9628
  2  42.6249
  3  5.40244
  4  5.82692
  5  6.5152e-06
  6  2.29999e-05
  7  6.78211e-06
  8  8.01971
  9  5.47245e-06
  10  5.57419
  11  9.36589
  12  24.3405
  13  7.72479e-07
  14  1.46984e-05
  15  7.11465
  16  2.71539e-06
  17  1.26111e-05
  18  9.79318
  19  17.5395
  20  61.4766
  21  1.18345e-06
  22  18.7926
  23  5.14863e-07
  24  4.07832
  25  0.20383
  26  0.234718
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  6.581e+00  9.793e+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

GAL_V02
   Spectrum: PowerLaw
545    Prefactor:  1.101e+00  2.347e-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:  9.192e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/722966/likelihoodResults_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.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) = 5604.34840718
delta logL = 0.232585731157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5604.30789872
delta logL = 0.273094198839

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5604.308     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      248 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7096        12.752        .12864E-03   -.47724E-05
   2  Index         1.6588        .80947        .12786E-01   -.98809E-05
   3  Normalizat    .93339        .19512        .22997E-03   -.68815E-04
   4  Prefactor     1.0884        .23091        .25306E-03    .20666E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.70962
  Index      = 1.6588
  Normalizat = 0.933391
  Prefactor  = 1.08845
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.308     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7096        12.838        .51455E-05   -1.5085    
   2  Index         1.6588        .81510        .51145E-03   -.73184    
   3  Normalizat    .93339        .19534        .91986E-05   -.95297    
   4  Prefactor     1.0884        .23117        .10122E-04   -.89837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71557e-11
Minuit parameter uncertainties:
  1  12.8413
  2  0.82177
  3  0.195485
  4  0.231378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722966': 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) = 5604.30789835
delta logL = 0.273094566721

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  9.710e+00  1.284e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  1.659e+00  8.218e-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.088e+00  2.314e-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:  9.334e-01  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 202.693 29.554
Photon Index (Free Index): 1.66 +/- 0.82
Photon Flux (Free Index): 7.10e-09 +/- 1.16e-08
Energy Flux (Free Index): 1.32e-05 +/- 2.82e-05

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/722966/cmap_HighResolution_534297601_534556801_4FGL_J1330.7+2933_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', comment='SUCCESS', energy_flux2='1.32e-05', dlogl='2.73e-01', photon_flux2='7.10e-09', job_status='DONE', time_completed='2021-09-08 00:59:43.407624', photon_index_error2='0.82', photon_index2='1.66', ts='0.74', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='7.38e-08', energy_flux_error2='2.82e-05', EG='0.92', time_epoch_completed='1631087983.41', return_code='0', job_id='722966', GAL2='1.09', EG2='0.93', return_code2='0', photon_flux_error2='1.16e-08', ts2='1.29', photon_index='2.45' WHERE bin_id='1138' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:59:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 722966: <4FGL_J1330.7+2933_daily_bin1138> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1138> 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) <bullet0167>, 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:44 2021
Results reported at Wed Sep  8 00:59:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1138 202.693 29.5536 534297601 534556801 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 :                                   675.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

