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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin758
RA = 197.76, Dec = 32.5565
tmin = 435801601, tmax = 436060801
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='334377', job_status='RUN', time_executed='2021-09-07 04:04:35.211975', time_epoch_executed='1631012675.21' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334377/ft1_4FGL_J1311.0+3233_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334377/ft2_4FGL_J1311.0+3233_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334377/ft1_4FGL_J1311.0+3233_daily_bin758.fits outfile=/scratch/kocevski/334377/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin758.fits ra=197.76 dec=32.5565 rad=12.0 tmin=435801601.0 tmax=436060801.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 5.65
user 5.39
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334377/ft1_filtered_4FGL_J1311.0+3233_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/334377/ft2_4FGL_J1311.0+3233_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/334377/ltcube_435801601_436060801_4FGL_J1311.0+3233_daily_bin758.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/334377/ft2_4FGL_J1311.0+3233_daily_bin758.fits
.....................!
real 16.84
user 15.95
sys 0.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334377/ft1_filtered_4FGL_J1311.0+3233_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/334377/ft2_4FGL_J1311.0+3233_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/334377/ltcube_435801601_436060801_4FGL_J1311.0+3233_daily_bin758.fits outfile=/scratch/kocevski/334377/expmap_435801601_436060801_4FGL_J1311.0+3233_daily_bin758.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/334377/ltcube_435801601_436060801_4FGL_J1311.0+3233_daily_bin758.fits
.....................!
real 191.91
user 186.05
sys 5.06

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/334377/ft1_filtered_4FGL_J1311.0+3233_daily_bin758.fits scfile=/scratch/kocevski/334377/ft2_4FGL_J1311.0+3233_daily_bin758.fits outfile=/scratch/kocevski/334377/cmap_435801601_436060801_4FGL_J1311.0+3233_daily_bin758.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334377/ft1_filtered_4FGL_J1311.0+3233_daily_bin758.fits scfile=/scratch/kocevski/334377/ft2_4FGL_J1311.0+3233_daily_bin758.fits outfile=/scratch/kocevski/334377/cmap_HighResolution_435801601_436060801_4FGL_J1311.0+3233_daily_bin758.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4533       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8086       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4178       1.0000         .10000E-03   10000.    
     5 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7149       1.0000         .10000E-03   10000.    
     8 'Prefactor '    209.23       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.362       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1322       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31464E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .25462E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5702       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7441       1.0000         .10000E-03   10000.    
    18 'norm      '    .13867E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4022       1.0000         .10000E-03   10000.    
    20 'norm      '    18.888       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9879       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0549       1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.531       1.0000         .10000E-03   10000.    
    25 'norm      '    10.631       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    44.797       1.0000         .10000E-03   10000.    
    28 'Prefactor '    32.132       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.8398       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .64804       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3740       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=   4364.228     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4280 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4563        3.7674       -.30068E-07    .19166E-04
   2  Prefactor     4.4537        6.6567        .33841E-05   -.12753E-03
   3  Prefactor     4.8088        3.1294       -.32370E-07    .27600E-04
   4  Prefactor     2.4180        2.9123        .88211E-07    .99181E-04
   5  norm          .10001E-03    5.9641       -.97424E-06** at limit **
   6  Prefactor     .10000E-03    5.9046       -.16199E-06** at limit **
   7  Prefactor     7.7210        21.601       -.46974E-07    .10461E-04
   8  Prefactor     209.26        117.57        .17848E-06    .44061E-04
   9  Prefactor     .10000E-03    9.2566       -.44941E-06** at limit **
  10  Prefactor     10.357        9.6094        .15589E-06    .12846E-04
  11  norm          5.1204        6.5064        .12507E-05    .10777E-03
  12  Prefactor     .10000E-03    29.668       -.44012E-07** at limit **
  13  Prefactor     .10000E-03    195.48        .56740E-06** at limit **
  14  norm          .10877E-03    4.0605        .28836E-06** at limit **
  15  Prefactor     3.5718        64.536       -.94988E-07   -.35835E-05
  16  norm          .10000E-03    5.2374       -.26924E-06** at limit **
  17  norm          2.7458        28.999        .10165E-06    .86298E-06
  18  norm          .10001E-03    3.6318       -.87022E-06** at limit **
  19  norm          5.3835        5.7639        .30694E-06    .45450E-03
  20  norm          18.900        20.024        .37448E-06   -.36791E-06
  21  Prefactor     1.9866        6.0028        .19793E-05    .12920E-03
  22  Prefactor     .10000E-03    7.6580       -.12071E-06** at limit **
  23  norm          1.0657        11.844       -.45636E-06   -.12207E-04
  24  Prefactor     42.546        94.697       -.32950E-05    .13078E-04
  25  norm          10.640        16.225        .30856E-06    .94396E-04
  26  Prefactor     .10000E-03    116.25       -.32006E-05** at limit **
  27  Prefactor     44.804        34.033       -.65331E-06    .59887E-04
  28  Prefactor     32.312        77.071        .12811E-05    .11012E-03
  29  Prefactor     4.8400        4.2900       -.82245E-07    .39237E-04
  30  Normalizat    .64789        .22835       -.87049E-06    .21481E-03
  31  Prefactor     1.3740        .25789        .19880E-05    .12607E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.45633
  Prefactor  = 4.45367
  Prefactor  = 4.80878
  Prefactor  = 2.41795
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 7.721
  Prefactor  = 209.255
  Prefactor  = 0.0001
  Prefactor  = 10.3571
  norm       = 5.12043
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000108769
  Prefactor  = 3.57182
  norm       = 0.0001
  norm       = 2.74578
  norm       = 0.000100008
  norm       = 5.38347
  norm       = 18.8998
  Prefactor  = 1.98663
  Prefactor  = 0.0001
  norm       = 1.06574
  Prefactor  = 42.5462
  norm       = 10.6403
  Prefactor  = 0.0001
  Prefactor  = 44.804
  Prefactor  = 32.3115
  Prefactor  = 4.83997
  Normalizat = 0.647892
  Prefactor  = 1.37403
 **********
 **   18 **HESSE 
 **********

 FCN=   4364.228     FROM HESSE     STATUS=OK           642 CALLS     4922 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4563        3.7759        .10922E-03   -1.5286    
   2  Prefactor     4.4537        6.4939        .95407E-03   -1.5286    
   3  Prefactor     4.8088        3.1379        .87319E-04   -1.5269    
   4  Prefactor     2.4180        2.8891        .11711E-03   -1.5397    
   5  norm          .10001E-03    18.273        .30823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9180        .15677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7210        21.574        .14437E-03   -1.5152    
   8  Prefactor     209.26        117.54        .13974E-03   -1.2805    
   9  Prefactor     .10000E-03    46.973        .37042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.357        9.4588        .12447E-03   -1.5064    
  11  norm          5.1204        6.4363        .17325E-03   -1.5255    
  12  Prefactor     .10000E-03    29.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    200.81        .39552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10877E-03    11.047        .38703E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5718        61.095        .21389E-03   -1.5330    
  16  norm          .10000E-03    5.2633        .14735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7458        29.026        .24577E-03   -1.5377    
  18  norm          .10001E-03    20.247        .21722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3835        5.3461        .14643E-03   -1.5244    
  20  norm          18.900        20.135        .92158E-04   -1.4838    
  21  Prefactor     1.9866        5.7917        .22459E-03   -1.5426    
  22  Prefactor     .10000E-03    7.6677        .17851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0657        54.733        .31468E-02   -1.5501    
  24  Prefactor     42.546        93.193        .61470E-04   -1.4402    
  25  norm          10.640        17.934        .12288E-03   -1.5055    
  26  Prefactor     .10000E-03    119.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     44.804        33.929        .59902E-04   -1.4368    
  28  Prefactor     32.312        77.064        .70688E-04   -1.4570    
  29  Prefactor     4.8400        4.2900        .12361E-03   -1.5268    
  30  Normalizat    .64789        .26906        .29870E-03   -1.0599    
  31  Prefactor     1.3740        .31108        .25865E-03   -.81131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30525e-08
