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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin956
RA = 197.76, Dec = 32.5565
tmin = 487123201, tmax = 487382401
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='337076', job_status='RUN', time_executed='2021-09-07 04:12:52.124032', time_epoch_executed='1631013172.12' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='956'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337076

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337076/ft1_4FGL_J1311.0+3233_daily_bin956.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337076/ft2_4FGL_J1311.0+3233_daily_bin956.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337076/ft1_4FGL_J1311.0+3233_daily_bin956.fits outfile=/scratch/kocevski/337076/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin956.fits ra=197.76 dec=32.5565 rad=12.0 tmin=487123201.0 tmax=487382401.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.67
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337076/ft1_filtered_4FGL_J1311.0+3233_daily_bin956.fits" evtable="EVENTS" scfile=/scratch/kocevski/337076/ft2_4FGL_J1311.0+3233_daily_bin956.fits sctable="SC_DATA" outfile=/scratch/kocevski/337076/ltcube_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.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/337076/ft2_4FGL_J1311.0+3233_daily_bin956.fits
.....................!
real 15.67
user 15.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337076/ft1_filtered_4FGL_J1311.0+3233_daily_bin956.fits evtable="EVENTS" scfile=/scratch/kocevski/337076/ft2_4FGL_J1311.0+3233_daily_bin956.fits sctable="SC_DATA" expcube=/scratch/kocevski/337076/ltcube_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.fits outfile=/scratch/kocevski/337076/expmap_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.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/337076/ltcube_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.fits
.....................!
real 192.04
user 187.01
sys 4.37

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/337076/ft1_filtered_4FGL_J1311.0+3233_daily_bin956.fits scfile=/scratch/kocevski/337076/ft2_4FGL_J1311.0+3233_daily_bin956.fits outfile=/scratch/kocevski/337076/cmap_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/337076/ft1_filtered_4FGL_J1311.0+3233_daily_bin956.fits scfile=/scratch/kocevski/337076/ft2_4FGL_J1311.0+3233_daily_bin956.fits outfile=/scratch/kocevski/337076/cmap_HighResolution_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.915       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6383       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.950       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13319E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4588       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6415       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0910       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.3485       1.0000         .10000E-03   10000.    
    18 'norm      '    .87866       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.031       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.775       1.0000         .10000E-03   10000.    
    23 'norm      '    9.8389       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.0624       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1580       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85677       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=   5894.996     FROM MIGRAD    STATUS=CONVERGED    796 CALLS     3532 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.911        5.5454       -.50020E-08    .32048E-04
   2  Prefactor     2.6384        6.3073        .42035E-06   -.83684E-04
   3  Prefactor     .10000E-03    2.1462        .86667E-09** at limit **
   4  Prefactor     .10000E-03    3.2748        .35806E-07** at limit **
   5  norm          10.949        5.5534        .17031E-07    .21319E-04
   6  Prefactor     .10001E-03    9.8879       -.14028E-06** at limit **
   7  Prefactor     .10000E-03    6.4899        .61390E-06** at limit **
   8  Prefactor     8.4450        199.74       -.98530E-05   -.49370E-04
   9  Prefactor     2.6415        4.6448        .19777E-06   -.66728E-04
  10  Prefactor     .10000E-03    4.2960        .50566E-07** at limit **
  11  norm          5.9190        4.7528        .14283E-07   -.42512E-04
  12  Prefactor     .10000E-03    14.946        .14714E-05** at limit **
  13  Prefactor     .10000E-03    15.810        .23025E-06** at limit **
  14  norm          6.0909        3.7663        .12723E-06    .18633E-03
  15  Prefactor     .10000E-03    17.385       -.29304E-05** at limit **
  16  norm          .10000E-03    5.8114       -.47396E-06** at limit **
  17  norm          6.3485        6.6303       -.17927E-07    .14832E-04
  18  norm          .88144        4.0962        .15675E-05   -.21390E-03
  19  norm          .10000E-03    2.5787       -.15719E-06** at limit **
  20  norm          11.031        13.778       -.12086E-06    .50481E-05
  21  Prefactor     .10000E-03    2.5951       -.13508E-07** at limit **
  22  Prefactor     11.775        15.929       -.89176E-06   -.73609E-04
  23  norm          9.8386        7.2473        .95658E-06   -.55745E-03
  24  Prefactor     .10000E-03    26.783        .35620E-06** at limit **
  25  norm          .10000E-03    8.1055       -.90678E-06** at limit **
  26  Prefactor     8.0619        10.919        .97151E-06   -.24115E-03
  27  Prefactor     .10000E-03    7.3405        .11528E-06** at limit **
  28  Prefactor     .10000E-03    27.678        .17760E-05** at limit **
  29  Prefactor     .10000E-03    1.1101       -.52453E-08** at limit **
  30  Normalizat    1.1579        .17680       -.14006E-06    .15668E-04
  31  Prefactor     .85691        .21138       -.46183E-06    .31084E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9113
  Prefactor  = 2.63837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9485
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 8.44498
  Prefactor  = 2.6415
  Prefactor  = 0.0001
  norm       = 5.91895
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.09094
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 6.34852
  norm       = 0.881441
  norm       = 0.0001
  norm       = 11.0309
  Prefactor  = 0.0001
  Prefactor  = 11.7746
  norm       = 9.83858
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.06186
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.15785
  Prefactor  = 0.856911
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.996     FROM HESSE     STATUS=OK           622 CALLS     4154 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.911        5.1814        .91064E-04   -1.4861    
   2  Prefactor     2.6384        6.3117        .25103E-03   -1.5383    
   3  Prefactor     .10000E-03    3.7287        .20505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3945        .26970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.949        5.5344        .12107E-03   -1.5046    
   6  Prefactor     .10001E-03    51.688        .45508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4450        214.59        .13783E-03   -1.5127    
   9  Prefactor     2.6415        4.6321        .21345E-03   -1.5383    
  10  Prefactor     .10000E-03    4.4271        .31076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9190        4.7256        .13723E-03   -1.5221    
  12  Prefactor     .10000E-03    15.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0909        3.7676        .11342E-03   -1.5214    
  15  Prefactor     .10000E-03    18.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.9804        .36104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.3485        6.6335        .15930E-03   -1.5204    
  18  norm          .88144        4.1557        .27193E-03   -1.5520    
  19  norm          .10000E-03    2.5849        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.031        13.775        .12063E-03   -1.5044    
  21  Prefactor     .10000E-03    2.6701        .23985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.775        15.590        .11674E-03   -1.5022    
  23  norm          9.8386        7.5557        .63876E-03   -1.5081    
  24  Prefactor     .10000E-03    26.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.2591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.0619        11.067        .70602E-03   -1.5140    
  27  Prefactor     .10000E-03    7.3541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.1185        .78985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1579        .21239        .21491E-03   -.87915    
  31  Prefactor     .85691        .25209        .30278E-03   -.97663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15551e-09
