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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin755
RA = 197.76, Dec = 32.5565
tmin = 435024001, tmax = 435283201
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='334373', job_status='RUN', time_executed='2021-09-07 04:05:20.783311', time_epoch_executed='1631012720.78' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334373/ft1_4FGL_J1311.0+3233_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334373/ft2_4FGL_J1311.0+3233_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334373/ft1_4FGL_J1311.0+3233_daily_bin755.fits outfile=/scratch/kocevski/334373/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin755.fits ra=197.76 dec=32.5565 rad=12.0 tmin=435024001.0 tmax=435283201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.28
user 4.00
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334373/ft1_filtered_4FGL_J1311.0+3233_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/334373/ft2_4FGL_J1311.0+3233_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/334373/ltcube_435024001_435283201_4FGL_J1311.0+3233_daily_bin755.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/334373/ft2_4FGL_J1311.0+3233_daily_bin755.fits
.....................!
real 13.30
user 12.81
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334373/ft1_filtered_4FGL_J1311.0+3233_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/334373/ft2_4FGL_J1311.0+3233_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/334373/ltcube_435024001_435283201_4FGL_J1311.0+3233_daily_bin755.fits outfile=/scratch/kocevski/334373/expmap_435024001_435283201_4FGL_J1311.0+3233_daily_bin755.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/334373/ltcube_435024001_435283201_4FGL_J1311.0+3233_daily_bin755.fits
.....................!
real 160.24
user 152.49
sys 3.78

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/334373/ft1_filtered_4FGL_J1311.0+3233_daily_bin755.fits scfile=/scratch/kocevski/334373/ft2_4FGL_J1311.0+3233_daily_bin755.fits outfile=/scratch/kocevski/334373/cmap_435024001_435283201_4FGL_J1311.0+3233_daily_bin755.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.50
user 0.35
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5876.43339339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.848       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51386E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7702       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11611       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.475       1.0000         .10000E-03   10000.    
    16 'norm      '    .71757       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0553       1.0000         .10000E-03   10000.    
    18 'norm      '    .10127       1.0000         .10000E-03   10000.    
    19 'norm      '    13.307       1.0000         .10000E-03   10000.    
    20 'norm      '    13.514       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11419E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.641       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.786       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .29626E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.8868       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2666       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .82896       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=   5876.433     FROM MIGRAD    STATUS=CONVERGED    878 CALLS     4260 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4571        5.0952       -.33220E-06    .22775E-04
   2  Prefactor     .10000E-03    7.4456       -.10025E-07** at limit **
   3  Prefactor     4.7268        3.8136        .36976E-06   -.21513E-04
   4  Prefactor     .10000E-03    1.8609       -.92242E-07** at limit **
   5  norm          11.847        9.1517       -.18761E-06   -.45802E-04
   6  Prefactor     .10000E-03    16.504        .34038E-06** at limit **
   7  Prefactor     .10000E-03    16.270        .54642E-07** at limit **
   8  Prefactor     .10000E-03    41.254       -.21279E-06** at limit **
   9  Prefactor     .10000E-03    61.537        .81736E-05** at limit **
  10  Prefactor     .10000E-03    4.9477       -.32621E-07** at limit **
  11  norm          2.7694        3.3019        .21600E-07   -.11539E-03
  12  Prefactor     .10000E-03    47.071        .10866E-05** at limit **
  13  Prefactor     .17619        1729.4        .67830E-05    .32251E-05
  14  norm          .10000E-03    4.1970        .29928E-06** at limit **
  15  Prefactor     26.432        26.925       -.34319E-06   -.57828E-04
  16  norm          .72498        6.6649       -.17557E-05   -.19107E-03
  17  norm          8.0560        12.778       -.36037E-06   -.17485E-04
  18  norm          .41971E-01    17.012       -.13259E-05    .78635E-04
  19  norm          13.380        8.1956        .80157E-06    .27455E-03
  20  norm          13.516        16.317       -.19338E-06   -.27411E-04
  21  Prefactor     .10000E-03    1.5149       -.13577E-06** at limit **
  22  Prefactor     .10000E-03    5.4776        .76970E-07** at limit **
  23  norm          .10000E-03    4.7412        .58694E-07** at limit **
  24  Prefactor     .10000E-03    105.34        .31913E-06** at limit **
  25  norm          10.641        9.1085       -.11348E-07   -.44185E-04
  26  Prefactor     .10000E-03    27.313        .10567E-05** at limit **
  27  Prefactor     21.791        17.320        .10775E-06   -.36146E-04
  28  Prefactor     .10000E-03    117.18        .99862E-06** at limit **
  29  Prefactor     8.8875        4.6736       -.36566E-07   -.79364E-04
  30  Normalizat    1.2666        .22155       -.26886E-05   -.74093E-04
  31  Prefactor     .82898        .25540        .37334E-05   -.16288E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45714
  Prefactor  = 0.0001
  Prefactor  = 4.72682
  Prefactor  = 0.0001
  norm       = 11.8467
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76935
  Prefactor  = 0.0001
  Prefactor  = 0.176195
  norm       = 0.0001
  Prefactor  = 26.4321
  norm       = 0.724983
  norm       = 8.05598
  norm       = 0.0419713
  norm       = 13.38
  norm       = 13.5164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.641
  Prefactor  = 0.0001
  Prefactor  = 21.7907
  Prefactor  = 0.0001
  Prefactor  = 8.88748
  Normalizat = 1.26659
  Prefactor  = 0.828984
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.433     FROM HESSE     STATUS=OK           638 CALLS     4898 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4571        5.0813        .14287E-03   -1.5241    
   2  Prefactor     .10000E-03    7.5160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7268        3.8105        .11523E-03   -1.5273    
   4  Prefactor     .10000E-03    1.8885        .10205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.847        9.1482        .11638E-03   -1.5019    
   6  Prefactor     .10000E-03    16.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.863        .33604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9510        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7694        3.2591        .14267E-03   -1.5375    
  12  Prefactor     .10000E-03    47.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17619        50.120        .10901       -1.5624    
  14  norm          .10000E-03    4.3729        .30630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.432        26.794        .77856E-04   -1.4679    
  16  norm          .72498        7.7606        .38423E-03   -1.5538    
  17  norm          8.0560        12.771        .14127E-03   -1.5140    
  18  norm          .41971E-01    46.177        .37045E-01   -1.5667    
  19  norm          13.380        17.175        .10980E-03   -1.4976    
  20  norm          13.516        16.311        .10896E-03   -1.4973    
  21  Prefactor     .10000E-03    1.5234        .91914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.4888        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.7784        .16270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    106.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.641        9.0950        .12283E-03   -1.5055    
  26  Prefactor     .10000E-03    28.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.791        17.312        .85815E-04   -1.4774    
  28  Prefactor     .10000E-03    118.20        .21395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.8875        4.6965        .11364E-03   -1.5112    
  30  Normalizat    1.2666        .24206        .22908E-03   -.84569    
  31  Prefactor     .82898        .27052        .32382E-03   -.98669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.257e-09
