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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1095
RA = 202.693, Dec = 29.5536
tmin = 523152001, tmax = 523411201
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='722888', job_status='RUN', time_executed='2021-09-08 00:47:46.531589', time_epoch_executed='1631087266.53' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722888/ft1_4FGL_J1330.7+2933_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722888/ft2_4FGL_J1330.7+2933_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722888/ft1_4FGL_J1330.7+2933_daily_bin1095.fits outfile=/scratch/kocevski/722888/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1095.fits ra=202.693 dec=29.5536 rad=12.0 tmin=523152001.0 tmax=523411201.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.25
user 3.94
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722888/ft1_filtered_4FGL_J1330.7+2933_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/722888/ft2_4FGL_J1330.7+2933_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/722888/ltcube_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.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/722888/ft2_4FGL_J1330.7+2933_daily_bin1095.fits
.....................!
real 16.08
user 15.48
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722888/ft1_filtered_4FGL_J1330.7+2933_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/722888/ft2_4FGL_J1330.7+2933_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/722888/ltcube_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.fits outfile=/scratch/kocevski/722888/expmap_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.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/722888/ltcube_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.fits
.....................!
real 192.82
user 186.83
sys 5.15

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/722888/ft1_filtered_4FGL_J1330.7+2933_daily_bin1095.fits scfile=/scratch/kocevski/722888/ft2_4FGL_J1330.7+2933_daily_bin1095.fits outfile=/scratch/kocevski/722888/cmap_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722888/ft1_filtered_4FGL_J1330.7+2933_daily_bin1095.fits scfile=/scratch/kocevski/722888/ft2_4FGL_J1330.7+2933_daily_bin1095.fits outfile=/scratch/kocevski/722888/cmap_HighResolution_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.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/722888/ft1_filtered_4FGL_J1330.7+2933_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/722888/ft2_4FGL_J1330.7+2933_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/722888/Model_4FGL_J1330.7+2933_daily_bin1095.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/722888/ft1_filtered_4FGL_J1330.7+2933_daily_bin1095.fits.....................!
real 45.98
user 44.50
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6272       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22643E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.034       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    113.15       1.0000         .10000E-03   10000.    
    17 'norm      '    6.5966       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10754E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .86827E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.319       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.5852       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3330       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60801       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=   5181.954     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     2597 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    7.0848        .52550E-05** at limit **
   2  Prefactor     .10017E-03    38.279        .12025E-05** at limit **
   3  Prefactor     3.6268        4.3931       -.46591E-05   -.29847E-02
   4  Prefactor     .10000E-03    4.2661        .16136E-05** at limit **
   5  norm          4.2645        3.8729       -.55699E-06    .11114E-03
   6  Prefactor     .10000E-03    7.0926       -.32206E-05** at limit **
   7  norm          .10000E-03    .92366        .18961E-06** at limit **
   8  Prefactor     .10002E-03    12.520        .95974E-05** at limit **
   9  norm          .10000E-03    1.6522       -.81770E-07** at limit **
  10  norm          .10000E-03    1.3447       -.81783E-07** at limit **
  11  norm          .10000E-03    2.2680       -.51809E-06** at limit **
  12  norm          .10000E-03    10.025       -.86462E-06** at limit **
  13  Prefactor     .10014E-03    23.746       -.66697E-05** at limit **
  14  Prefactor     20.993        3.5598        .12505E-05   -.20913E-02
  15  norm          5.5244        2.9347       -.71861E-06    .32365E-02
  16  Prefactor     113.14        1.0150        .24581E-07   -.24985E-03
  17  norm          6.5907        1.6235       -.45868E-06    .17207E-02
  18  Prefactor     .10356E-03    184.10        .21077E-04** at limit **
  19  Prefactor     .10002E-03    10.707       -.65612E-05** at limit **
  20  Prefactor     .12084E-03    21.458        .19611E-04** at limit **
  21  Prefactor     .10000E-03    2.3727       -.65549E-07** at limit **
  22  Prefactor     52.301        2.8410        .52870E-06   -.18308E-02
  23  norm          .10000E-03    1.1688       -.22428E-06** at limit **
  24  Prefactor     5.5837        4.2500        .21209E-05    .13697E-02
  25  Normalizat    1.3334        .21285       -.73078E-06   -.18537E-04
  26  Prefactor     .60755        .22807        .18538E-05   -.46618E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100047
  Prefactor  = 0.000100172
  Prefactor  = 3.62685
  Prefactor  = 0.0001
  norm       = 4.26445
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100021
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010014
  Prefactor  = 20.9926
  norm       = 5.52438
  Prefactor  = 113.145
  norm       = 6.59069
  Prefactor  = 0.000103558
  Prefactor  = 0.000100022
  Prefactor  = 0.000120835
  Prefactor  = 0.0001
  Prefactor  = 52.3009
  norm       = 0.0001
  Prefactor  = 5.58371
  Normalizat = 1.33343
  Prefactor  = 0.607548
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.954     FROM HESSE     STATUS=OK           518 CALLS     3115 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    19.437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10017E-03    40.010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6268        4.6859        .53033E-02   -1.5327    
   4  Prefactor     .10000E-03    4.2395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2645        3.8804        .48769E-02   -1.5295    
   6  Prefactor     .10000E-03    18.529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .92248        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    20.472        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3371        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.006        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10014E-03    2.3994        .62936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.993        17.814        .21833E-02   -1.4791    
  15  norm          5.5244        7.8252        .42730E-02   -1.5238    
  16  Prefactor     113.14        78.148        .94548E-03   -1.3577    
  17  norm          6.5907        10.801        .39061E-02   -1.5194    
  18  Prefactor     .10356E-03    17.204        .10182       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    18.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12084E-03    128.95        .10426E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.301        26.404        .13862E-02   -1.4260    
  23  norm          .10000E-03    1.1683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.5837        4.2963        .42498E-02   -1.5235    
  25  Normalizat    1.3334        .18842        .46899E-01   -.82574    
  26  Prefactor     .60755        .19517        .72009E-01   -1.0727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96615e-07
