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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin130
RA = 197.76, Dec = 32.5565
tmin = 273024001, tmax = 273283201
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='327346', job_status='RUN', time_executed='2021-09-07 03:44:44.035442', time_epoch_executed='1631011484.04' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327346

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327346/ft1_4FGL_J1311.0+3233_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327346/ft2_4FGL_J1311.0+3233_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327346/ft1_4FGL_J1311.0+3233_daily_bin130.fits outfile=/scratch/kocevski/327346/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin130.fits ra=197.76 dec=32.5565 rad=12.0 tmin=273024001.0 tmax=273283201.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 2.95
user 2.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327346/ft1_filtered_4FGL_J1311.0+3233_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/327346/ft2_4FGL_J1311.0+3233_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/327346/ltcube_273024001_273283201_4FGL_J1311.0+3233_daily_bin130.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/327346/ft2_4FGL_J1311.0+3233_daily_bin130.fits
.....................!
real 17.42
user 16.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327346/ft1_filtered_4FGL_J1311.0+3233_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/327346/ft2_4FGL_J1311.0+3233_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/327346/ltcube_273024001_273283201_4FGL_J1311.0+3233_daily_bin130.fits outfile=/scratch/kocevski/327346/expmap_273024001_273283201_4FGL_J1311.0+3233_daily_bin130.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/327346/ltcube_273024001_273283201_4FGL_J1311.0+3233_daily_bin130.fits
.....................!
real 192.67
user 186.71
sys 5.16

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/327346/ft1_filtered_4FGL_J1311.0+3233_daily_bin130.fits scfile=/scratch/kocevski/327346/ft2_4FGL_J1311.0+3233_daily_bin130.fits outfile=/scratch/kocevski/327346/cmap_273024001_273283201_4FGL_J1311.0+3233_daily_bin130.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327346/ft1_filtered_4FGL_J1311.0+3233_daily_bin130.fits scfile=/scratch/kocevski/327346/ft2_4FGL_J1311.0+3233_daily_bin130.fits outfile=/scratch/kocevski/327346/cmap_HighResolution_273024001_273283201_4FGL_J1311.0+3233_daily_bin130.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4658       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4413       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73862       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.845       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.045       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0603       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4155       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.039       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.919       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10038E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .16038E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    7.0398       1.0000         .10000E-03   10000.    
    20 'norm      '    15.931       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.129       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9373       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.0271       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.4760       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .75190E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.6779       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1937       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76001       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5841.429     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     3499 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4650        3.6450       -.89414E-06    .53924E-03
   2  Prefactor     7.4415        2.1393       -.62798E-06    .12232E-02
   3  Prefactor     3.2688        2.2709       -.22756E-06   -.19147E-03
   4  Prefactor     .73940        1.4966        .43161E-06    .53409E-04
   5  norm          2.4801        3.3327       -.99959E-07    .16652E-03
   6  Prefactor     23.852        9.9281        .14419E-05    .50318E-02
   7  Prefactor     .10000E-03    2.9239        .30281E-06** at limit **
   8  Prefactor     38.050        1.4909       -.43405E-08   -.11616E-02
   9  Prefactor     8.0596        3.4124        .97075E-06   -.43879E-02
  10  Prefactor     3.4162        3.4007        .50757E-06    .53240E-03
  11  norm          1.3025        4.3416        .83244E-06    .26182E-02
  12  Prefactor     62.049        2.0128       -.59862E-07   -.25824E-02
  13  Prefactor     18.979        8.1020       -.18135E-05    .84982E-02
  14  norm          .10000E-03    1.3273       -.44639E-07** at limit **
  15  Prefactor     .10000E-03    20.963        .30677E-06** at limit **
  16  norm          .10000E-03    4.8029       -.11933E-06** at limit **
  17  norm          .40043E-03    142.23        .11800E-04** at limit **
  18  norm          .14981E-03    225.67        .16663E-04** at limit **
  19  norm          7.0627        4.6999       -.13611E-05    .15328E-03
  20  norm          15.929        1.0726       -.83801E-07   -.10163E-03
  21  Prefactor     .10000E-03    1.4267        .31560E-06** at limit **
  22  Prefactor     .10001E-03    3.2054       -.23851E-05** at limit **
  23  norm          12.128        2.8088       -.10384E-05    .32011E-02
  24  Prefactor     .10048E-03    90.828       -.15961E-04** at limit **
  25  norm          2.9393        4.8293        .15218E-05    .81897E-03
  26  Prefactor     7.0317        1.5520        .51242E-06   -.54477E-03
  27  Prefactor     6.4760        2.3640        .90547E-06   -.10160E-02
  28  Prefactor     .10480E-03    13.802        .51167E-05** at limit **
  29  Prefactor     2.6783        3.9118        .34464E-05    .39300E-02
  30  Normalizat    1.1937        .20841       -.46235E-05   -.93534E-04
  31  Prefactor     .76006        .25441        .30256E-05   -.41911E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.46498
  Prefactor  = 7.44149
  Prefactor  = 3.26884
  Prefactor  = 0.739404
  norm       = 2.4801
  Prefactor  = 23.8516
  Prefactor  = 0.000100004
  Prefactor  = 38.0503
  Prefactor  = 8.05956
  Prefactor  = 3.41619
  norm       = 1.30252
  Prefactor  = 62.0487
  Prefactor  = 18.9792
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00040043
  norm       = 0.000149812
  norm       = 7.06265
  norm       = 15.9286
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 12.1282
  Prefactor  = 0.000100482
  norm       = 2.93931
  Prefactor  = 7.03169
  Prefactor  = 6.47602
  Prefactor  = 0.000104798
  Prefactor  = 2.67829
  Normalizat = 1.19366
  Prefactor  = 0.760058
 **********
 **   18 **HESSE 
 **********

 FCN=   5841.429     FROM HESSE     STATUS=OK           714 CALLS     4213 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4650        3.6636        .39459E-02   -1.5199    
   2  Prefactor     7.4415        6.2770        .36756E-02   -1.5162    
   3  Prefactor     3.2688        2.2686        .55993E-02   -1.5346    
   4  Prefactor     .73940        1.8144        .30540E-01   -1.5536    
   5  norm          2.4801        3.3547        .64915E-02   -1.5393    
   6  Prefactor     23.852        11.755        .20508E-02   -1.4731    
   7  Prefactor     .10000E-03    5.1256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.050        73.927        .16245E-02   -1.4473    
   9  Prefactor     8.0596        6.5544        .35306E-02   -1.5140    
  10  Prefactor     3.4162        3.4007        .54722E-02   -1.5338    
  11  norm          1.3025        9.0113        .96543E-02   -1.5480    
  12  Prefactor     62.049        61.506        .12736E-02   -1.4131    
  13  Prefactor     18.979        28.085        .23021E-02   -1.4836    
  14  norm          .10000E-03    1.3229        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.582        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.7199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40043E-03    9.4342        .90732E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .14981E-03    2.0442        .59912E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.0627        5.2430        .37799E-02   -1.5176    
  20  norm          15.929        23.323        .25087E-02   -1.4910    
  21  Prefactor     .10000E-03    1.4121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    5.1406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.128        10.093        .28756E-02   -1.5011    
  24  Prefactor     .10048E-03    91.259        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9393        12.246        .59249E-02   -1.5365    
  26  Prefactor     7.0317        17.577        .37833E-02   -1.5178    
  27  Prefactor     6.4760        16.913        .39427E-02   -1.5199    
  28  Prefactor     .10480E-03    36.581        .15959       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.6783        4.3109        .62254E-02   -1.5381    
  30  Normalizat    1.1937        .18452        .35048E-01   -.86799    
  31  Prefactor     .76006        .21919        .72152E-01   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69913e-07
