/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 170 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin75
RA = 197.76, Dec = 32.5565
tmin = 258768001, tmax = 259027201
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='325835', job_status='RUN', time_executed='2021-09-07 03:38:39.243314', time_epoch_executed='1631011119.24' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325835

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325835/ft1_4FGL_J1311.0+3233_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325835/ft2_4FGL_J1311.0+3233_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325835/ft1_4FGL_J1311.0+3233_daily_bin75.fits outfile=/scratch/kocevski/325835/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin75.fits ra=197.76 dec=32.5565 rad=12.0 tmin=258768001.0 tmax=259027201.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 1.21
user 0.97
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325835/ft2_4FGL_J1311.0+3233_daily_bin75.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/325835/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/325835/ft1_filtered_4FGL_J1311.0+3233_daily_bin75.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.55
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325835/ft1_filtered_4FGL_J1311.0+3233_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/325835/ft2_4FGL_J1311.0+3233_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/325835/ltcube_258768001_259027201_4FGL_J1311.0+3233_daily_bin75.fits outfile=/scratch/kocevski/325835/expmap_258768001_259027201_4FGL_J1311.0+3233_daily_bin75.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/325835/ltcube_258768001_259027201_4FGL_J1311.0+3233_daily_bin75.fits
.....................!
real 192.16
user 186.97
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/325835/ft1_filtered_4FGL_J1311.0+3233_daily_bin75.fits scfile=/scratch/kocevski/325835/ft2_4FGL_J1311.0+3233_daily_bin75.fits outfile=/scratch/kocevski/325835/cmap_258768001_259027201_4FGL_J1311.0+3233_daily_bin75.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.60
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325835/ft1_filtered_4FGL_J1311.0+3233_daily_bin75.fits scfile=/scratch/kocevski/325835/ft2_4FGL_J1311.0+3233_daily_bin75.fits outfile=/scratch/kocevski/325835/cmap_HighResolution_258768001_259027201_4FGL_J1311.0+3233_daily_bin75.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/325835/ft1_filtered_4FGL_J1311.0+3233_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/325835/ft2_4FGL_J1311.0+3233_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325835/Model_4FGL_J1311.0+3233_daily_bin75.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/325835/ft1_filtered_4FGL_J1311.0+3233_daily_bin75.fits.....................!
real 35.52
user 33.25
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3276       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8385       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4434       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4693       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.267       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2595       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7272       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    19.689       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3902       1.0000         .10000E-03   10000.    
    19 'norm      '    10.664       1.0000         .10000E-03   10000.    
    20 'norm      '    38.292       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25276E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1903       1.0000         .10000E-03   10000.    
    23 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    18.972       1.0000         .10000E-03   10000.    
    26 'Prefactor '    20.135       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    95.656       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0410       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83971       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=   3437.007     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4092 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3277        3.8938        .12377E-05   -.61759E-04
   2  Prefactor     .10000E-03    2.2571        .13441E-06** at limit **
   3  Prefactor     .10000E-03    1.3706       -.19316E-06** at limit **
   4  Prefactor     3.8383        3.1144       -.22175E-06   -.59838E-04
   5  norm          .10000E-03    5.7162       -.37865E-07** at limit **
   6  Prefactor     .10000E-03    4.4324       -.13391E-06** at limit **
   7  Prefactor     5.4429        14.443        .27243E-06   -.52060E-04
   8  Prefactor     .10000E-03    78.383       -.29372E-05** at limit **
   9  Prefactor     .10000E-03    4.0933       -.10436E-05** at limit **
  10  Prefactor     4.4703        7.4751        .46130E-05   -.15039E-03
  11  norm          .10000E-03    2.2286       -.16290E-06** at limit **
  12  Prefactor     62.266        79.994       -.14251E-05   -.55141E-05
  13  Prefactor     .10000E-03    48.955        .36882E-05** at limit **
  14  norm          4.2596        6.3162        .47190E-06   -.27279E-03
  15  Prefactor     2.7336        33.977       -.23526E-06   -.13718E-03
  16  norm          .10000E-03    3.3729       -.16772E-06** at limit **
  17  norm          19.688        18.818        .34090E-06   -.75837E-05
  18  norm          2.3964        8.2417       -.20904E-05   -.64182E-03
  19  norm          10.658        12.794        .11423E-06   -.10520E-03
  20  norm          38.293        27.316        .88085E-06   -.13756E-04
  21  Prefactor     .10001E-03    5.2946        .31340E-06** at limit **
  22  Prefactor     4.2173        37.877        .68898E-05   -.78414E-04
  23  norm          .10000E-03    4.0232        .13439E-05** at limit **
  24  Prefactor     .10000E-03    27.855       -.11088E-05** at limit **
  25  norm          18.974        12.119        .30371E-06   -.66826E-04
  26  Prefactor     20.140        24.167        .22266E-06   -.48649E-04
  27  Prefactor     .10000E-03    17.162        .26835E-06** at limit **
  28  Prefactor     95.690        99.401        .31090E-04   -.19599E-04
  29  Prefactor     .10000E-03    2.0278        .36632E-07** at limit **
  30  Normalizat    1.0407        .22828       -.53089E-05    .70608E-04
  31  Prefactor     .84003        .25942        .13289E-05   -.16543E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83825
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.47032
  norm       = 0.0001
  Prefactor  = 62.2659
  Prefactor  = 0.0001
  norm       = 4.25955
  Prefactor  = 2.73357
  norm       = 0.0001
  norm       = 19.6885
  norm       = 2.39642
  norm       = 10.6577
  norm       = 38.2934
  Prefactor  = 0.000100012
  Prefactor  = 4.2173
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.9739
  Prefactor  = 20.1395
  Prefactor  = 0.0001
  Prefactor  = 95.69
  Prefactor  = 0.0001
  Normalizat = 1.04072
  Prefactor  = 0.840035
 **********
 **   18 **HESSE 
 **********

 FCN=   3437.007     FROM HESSE     STATUS=OK           624 CALLS     4716 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3277        3.8733        .10500E-03   -1.5292    
   2  Prefactor     .10000E-03    2.2575        .86023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3740        .66827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8383        3.1128        .89271E-04   -1.5316    
   5  norm          .10000E-03    5.9682        .27364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.4378        .12054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.4429        14.427        .17223E-03   -1.5241    
   8  Prefactor     .10000E-03    78.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1006        .11581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4703        7.3610        .17991E-03   -1.5285    
  11  norm          .10000E-03    2.2435        .85442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.266        80.006        .50851E-04   -1.4128    
  13  Prefactor     .10000E-03    49.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2596        6.3040        .16817E-03   -1.5295    
  15  Prefactor     2.7336        32.865        .24659E-03   -1.5377    
  16  norm          .10000E-03    3.3840        .10505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          19.688        18.818        .90266E-04   -1.4820    
  18  norm          2.3964        7.9630        .19292E-03   -1.5398    
  19  norm          10.658        12.557        .12269E-03   -1.5055    
  20  norm          38.293        27.309        .64771E-04   -1.4470    
  21  Prefactor     .10001E-03    8.2435        .22538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2173        30.053        .19688E-03   -1.5297    
  23  norm          .10000E-03    4.0316        .11480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          18.974        12.117        .91954E-04   -1.4837    
  26  Prefactor     20.140        24.171        .89260E-04   -1.4810    
  27  Prefactor     .10000E-03    17.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     95.690        98.604        .41096E-04   -1.3748    
  29  Prefactor     .10000E-03    2.0392        .81507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0407        .27112        .21734E-03   -.91678    
  31  Prefactor     .84003        .30906        .29370E-03   -.98269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46005e-09
