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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1000
RA = 202.693, Dec = 29.5536
tmin = 498528001, tmax = 498787201
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='722732', job_status='RUN', time_executed='2021-09-08 00:48:12.492906', time_epoch_executed='1631087292.49' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722732/ft1_4FGL_J1330.7+2933_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722732/ft2_4FGL_J1330.7+2933_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722732/ft1_4FGL_J1330.7+2933_daily_bin1000.fits outfile=/scratch/kocevski/722732/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1000.fits ra=202.693 dec=29.5536 rad=12.0 tmin=498528001.0 tmax=498787201.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 4.98
user 4.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722732/ft1_filtered_4FGL_J1330.7+2933_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/722732/ft2_4FGL_J1330.7+2933_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/722732/ltcube_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.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/722732/ft2_4FGL_J1330.7+2933_daily_bin1000.fits
.....................!
real 15.92
user 15.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722732/ft1_filtered_4FGL_J1330.7+2933_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/722732/ft2_4FGL_J1330.7+2933_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/722732/ltcube_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.fits outfile=/scratch/kocevski/722732/expmap_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.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/722732/ltcube_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.fits
.....................!
real 194.52
user 188.07
sys 5.29

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/722732/ft1_filtered_4FGL_J1330.7+2933_daily_bin1000.fits scfile=/scratch/kocevski/722732/ft2_4FGL_J1330.7+2933_daily_bin1000.fits outfile=/scratch/kocevski/722732/cmap_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722732/ft1_filtered_4FGL_J1330.7+2933_daily_bin1000.fits scfile=/scratch/kocevski/722732/ft2_4FGL_J1330.7+2933_daily_bin1000.fits outfile=/scratch/kocevski/722732/cmap_HighResolution_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722732/ft1_filtered_4FGL_J1330.7+2933_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/722732/ft2_4FGL_J1330.7+2933_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722732/Model_4FGL_J1330.7+2933_daily_bin1000.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/722732/ft1_filtered_4FGL_J1330.7+2933_daily_bin1000.fits.....................!
real 46.97
user 45.48
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9882       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2738       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7223       1.0000         .10000E-03   10000.    
     9 'norm      '    6.3955       1.0000         .10000E-03   10000.    
    10 'norm      '    .17245       1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .78979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.728       1.0000         .10000E-03   10000.    
    15 'norm      '    8.8313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.984       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9125       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.702       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.297       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1896       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2275       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5363.471     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     2655 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5281        1.1091       -.81337E-06    .65037E-04
   2  Prefactor     .10000E-03    25.793       -.26022E-04** at limit **
   3  Prefactor     .10000E-03    4.9135        .14948E-06** at limit **
   4  Prefactor     .10000E-03    2.1489       -.27673E-06** at limit **
   5  norm          2.9879        3.3956        .13690E-06    .67992E-04
   6  Prefactor     .10000E-03    7.7162       -.59813E-05** at limit **
   7  norm          2.2805        4.5858        .68826E-06   -.26356E-04
   8  Prefactor     3.7197        1.1850        .52498E-06    .18047E-03
   9  norm          6.3968        1.9850        .19598E-05    .17833E-02
  10  norm          .17496        .67132       -.33248E-05   -.16705E-03
  11  norm          .10000E-03    7.8494        .69807E-05** at limit **
  12  norm          .65100        354.51       -.26691E-04   -.82475E-05
  13  Prefactor     .10000E-03    2.8510       -.91640E-07** at limit **
  14  Prefactor     16.719        2.1875        .10769E-05   -.15652E-02
  15  norm          8.8698        5.1613        .12251E-05   -.23886E-04
  16  Prefactor     83.981        1.2816       -.16560E-06    .10292E-02
  17  norm          2.9030        1.3903       -.96341E-06   -.12851E-03
  18  Prefactor     23.703        1.0677       -.15475E-06    .38178E-03
  19  Prefactor     .10000E-03    19.735        .13286E-04** at limit **
  20  Prefactor     .10000E-03    32.744        .18326E-04** at limit **
  21  Prefactor     .10000E-03    13.049       -.17063E-05** at limit **
  22  Prefactor     43.291        1.7306       -.21793E-06    .19399E-03
  23  norm          .10000E-03    2.8905        .49457E-06** at limit **
  24  Prefactor     4.1888        4.2177        .14872E-05   -.39197E-04
  25  Normalizat    1.2275        .22316       -.26902E-06    .17275E-03
  26  Prefactor     1.0629        .25326        .26426E-06    .85962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52808
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9879
  Prefactor  = 0.000100001
  norm       = 2.28046
  Prefactor  = 3.71965
  norm       = 6.39678
  norm       = 0.174964
  norm       = 0.000100001
  norm       = 0.651001
  Prefactor  = 0.0001
  Prefactor  = 16.7191
  norm       = 8.86981
  Prefactor  = 83.9811
  norm       = 2.90303
  Prefactor  = 23.7029
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 43.2909
  norm       = 0.0001
  Prefactor  = 4.18883
  Normalizat = 1.22749
  Prefactor  = 1.06288
 **********
 **   18 **HESSE 
 **********

 FCN=   5363.471     FROM HESSE     STATUS=OK           534 CALLS     3189 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5281        48.989        .86346E-02   -1.5461    
   2  Prefactor     .10000E-03    26.341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.1477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9879        3.4260        .58711E-02   -1.5362    
   6  Prefactor     .10000E-03    8.0355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2805        4.6734        .68083E-02   -1.5406    
   8  Prefactor     3.7197        28.429        .52325E-02   -1.5322    
   9  norm          6.3968        6.7978        .39677E-02   -1.5202    
  10  norm          .17496        2.4299        .64017E-01   -1.5624    
  11  norm          .10000E-03    4.1103        .51720E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .65100        34.478        .12402       -1.5547    
  13  Prefactor     .10000E-03    2.8284        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.719        18.999        .24481E-02   -1.4890    
  15  norm          8.8698        11.548        .33720E-02   -1.5112    
  16  Prefactor     83.981        65.066        .10958E-02   -1.3873    
  17  norm          2.9030        8.5501        .59517E-02   -1.5367    
  18  Prefactor     23.703        22.019        .20569E-02   -1.4734    
  19  Prefactor     .10000E-03    19.940        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8179        .66668E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.291        24.477        .15232E-02   -1.4391    
  23  norm          .10000E-03    2.8755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.1888        4.2467        .49224E-02   -1.5299    
  25  Normalizat    1.2275        .20085        .53752E-01   -.85757    
  26  Prefactor     1.0629        .21593        .65223E-01   -.90662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21708e-07