Minuit parameter uncertainties:
  1  3.66376
  2  6.27759
  3  2.26864
  4  1.81452
  5  3.35498
  6  11.7564
  7  0.000295522
  8  74.1055
  9  6.55498
  10  3.40092
  11  6.8532
  12  61.5693
  13  28.1044
  14  2.19968e-07
  15  0.000120432
  16  7.19008e-06
  17  0.106493
  18  0.0201824
  19  5.24329
  20  23.3368
  21  1.28632e-06
  22  0.000321933
  23  10.0939
  24  0.0132794
  25  12.003
  26  17.5903
  27  16.9257
  28  0.0265134
  29  4.31137
  30  0.184617
  31  0.219446
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  7.063e+00  5.243e+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:  7.601e-01  2.194e-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.194e+00  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.70
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.95e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.05e-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) = 5841.32233242
delta logL = 0.106878748525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5841.31913614
delta logL = 0.110075024159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.9184       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8950       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75897       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5841.319     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      307 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.9278        7.2619        .67107E-03    .30308E-04
   2  alpha         1.8971        .80544        .16545E-01    .11504E-04
   3  Normalizat    1.1985        .20604        .21235E-03    .23878E-04
   4  Prefactor     .75895        .25321        .31964E-03    .17357E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.92782
  alpha      = 1.89714
  Normalizat = 1.19854
  Prefactor  = 0.758952
 **********
 **   18 **HESSE 
 **********

 FCN=   5841.319     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.9278        7.0961        .26843E-04   -1.5110    
   2  alpha         1.8971        .78780        .66179E-03   -.24354    
   3  Normalizat    1.1985        .20623        .84940E-05   -.86648    
   4  Prefactor     .75895        .25348        .12786E-04   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89347e-12
Minuit parameter uncertainties:
  1  7.09673
  2  0.80234
  3  0.206375
  4  0.253871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327346': 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) = 5841.31912892
delta logL = 0.110082244415

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  8.928e+00  7.097e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.897e+00  8.023e-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:  7.590e-01  2.539e-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.199e+00  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.92
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.90 +/- 0.80
Photon Flux (Free Index): 1.36e-08 +/- 1.43e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.50e-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/327346/cmap_HighResolution_273024001_273283201_4FGL_J1311.0+3233_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.95e-08', energy_flux2='1.70e-05', photon_flux_error='1.45e-08', dlogl='1.10e-01', energy_flux='1.41e-05', photon_flux2='1.36e-08', job_status='DONE', time_completed='2021-09-07 03:56:58.499058', photon_index_error2='0.80', photon_index2='1.90', ts='7.70', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.50e-05', EG='1.19', time_epoch_completed='1631012218.5', return_code='0', job_id='327346', GAL2='0.76', EG2='1.20', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.43e-08', ts2='7.92', photon_index='2.27' WHERE bin_id='130' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 03:56:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 327346: <4FGL_J1311.0+3233_daily_bin130> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin130 197.76 32.5565 273024001 273283201 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 :                                   732.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            984 sec.

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

