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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin454
RA = 197.76, Dec = 32.5565
tmin = 357004801, tmax = 357264001
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='331661', job_status='RUN', time_executed='2021-09-07 03:51:14.178211', time_epoch_executed='1631011874.18' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331661/ft1_4FGL_J1311.0+3233_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331661/ft2_4FGL_J1311.0+3233_daily_bin454.fits


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

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

Done.
real 4.02
user 3.74
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331661/ft1_filtered_4FGL_J1311.0+3233_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/331661/ft2_4FGL_J1311.0+3233_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/331661/ltcube_357004801_357264001_4FGL_J1311.0+3233_daily_bin454.fits outfile=/scratch/kocevski/331661/expmap_357004801_357264001_4FGL_J1311.0+3233_daily_bin454.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/331661/ltcube_357004801_357264001_4FGL_J1311.0+3233_daily_bin454.fits
.....................!
real 192.97
user 187.01
sys 5.49

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/331661/ft1_filtered_4FGL_J1311.0+3233_daily_bin454.fits scfile=/scratch/kocevski/331661/ft2_4FGL_J1311.0+3233_daily_bin454.fits outfile=/scratch/kocevski/331661/cmap_357004801_357264001_4FGL_J1311.0+3233_daily_bin454.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331661/ft1_filtered_4FGL_J1311.0+3233_daily_bin454.fits scfile=/scratch/kocevski/331661/ft2_4FGL_J1311.0+3233_daily_bin454.fits outfile=/scratch/kocevski/331661/cmap_HighResolution_357004801_357264001_4FGL_J1311.0+3233_daily_bin454.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .33597       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5646       1.0000         .10000E-03   10000.    
     5 'norm      '    6.5303       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.9814       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .51395E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13967E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0814       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27638       1.0000         .10000E-03   10000.    
    16 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8156       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0494       1.0000         .10000E-03   10000.    
    20 'norm      '    19.678       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    201.21       1.0000         .10000E-03   10000.    
    25 'norm      '    5.7448       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0228       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81428       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=   5228.509     FROM MIGRAD    STATUS=CONVERGED    839 CALLS     4189 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1606        2.7743        .27390E-08   -.10698E-03
   2  Prefactor     .35158        11.442       -.88656E-06   -.68293E-03
   3  Prefactor     5.0610        2.8459       -.78063E-09   -.17501E-03
   4  Prefactor     7.5648        3.6428        .21957E-07   -.15600E-03
   5  norm          6.5297        5.2621        .12926E-06   -.14097E-04
   6  Prefactor     6.9810        7.0925       -.12039E-06   -.76450E-05
   7  Prefactor     .10000E-03    7.6848        .21500E-06** at limit **
   8  Prefactor     .10000E-03    403.39       -.10871E-04** at limit **
   9  Prefactor     .10000E-03    3.5941        .38482E-06** at limit **
  10  Prefactor     .10000E-03    3.3876        .30929E-06** at limit **
  11  norm          .10000E-03    3.7661       -.47049E-07** at limit **
  12  Prefactor     .10000E-03    68.397        .93557E-06** at limit **
  13  Prefactor     .10000E-03    8.7646       -.43909E-07** at limit **
  14  norm          2.0813        2.1255        .93524E-07    .42370E-04
  15  Prefactor     .33811        121.08       -.17942E-04    .12727E-03
  16  norm          .10002E-03    4.4921       -.11296E-05** at limit **
  17  norm          .10000E-03    5.0605        .18142E-06** at limit **
  18  norm          1.8251        5.4138        .13895E-05    .50203E-04
  19  norm          2.0387        6.9404       -.21114E-05   -.20106E-03
  20  norm          19.673        18.181        .32973E-06   -.21709E-04
  21  Prefactor     .10000E-03    1.4477        .23912E-06** at limit **
  22  Prefactor     .10000E-03    7.6073        .18138E-06** at limit **
  23  norm          .10000E-03    3.1445        .27278E-06** at limit **
  24  Prefactor     201.22        83.905        .55845E-06   -.41450E-04
  25  norm          5.7429        7.4021        .42159E-06   -.26436E-04
  26  Prefactor     .10000E-03    9.8904        .65106E-06** at limit **
  27  Prefactor     .10000E-03    6.1290        .23446E-06** at limit **
  28  Prefactor     .10000E-03    183.41        .55059E-05** at limit **
  29  Prefactor     .10000E-03    1.2384        .30191E-06** at limit **
  30  Normalizat    1.0228        .18151       -.34215E-05   -.30437E-03
  31  Prefactor     .81436        .20492       -.14827E-05   -.38161E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16057
  Prefactor  = 0.351584
  Prefactor  = 5.06103
  Prefactor  = 7.56483
  norm       = 6.52974
  Prefactor  = 6.98104
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08134
  Prefactor  = 0.338112
  norm       = 0.000100023
  norm       = 0.0001
  norm       = 1.82512
  norm       = 2.03869
  norm       = 19.6727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 201.217
  norm       = 5.74293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Normalizat = 1.02282
  Prefactor  = 0.814363
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.509     FROM HESSE     STATUS=OK           618 CALLS     4807 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1606        2.7777        .10608E-03   -1.5352    
   2  Prefactor     .35158        34.565        .37001E-02   -1.5589    
   3  Prefactor     5.0610        2.8501        .85167E-04   -1.5258    
   4  Prefactor     7.5648        3.6378        .89687E-04   -1.5158    
   5  norm          6.5297        5.2606        .14378E-03   -1.5197    
   6  Prefactor     6.9810        7.0908        .15183E-03   -1.5179    
   7  Prefactor     .10000E-03    7.6932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    403.31        .19164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6104        .13397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4234        .12991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.8639        .27354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    68.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.7694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0813        2.1351        .10369E-03   -1.5419    
  15  Prefactor     .33811        135.56        .44832E-02   -1.5592    
  16  norm          .10002E-03    11.562        .27202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0651        .15889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8251        5.4347        .19444E-03   -1.5438    
  19  norm          2.0387        7.0159        .12191E-02   -1.5422    
  20  norm          19.673        18.179        .90289E-04   -1.4821    
  21  Prefactor     .10000E-03    1.4580        .84892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.6289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1611        .12521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     201.22        83.763        .14244E-03   -1.2861    
  25  norm          5.7429        7.3955        .16758E-03   -1.5229    
  26  Prefactor     .10000E-03    9.9621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.1338        .17487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    186.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.2517        .78670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0228        .21657        .21891E-03   -.92270    
  31  Prefactor     .81436        .25090        .28790E-03   -.99201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49785e-09
