/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 8 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 = 7686
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin347
RA = 197.76, Dec = 32.5565
tmin = 329270401, tmax = 329529601
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='331503', job_status='RUN', time_executed='2021-09-07 03:51:01.194957', time_epoch_executed='1631011861.19' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331503/ft1_4FGL_J1311.0+3233_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331503/ft2_4FGL_J1311.0+3233_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331503/ft1_4FGL_J1311.0+3233_daily_bin347.fits outfile=/scratch/kocevski/331503/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin347.fits ra=197.76 dec=32.5565 rad=12.0 tmin=329270401.0 tmax=329529601.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.59
user 3.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331503/ft1_filtered_4FGL_J1311.0+3233_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/331503/ft2_4FGL_J1311.0+3233_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/331503/ltcube_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.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/331503/ft2_4FGL_J1311.0+3233_daily_bin347.fits
.....................!
real 13.19
user 12.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331503/ft1_filtered_4FGL_J1311.0+3233_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/331503/ft2_4FGL_J1311.0+3233_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/331503/ltcube_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.fits outfile=/scratch/kocevski/331503/expmap_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.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/331503/ltcube_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.fits
.....................!
real 192.66
user 187.96
sys 4.19

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/331503/ft1_filtered_4FGL_J1311.0+3233_daily_bin347.fits scfile=/scratch/kocevski/331503/ft2_4FGL_J1311.0+3233_daily_bin347.fits outfile=/scratch/kocevski/331503/cmap_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331503/ft1_filtered_4FGL_J1311.0+3233_daily_bin347.fits scfile=/scratch/kocevski/331503/ft2_4FGL_J1311.0+3233_daily_bin347.fits outfile=/scratch/kocevski/331503/cmap_HighResolution_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0396       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39037       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.599       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.720       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2333       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1088       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.309       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.546       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9337       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    39.535       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10981E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    33.823       1.0000         .10000E-03   10000.    
    26 'Prefactor '    38.036       1.0000         .10000E-03   10000.    
    27 'Prefactor '    25.900       1.0000         .10000E-03   10000.    
    28 'Prefactor '    52.413       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.5608       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0590       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89371       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=   5849.045     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4092 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4926       -.35723E-07** at limit **
   2  Prefactor     .10000E-03    4.6408        .26507E-07** at limit **
   3  Prefactor     7.0399        3.0903       -.93481E-07   -.56802E-04
   4  Prefactor     .39014        2.6583        .12376E-05   -.45535E-03
   5  norm          .10000E-03    1.4879       -.13716E-08** at limit **
   6  Prefactor     30.600        14.309       -.25546E-06   -.48564E-04
   7  Prefactor     24.721        19.529       -.40248E-07   -.21915E-05
   8  Prefactor     50.647        54.751        .10147E-06    .12718E-04
   9  Prefactor     5.2330        4.9936       -.29596E-07    .20740E-04
  10  Prefactor     .10000E-03    2.3477       -.73389E-08** at limit **
  11  norm          5.1089        4.0680        .14957E-06    .15447E-03
  12  Prefactor     47.309        58.724        .16190E-06    .85035E-05
  13  Prefactor     .10000E-03    8.2384       -.45923E-08** at limit **
  14  norm          .10000E-03    1.1356        .50274E-08** at limit **
  15  Prefactor     14.548        18.570       -.29173E-06   -.63336E-05
  16  norm          6.9341        5.2608        .44269E-06   -.49634E-03
  17  norm          .10000E-03    5.7304       -.11321E-07** at limit **
  18  norm          .10000E-03    1.8222        .11328E-07** at limit **
  19  norm          .10000E-03    1.5773        .13559E-08** at limit **
  20  norm          39.524        23.311       -.97901E-06   -.25362E-03
  21  Prefactor     .10000E-03    2.3220       -.23689E-07** at limit **
  22  Prefactor     .10000E-03    6.7538        .23247E-07** at limit **
  23  norm          .10000E-03    7.9279        .18174E-06** at limit **
  24  Prefactor     .10000E-03    70.134        .14829E-06** at limit **
  25  norm          33.799        14.367        .97131E-08   -.15724E-03
  26  Prefactor     38.037        23.865        .14284E-07    .79401E-05
  27  Prefactor     25.899        26.517       -.14033E-06   -.18768E-04
  28  Prefactor     52.400        76.549       -.47053E-05   -.12528E-03
  29  Prefactor     1.5602        3.4739        .31086E-06   -.16979E-03
  30  Normalizat    1.0591        .18882        .28400E-06   -.74508E-04
  31  Prefactor     .89358        .21649       -.15672E-06   -.34417E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.03995
  Prefactor  = 0.390145
  norm       = 0.0001
  Prefactor  = 30.6004
  Prefactor  = 24.7208
  Prefactor  = 50.6471
  Prefactor  = 5.23303
  Prefactor  = 0.0001
  norm       = 5.10888
  Prefactor  = 47.3092
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5478
  norm       = 6.93411
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 39.5235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 33.7993
  Prefactor  = 38.0367
  Prefactor  = 25.8991
  Prefactor  = 52.4002
  Prefactor  = 1.56022
  Normalizat = 1.05907
  Prefactor  = 0.893577
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.045     FROM HESSE     STATUS=OK           620 CALLS     4712 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5000        .91122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6694        .16088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0399        3.0831        .84636E-04   -1.5177    
   4  Prefactor     .39014        3.1400        .25161E-03   -1.5583    
   5  norm          .10000E-03    1.4912        .91101E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.600        14.265        .72432E-04   -1.4601    
   7  Prefactor     24.721        19.527        .80568E-04   -1.4713    
   8  Prefactor     50.647        54.774        .56352E-04   -1.4283    
   9  Prefactor     5.2330        4.9979        .16256E-03   -1.5250    
  10  Prefactor     .10000E-03    2.3505        .11437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1089        4.0736        .13259E-03   -1.5256    
  12  Prefactor     47.309        58.732        .58297E-04   -1.4331    
  13  Prefactor     .10000E-03    8.2436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1405        .79581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.548        18.595        .10502E-03   -1.4945    
  16  norm          6.9341        5.4263        .73728E-03   -1.5181    
  17  norm          .10000E-03    5.7384        .17880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8420        .10073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.5782        .93801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          39.524        23.853        .63747E-04   -1.4450    
  21  Prefactor     .10000E-03    2.4154        .22726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    46.715        .37973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    70.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          33.799        13.324        .68903E-04   -1.4545    
  26  Prefactor     38.037        23.904        .64987E-04   -1.4474    
  27  Prefactor     25.899        26.516        .78715E-04   -1.4690    
  28  Prefactor     52.400        81.226        .55399E-04   -1.4259    
  29  Prefactor     1.5602        3.4749        .20534E-03   -1.5458    
  30  Normalizat    1.0591        .22269        .24101E-03   -.91077    
  31  Prefactor     .89358        .25400        .30910E-03   -.96366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97507e-10
