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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1081
RA = 202.693, Dec = 29.5536
tmin = 519523201, tmax = 519782401
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='722865', job_status='RUN', time_executed='2021-09-08 00:47:42.873011', time_epoch_executed='1631087262.87' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722865

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722865/ft1_4FGL_J1330.7+2933_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722865/ft1_4FGL_J1330.7+2933_daily_bin1081.fits outfile=/scratch/kocevski/722865/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1081.fits ra=202.693 dec=29.5536 rad=12.0 tmin=519523201.0 tmax=519782401.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.01
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.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/722865/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/722865/ft1_filtered_4FGL_J1330.7+2933_daily_bin1081.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.54
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722865/ft1_filtered_4FGL_J1330.7+2933_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/722865/ltcube_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.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/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.fits
.....................!
real 14.40
user 13.95
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722865/ft1_filtered_4FGL_J1330.7+2933_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/722865/ltcube_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.fits outfile=/scratch/kocevski/722865/expmap_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.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/722865/ltcube_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.fits
.....................!
real 194.40
user 187.77
sys 4.81

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/722865/ft1_filtered_4FGL_J1330.7+2933_daily_bin1081.fits scfile=/scratch/kocevski/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.fits outfile=/scratch/kocevski/722865/cmap_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722865/ft1_filtered_4FGL_J1330.7+2933_daily_bin1081.fits scfile=/scratch/kocevski/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.fits outfile=/scratch/kocevski/722865/cmap_HighResolution_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/722865/ft1_filtered_4FGL_J1330.7+2933_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/722865/ft2_4FGL_J1330.7+2933_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722865/Model_4FGL_J1330.7+2933_daily_bin1081.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/722865/ft1_filtered_4FGL_J1330.7+2933_daily_bin1081.fits.....................!
real 42.39
user 40.90
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.860       1.0000         .10000E-03   10000.    
     7 'norm      '    3.6147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4554       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    45.821       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16621E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    123.54       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9353       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.454       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.067       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.446       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0901       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95538       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=   4848.984     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3048 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8902        .43714E-08** at limit **
   2  Prefactor     .10000E-03    24.703        .87823E-07** at limit **
   3  Prefactor     .10000E-03    2.9824        .13681E-06** at limit **
   4  Prefactor     .10000E-03    2.5523        .32156E-07** at limit **
   5  norm          .10000E-03    2.7537       -.10125E-06** at limit **
   6  Prefactor     47.852        29.475       -.57460E-06    .10996E-03
   7  norm          3.6147        3.5472       -.80228E-08    .40702E-04
   8  Prefactor     3.4568        13.245        .71081E-06    .59783E-04
   9  norm          .10000E-03    2.1056       -.12772E-06** at limit **
  10  norm          .10000E-03    1.6482       -.47607E-07** at limit **
  11  norm          .10000E-03    2.0374        .71615E-08** at limit **
  12  norm          45.822        27.023       -.16524E-06    .67747E-06
  13  Prefactor     .10000E-03    3.0500       -.14376E-05** at limit **
  14  Prefactor     .10000E-03    35.061       -.24527E-05** at limit **
  15  norm          .10000E-03    5.9911        .38819E-06** at limit **
  16  Prefactor     123.50        70.828        .15563E-06    .10109E-03
  17  norm          3.9373        6.9721        .27156E-06    .68891E-04
  18  Prefactor     .10000E-03    6.1326        .23484E-06** at limit **
  19  Prefactor     75.460        32.810       -.43716E-06    .30261E-04
  20  Prefactor     25.940        58.355       -.27679E-05   -.49341E-04
  21  Prefactor     .10000E-03    .89514        .67352E-07** at limit **
  22  Prefactor     10.442        18.482        .14538E-06   -.21249E-05
  23  norm          .10000E-03    2.1988        .73371E-07** at limit **
  24  Prefactor     .10000E-03    2.0149        .23571E-06** at limit **
  25  Normalizat    1.0897        .22780        .68227E-05    .53277E-04
  26  Prefactor     .95575        .25194       -.77157E-05    .13082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.8523
  norm       = 3.61475
  Prefactor  = 3.45677
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 45.8222
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 123.504
  norm       = 3.93735
  Prefactor  = 0.0001
  Prefactor  = 75.4597
  Prefactor  = 25.9398
  Prefactor  = 0.0001
  Prefactor  = 10.442
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08975
  Prefactor  = 0.95575
 **********
 **   18 **HESSE 
 **********

 FCN=   4848.984     FROM HESSE     STATUS=OK           444 CALLS     3492 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.8909        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9925        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5611        .10856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7683        .11260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.852        29.329        .57961E-04   -1.4323    
   7  norm          3.6147        3.5411        .12550E-03   -1.5328    
   8  Prefactor     3.4568        13.236        .21756E-03   -1.5336    
   9  norm          .10000E-03    2.1137        .98649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6641        .87205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0404        .97063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          45.822        27.015        .29616E-03   -1.4353    
  13  Prefactor     .10000E-03    3.2724        .24092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.1322        .33122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     123.50        70.928        .18106E-03   -1.3481    
  17  norm          3.9373        6.9395        .20336E-03   -1.5311    
  18  Prefactor     .10000E-03    6.1404        .16841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     75.460        32.818        .46225E-04   -1.3968    
  20  Prefactor     25.940        58.662        .78462E-04   -1.4689    
  21  Prefactor     .10000E-03    .89628        .64334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.442        18.484        .12397E-03   -1.5062    
  23  norm          .10000E-03    2.2235        .10084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.0367        .96530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0897        .22969        .22549E-03   -.90082    
  26  Prefactor     .95575        .25291        .27593E-03   -.94219    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08153e-10
