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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin152
RA = 197.76, Dec = 32.5565
tmin = 278726401, tmax = 278985601
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='327378', job_status='RUN', time_executed='2021-09-07 03:43:41.653344', time_epoch_executed='1631011421.65' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327378

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327378/ft1_4FGL_J1311.0+3233_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327378/ft2_4FGL_J1311.0+3233_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327378/ft1_4FGL_J1311.0+3233_daily_bin152.fits outfile=/scratch/kocevski/327378/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin152.fits ra=197.76 dec=32.5565 rad=12.0 tmin=278726401.0 tmax=278985601.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.82
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327378/ft1_filtered_4FGL_J1311.0+3233_daily_bin152.fits" evtable="EVENTS" scfile=/scratch/kocevski/327378/ft2_4FGL_J1311.0+3233_daily_bin152.fits sctable="SC_DATA" outfile=/scratch/kocevski/327378/ltcube_278726401_278985601_4FGL_J1311.0+3233_daily_bin152.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/327378/ft2_4FGL_J1311.0+3233_daily_bin152.fits
.....................!
real 15.13
user 14.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327378/ft1_filtered_4FGL_J1311.0+3233_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/327378/ft2_4FGL_J1311.0+3233_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/327378/ltcube_278726401_278985601_4FGL_J1311.0+3233_daily_bin152.fits outfile=/scratch/kocevski/327378/expmap_278726401_278985601_4FGL_J1311.0+3233_daily_bin152.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/327378/ltcube_278726401_278985601_4FGL_J1311.0+3233_daily_bin152.fits
.....................!
real 192.28
user 186.03
sys 4.51

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/327378/ft1_filtered_4FGL_J1311.0+3233_daily_bin152.fits scfile=/scratch/kocevski/327378/ft2_4FGL_J1311.0+3233_daily_bin152.fits outfile=/scratch/kocevski/327378/cmap_278726401_278985601_4FGL_J1311.0+3233_daily_bin152.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327378/ft1_filtered_4FGL_J1311.0+3233_daily_bin152.fits scfile=/scratch/kocevski/327378/ft2_4FGL_J1311.0+3233_daily_bin152.fits outfile=/scratch/kocevski/327378/cmap_HighResolution_278726401_278985601_4FGL_J1311.0+3233_daily_bin152.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53128       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9520       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.211       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3862       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0573       1.0000         .10000E-03   10000.    
    11 'norm      '    .34115E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.925       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.000       1.0000         .10000E-03   10000.    
    14 'norm      '    21.247       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.917       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.8415       1.0000         .10000E-03   10000.    
    18 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.9471       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2913       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8040       1.0000         .10000E-03   10000.    
    23 'norm      '    26.612       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.179       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    82.585       1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.163       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .67285       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3028       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=   5795.686     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     4193 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8388       -.18275E-06** at limit **
   2  Prefactor     .10000E-03    4.3914        .10338E-06** at limit **
   3  Prefactor     .53086        2.7455        .17505E-05   -.45571E-04
   4  Prefactor     4.9519        2.9854       -.13907E-06   -.19744E-03
   5  norm          .10000E-03    2.5127        .70264E-07** at limit **
   6  Prefactor     39.211        15.938       -.13062E-06   -.50296E-04
   7  Prefactor     .10000E-03    35.594       -.19115E-07** at limit **
   8  Prefactor     .10000E-03    35.044        .89349E-07** at limit **
   9  Prefactor     4.3861        4.4415       -.15701E-07   -.14961E-05
  10  Prefactor     2.0562        6.9536        .14507E-05    .55536E-05
  11  norm          .10001E-03    3.4401       -.51951E-06** at limit **
  12  Prefactor     22.926        140.06       -.82954E-06   -.22983E-06
  13  Prefactor     19.995        31.326        .13100E-05    .10943E-03
  14  norm          21.247        6.0680        .12056E-07    .36271E-05
  15  Prefactor     21.923        21.134       -.66416E-06    .24925E-04
  16  norm          .10000E-03    2.1633        .48686E-07** at limit **
  17  norm          8.8406        25.699        .39038E-06   -.49137E-05
  18  norm          .10000E-03    3.4468       -.13228E-06** at limit **
  19  norm          8.9465        6.4794        .60169E-07    .90075E-04
  20  norm          .10000E-03    7.3678        .24047E-07** at limit **
  21  Prefactor     2.2917        2.7687        .51344E-07    .16877E-04
  22  Prefactor     7.8038        11.364        .63312E-07    .88249E-05
  23  norm          26.612        13.232        .78142E-08   -.60074E-05
  24  Prefactor     .10000E-03    15.816       -.69703E-07** at limit **
  25  norm          17.179        17.121        .82938E-07   -.38307E-05
  26  Prefactor     .10000E-03    5.8439        .63817E-07** at limit **
  27  Prefactor     .10000E-03    11.211        .12788E-06** at limit **
  28  Prefactor     82.524        78.618       -.59605E-06   -.69830E-04
  29  Prefactor     10.163        5.3866        .31595E-07   -.80960E-05
  30  Normalizat    .67261        .19275        .13728E-05   -.35034E-04
  31  Prefactor     1.3031        .23049       -.15699E-05    .76586E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.530862
  Prefactor  = 4.9519
  norm       = 0.0001
  Prefactor  = 39.2114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38607
  Prefactor  = 2.0562
  norm       = 0.000100014
  Prefactor  = 22.9256
  Prefactor  = 19.9945
  norm       = 21.247
  Prefactor  = 21.9233
  norm       = 0.0001
  norm       = 8.84059
  norm       = 0.0001
  norm       = 8.94651
  norm       = 0.0001
  Prefactor  = 2.29166
  Prefactor  = 7.80381
  norm       = 26.6122
  Prefactor  = 0.0001
  norm       = 17.1791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.5242
  Prefactor  = 10.1634
  Normalizat = 0.672608
  Prefactor  = 1.30309
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.686     FROM HESSE     STATUS=OK           628 CALLS     4821 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8888        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4105        .15576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .53086        2.7052        .23345E-03   -1.5562    
   4  Prefactor     4.9519        2.9773        .96375E-04   -1.5263    
   5  norm          .10000E-03    2.5388        .11784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.211        15.928        .64009E-04   -1.4455    
   7  Prefactor     .10000E-03    35.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3861        4.4433        .15734E-03   -1.5289    
  10  Prefactor     2.0562        6.8555        .28814E-03   -1.5421    
  11  norm          .10001E-03    50.034        .23888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.926        137.92        .83657E-04   -1.4750    
  13  Prefactor     19.995        28.866        .89560E-04   -1.4813    
  14  norm          21.247        6.0674        .86895E-04   -1.4786    
  15  Prefactor     21.923        21.022        .85559E-04   -1.4771    
  16  norm          .10000E-03    2.1693        .10928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.8406        25.483        .13480E-03   -1.5113    
  18  norm          .10000E-03    3.5010        .27279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.9465        6.4104        .13400E-03   -1.5110    
  20  norm          .10000E-03    7.3702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2917        2.7455        .13037E-03   -1.5405    
  22  Prefactor     7.8038        11.334        .14354E-03   -1.5149    
  23  norm          26.612        13.236        .77656E-04   -1.4676    
  24  Prefactor     .10000E-03    15.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.179        17.122        .96632E-04   -1.4879    
  26  Prefactor     .10000E-03    5.8609        .17974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     82.524        78.967        .22100E-03   -1.3889    
  29  Prefactor     10.163        5.3895        .12238E-03   -1.5070    
  30  Normalizat    .67261        .22210        .30037E-03   -1.0498    
  31  Prefactor     1.3031        .26489        .27442E-03   -.83215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31013e-10
