/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 211 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 = 7379
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1330.7+2933_daily_bin87
RA = 202.693, Dec = 29.5536
tmin = 261878401, tmax = 262137601
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='705247', job_status='RUN', time_executed='2021-09-07 23:49:27.172553', time_epoch_executed='1631083767.17' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/705247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/705247/ft1_4FGL_J1330.7+2933_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/705247/ft2_4FGL_J1330.7+2933_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/705247/ft1_4FGL_J1330.7+2933_daily_bin87.fits outfile=/scratch/kocevski/705247/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin87.fits ra=202.693 dec=29.5536 rad=12.0 tmin=261878401.0 tmax=262137601.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 1.18
user 1.00
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/705247/ft1_filtered_4FGL_J1330.7+2933_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/705247/ft2_4FGL_J1330.7+2933_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/705247/ltcube_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.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/705247/ft2_4FGL_J1330.7+2933_daily_bin87.fits
.....................!
real 16.60
user 16.18
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/705247/ft1_filtered_4FGL_J1330.7+2933_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/705247/ft2_4FGL_J1330.7+2933_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/705247/ltcube_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.fits outfile=/scratch/kocevski/705247/expmap_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.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/705247/ltcube_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.fits
.....................!
real 160.77
user 156.31
sys 4.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/705247/ft1_filtered_4FGL_J1330.7+2933_daily_bin87.fits scfile=/scratch/kocevski/705247/ft2_4FGL_J1330.7+2933_daily_bin87.fits outfile=/scratch/kocevski/705247/cmap_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.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.48
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/705247/ft1_filtered_4FGL_J1330.7+2933_daily_bin87.fits scfile=/scratch/kocevski/705247/ft2_4FGL_J1330.7+2933_daily_bin87.fits outfile=/scratch/kocevski/705247/cmap_HighResolution_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/705247/ft1_filtered_4FGL_J1330.7+2933_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/705247/ft2_4FGL_J1330.7+2933_daily_bin87.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/705247/Model_4FGL_J1330.7+2933_daily_bin87.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/705247/ft1_filtered_4FGL_J1330.7+2933_daily_bin87.fits.....................!
real 43.03
user 41.79
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5679       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.846       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1503       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.101       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    37.296       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.5836       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13808E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.814       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.3964       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.6100       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3000       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .55593       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=   6157.834     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3035 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5678        9.3923        .32389E-02   -.53869E-04
   2  Prefactor     51.504        56.318        .13971E-02   -.51380E-03
   3  Prefactor     .10000E-03    2.4564        .90712E-02** at limit **
   4  Prefactor     .10000E-03    1.5984        .90712E-02** at limit **
   5  norm          .10000E-03    2.0232        .90712E-02** at limit **
   6  Prefactor     32.841        22.759        .17479E-02    .60626E-03
   7  norm          6.1511        4.2615        .40470E-02    .13174E-02
   8  Prefactor     .10000E-03    10.699        .90712E-02** at limit **
   9  norm          13.098        6.0480        .27667E-02   -.67019E-03
  10  norm          .10000E-03    1.2948        .90712E-02** at limit **
  11  norm          .10000E-03    1.5111        .90712E-02** at limit **
  12  norm          37.297        19.665        .16407E-02    .16201E-03
  13  Prefactor     .10000E-03    1.5538        .90712E-02** at limit **
  14  Prefactor     .10001E-03    10.836        .90712E-02** at limit **
  15  norm          9.5871        6.4116        .32362E-02    .24387E-03
  16  Prefactor     .10000E-03    87.498        .90712E-02** at limit **
  17  norm          .10000E-03    4.7596        .90712E-02** at limit **
  18  Prefactor     25.814        18.057        .19711E-02    .25990E-03
  19  Prefactor     .10003E-03    8.3542        .90712E-02** at limit **
  20  Prefactor     6.3953        82.315        .39675E-02    .39709E-03
  21  Prefactor     .10004E-03    2.1919        .63159E-01** at limit **
  22  Prefactor     .10000E-03    4.5370        .90712E-02** at limit **
  23  norm          .10000E-03    1.3685        .90712E-02** at limit **
  24  Prefactor     2.6104        2.9836        .63123E-02    .14814E-03
  25  Normalizat    1.2999        .16994        .32805E-01    .23625E-03
  26  Prefactor     .55594        .17903        .73178E-01    .15440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.56781
  Prefactor  = 51.5043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.8408
  norm       = 6.15105
  Prefactor  = 0.000100005
  norm       = 13.0982
  norm       = 0.0001
  norm       = 0.0001
  norm       = 37.2969
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 9.5871
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.8139
  Prefactor  = 0.000100034
  Prefactor  = 6.39525
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.61038
  Normalizat = 1.29988
  Prefactor  = 0.555943
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.834     FROM HESSE     STATUS=OK           442 CALLS     3477 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5678        9.3952        .12956E-03   -1.5089    
   2  Prefactor     51.504        56.330        .55883E-04   -1.4271    
   3  Prefactor     .10000E-03    2.4662        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6013        .96876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0397        .10873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.841        22.742        .69917E-04   -1.4561    
   7  norm          6.1511        4.2581        .12822E-03   -1.5212    
   8  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.098        6.0403        .11067E-03   -1.4984    
  10  norm          .10000E-03    1.3056        .87103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5127        .94198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          37.297        19.660        .65626E-04   -1.4486    
  13  Prefactor     .10000E-03    1.5791        .95387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    10.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.5871        6.3950        .12945E-03   -1.5089    
  16  Prefactor     .10000E-03    88.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.7829        .16682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.814        18.104        .78845E-04   -1.4691    
  19  Prefactor     .10003E-03    8.3669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.3953        82.344        .15870E-03   -1.5202    
  21  Prefactor     .10004E-03    8.7190        .22010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5446        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.3706        .89647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.6104        2.9795        .14056E-03   -1.5385    
  25  Normalizat    1.2999        .19213        .20088E-03   -.83570    
  26  Prefactor     .55594        .20189        .32398E-03   -1.0947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84361e-08