Minuit parameter uncertainties:
  1  3.87355
  2  1.07974e-06
  3  1.09069e-05
  4  3.11291
  5  2.37465e-05
  6  5.31743e-06
  7  14.4358
  8  0.000156505
  9  7.33921e-06
  10  7.36245
  11  5.14655e-06
  12  80.1445
  13  9.07784e-05
  14  6.30501
  15  18.9693
  16  1.17759e-05
  17  18.8235
  18  7.96652
  19  12.5602
  20  27.3183
  21  0.000621965
  22  22.532
  23  6.27032e-06
  24  5.53726e-05
  25  12.1185
  26  24.1828
  27  3.17046e-05
  28  98.773
  29  5.48884e-06
  30  0.271478
  31  0.309698
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.066e+01  1.256e+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.400e-01  3.097e-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.041e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 2.51e-05

TS (Fixed Index): 2.94
Ra Dec: 197.760 32.556
Photon Flux Upper Limit: 9.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/325835/likelihoodResults_258768001_259027201_4FGL_J1311.0+3233_daily_bin75.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) = 3436.81673388
delta logL = 0.190506719197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3436.79391504
delta logL = 0.213325562044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3958       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0526       1.0000          .0000       5.0000    
     3 'Normalizat'    .99753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87212       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=   3436.794     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      247 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3910        67.787        .48023E-02    .23707E-03
   2  alpha         3.0531        3.9929        .21179        .57625E-04
   3  Normalizat    .99748        .97026E-01    .46136E-01   -.50678E-05
   4  Prefactor     .87217        .91099E-01    .65248E-01   -.14746E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.391
  alpha      = 3.05315
  Normalizat = 0.997482
  Prefactor  = 0.87217
 **********
 **   18 **HESSE 
 **********

 FCN=   3436.794     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3910        30.555        .83654E-04   -1.5289    
   2  alpha         3.0531        3.8664        .78755E-02    .22311    
   3  Normalizat    .99748        .32829        .22124E-03   -.93115    
   4  Prefactor     .87217        .35856        .28861E-03   -.97120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1603e-10
Minuit parameter uncertainties:
  1  23.1827
  2  3.12594
  3  0.328952
  4  0.359536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325835': 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) = 3436.7939149
delta logL = 0.21332570645

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  4.391e+00  2.318e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.053e+00  3.126e+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.722e-01  3.595e-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:  9.975e-01  3.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 197.760 32.556
Photon Index (Free Index): 3.05 +/- 3.13
Photon Flux (Free Index): 6.07e-08 +/- 1.27e-07
Energy Flux (Free Index): 1.96e-05 +/- 1.60e-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/325835/cmap_HighResolution_258768001_259027201_4FGL_J1311.0+3233_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-05', comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='1.96e-05', photon_flux_error='3.47e-08', dlogl='2.13e-01', energy_flux='2.13e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-09-07 03:49:20.377676', photon_index_error2='3.13', photon_index2='3.05', ts='2.94', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='1.60e-05', EG='1.04', time_epoch_completed='1631011760.38', return_code='0', job_id='325835', GAL2='0.87', EG2='1.00', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='1.27e-07', ts2='3.37', photon_index='2.27' WHERE bin_id='75' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 03:49:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 325835: <4FGL_J1311.0+3233_daily_bin75> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin75> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 03:35:26 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:35:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 03:35:30 2021
Terminated at Tue Sep  7 03:49:21 2021
Results reported at Tue Sep  7 03:49:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin75 197.76 32.5565 258768001 259027201 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 :                                   639.37 sec.
    Max Memory :                                 1136 MB
    Average Memory :                             278.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

