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


Performing analysis on: 4FGL_J1330.7+2933_daily_bin1094
RA = 202.693, Dec = 29.5536
tmin = 522892801, tmax = 523152001
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='722886', job_status='RUN', time_executed='2021-09-08 00:48:53.137999', time_epoch_executed='1631087333.14' WHERE source_name='4FGL J1330.7+2933' and cadence='daily' and bin_id='1094'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/722886

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/722886/ft1_4FGL_J1330.7+2933_daily_bin1094.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/722886/ft2_4FGL_J1330.7+2933_daily_bin1094.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/722886/ft1_4FGL_J1330.7+2933_daily_bin1094.fits outfile=/scratch/kocevski/722886/ft1_filteredMKT_4FGL_J1330.7+2933_daily_bin1094.fits ra=202.693 dec=29.5536 rad=12.0 tmin=522892801.0 tmax=523152001.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.92
user 3.52
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/722886/ft1_filtered_4FGL_J1330.7+2933_daily_bin1094.fits" evtable="EVENTS" scfile=/scratch/kocevski/722886/ft2_4FGL_J1330.7+2933_daily_bin1094.fits sctable="SC_DATA" outfile=/scratch/kocevski/722886/ltcube_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.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/722886/ft2_4FGL_J1330.7+2933_daily_bin1094.fits
.....................!
real 16.37
user 15.92
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/722886/ft1_filtered_4FGL_J1330.7+2933_daily_bin1094.fits evtable="EVENTS" scfile=/scratch/kocevski/722886/ft2_4FGL_J1330.7+2933_daily_bin1094.fits sctable="SC_DATA" expcube=/scratch/kocevski/722886/ltcube_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.fits outfile=/scratch/kocevski/722886/expmap_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.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/722886/ltcube_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.fits
.....................!
real 192.07
user 186.33
sys 5.22

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/722886/ft1_filtered_4FGL_J1330.7+2933_daily_bin1094.fits scfile=/scratch/kocevski/722886/ft2_4FGL_J1330.7+2933_daily_bin1094.fits outfile=/scratch/kocevski/722886/cmap_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/722886/ft1_filtered_4FGL_J1330.7+2933_daily_bin1094.fits scfile=/scratch/kocevski/722886/ft2_4FGL_J1330.7+2933_daily_bin1094.fits outfile=/scratch/kocevski/722886/cmap_HighResolution_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.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.59
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .16831E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.5254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.224       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7895       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2005       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.551       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.933       1.0000         .10000E-03   10000.    
    15 'norm      '    13.652       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.016       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9492       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    73.312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.034       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.387       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1173       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87377       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=   6017.724     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     3095 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7989       -.36043E-06** at limit **
   2  Prefactor     .10000E-03    30.187        .25603E-04** at limit **
   3  Prefactor     10.361        7.5511       -.57012E-07   -.17851E-04
   4  Prefactor     .10000E-03    3.7335        .34987E-05** at limit **
   5  norm          .10023E-03    2.4124       -.14464E-05** at limit **
   6  Prefactor     .10000E-03    9.9591        .23600E-05** at limit **
   7  norm          4.5256        3.6455       -.85353E-06   -.13711E-04
   8  Prefactor     13.219        24.652       -.63123E-05   -.65249E-04
   9  norm          3.7890        5.7764        .67483E-06   -.33520E-03
  10  norm          1.1991        2.4451       -.35767E-06   -.53439E-03
  11  norm          .10000E-03    2.9245        .23009E-07** at limit **
  12  norm          .10000E-03    8.7830       -.58197E-06** at limit **
  13  Prefactor     11.551        5.2190        .81262E-06   -.64817E-04
  14  Prefactor     23.931        18.539       -.19704E-05   -.37501E-04
  15  norm          13.652        8.9504       -.13505E-06   -.16557E-04
  16  Prefactor     .10000E-03    19.150        .65724E-05** at limit **
  17  norm          11.016        10.421       -.18385E-06   -.24283E-04
  18  Prefactor     1.9633        55.444        .31572E-04    .21370E-04
  19  Prefactor     .10001E-03    35.075       -.26312E-04** at limit **
  20  Prefactor     73.306        60.422       -.62617E-05   -.27818E-06
  21  Prefactor     11.034        6.0873       -.34181E-06   -.22051E-03
  22  Prefactor     39.388        23.871        .11077E-06    .12383E-05
  23  norm          .10000E-03    3.7044       -.31641E-05** at limit **
  24  Prefactor     .10000E-03    1.6141        .35695E-08** at limit **
  25  Normalizat    1.1173        .18493        .15417E-07    .13728E-03
  26  Prefactor     .87367        .18966       -.25292E-06    .99269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3611
  Prefactor  = 0.0001
  norm       = 0.000100233
  Prefactor  = 0.0001
  norm       = 4.52559
  Prefactor  = 13.2187
  norm       = 3.789
  norm       = 1.19909
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.5513
  Prefactor  = 23.9312
  norm       = 13.6522
  Prefactor  = 0.0001
  norm       = 11.0162
  Prefactor  = 1.96326
  Prefactor  = 0.000100005
  Prefactor  = 73.3063
  Prefactor  = 11.0339
  Prefactor  = 39.3879
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11731
  Prefactor  = 0.873674
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.724     FROM HESSE     STATUS=OK           460 CALLS     3555 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.8025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.361        7.5492        .12448E-03   -1.5064    
   4  Prefactor     .10000E-03    3.7568        .14644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10023E-03    17.006        .22985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5256        3.6468        .12807E-03   -1.5282    
   8  Prefactor     13.219        24.701        .11015E-03   -1.4981    
   9  norm          3.7890        5.7230        .20269E-03   -1.5319    
  10  norm          1.1991        2.3647        .16471E-03   -1.5489    
  11  norm          .10000E-03    2.9361        .12907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.7921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.551        5.2167        .10169E-03   -1.5028    
  14  Prefactor     23.931        18.536        .81880E-04   -1.4729    
  15  norm          13.652        8.9463        .10841E-03   -1.4969    
  16  Prefactor     .10000E-03    19.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.016        10.417        .12071E-03   -1.5044    
  18  Prefactor     1.9633        55.101        .29726E-03   -1.5428    
  19  Prefactor     .10001E-03    35.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     73.306        60.548        .46890E-04   -1.3993    
  21  Prefactor     11.034        6.0995        .12061E-03   -1.5043    
  22  Prefactor     39.388        23.890        .63867E-04   -1.4452    
  23  norm          .10000E-03    3.7662        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.6233        .96230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1173        .21920        .24177E-03   -.89198    
  26  Prefactor     .87367        .22328        .29444E-03   -.97067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37969e-08