Minuit parameter uncertainties:
  1  2.02295e-05
  2  2.83179e-06
  3  2.3967
  4  2.97738
  5  2.93219e-07
  6  15.9302
  7  7.36272e-05
  8  1.5064e-05
  9  4.44361
  10  6.85816
  11  0.00164957
  12  112.85
  13  28.886
  14  6.06758
  15  21.0295
  16  6.18944e-07
  17  25.5145
  18  8.65888e-06
  19  6.4109
  20  1.44793e-07
  21  2.74563
  22  11.3369
  23  13.2376
  24  2.83821e-06
  25  17.1271
  26  1.39943e-07
  27  1.47991e-06
  28  79.0678
  29  5.38978
  30  0.222401
  31  0.265169
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  8.947e+00  6.411e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.273e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  2.509e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  2.327e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.303e+00  2.652e-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:  6.726e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.47e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.28e-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) = 5795.62691583
delta logL = 0.059419758848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5795.62665979
delta logL = 0.0596757966423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.2413       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4849       1.0000          .0000       5.0000    
     3 'Normalizat'    .66940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3035       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=   5795.627     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      264 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.2372        122.79        .37264E-02    .45288E-04
   2  alpha         2.4841        3.7288        .28163        .51296E-04
   3  Normalizat    .66934        .85299E-01    .68017E-01    .23922E-04
   4  Prefactor     1.3038        .88742E-01    .62024E-01    .38064E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.23724
  alpha      = 2.48408
  Normalizat = 0.669336
  Prefactor  = 1.30381
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.627     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.2372        7.5414        .13595E-03   -1.5170    
   2  alpha         2.4841        .63860        .10428E-01   -.63679E-02
   3  Normalizat    .66934        .20869        .30100E-03   -1.0512    
   4  Prefactor     1.3038        .25853        .27430E-03   -.83194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83486e-09
Minuit parameter uncertainties:
  1  7.54241
  2  0.645754
  3  0.208937
  4  0.258786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327378': 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) = 5795.62665528
delta logL = 0.0596803069593

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  7.237e+00  7.542e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.484e+00  6.458e-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:  1.304e+00  2.588e-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:  6.693e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.36
Ra Dec: 197.760 32.556
Photon Index (Free Index): 2.48 +/- 0.65
Photon Flux (Free Index): 2.96e-08 +/- 2.46e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.21e-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/327378/cmap_HighResolution_278726401_278985601_4FGL_J1311.0+3233_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.47e-08', energy_flux2='1.64e-05', photon_flux_error='1.77e-08', dlogl='5.97e-02', energy_flux='1.78e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-07 03:56:11.489317', photon_index_error2='0.65', photon_index2='2.48', ts='5.25', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.67', time_epoch_completed='1631012171.49', return_code='0', job_id='327378', GAL2='1.30', EG2='0.67', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='2.46e-08', ts2='5.36', photon_index='2.27' WHERE bin_id='152' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 03:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 327378: <4FGL_J1311.0+3233_daily_bin152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin152 197.76 32.5565 278726401 278985601 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 :                                   747.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            935 sec.

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

