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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin766
RA = 197.76, Dec = 32.5565
tmin = 437875201, tmax = 438134401
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='334389', job_status='RUN', time_executed='2021-09-07 04:04:50.385330', time_epoch_executed='1631012690.39' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334389/ft1_4FGL_J1311.0+3233_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334389/ft2_4FGL_J1311.0+3233_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334389/ft1_4FGL_J1311.0+3233_daily_bin766.fits outfile=/scratch/kocevski/334389/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin766.fits ra=197.76 dec=32.5565 rad=12.0 tmin=437875201.0 tmax=438134401.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.91
user 5.61
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334389/ft2_4FGL_J1311.0+3233_daily_bin766.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/334389/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin766.fits evtable="EVENTS" outfile="/scratch/kocevski/334389/ft1_filtered_4FGL_J1311.0+3233_daily_bin766.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334389/ft1_filtered_4FGL_J1311.0+3233_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/334389/ft2_4FGL_J1311.0+3233_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/334389/ltcube_437875201_438134401_4FGL_J1311.0+3233_daily_bin766.fits outfile=/scratch/kocevski/334389/expmap_437875201_438134401_4FGL_J1311.0+3233_daily_bin766.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/334389/ltcube_437875201_438134401_4FGL_J1311.0+3233_daily_bin766.fits
.....................!
real 193.58
user 188.71
sys 4.40

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/334389/ft1_filtered_4FGL_J1311.0+3233_daily_bin766.fits scfile=/scratch/kocevski/334389/ft2_4FGL_J1311.0+3233_daily_bin766.fits outfile=/scratch/kocevski/334389/cmap_437875201_438134401_4FGL_J1311.0+3233_daily_bin766.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334389/ft1_filtered_4FGL_J1311.0+3233_daily_bin766.fits scfile=/scratch/kocevski/334389/ft2_4FGL_J1311.0+3233_daily_bin766.fits outfile=/scratch/kocevski/334389/cmap_HighResolution_437875201_438134401_4FGL_J1311.0+3233_daily_bin766.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0977       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    17.155       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7310       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5314       1.0000         .10000E-03   10000.    
    11 'norm      '    .17493E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0351       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.689       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2797       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.299       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.4444       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.3835       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3703       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .44593       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=   3351.779     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4131 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.760        4.7159        .62890E-06    .50185E-03
   2  Prefactor     2.0966        10.343       -.29959E-05   -.32859E-03
   3  Prefactor     .10000E-03    2.2553       -.60068E-06** at limit **
   4  Prefactor     .10000E-03    1.0889       -.33692E-07** at limit **
   5  norm          17.154        7.9039       -.20236E-06   -.14483E-04
   6  Prefactor     .10000E-03    7.2863        .19951E-07** at limit **
   7  Prefactor     .10000E-03    18.206       -.17446E-05** at limit **
   8  Prefactor     .10000E-03    99.602        .46178E-04** at limit **
   9  Prefactor     5.7308        10.008       -.12493E-05   -.12065E-03
  10  Prefactor     4.5297        12.261       -.18896E-05   -.20749E-03
  11  norm          .10006E-03    4.2589        .13823E-05** at limit **
  12  Prefactor     .10000E-03    79.284       -.71637E-04** at limit **
  13  Prefactor     .10000E-03    17.024       -.58254E-05** at limit **
  14  norm          .10000E-03    1.6594       -.66270E-07** at limit **
  15  Prefactor     .10000E-03    27.868        .52382E-05** at limit **
  16  norm          3.0352        6.8062       -.83069E-07   -.34937E-03
  17  norm          .10000E-03    12.223       -.10454E-05** at limit **
  18  norm          .10000E-03    1.8092       -.10962E-07** at limit **
  19  norm          10.688        6.9397        .35778E-06   -.24586E-04
  20  norm          3.2643        21.188       -.12456E-04   -.74203E-04
  21  Prefactor     .10000E-03    1.3297        .22230E-06** at limit **
  22  Prefactor     .10000E-03    4.8344        .29164E-06** at limit **
  23  norm          .10000E-03    3.1531       -.79330E-07** at limit **
  24  Prefactor     26.172        48.253       -.96913E-04   -.12250E-04
  25  norm          .10000E-03    4.8495       -.34826E-06** at limit **
  26  Prefactor     .10000E-03    4.7307        .27488E-06** at limit **
  27  Prefactor     9.4410        26.175       -.27054E-05   -.27472E-04
  28  Prefactor     .10000E-03    105.24        .67245E-04** at limit **
  29  Prefactor     1.3835        4.7820        .82018E-06   -.60001E-03
  30  Normalizat    1.3702        .23216        .58467E-07   -.21362E-03
  31  Prefactor     .44603        .26434        .94009E-05   -.55282E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7601
  Prefactor  = 2.09656
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 17.1539
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73081
  Prefactor  = 4.52972
  norm       = 0.000100063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.03518
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.688
  norm       = 3.2643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.1718
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.44097
  Prefactor  = 0.0001
  Prefactor  = 1.3835
  Normalizat = 1.37021
  Prefactor  = 0.446034
 **********
 **   18 **HESSE 
 **********

 FCN=   3351.779     FROM HESSE     STATUS=OK           618 CALLS     4749 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.760        4.4836        .77091E-04   -1.5052    
   2  Prefactor     2.0966        10.350        .28496E-03   -1.5418    
   3  Prefactor     .10000E-03    3.7721        .16112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0982        .58985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          17.154        7.9058        .96699E-04   -1.4879    
   6  Prefactor     .10000E-03    7.3175        .15262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    99.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7308        9.9908        .16778E-03   -1.5229    
  10  Prefactor     4.5297        12.189        .18912E-03   -1.5282    
  11  norm          .10006E-03    15.110        .22913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    79.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6675        .72815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0352        6.7504        .21149E-03   -1.5360    
  17  norm          .10000E-03    12.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8131        .75880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.688        6.9226        .11942E-03   -1.5054    
  20  norm          3.2643        21.183        .22359E-03   -1.5347    
  21  Prefactor     .10000E-03    1.3367        .65174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8380        .12432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1776        .10038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.172        48.257        .78116E-04   -1.4684    
  25  norm          .10000E-03    4.8795        .12449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.7319        .12298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.4410        26.148        .13040E-03   -1.5093    
  28  Prefactor     .10000E-03    105.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.3835        4.7554        .21976E-03   -1.5473    
  30  Normalizat    1.3702        .25543        .18846E-03   -.81494    
  31  Prefactor     .44603        .28784        .36353E-03   -1.1452    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90426e-09