Minuit parameter uncertainties:
  1  1.43168e-05
  2  2.12089e-05
  3  7.54985
  4  3.4321e-05
  5  0.00398213
  6  2.11986e-05
  7  3.647
  8  24.7202
  9  5.72385
  10  2.36491
  11  6.47028e-06
  12  2.77999e-06
  13  5.21695
  14  18.5401
  15  8.94713
  16  4.60699e-07
  17  10.4185
  18  20.8224
  19  0.000852093
  20  60.599
  21  6.09986
  22  23.8962
  23  1.38695e-05
  24  1.01691e-06
  25  0.219383
  26  0.223509
Done.

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

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.963e+00  2.082e+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:  8.737e-01  2.235e-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.117e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 202.693 29.554
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/722886/likelihoodResults_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.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) = 6017.53129639
delta logL = 0.19310750507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6017.50134457
delta logL = 0.223059320261

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3012       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9166       1.0000          .0000       10.000    
     3 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90049       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=   6017.501     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2813        47.302        .96829E-02    .97335E-03
   2  Index         3.9229        3.7732        .13583        .13209E-03
   3  Normalizat    1.0751        .40261E-01    .39123E-01    .86642E-05
   4  Prefactor     .90057        .44094E-01    .65667E-01    .14302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28132
  Index      = 3.92289
  Normalizat = 1.07514
  Prefactor  = 0.900571
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.501     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2813        139.61        .12657E-03   -1.5482    
   2  Index         3.9229        6.3029        .81183E-02   -.21712    
   3  Normalizat    1.0751        .16905        .24563E-03   -.90554    
   4  Prefactor     .90057        .18349        .29045E-03   -.96121    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77382e-09
Minuit parameter uncertainties:
  1  26.813
  2  10.2362
  3  0.169132
  4  0.183612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/722886': 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) = 6017.5013382
delta logL = 0.22306569608

Extracting fit parameters...

4FGL J1330.7+2933
   Spectrum: PowerLaw
305    Prefactor:  1.281e+00  2.681e+01  1.000e-04  1.000e+04 ( 1.000e-13)
306        Index:  3.923e+00  1.024e+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:  9.006e-01  1.836e-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.075e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/722886/cmap_HighResolution_522892801_523152001_4FGL_J1330.7+2933_daily_bin1094.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-08 01:00:29.936660', job_id='722886', GAL2='0.90', fit_tolerance='1e-08', EG2='1.08', EG='1.12', time_epoch_completed='1631088029.94', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.23e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1094' AND source_name='4FGL J1330.7+2933' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:00:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 722886: <4FGL_J1330.7+2933_daily_bin1094> in cluster <slac> Done

Job <4FGL_J1330.7+2933_daily_bin1094> 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) <bullet0233>, 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 01:00:30 2021
Results reported at Wed Sep  8 01:00:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1330.7+2933_daily_bin1094 202.693 29.5536 522892801 523152001 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 :                                   691.00 sec.
    Max Memory :                                 1205 MB
    Average Memory :                             286.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