Minuit parameter uncertainties:
  1  2.77777
  2  6.97522
  3  2.85013
  4  3.63794
  5  5.26093
  6  7.09162
  7  1.07736e-05
  8  0.00161427
  9  1.62493e-05
  10  2.20155e-05
  11  6.48567e-05
  12  1.99093e-05
  13  5.8616e-05
  14  2.13521
  15  13.5693
  16  0.00103047
  17  9.52618e-06
  18  5.43615
  19  7.01875
  20  18.1838
  21  1.29293e-05
  22  3.4978e-05
  23  1.57217e-05
  24  83.8129
  25  7.39672
  26  5.38922e-05
  27  2.01349e-05
  28  0.00176779
  29  8.46102e-06
  30  0.216757
  31  0.251255
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  2.039e+00  7.019e+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:  8.144e-01  2.513e-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.023e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/331661/likelihoodResults_357004801_357264001_4FGL_J1311.0+3233_daily_bin454.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) = 5228.31566275
delta logL = 0.193684282284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5228.31275126
delta logL = 0.196595768156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .98193       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2938       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82326       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=   5228.313     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      242 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98245        31.474        .13102E-01    .12377E-02
   2  alpha         3.2944        4.1416        .26694        .43883E-04
   3  Normalizat    1.0043        .37183E-01    .46224E-01   -.29361E-04
   4  Prefactor     .82353        .42939E-01    .64713E-01    .12769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.982448
  alpha      = 3.29444
  Normalizat = 1.00428
  Prefactor  = 0.823528
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.313     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98245        16.985        .99725E-04   -1.5510    
   2  alpha         3.2944        4.1411        .15969E-01    .32338    
   3  Normalizat    1.0043        .23408        .22059E-03   -.92887    
   4  Prefactor     .82353        .26741        .28626E-03   -.98867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32228e-07
Minuit parameter uncertainties:
  1  8.17218
  2  4.25623
  3  0.234324
  4  0.267836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331661': 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) = 5228.31274991
delta logL = 0.196597117762

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  9.824e-01  8.172e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.294e+00  4.256e+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.235e-01  2.678e-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.004e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 197.760 32.556

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/331661/cmap_HighResolution_357004801_357264001_4FGL_J1311.0+3233_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2021-09-07 04:04:50.730245', job_id='331661', GAL2='0.82', fit_tolerance='1e-08', EG2='1.00', EG='1.02', time_epoch_completed='1631012690.73', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.97e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='454' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:04:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 331661: <4FGL_J1311.0+3233_daily_bin454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin454 197.76 32.5565 357004801 357264001 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 :                                   810.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            840 sec.

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