Minuit parameter uncertainties:
  1  17.3191
  2  0.000721466
  3  5.22007e-06
  4  9.31944e-06
  5  3.42626
  6  0.000141625
  7  4.67418
  8  20.58
  9  6.79858
  10  1.30374
  11  0.000118186
  12  9.48025
  13  2.91361e-06
  14  19.0059
  15  11.5508
  16  65.1209
  17  8.5537
  18  22.027
  19  0.000265458
  20  0.00032521
  21  6.58905e-05
  22  24.4828
  23  4.01201e-05
  24  4.24701
  25  0.200972
  26  0.21611
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  2.370e+01  2.203e+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:  1.063e+00  2.161e-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.227e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 202.693 29.554
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/722732/likelihoodResults_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.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) = 5363.1343756
delta logL = 0.336876127013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5363.12869152
delta logL = 0.342560203802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.018       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1648       1.0000          .0000       10.000    
     3 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0904       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=   5363.129     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      308 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.015        25.254        .12660E-03   -.19815E-02
   2  Index         3.1660        1.3492        .48529E-02   -.59993E-03
   3  Normalizat    1.1930        .23038        .24049E-03   -.97083E-03
   4  Prefactor     1.0902        .25779        .28535E-03   -.64903E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0152
  Index      = 3.16595
  Normalizat = 1.19305
  Prefactor  = 1.09021
 **********
 **   18 **HESSE 
 **********

 FCN=   5363.129     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.015        17.651        .50640E-05   -1.5075    
   2  Index         3.1660        .94834        .19412E-03   -.37558    
   3  Normalizat    1.1930        .23003        .48098E-04   -.86818    
   4  Prefactor     1.0902        .25707        .57070E-04   -.89780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19747e-09
Minuit parameter uncertainties:
  1  17.6607
  2  0.95504
  3  0.230221
  4  0.257363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722732': 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) = 5363.12868687
delta logL = 0.342564856375

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.002e+01  1.766e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.166e+00  9.550e-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.090e+00  2.574e-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.193e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 202.693 29.554
Photon Index (Free Index): 3.17 +/- 0.96
Photon Flux (Free Index): 7.70e-08 +/- 6.19e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.13e-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/722732/cmap_HighResolution_498528001_498787201_4FGL_J1330.7+2933_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='1.43e-05', photon_flux_error='4.71e-08', dlogl='3.43e-01', energy_flux='1.56e-05', photon_flux2='7.70e-08', job_status='DONE', time_completed='2021-09-08 00:59:19.834877', photon_index_error2='0.96', photon_index2='3.17', ts='1.54', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.13e-05', EG='1.23', time_epoch_completed='1631087959.83', return_code='0', job_id='722732', GAL2='1.09', EG2='1.19', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='6.19e-08', ts2='2.27', photon_index='2.45' WHERE bin_id='1000' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:59:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 722732: <4FGL_J1330.7+2933_daily_bin1000> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1000 202.693 29.5536 498528001 498787201 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            836 sec.

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

