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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin650
RA = 197.76, Dec = 32.5565
tmin = 407808001, tmax = 408067201
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='334224', job_status='RUN', time_executed='2021-09-07 04:02:59.695397', time_epoch_executed='1631012579.7' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334224/ft1_4FGL_J1311.0+3233_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334224/ft1_4FGL_J1311.0+3233_daily_bin650.fits outfile=/scratch/kocevski/334224/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin650.fits ra=197.76 dec=32.5565 rad=12.0 tmin=407808001.0 tmax=408067201.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.19
user 3.93
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.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/334224/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin650.fits evtable="EVENTS" outfile="/scratch/kocevski/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/334224/ltcube_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.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/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits
.....................!
real 18.15
user 17.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/334224/ltcube_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.fits outfile=/scratch/kocevski/334224/expmap_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.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/334224/ltcube_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.fits
.....................!
real 193.50
user 187.11
sys 5.47

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1311.0+3233 @ 197.76 32.5565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits scfile=/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits outfile=/scratch/kocevski/334224/cmap_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.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=197.76 yref=32.5565 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits scfile=/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits outfile=/scratch/kocevski/334224/cmap_HighResolution_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.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=197.76 yref=32.5565 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/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334224/Model_4FGL_J1311.0+3233_daily_bin650.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/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits.....................!
real 49.35
user 47.76
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits', '/scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits', expMap='/scratch/kocevski/334224/expmap_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.fits', expCube='/scratch/kocevski/334224/ltcube_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/334224/Model_4FGL_J1311.0+3233_daily_bin650.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1311.0+3233'

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.854e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/334224/ft1_filtered_4FGL_J1311.0+3233_daily_bin650.fits
Spacecraft file(s): /scratch/kocevski/334224/ft2_4FGL_J1311.0+3233_daily_bin650.fits
Exposure map: /scratch/kocevski/334224/expmap_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.fits
Exposure cube: /scratch/kocevski/334224/ltcube_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/334224/Model_4FGL_J1311.0+3233_daily_bin650.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) = 5393.67016362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9580       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    58.835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.447       1.0000         .10000E-03   10000.    
    14 'norm      '    7.0028       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.706       1.0000         .10000E-03   10000.    
    16 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.035       1.0000         .10000E-03   10000.    
    18 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .37910E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10956E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.444       1.0000         .10000E-03   10000.    
    23 'norm      '    18.919       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0017       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    44.060       1.0000         .10000E-03   10000.    
    28 'Prefactor '    28.803       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.6378       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .95401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5393.640     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4156 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9575        3.9734       -.22240E-07    .46440E-04
   2  Prefactor     .10000E-03    6.7427        .23555E-06** at limit **
   3  Prefactor     1.0829        1.4179        .24524E-08    .63597E-04
   4  Prefactor     .10000E-03    1.0160        .81609E-07** at limit **
   5  norm          .10000E-03    3.7392        .15334E-05** at limit **
   6  Prefactor     .81122        13.005        .47790E-05    .18497E-03
   7  Prefactor     .10000E-03    9.0209       -.24986E-06** at limit **
   8  Prefactor     58.888        94.779        .43107E-05   -.31677E-04
   9  Prefactor     .10000E-03    3.3672        .22961E-06** at limit **
  10  Prefactor     .10000E-03    3.3368       -.14277E-06** at limit **
  11  norm          .10000E-03    3.1112       -.90599E-06** at limit **
  12  Prefactor     .10000E-03    25.237       -.95803E-06** at limit **
  13  Prefactor     60.477        40.410        .14637E-05   -.12268E-03
  14  norm          7.0037        3.9757       -.35211E-07   -.41657E-04
  15  Prefactor     22.706        21.672       -.38532E-06   -.53111E-04
  16  norm          .10000E-03    3.5894       -.12476E-06** at limit **
  17  norm          24.035        18.944        .97671E-07   -.81010E-05
  18  norm          .10000E-03    1.2580       -.12259E-06** at limit **
  19  norm          .10000E-03    1.9753       -.41407E-07** at limit **
  20  norm          .10002E-03    64.801       -.20101E-04** at limit **
  21  Prefactor     .10000E-03    3.0203        .92504E-06** at limit **
  22  Prefactor     14.459        16.978       -.13964E-05   -.37599E-03
  23  norm          18.921        7.4718        .84576E-07   -.20905E-04
  24  Prefactor     .10000E-03    40.257        .23933E-05** at limit **
  25  norm          3.0021        5.5703       -.16263E-05   -.62963E-05
  26  Prefactor     .10000E-03    46.051        .15756E-05** at limit **
  27  Prefactor     44.056        32.136       -.24137E-06   -.41868E-04
  28  Prefactor     28.845        51.691        .42514E-05   -.64350E-04
  29  Prefactor     7.6384        7.1441        .14028E-06   -.90185E-04
  30  Normalizat    1.1310        .20395       -.14779E-06   -.23709E-03
  31  Prefactor     .95409        .22761       -.15079E-05   -.63756E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.95749
  Prefactor  = 0.0001
  Prefactor  = 1.08294
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.811221
  Prefactor  = 0.0001
  Prefactor  = 58.8875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.4772
  norm       = 7.00366
  Prefactor  = 22.7061
  norm       = 0.0001
  norm       = 24.0351
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100016
  Prefactor  = 0.000100001
  Prefactor  = 14.4587
  norm       = 18.9208
  Prefactor  = 0.0001
  norm       = 3.00209
  Prefactor  = 0.0001
  Prefactor  = 44.0557
  Prefactor  = 28.8449
  Prefactor  = 7.63836
  Normalizat = 1.13096
  Prefactor  = 0.954095
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.640     FROM HESSE     STATUS=OK           620 CALLS     4776 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9575        3.9789        .93689E-04   -1.5109    
   2  Prefactor     .10000E-03    6.8239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0829        1.3890        .96543E-04   -1.5500    
   4  Prefactor     .10000E-03    1.0308        .72221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.882        .26587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .81122        35.690        .44194E-02   -1.5528    
   7  Prefactor     .10000E-03    9.0228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     58.888        94.550        .52304E-04   -1.4172    
   9  Prefactor     .10000E-03    3.3871        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3406        .13093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1383        .12667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.477        40.256        .51607E-04   -1.4151    
  14  norm          7.0037        3.9702        .10628E-03   -1.5179    
  15  Prefactor     22.706        21.640        .84059E-04   -1.4755    
  16  norm          .10000E-03    3.6074        .13568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.035        18.948        .81706E-04   -1.4727    
  18  norm          .10000E-03    1.2626        .80389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9783        .10079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10002E-03    70.343        .49928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0148        .22634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.459        15.875        .10539E-03   -1.4947    
  23  norm          18.921        7.4424        .92083E-04   -1.4838    
  24  Prefactor     .10000E-03    40.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0021        5.6085        .11395E-02   -1.5361    
  26  Prefactor     .10000E-03    46.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     44.056        32.127        .60398E-04   -1.4379    
  28  Prefactor     28.845        51.373        .74650E-04   -1.4633    
  29  Prefactor     7.6384        7.1559        .14510E-03   -1.5155    
  30  Normalizat    1.1310        .24399        .24754E-03   -.88764    
  31  Prefactor     .95409        .26887        .31104E-03   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08401e-09
