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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin994
RA = 202.693, Dec = 29.5536
tmin = 496972801, tmax = 497232001
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='722723', job_status='RUN', time_executed='2021-09-08 00:45:38.733343', time_epoch_executed='1631087138.73' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722723

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722723/ft1_4FGL_J1330.7+2933_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722723/ft2_4FGL_J1330.7+2933_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722723/ft1_4FGL_J1330.7+2933_daily_bin994.fits outfile=/scratch/kocevski/722723/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin994.fits ra=202.693 dec=29.5536 rad=12.0 tmin=496972801.0 tmax=497232001.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 5.24
user 4.96
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722723/ft1_filtered_4FGL_J1330.7+2933_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/722723/ft2_4FGL_J1330.7+2933_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/722723/ltcube_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.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/722723/ft2_4FGL_J1330.7+2933_daily_bin994.fits
.....................!
real 17.79
user 17.30
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722723/ft1_filtered_4FGL_J1330.7+2933_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/722723/ft2_4FGL_J1330.7+2933_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/722723/ltcube_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.fits outfile=/scratch/kocevski/722723/expmap_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.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/722723/ltcube_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.fits
.....................!
real 194.73
user 189.87
sys 4.20

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/722723/ft1_filtered_4FGL_J1330.7+2933_daily_bin994.fits scfile=/scratch/kocevski/722723/ft2_4FGL_J1330.7+2933_daily_bin994.fits outfile=/scratch/kocevski/722723/cmap_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722723/ft1_filtered_4FGL_J1330.7+2933_daily_bin994.fits scfile=/scratch/kocevski/722723/ft2_4FGL_J1330.7+2933_daily_bin994.fits outfile=/scratch/kocevski/722723/cmap_HighResolution_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722723/ft1_filtered_4FGL_J1330.7+2933_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/722723/ft2_4FGL_J1330.7+2933_daily_bin994.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722723/Model_4FGL_J1330.7+2933_daily_bin994.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/722723/ft1_filtered_4FGL_J1330.7+2933_daily_bin994.fits.....................!
real 45.14
user 43.64
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    191.77       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0525       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.083       1.0000         .10000E-03   10000.    
     5 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.5607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.3930       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .88332       1.0000         .10000E-03   10000.    
    15 'norm      '    4.9225       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14295E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    7.9234       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58317       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7639       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1364       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6414       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93034       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0643       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=   5036.084     FROM MIGRAD    STATUS=CONVERGED   1087 CALLS     3576 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.924        28.538        .81881E-04   -.85445E-04
   2  Prefactor     191.85        111.63        .14583E-03   -.25649E-04
   3  Prefactor     7.0510        6.6372        .15106E-03   -.32362E-05
   4  Prefactor     15.078        10.334        .10313E-03   -.21716E-03
   5  norm          .10000E-03    4.3896        .14397E-02** at limit **
   6  Prefactor     .10000E-03    50.240        .18142E-02** at limit **
   7  norm          2.5608        2.5092        .10763E-03   -.28729E-04
   8  Prefactor     .10000E-03    13.069        .18142E-02** at limit **
   9  norm          .10000E-03    1.8974        .95384E-03** at limit **
  10  norm          9.3924        5.2335        .11099E-03   -.48736E-03
  11  norm          .10000E-03    3.7464        .13379E-02** at limit **
  12  norm          14.170        16.134        .10641E-03   -.18911E-04
  13  Prefactor     .10000E-03    1.7303        .90800E-03** at limit **
  14  Prefactor     .86142        61.180        .48062E-02    .27091E-03
  15  norm          4.9173        8.3274        .18128E-03    .74628E-05
  16  Prefactor     .10000E-03    48.234        .16205    ** at limit **
  17  norm          7.9287        11.172        .14245E-03   -.38389E-04
  18  Prefactor     .10000E-03    6.0637        .17055E-02** at limit **
  19  Prefactor     21.058        23.762        .87275E-04   -.83629E-04
  20  Prefactor     .10000E-03    42.167        .18142E-02** at limit **
  21  Prefactor     .58670        9.2910        .27963E-02    .14031E-03
  22  Prefactor     4.7630        8.7754        .18434E-03   -.11471E-04
  23  norm          4.1363        5.3681        .18190E-03    .81874E-05
  24  Prefactor     5.6413        4.7277        .13590E-03    .12631E-04
  25  Normalizat    .93036        .24041        .24936E-03   -.33899E-03
  26  Prefactor     1.0643        .24896        .25776E-03   -.45645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9237
  Prefactor  = 191.85
  Prefactor  = 7.05103
  Prefactor  = 15.0782
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56079
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.39244
  norm       = 0.0001
  norm       = 14.1705
  Prefactor  = 0.0001
  Prefactor  = 0.861415
  norm       = 4.91727
  Prefactor  = 0.000100004
  norm       = 7.9287
  Prefactor  = 0.0001
  Prefactor  = 21.0575
  Prefactor  = 0.0001
  Prefactor  = 0.586697
  Prefactor  = 4.76296
  norm       = 4.13633
  Prefactor  = 5.64127
  Normalizat = 0.930363
  Prefactor  = 1.06428
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.084     FROM HESSE     STATUS=OK           444 CALLS     4020 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.924        28.539        .16376E-04   -1.4729    
   2  Prefactor     191.85        111.59        .58331E-05   -1.2929    
   3  Prefactor     7.0510        6.6364        .60423E-05   -1.5177    
   4  Prefactor     15.078        10.333        .41252E-05   -1.4931    
   5  norm          .10000E-03    4.3911        .28794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.252        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.5608        2.5090        .43054E-05   -1.5388    
   8  Prefactor     .10000E-03    13.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8974        .19077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.3924        5.1968        .44396E-05   -1.5095    
  11  norm          .10000E-03    3.7465        .26759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.170        16.134        .42563E-05   -1.4955    
  13  Prefactor     .10000E-03    1.7303        .18160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .86142        59.811        .19225E-03   -1.5522    
  15  norm          4.9173        8.3232        .72513E-05   -1.5264    
  16  Prefactor     .10000E-03    47.699        .16253       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.9287        11.165        .56978E-05   -1.5145    
  18  Prefactor     .10000E-03    6.0640        .34110E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.058        23.760        .34910E-05   -1.4790    
  20  Prefactor     .10000E-03    42.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .58670        9.2052        .11185E-03   -1.5555    
  22  Prefactor     4.7630        8.7744        .73736E-05   -1.5271    
  23  norm          4.1363        5.3679        .72760E-05   -1.5301    
  24  Prefactor     5.6413        4.7273        .54362E-05   -1.5233    
  25  Normalizat    .93036        .23948        .49872E-04   -.95401    
  26  Prefactor     1.0643        .24900        .51552E-04   -.90616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91338e-09