Minuit parameter uncertainties:
  1  4.4837
  2  9.3187
  3  0.000109878
  4  4.06034e-06
  5  7.90628
  6  2.8568e-05
  7  6.05156e-06
  8  0.000315079
  9  9.99366
  10  12.1958
  11  0.00194716
  12  3.27837e-05
  13  6.71511e-06
  14  3.17745e-07
  15  0.000114907
  16  6.7521
  17  1.21079e-05
  18  1.32457e-06
  19  6.92308
  20  16.6394
  21  2.82933e-05
  22  3.176e-05
  23  5.43705e-06
  24  48.3289
  25  1.51672e-05
  26  2.37706e-06
  27  26.1799
  28  9.62405e-05
  29  4.75665
  30  0.255668
  31  0.288783
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.069e+01  6.923e+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:  4.460e-01  2.888e-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.370e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.29
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.38e-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) = 3351.43534148
delta logL = 0.343860829846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3351.21503102
delta logL = 0.564171295036

Fit tolerance = 1e-08

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

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

 FCN=   3351.215     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.807        12.529        .94915E-04   -.11120E-02
   2  alpha         1.6107        .60886        .12450E-01   -.15209E-03
   3  Normalizat    1.3785        .24673        .18799E-03    .84271E-04
   4  Prefactor     .44202        .28534        .36513E-03    .44042E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8067
  alpha      = 1.61069
  Normalizat = 1.37852
  Prefactor  = 0.442018
 **********
 **   18 **HESSE 
 **********

 FCN=   3351.215     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.807        12.435        .18983E-04   -1.4864    
   2  alpha         1.6107        .60449        .49801E-03   -.36369    
   3  Normalizat    1.3785        .24684        .37598E-04   -.81252    
   4  Prefactor     .44202        .28548        .14605E-04   -1.1472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86891e-09
Minuit parameter uncertainties:
  1  12.4369
  2  0.611444
  3  0.247055
  4  0.286404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334389': 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) = 3351.21503092
delta logL = 0.564171389343

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.781e+01  1.244e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.611e+00  6.114e-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:  4.420e-01  2.864e-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.379e+00  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.42
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.61 +/- 0.61
Photon Flux (Free Index): 1.94e-08 +/- 1.47e-08
Energy Flux (Free Index): 3.89e-05 +/- 3.66e-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/334389/cmap_HighResolution_437875201_438134401_4FGL_J1311.0+3233_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='3.89e-05', photon_flux_error='1.91e-08', dlogl='5.64e-01', energy_flux='2.13e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-07 04:14:44.798818', photon_index_error2='0.61', photon_index2='1.61', ts='12.29', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', energy_flux_error2='3.66e-05', EG='1.37', time_epoch_completed='1631013284.8', return_code='0', job_id='334389', GAL2='0.44', EG2='1.38', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='1.47e-08', ts2='13.42', photon_index='2.27' WHERE bin_id='766' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:14:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 334389: <4FGL_J1311.0+3233_daily_bin766> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin766> 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) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:01:57 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:57 2021
Terminated at Tue Sep  7 04:14:45 2021
Results reported at Tue Sep  7 04:14:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin766 197.76 32.5565 437875201 438134401 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 :                                   591.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             251.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            842 sec.

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

