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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin759
RA = 197.76, Dec = 32.5565
tmin = 436060801, tmax = 436320001
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='334379', job_status='RUN', time_executed='2021-09-07 04:05:01.392000', time_epoch_executed='1631012701.39' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334379/ft1_4FGL_J1311.0+3233_daily_bin759.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334379/ft2_4FGL_J1311.0+3233_daily_bin759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334379/ft1_4FGL_J1311.0+3233_daily_bin759.fits outfile=/scratch/kocevski/334379/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin759.fits ra=197.76 dec=32.5565 rad=12.0 tmin=436060801.0 tmax=436320001.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 5.85
user 5.54
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334379/ft2_4FGL_J1311.0+3233_daily_bin759.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/334379/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin759.fits evtable="EVENTS" outfile="/scratch/kocevski/334379/ft1_filtered_4FGL_J1311.0+3233_daily_bin759.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.37
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334379/ft1_filtered_4FGL_J1311.0+3233_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/334379/ft2_4FGL_J1311.0+3233_daily_bin759.fits sctable="SC_DATA" expcube=/scratch/kocevski/334379/ltcube_436060801_436320001_4FGL_J1311.0+3233_daily_bin759.fits outfile=/scratch/kocevski/334379/expmap_436060801_436320001_4FGL_J1311.0+3233_daily_bin759.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/334379/ltcube_436060801_436320001_4FGL_J1311.0+3233_daily_bin759.fits
.....................!
real 194.54
user 187.78
sys 5.56

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/334379/ft1_filtered_4FGL_J1311.0+3233_daily_bin759.fits scfile=/scratch/kocevski/334379/ft2_4FGL_J1311.0+3233_daily_bin759.fits outfile=/scratch/kocevski/334379/cmap_436060801_436320001_4FGL_J1311.0+3233_daily_bin759.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.76
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334379/ft1_filtered_4FGL_J1311.0+3233_daily_bin759.fits scfile=/scratch/kocevski/334379/ft2_4FGL_J1311.0+3233_daily_bin759.fits outfile=/scratch/kocevski/334379/cmap_HighResolution_436060801_436320001_4FGL_J1311.0+3233_daily_bin759.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/334379/ft1_filtered_4FGL_J1311.0+3233_daily_bin759.fits evtable="EVENTS" scfile=/scratch/kocevski/334379/ft2_4FGL_J1311.0+3233_daily_bin759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334379/Model_4FGL_J1311.0+3233_daily_bin759.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/334379/ft1_filtered_4FGL_J1311.0+3233_daily_bin759.fits.....................!
real 42.71
user 39.70
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.4102       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .90634E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12552E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2092       1.0000         .10000E-03   10000.    
     5 'norm      '    .66116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7095       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1275       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0527       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.019       1.0000         .10000E-03   10000.    
    16 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    29.775       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3296       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14507E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    25.918       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13764E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    128.47       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1679       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83947       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=   4267.401     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4133 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.4213        4.1455        .98671E-08    .43646E-04
   2  Prefactor     .10000E-03    8.2102        .46811E-06** at limit **
   3  Prefactor     .10000E-03    1.4811       -.96216E-07** at limit **
   4  Prefactor     2.2098        2.1563       -.11725E-06   -.11096E-03
   5  norm          .66039        5.6824        .28798E-05    .21864E-03
   6  Prefactor     12.146        11.282        .86339E-06    .15180E-03
   7  Prefactor     .10000E-03    20.466        .37946E-06** at limit **
   8  Prefactor     .10000E-03    28.355       -.90958E-06** at limit **
   9  Prefactor     .10000E-03    4.0642       -.45675E-08** at limit **
  10  Prefactor     4.7099        6.7692        .16298E-06    .18945E-04
  11  norm          6.1268        4.7499        .10561E-07    .15358E-04
  12  Prefactor     39.498        83.134       -.82155E-07   -.41992E-05
  13  Prefactor     .10000E-03    11.848        .16404E-07** at limit **
  14  norm          2.0526        2.3820       -.10415E-07   -.49525E-04
  15  Prefactor     25.017        26.898        .45501E-07   -.14918E-04
  16  norm          .10000E-03    5.0502       -.12977E-06** at limit **
  17  norm          .10000E-03    16.155       -.29486E-06** at limit **
  18  norm          .10000E-03    2.4287       -.59895E-07** at limit **
  19  norm          .10000E-03    2.7574       -.17502E-07** at limit **
  20  norm          29.775        22.066        .75283E-07   -.84013E-04
  21  Prefactor     6.3293        5.1127        .36862E-06    .12347E-03
  22  Prefactor     .10000E-03    45.647       -.83865E-07** at limit **
  23  norm          .10005E-03    8.3571        .22453E-05** at limit **
  24  Prefactor     .10000E-03    56.552        .95644E-06** at limit **
  25  norm          .10000E-03    4.3805        .25580E-07** at limit **
  26  Prefactor     25.906        22.547       -.28467E-06   -.75430E-04
  27  Prefactor     .10000E-03    80.807       -.17581E-05** at limit **
  28  Prefactor     128.48        114.78        .63248E-06    .26319E-04
  29  Prefactor     .10000E-03    2.8199       -.91843E-09** at limit **
  30  Normalizat    1.1676        .21843       -.37906E-06   -.14860E-03
  31  Prefactor     .83999        .24830       -.32529E-06   -.12933E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.42127
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.20979
  norm       = 0.660394
  Prefactor  = 12.1459
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.70993
  norm       = 6.12685
  Prefactor  = 39.4981
  Prefactor  = 0.0001
  norm       = 2.05256
  Prefactor  = 25.0166
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 29.7752
  Prefactor  = 6.32933
  Prefactor  = 0.0001
  norm       = 0.000100045
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 25.9062
  Prefactor  = 0.000100004
  Prefactor  = 128.48
  Prefactor  = 0.0001
  Normalizat = 1.16761
  Prefactor  = 0.839994
 **********
 **   18 **HESSE 
 **********

 FCN=   4267.401     FROM HESSE     STATUS=OK           618 CALLS     4751 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.4213        3.9454        .91643E-04   -1.5163    
   2  Prefactor     .10000E-03    28.642        .35992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3574        .14708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2098        2.1643        .91558E-04   -1.5411    
   5  norm          .66039        5.9835        .30724E-03   -1.5545    
   6  Prefactor     12.146        11.308        .57479E-03   -1.5011    
   7  Prefactor     .10000E-03    20.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0823        .12861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.7099        6.7515        .18543E-03   -1.5274    
  11  norm          6.1268        4.7502        .12144E-03   -1.5213    
  12  Prefactor     39.498        83.233        .63778E-04   -1.4450    
  13  Prefactor     .10000E-03    11.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0526        2.3800        .10578E-03   -1.5421    
  15  Prefactor     25.017        26.918        .80085E-04   -1.4707    
  16  norm          .10000E-03    5.0907        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4576        .99311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7608        .10593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          29.775        21.980        .73425E-04   -1.4616    
  21  Prefactor     6.3293        5.1060        .12480E-03   -1.5205    
  22  Prefactor     .10000E-03    46.770        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10005E-03    20.616        .29195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    56.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.3876        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     25.906        22.563        .78687E-04   -1.4690    
  27  Prefactor     .10000E-03    81.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     128.48        115.60        .35520E-04   -1.3436    
  29  Prefactor     .10000E-03    2.8479        .10708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1676        .26976        .22946E-03   -.87610    
  31  Prefactor     .83999        .30303        .31225E-03   -.98271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59111e-09