Minuit parameter uncertainties:
  1  9.39668
  2  56.3881
  3  7.53966e-06
  4  1.94277e-05
  5  3.29819e-06
  6  22.748
  7  4.25835
  8  0.000442131
  9  6.04059
  10  5.55837e-06
  11  5.53513e-06
  12  19.6631
  13  2.25361e-05
  14  0.000677762
  15  6.39541
  16  0.000388159
  17  8.78385e-05
  18  18.1079
  19  0.00106199
  20  45.9736
  21  0.00121577
  22  6.6579e-05
  23  3.85172e-06
  24  2.97964
  25  0.192231
  26  0.202155
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.581e+01  1.811e+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:  5.559e-01  2.022e-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.300e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.43
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 3.87e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.19e-05

TS (Fixed Index): 3.43
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/705247/likelihoodResults_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.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) = 6157.4094554
delta logL = 0.42478524343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.40707523
delta logL = 0.427165410356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.319       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0231       1.0000          .0000       10.000    
     3 'Normalizat'    1.2623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58362       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=   6157.407     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      297 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.317        18.964        .10585E-03   -.16551E-03
   2  Index         3.0233        .76919        .45344E-02   -.85318E-04
   3  Normalizat    1.2624        .19194        .20329E-03   -.35023E-03
   4  Prefactor     .58356        .20516        .31681E-03   -.21212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3168
  Index      = 3.02331
  Normalizat = 1.26236
  Prefactor  = 0.583562
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.407     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.317        16.116        .42339E-05   -1.4951    
   2  Index         3.0233        .65340        .18138E-03   -.40644    
   3  Normalizat    1.2624        .19167        .40657E-04   -.84697    
   4  Prefactor     .58356        .20489        .12672E-04   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60497e-10
Minuit parameter uncertainties:
  1  16.1211
  2  0.655626
  3  0.191777
  4  0.205152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/705247': 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) = 6157.40707477
delta logL = 0.427165865962

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.432e+01  1.612e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.023e+00  6.556e-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:  5.836e-01  2.052e-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.262e+00  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 202.693 29.554
Photon Index (Free Index): 3.02 +/- 0.66
Photon Flux (Free Index): 8.44e-08 +/- 5.51e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.00e-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/705247/cmap_HighResolution_261878401_262137601_4FGL_J1330.7+2933_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='1.66e-05', photon_flux_error='3.87e-08', dlogl='4.27e-01', energy_flux='1.70e-05', photon_flux2='8.44e-08', job_status='DONE', time_completed='2021-09-07 23:59:17.534990', photon_index_error2='0.66', photon_index2='3.02', ts='3.43', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.00e-05', EG='1.30', time_epoch_completed='1631084357.54', return_code='0', job_id='705247', GAL2='0.58', EG2='1.26', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='5.51e-08', ts2='4.34', photon_index='2.45' WHERE bin_id='87' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 23:59:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 705247: <4FGL_J1330.7+2933_daily_bin87> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin87> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 23:45:18 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 23:45:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 23:45:42 2021
Terminated at Tue Sep  7 23:59:17 2021
Results reported at Tue Sep  7 23:59:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin87 202.693 29.5536 261878401 262137601 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 :                                   591.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            839 sec.

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

