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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin855
RA = 197.76, Dec = 32.5565
tmin = 460944001, tmax = 461203201
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='335638', job_status='RUN', time_executed='2021-09-07 04:09:29.748635', time_epoch_executed='1631012969.75' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='855'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335638

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335638/ft1_4FGL_J1311.0+3233_daily_bin855.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335638/ft1_4FGL_J1311.0+3233_daily_bin855.fits outfile=/scratch/kocevski/335638/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin855.fits ra=197.76 dec=32.5565 rad=12.0 tmin=460944001.0 tmax=461203201.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.10
user 2.85
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.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/335638/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin855.fits evtable="EVENTS" outfile="/scratch/kocevski/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.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.45
user 0.27
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits" evtable="EVENTS" scfile=/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits sctable="SC_DATA" outfile=/scratch/kocevski/335638/ltcube_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.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/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits
.....................!
real 13.63
user 13.03
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits sctable="SC_DATA" expcube=/scratch/kocevski/335638/ltcube_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.fits outfile=/scratch/kocevski/335638/expmap_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.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/335638/ltcube_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.fits
.....................!
real 156.81
user 152.23
sys 4.21

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/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits scfile=/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits outfile=/scratch/kocevski/335638/cmap_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits scfile=/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits outfile=/scratch/kocevski/335638/cmap_HighResolution_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.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.52
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits evtable="EVENTS" scfile=/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335638/Model_4FGL_J1311.0+3233_daily_bin855.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/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits.....................!
real 42.05
user 40.65
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits', '/scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits', expMap='/scratch/kocevski/335638/expmap_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.fits', expCube='/scratch/kocevski/335638/ltcube_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335638/Model_4FGL_J1311.0+3233_daily_bin855.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/335638/ft1_filtered_4FGL_J1311.0+3233_daily_bin855.fits
Spacecraft file(s): /scratch/kocevski/335638/ft2_4FGL_J1311.0+3233_daily_bin855.fits
Exposure map: /scratch/kocevski/335638/expmap_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.fits
Exposure cube: /scratch/kocevski/335638/ltcube_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335638/Model_4FGL_J1311.0+3233_daily_bin855.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) = 5802.32998674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.338       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1278       1.0000         .10000E-03   10000.    
     5 'norm      '    20.398       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1271       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.308       1.0000         .10000E-03   10000.    
     8 'Prefactor '    136.63       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12827E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    151.42       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57280E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4507       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.011       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .30830       1.0000         .10000E-03   10000.    
    19 'norm      '    26.334       1.0000         .10000E-03   10000.    
    20 'norm      '    30.699       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4289       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7191       1.0000         .10000E-03   10000.    
    23 'norm      '    10.854       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    12.770       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.180       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10485E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.1458       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0686       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74279       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=   5802.287     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4161 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5757        3.4509       -.83645E-08    .38766E-05
   2  Prefactor     20.337        11.089        .69299E-07    .10019E-03
   3  Prefactor     .10000E-03    1.4851       -.23656E-07** at limit **
   4  Prefactor     1.1276        1.4761       -.14755E-07    .49960E-04
   5  norm          20.398        6.9507        .88565E-07    .12674E-03
   6  Prefactor     4.1269        9.2763       -.20237E-06    .12255E-03
   7  Prefactor     22.306        18.142        .59495E-07    .80490E-04
   8  Prefactor     136.63        76.473        .43030E-06    .46869E-04
   9  Prefactor     .10000E-03    6.2980       -.32401E-06** at limit **
  10  Prefactor     .10000E-03    3.9996       -.20103E-06** at limit **
  11  norm          .10000E-03    1.9889       -.76249E-07** at limit **
  12  Prefactor     151.41        75.857        .30236E-05    .21009E-03
  13  Prefactor     .10015E-03    44.567       -.11693E-04** at limit **
  14  norm          7.4508        3.9799       -.11533E-06   -.92396E-04
  15  Prefactor     15.009        14.138        .66023E-07    .15687E-03
  16  norm          .10000E-03    1.3691        .62229E-08** at limit **
  17  norm          .10000E-03    4.9385       -.25921E-07** at limit **
  18  norm          .32864        21.640        .85754E-05   -.37337E-03
  19  norm          26.316        13.578       -.13276E-05   -.28514E-03
  20  norm          30.697        23.340       -.84617E-07    .43742E-04
  21  Prefactor     1.4299        2.7130       -.10359E-06    .56183E-03
  22  Prefactor     3.7208        10.162        .74684E-07    .11375E-03
  23  norm          10.854        6.7988       -.87451E-07   -.55650E-04
  24  Prefactor     .10000E-03    68.887       -.43266E-05** at limit **
  25  norm          12.770        10.016        .35236E-07    .25256E-04
  26  Prefactor     10.185        13.725       -.77229E-06   -.19532E-03
  27  Prefactor     .10000E-03    78.100        .30440E-05** at limit **
  28  Prefactor     .10000E-03    22.998       -.85544E-07** at limit **
  29  Prefactor     1.1464        3.0632       -.59856E-06    .48395E-03
  30  Normalizat    1.0685        .17896       -.46515E-06    .17791E-03
  31  Prefactor     .74298        .21421        .15199E-05    .14016E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.57571
  Prefactor  = 20.3373
  Prefactor  = 0.0001
  Prefactor  = 1.12764
  norm       = 20.3984
  Prefactor  = 4.12694
  Prefactor  = 22.306
  Prefactor  = 136.631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 151.407
  Prefactor  = 0.000100151
  norm       = 7.45085
  Prefactor  = 15.0089
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.328643
  norm       = 26.3163
  norm       = 30.6974
  Prefactor  = 1.42987
  Prefactor  = 3.72079
  norm       = 10.8537
  Prefactor  = 0.000100003
  norm       = 12.7697
  Prefactor  = 10.1849
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.14639
  Normalizat = 1.06852
  Prefactor  = 0.742978
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.287     FROM HESSE     STATUS=OK           630 CALLS     4791 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5757        3.4265        .91862E-04   -1.5157    
   2  Prefactor     20.337        11.095        .88815E-04   -1.4806    
   3  Prefactor     .10000E-03    1.5264        .18008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1276        1.4435        .10211E-03   -1.5496    
   5  norm          20.398        6.9475        .88682E-04   -1.4804    
   6  Prefactor     4.1269        9.2653        .19842E-03   -1.5302    
   7  Prefactor     22.306        17.980        .84805E-04   -1.4763    
   8  Prefactor     136.63        76.424        .34457E-04   -1.3365    
   9  Prefactor     .10000E-03    6.5602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0791        .28306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.0031        .10480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     151.41        77.030        .16378E-03   -1.3241    
  13  Prefactor     .10015E-03    114.95        .59706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4508        3.9809        .10708E-03   -1.5162    
  15  Prefactor     15.009        13.673        .10338E-03   -1.4933    
  16  norm          .10000E-03    1.3706        .87009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9414        .16532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .32864        39.153        .20213E-02   -1.5593    
  19  norm          26.316        15.850        .78065E-04   -1.4682    
  20  norm          30.697        23.351        .36157E-03   -1.4599    
  21  Prefactor     1.4299        2.6644        .15664E-03   -1.5469    
  22  Prefactor     3.7208        10.032        .20939E-03   -1.5322    
  23  norm          10.854        6.8014        .12161E-03   -1.5049    
  24  Prefactor     .10000E-03    69.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          12.770        10.018        .11209E-03   -1.4993    
  26  Prefactor     10.185        13.829        .12558E-03   -1.5070    
  27  Prefactor     .10000E-03    81.519        .41462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    23.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.1464        3.0935        .21135E-03   -1.5494    
  30  Normalizat    1.0685        .20945        .22121E-03   -.90769    
  31  Prefactor     .74298        .24977        .32298E-03   -1.0187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10584e-09