Minuit parameter uncertainties:
  1  5.08166
  2  4.52117e-06
  3  3.81068
  4  1.03393e-06
  5  9.14931
  6  2.61215e-06
  7  3.63961e-05
  8  2.52502e-05
  9  0.000188695
  10  3.95194e-05
  11  3.25927
  12  1.88187e-05
  13  5.9467
  14  4.20125e-06
  15  26.8064
  16  4.74442
  17  12.7757
  18  2.78316
  19  17.1812
  20  16.3167
  21  7.71664e-06
  22  9.21328e-06
  23  8.95075e-07
  24  0.000269683
  25  9.0962
  26  1.46212e-05
  27  17.3162
  28  0.000269602
  29  4.69667
  30  0.242277
  31  0.270952
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.338e+01  1.718e+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:  8.290e-01  2.710e-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.267e+00  2.423e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.35
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 3.43e-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) = 5876.01310931
delta logL = 0.420221349438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5876.01157087
delta logL = 0.421759789482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6321       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8129       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84412       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=   5876.012     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      272 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6344        79.015        .36290E-02    .57343E-04
   2  alpha         2.8130        3.8524        .21523        .63621E-04
   3  Normalizat    1.2409        .10781        .52248E-01    .27796E-05
   4  Prefactor     .84373        .91555E-01    .72553E-01    .18073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.63444
  alpha      = 2.81301
  Normalizat = 1.24094
  Prefactor  = 0.843726
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.012     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6344        8.0616        .10799E-03   -1.5155    
   2  alpha         2.8130        .64125        .84234E-02    .12553    
   3  Normalizat    1.2409        .22821        .23101E-03   -.85347    
   4  Prefactor     .84373        .26520        .32106E-03   -.98136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43349e-09
Minuit parameter uncertainties:
  1  8.06276
  2  0.648618
  3  0.228398
  4  0.265603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334373': 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) = 5876.01156879
delta logL = 0.421761874702

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  7.634e+00  8.063e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.813e+00  6.486e-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:  8.437e-01  2.656e-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.241e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.15
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.81 +/- 0.65
Photon Flux (Free Index): 6.17e-08 +/- 4.48e-08
Energy Flux (Free Index): 2.43e-05 +/- 1.31e-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/334373/cmap_HighResolution_435024001_435283201_4FGL_J1311.0+3233_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='2.43e-05', photon_flux_error='4.74e-08', dlogl='4.22e-01', energy_flux='2.67e-05', photon_flux2='6.17e-08', job_status='DONE', time_completed='2021-09-07 04:16:23.473309', photon_index_error2='0.65', photon_index2='2.81', ts='8.35', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.27', time_epoch_completed='1631013383.47', return_code='0', job_id='334373', GAL2='0.84', EG2='1.24', return_code2='0', energy_flux_error='3.43e-05', photon_flux_error2='4.48e-08', ts2='9.15', photon_index='2.27' WHERE bin_id='755' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:16:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 334373: <4FGL_J1311.0+3233_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin755 197.76 32.5565 435024001 435283201 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 :                                   634.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             246.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            942 sec.

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