Minuit parameter uncertainties:
  1  3.94553
  2  0.000306534
  3  1.9969e-06
  4  2.16438
  5  3.97588
  6  11.3102
  7  0.000170559
  8  0.000485672
  9  1.13008e-06
  10  6.75259
  11  4.75046
  12  83.4793
  13  9.22073e-06
  14  2.38016
  15  26.9312
  16  1.08403e-05
  17  0.000112739
  18  3.89017e-06
  19  1.08483e-06
  20  21.9855
  21  5.10639
  22  8.69838e-05
  23  0.00193626
  24  0.000734635
  25  3.37845e-06
  26  22.5709
  27  0.00111083
  28  115.802
  29  1.63822e-06
  30  0.270081
  31  0.30364
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  8.400e-01  3.036e-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.168e+00  2.701e-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: 4.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334379/likelihoodResults_436060801_436320001_4FGL_J1311.0+3233_daily_bin759.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) = 4267.40275492
delta logL = -0.00163612913002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4267.40111873
delta logL = 6.35445758235e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2595       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84000       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.

 FCN=   4267.401     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      243 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    224.01        .10676E-01** at limit **
   2  alpha         1.4483        4.2201        .16558        .40921E-07
   3  Normalizat    1.1676        .43895E-01    .22946E-03    .56978E-05
   4  Prefactor     .84000        .51758E-01    .31225E-03    .63352E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.44833
  Normalizat = 1.16761
  Prefactor  = 0.839995
 **********
 **   18 **HESSE 
 **********

 FCN=   4267.401     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5958        .12089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4483        3.8557        .66232E-02   -.43418    
   3  Normalizat    1.1676        .25438        .91783E-05   -.87610    
   4  Prefactor     .84000        .29969        .12490E-04   -.98270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3245e-11
Minuit parameter uncertainties:
  1  1.8985e-05
  2  278.546
  3  0.254653
  4  0.300273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334379': 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) = 4267.4011146
delta logL = 4.1868788685e-06

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.899e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.448e+00  2.785e+02  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.400e-01  3.003e-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.168e+00  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/334379/cmap_HighResolution_436060801_436320001_4FGL_J1311.0+3233_daily_bin759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='4.00e-08', time_completed='2021-09-07 04:17:13.053587', job_id='334379', GAL2='0.84', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631013433.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='759' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:17:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 334379: <4FGL_J1311.0+3233_daily_bin759> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin759> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:43 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:01:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 04:01:52 2021
Terminated at Tue Sep  7 04:17:13 2021
Results reported at Tue Sep  7 04:17:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin759 197.76 32.5565 436060801 436320001 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 :                                   727.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            990 sec.

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