Minuit parameter uncertainties:
  1  3.42655
  2  11.0959
  3  1.93592e-06
  4  1.44356
  5  6.94782
  6  9.26851
  7  17.9845
  8  76.479
  9  2.17808e-05
  10  1.13729e-05
  11  1.1502e-05
  12  77.0811
  13  0.00834379
  14  3.98104
  15  13.6757
  16  1.14685e-06
  17  1.87427e-05
  18  7.17797
  19  15.8523
  20  23.3577
  21  2.66461
  22  10.0369
  23  6.80187
  24  0.000968648
  25  10.0193
  26  13.8334
  27  0.000933286
  28  2.42198e-05
  29  3.09391
  30  0.209614
  31  0.250144
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.632e+01  1.585e+01  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:  7.430e-01  2.501e-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.069e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 38.22
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 7.27e-08 +/- 4.38e-08
Energy Flux (Fixed Index): 5.25e-05 +/- 3.16e-05

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): 0
logL (Free Index) = 5802.0443579
delta logL = 0.242908855916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5802.04262439
delta logL = 0.244642366309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.777       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0270       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73662       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.

 FCN=   5802.043     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      238 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.777        197.82        .17498E-02    .51124E-03
   2  alpha         2.0270        3.5041        .19173        .57886E-04
   3  Normalizat    1.0809        .15501        .38835E-01    .71842E-05
   4  Prefactor     .73662        .13173        .73302E-01    .19591E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.777
  alpha      = 2.02704
  Normalizat = 1.08092
  Prefactor  = 0.736625
 **********
 **   18 **HESSE 
 **********

 FCN=   5802.043     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.777        14.501        .69991E-04   -1.4562    
   2  alpha         2.0270        .35965        .77694E-02   -.19033    
   3  Normalizat    1.0809        .19835        .22021E-03   -.90367    
   4  Prefactor     .73662        .24593        .32443E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51324e-10
Minuit parameter uncertainties:
  1  14.5027
  2  0.360946
  3  0.198482
  4  0.246298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335638': 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) = 5802.04262439
delta logL = 0.244642367618

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  3.278e+01  1.450e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.027e+00  3.609e-01  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:  7.366e-01  2.463e-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.081e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.75
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.03 +/- 0.36
Photon Flux (Free Index): 6.04e-08 +/- 2.68e-08
Energy Flux (Free Index): 6.18e-05 +/- 2.71e-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/335638/cmap_HighResolution_460944001_461203201_4FGL_J1311.0+3233_daily_bin855.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.27e-08', energy_flux2='6.18e-05', photon_flux_error='4.38e-08', dlogl='2.45e-01', energy_flux='5.25e-05', photon_flux2='6.04e-08', job_status='DONE', time_completed='2021-09-07 04:20:23.924598', photon_index_error2='0.36', photon_index2='2.03', ts='38.22', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.71e-05', EG='1.07', time_epoch_completed='1631013623.92', return_code='0', job_id='335638', GAL2='0.74', EG2='1.08', return_code2='0', energy_flux_error='3.16e-05', photon_flux_error2='2.68e-08', ts2='38.75', photon_index='2.27' WHERE bin_id='855' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:20:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 335638: <4FGL_J1311.0+3233_daily_bin855> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin855> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 04:05:21 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:05:32 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:05:32 2021
Terminated at Tue Sep  7 04:20:24 2021
Results reported at Tue Sep  7 04:20:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin855 197.76 32.5565 460944001 461203201 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 :                                   644.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            903 sec.

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