Minuit parameter uncertainties:
  1  3.7761
  2  6.49489
  3  3.13802
  4  2.88927
  5  0.00064287
  6  4.42819e-06
  7  21.5957
  8  117.668
  9  0.0001617
  10  9.46017
  11  6.43721
  12  1.78455e-05
  13  0.00118001
  14  0.0196883
  15  29.5797
  16  3.75208e-05
  17  17.8657
  18  0.000811061
  19  5.34658
  20  20.1421
  21  5.7933
  22  2.21056e-05
  23  15.2891
  24  93.5145
  25  17.9431
  26  0.000384618
  27  33.9439
  28  77.3033
  29  4.29024
  30  0.269609
  31  0.311508
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  5.383e+00  5.347e+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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.374e+00  3.115e-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:  6.479e-01  2.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.72
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.07e-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) = 4362.7487751
delta logL = 1.47890100894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4362.7466258
delta logL = 1.48105031083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6416       1.0000         .10000E-03   10000.    
     2 'alpha     '    .67437       1.0000          .0000       5.0000    
     3 'Normalizat'    .65093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3782       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=   4362.747     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      209 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6416        5.7888        .42281E-02   -.33540E-02
   2  alpha         .67438        .72907        .50000       -.12853E-04
   3  Normalizat    .65091        .20672        .67354E-01    .18358E-04
   4  Prefactor     1.3782        .25240        .58423E-01    .31262E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.64162
  alpha      = 0.674376
  Normalizat = 0.650909
  Prefactor  = 1.37825
 **********
 **   18 **HESSE 
 **********

 FCN=   4362.747     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6416        7.1213        .76564E-03   -1.5233    
   2  alpha         .67438        .81838        .27697E-01   -.81869    
   3  Normalizat    .65091        .24856        .29806E-03   -1.0586    
   4  Prefactor     1.3782        .30396        .25834E-03   -.81009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43848e-11