Minuit parameter uncertainties:
  1  28.5548
  2  111.71
  3  6.63711
  4  10.3341
  5  3.78279e-05
  6  0.0002077
  7  2.50912
  8  9.80591e-06
  9  5.72834e-07
  10  5.19704
  11  1.39147e-05
  12  16.1392
  13  7.40401e-06
  14  14.3699
  15  8.32515
  16  0.00087856
  17  11.1679
  18  1.22113e-05
  19  23.7706
  20  0.000138118
  21  4.64833
  22  8.7768
  23  5.36849
  24  4.7276
  25  0.239756
  26  0.249271
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.221e-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.064e+00  2.493e-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.304e-01  2.398e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722723/likelihoodResults_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.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) = 5036.08454193
delta logL = -0.000782780751251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5036.08375913
delta logL = 1.83817974175e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4345       1.0000          .0000       10.000    
     3 'Normalizat'    .93041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0642       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=   5036.084     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      243 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10143E-03    89.891        .17192E-02** at limit **
   2  Index         2.3639        6.7035        .50000        .16682E-04
   3  Normalizat    .93036        .17754E-01    .24936E-03   -.89814E-05
   4  Prefactor     1.0643        .19583E-01    .12888E-02   -.86977E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101431
  Index      = 2.36395
  Normalizat = 0.930361
  Prefactor  = 1.06428
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.084     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10143E-03    369.03        .34383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3639        7.5752        .50000       -.55531    
   3  Normalizat    .93036        .38179E-01    .99745E-05   -.95401    
   4  Prefactor     1.0643        .42110E-01    .51551E-04   -.90616    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.65742e-08
Minuit parameter uncertainties:
  1  0.0462553
  2  947.559
  3  0.0381799
  4  0.0421117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722723': 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) = 5036.08375889
delta logL = 2.53277903539e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.014e-04  4.626e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.364e+00  9.476e+02  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.064e+00  4.211e-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:  9.304e-01  3.818e-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/722723/cmap_HighResolution_496972801_497232001_4FGL_J1330.7+2933_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-08 00:57:02.972670', job_id='722723', GAL2='1.06', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631087822.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='994' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:57:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 722723: <4FGL_J1330.7+2933_daily_bin994> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin994> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:23 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:26 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:26 2021
Terminated at Wed Sep  8 00:57:03 2021
Results reported at Wed Sep  8 00:57:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin994 202.693 29.5536 496972801 497232001 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 :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