Minuit parameter uncertainties:
  1  3.97897
  2  1.044e-05
  3  1.38908
  4  2.80117e-06
  5  0.000221419
  6  10.7677
  7  9.65364e-06
  8  94.7927
  9  6.51426e-06
  10  1.76158e-06
  11  5.92113e-05
  12  6.7016e-05
  13  40.2742
  14  3.97036
  15  21.6478
  16  4.14303e-06
  17  18.9528
  18  3.85569e-06
  19  6.91332e-07
  20  0.00211763
  21  0.000163521
  22  15.8799
  23  7.44276
  24  0.00013881
  25  5.60945
  26  0.000233651
  27  32.1397
  28  51.4514
  29  7.15674
  30  0.244231
  31  0.269243
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  6.913e-07  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.541e-01  2.692e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.131e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 197.760 32.556
Photon Flux Upper Limit: 2.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334224/likelihoodResults_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.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) = 5393.64171367
delta logL = -0.00215985820614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5393.63955347
delta logL = 3.38186509907e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2553       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5393.640     FROM MIGRAD    STATUS=FAILED        99 CALLS      250 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    169.89        .10227E-01** at limit **
   2  alpha         1.4093        2.9883        .16561        .57594E-07
   3  Normalizat    1.1310        .40675E-01    .24754E-03    .17868E-03
   4  Prefactor     .95409        .47582E-01    .31104E-03    .14244E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5393.640     FROM SIMPLEX   STATUS=UNCHANGED    177 CALLS      427 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    169.89        .29051E-03** at limit **
   2  alpha         1.4093        2.9883        .16563E-05    .57594E-07
   3  Normalizat    1.1310        .40675E-01    .15434E-07    .17868E-03
   4  Prefactor     .95409        .47582E-01    .10254E-07    .14244E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5393.640     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      455 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8172        .12033E-02** at limit **
   2  alpha         1.4069        4.2698        .66245E-02   -.42217E-07
   3  Normalizat    1.1310        .22789        .49508E-04    .17792E-03
   4  Prefactor     .95409        .26646        .12441E-04    .14200E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.40686
  Normalizat = 1.13096
  Prefactor  = 0.954093
 **********
 **   18 **HESSE 
 **********

 FCN=   5393.640     FROM HESSE     STATUS=OK            23 CALLS      478 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8151        .24066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4069        4.2935        .13249E-02   -.45254    
   3  Normalizat    1.1310        .22797        .99017E-05   -.88764    
   4  Prefactor     .95409        .26658        .24883E-05   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92431e-11
Minuit parameter uncertainties:
  1  2.45414e-05
  2  235.447
  3  0.228167
  4  0.266948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334224': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5393.6395463
delta logL = 7.51216157369e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  2.454e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.407e+00  2.354e+02  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.541e-01  2.669e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.131e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 197.760 32.556

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/334224/cmap_HighResolution_407808001_408067201_4FGL_J1311.0+3233_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-05', job_status='DONE', photon_flux_upper_limit='2.95e-08', time_completed='2021-09-07 04:16:58.679486', job_id='334224', GAL2='0.95', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631013418.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='7.51e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='650' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 334224: <4FGL_J1311.0+3233_daily_bin650> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin650> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:32 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:00:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:00:52 2021
Terminated at Tue Sep  7 04:16:59 2021
Results reported at Tue Sep  7 04:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin650 197.76 32.5565 407808001 408067201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1311.0+3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   834.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            987 sec.

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