Minuit parameter uncertainties:
  1  7.12234
  2  0.853458
  3  0.248989
  4  0.304356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334377': 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) = 4362.74662578
delta logL = 1.48105032862

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  5.642e+00  7.122e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  6.744e-01  8.535e-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:  1.378e+00  3.044e-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:  6.509e-01  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.68
Ra Dec: 197.760 32.556
Photon Index (Free Index): 0.67 +/- 0.85
Photon Flux (Free Index): 5.07e-09 +/- 5.23e-09
Energy Flux (Free Index): 4.89e-05 +/- 7.05e-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/334377/cmap_HighResolution_435801601_436060801_4FGL_J1311.0+3233_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='4.89e-05', photon_flux_error='1.48e-08', dlogl='1.48e+00', energy_flux='1.07e-05', photon_flux2='5.07e-09', job_status='DONE', time_completed='2021-09-07 04:15:36.480501', photon_index_error2='0.85', photon_index2='0.67', ts='5.72', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='7.05e-05', EG='0.65', time_epoch_completed='1631013336.48', return_code='0', job_id='334377', GAL2='1.38', EG2='0.65', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='5.23e-09', ts2='8.68', photon_index='2.27' WHERE bin_id='758' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 334377: <4FGL_J1311.0+3233_daily_bin758> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin758> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:43 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:01: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:01:52 2021
Terminated at Tue Sep  7 04:15:37 2021
Results reported at Tue Sep  7 04:15:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin758 197.76 32.5565 435801601 436060801 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 :                                   658.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            894 sec.

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