Minuit parameter uncertainties:
  1  0.00190494
  2  0.00525007
  3  4.68641
  4  4.48915e-06
  5  3.88059
  6  0.000104049
  7  1.10495e-07
  8  0.00129936
  9  8.98629e-07
  10  5.23773e-07
  11  2.15926e-06
  12  1.5368e-05
  13  0.00116019
  14  17.8189
  15  7.8266
  16  78.2189
  17  10.8046
  18  0.0156519
  19  0.00127603
  20  0.103892
  21  3.17182e-07
  22  26.4096
  23  1.3127e-06
  24  4.29652
  25  0.18852
  26  0.195384
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.036e-04  1.565e-02  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:  6.075e-01  1.954e-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.333e+00  1.885e-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: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722888/likelihoodResults_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.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) = 5181.95417072
delta logL = -2.37108743022e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5181.95417071
delta logL = -2.36975829466e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4487       1.0000          .0000       10.000    
     3 'Normalizat'    1.3334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60755       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=   5180.090     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      333 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .36702E-02    .28304E-03** at limit **
   2  Index         8.6590        2.5812        .13454        .15232E-03
   3  Normalizat    1.2334        .55294E-01    .48327E-01    .28014E-03
   4  Prefactor     .68419        .59665E-01    .68250E-01    .14839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.65897
  Normalizat = 1.23341
  Prefactor  = 0.684186
 **********
 **   18 **HESSE 
 **********

 FCN=   5180.090     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      372 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .20070E-01    .13748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.6590        7.8082        .57456E-02    .82095    
   3  Normalizat    1.2334        .12197        .21365E-03   -.85577    
   4  Prefactor     .68419        .13159        .30203E-03   -1.0415    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.86398e-09
Minuit parameter uncertainties:
  1  5.50961e-08
  2  4.16826
  3  0.121995
  4  0.131654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722888': 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) = 5180.08973024
delta logL = 1.86441677295

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  5.510e-08  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  8.659e+00  4.168e+00  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:  6.842e-01  1.317e-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.233e+00  1.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 202.693 29.554
Photon Index (Free Index): 8.66 +/- 4.17
Photon Flux (Free Index): 8.61e-08 +/- 7.76e-07
Energy Flux (Free Index): 9.85e-06 +/- 8.84e-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/722888/cmap_HighResolution_523152001_523411201_4FGL_J1330.7+2933_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', comment='SUCCESS', energy_flux2='9.85e-06', dlogl='1.86e+00', photon_flux2='8.61e-08', job_status='DONE', time_completed='2021-09-08 00:58:37.486463', photon_index_error2='4.17', photon_index2='8.66', ts='-0.00', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='8.84e-05', EG='1.33', time_epoch_completed='1631087917.49', return_code='0', job_id='722888', GAL2='0.68', EG2='1.23', return_code2='102', photon_flux_error2='7.76e-07', ts2='3.88', photon_index='2.45' WHERE bin_id='1095' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:58:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 722888: <4FGL_J1330.7+2933_daily_bin1095> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1095 202.693 29.5536 523152001 523411201 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 :                                   632.00 sec.
    Max Memory :                                 1208 MB
    Average Memory :                             324.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            781 sec.

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