Minuit parameter uncertainties:
  1  5.18156
  2  6.31327
  3  1.83297e-05
  4  5.66502e-06
  5  5.53462
  6  0.00162485
  7  6.1613e-05
  8  85.483
  9  4.63274
  10  1.14436e-05
  11  4.72587
  12  0.000223248
  13  5.17614e-05
  14  3.76774
  15  0.000436495
  16  2.81978e-05
  17  6.63429
  18  3.82803
  19  9.83556e-06
  20  13.7793
  21  2.17222e-06
  22  15.5953
  23  7.55642
  24  7.1216e-05
  25  9.95403e-05
  26  11.0703
  27  1.05808e-05
  28  0.000359131
  29  9.46228e-07
  30  0.212548
  31  0.252437
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  9.836e-06  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:  8.569e-01  2.524e-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.158e+00  2.125e-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: 3.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/337076/likelihoodResults_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.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): 0
logL (Free Index) = 5894.99742854
delta logL = -0.00182408969249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5894.99560456
delta logL = -1.13086571218e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85703       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=   5894.996     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      192 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7203        .90712E-02** at limit **
   2  alpha         2.2666        3.5091        .41374        .60124E-05
   3  Normalizat    1.1579        .16915        .36021E-01    .15989E-03
   4  Prefactor     .85691        .20920        .68438E-01    .43272E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.26657
  Normalizat = 1.15786
  Prefactor  = 0.856909
 **********
 **   18 **HESSE 
 **********

 FCN=   5894.996     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5993        .12039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2666        3.4953        .50000       -.93507E-01
   3  Normalizat    1.1579        .20098        .21491E-03   -.87915    
   4  Prefactor     .85691        .24816        .30278E-03   -.97663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34004e-10
Minuit parameter uncertainties:
  1  2.85932e-05
  2  2.49639
  3  0.201118
  4  0.248482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337076': 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) = 5894.99560443
delta logL = 1.4784745872e-08

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  2.859e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.267e+00  2.496e+00  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:  8.569e-01  2.485e-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.158e+00  2.011e-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/337076/cmap_HighResolution_487123201_487382401_4FGL_J1311.0+3233_daily_bin956.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='3.37e-08', time_completed='2021-09-07 04:26:45.927912', job_id='337076', GAL2='0.86', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631014005.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='956' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:26:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 337076: <4FGL_J1311.0+3233_daily_bin956> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin956> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 04:10:25 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:10:27 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:10:27 2021
Terminated at Tue Sep  7 04:26:46 2021
Results reported at Tue Sep  7 04:26:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin956 197.76 32.5565 487123201 487382401 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 :                                   830.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