Minuit parameter uncertainties:
  1  3.13814e-06
  2  4.70609e-06
  3  5.20103e-06
  4  5.88659e-07
  5  4.79003e-06
  6  29.3382
  7  3.54126
  8  13.247
  9  5.0586e-06
  10  2.72314e-06
  11  3.88179e-07
  12  27.0225
  13  6.26342e-05
  14  0.000354548
  15  4.31493e-06
  16  70.977
  17  6.94091
  18  8.32645e-06
  19  32.8263
  20  58.793
  21  4.82074e-07
  22  18.4938
  23  1.33367e-06
  24  5.09058e-06
  25  0.229902
  26  0.253222
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  8.326e-06  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:  9.557e-01  2.532e-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.090e+00  2.299e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722865/likelihoodResults_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.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) = 4848.98460811
delta logL = -0.000773448588916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4848.98383471
delta logL = -5.02213879372e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4330       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95570       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=   4848.984     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      238 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10223E-03    108.37        .17005E-02** at limit **
   2  Index         2.3380        8.6541        .50000        .17712E-04
   3  Normalizat    1.0897        .19039E-01    .22549E-03   -.74620E-05
   4  Prefactor     .95575        .22079E-01    .27594E-03   -.56033E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102229
  Index      = 2.33804
  Normalizat = 1.08975
  Prefactor  = 0.955748
 **********
 **   18 **HESSE 
 **********

 FCN=   4848.984     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10223E-03    430.18        .34009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3380        7.8163        .50000       -.56142    
   3  Normalizat    1.0897        .40630E-01    .90194E-05   -.90082    
   4  Prefactor     .95575        .47112E-01    .11037E-04   -.94219    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.00182e-08
Minuit parameter uncertainties:
  1  0.0623867
  2  1157.14
  3  0.0406312
  4  0.0471142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722865': 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) = 4848.98383432
delta logL = 3.42392922903e-07

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.022e-04  6.239e-02  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  2.338e+00  1.157e+03  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:  9.557e-01  4.711e-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:  1.090e+00  4.063e-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/722865/cmap_HighResolution_519523201_519782401_4FGL_J1330.7+2933_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-08 00:58:16.066806', job_id='722865', GAL2='0.96', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631087896.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1081' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:58:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 722865: <4FGL_J1330.7+2933_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1081> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 00:45:36 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:45:38 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:38 2021
Terminated at Wed Sep  8 00:58:16 2021
Results reported at Wed Sep  8 00:58:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1081 202.693 29.5536 519523201 519782401 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 :                                   622.62 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