Minuit parameter uncertainties:
  1  2.17156e-06
  2  1.66561e-06
  3  3.08315
  4  2.21352
  5  5.96743e-07
  6  14.2665
  7  19.5322
  8  54.828
  9  4.99834
  10  8.59048e-07
  11  4.07383
  12  58.8041
  13  5.358e-06
  14  1.44215e-07
  15  18.6026
  16  5.42671
  17  1.94061e-06
  18  2.50219e-06
  19  5.44981e-07
  20  23.8586
  21  2.97001e-06
  22  5.66051e-07
  23  0.000117236
  24  4.74155e-05
  25  13.3256
  26  23.9102
  27  26.5279
  28  81.3979
  29  3.4753
  30  0.222886
  31  0.254339
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  5.450e-07  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.936e-01  2.543e-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.059e+00  2.229e-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: 2.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/331503/likelihoodResults_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.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): 102
logL (Free Index) = 5849.04802406
delta logL = -0.00272477230192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5849.04529892
delta logL = 3.64492734661e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2559       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0590       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89359       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5849.045     FROM MIGRAD    STATUS=FAILED        94 CALLS      233 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    156.45        .95094E-02** at limit **
   2  alpha         1.3256        3.6617        .16561       -.24116E-06
   3  Normalizat    1.0591        .38905E-01    .24101E-03    .36030E-03
   4  Prefactor     .89358        .46414E-01    .30910E-03    .29351E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5848.714     FROM SIMPLEX   STATUS=PROGRESS     208 CALLS      441 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29373E-01    156.45        .17042E-04    .31872E-03
   2  alpha         4.8020        3.6617        .36200E-07   -.24116E-06
   3  Normalizat    1.0591        .38905E-01    .63096E-08    .36030E-03
   4  Prefactor     .89358        .46414E-01    .89818E-08    .29351E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5848.516     FROM MIGRAD    STATUS=FAILED        93 CALLS      534 TOTAL
                     EDM=   .24E+01    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23185E-01    .23024E-01     .0000       -1456.0    
   2  alpha         5.0000        .67344         .0000    ** at limit **
   3  Normalizat    .98775        .21396         .0000       -.12996E-04
   4  Prefactor     .94835        .25397         .0000       -.17563E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0231849
  alpha      = 5
  Normalizat = 0.98775
  Prefactor  = 0.948351
 **********
 **   18 **HESSE 
 **********

 FCN=   5848.516     FROM HESSE     STATUS=OK            27 CALLS      561 TOTAL
                     EDM=   .37E+01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23185E-01    .19979E-01    .15764E-01    33061.    
   2  alpha         5.0000        .62144        .13249E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98775        .21519        .19281E-04   -.93442    
   4  Prefactor     .94835        .25465        .49456E-05   -.94471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66541
Minuit parameter uncertainties:
  1  0.0199789
  2  2.60513e-07
  3  0.215382
  4  0.254969
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331503': 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): 1
logL (Free Index) = 5848.5157292
delta logL = 0.529570088296

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.318e-02  1.998e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  5.000e+00  2.605e-07  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:  9.484e-01  2.550e-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.878e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 197.760 32.556
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 5.08e-08 +/- 4.37e-08
Energy Flux (Free Index): 7.84e-06 +/- 6.75e-06

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/331503/cmap_HighResolution_329270401_329529601_4FGL_J1311.0+3233_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-05', comment='SUCCESS', energy_flux2='7.84e-06', dlogl='5.30e-01', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-07 04:05:37.208154', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='2.50e-08', energy_flux_error2='6.75e-06', EG='1.06', time_epoch_completed='1631012737.21', return_code='0', job_id='331503', GAL2='0.95', EG2='0.99', return_code2='1', photon_flux_error2='4.37e-08', ts2='1.14', photon_index='2.27' WHERE bin_id='347' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 331503: <4FGL_J1311.0+3233_daily_bin347> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin347> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 03:50:40 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:50:43 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:50:43 2021
Terminated at Tue Sep  7 04:05:37 2021
Results reported at Tue Sep  7 04:05:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin347 197.76 32.5565 329270401 329529601 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 :                                   863.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            897 sec.

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

