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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin393
RA = 197.76, Dec = 32.5565
tmin = 341193601, tmax = 341452801
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='331570', job_status='RUN', time_executed='2021-09-07 03:51:00.194626', time_epoch_executed='1631011860.19' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331570/ft1_4FGL_J1311.0+3233_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331570/ft2_4FGL_J1311.0+3233_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331570/ft1_4FGL_J1311.0+3233_daily_bin393.fits outfile=/scratch/kocevski/331570/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin393.fits ra=197.76 dec=32.5565 rad=12.0 tmin=341193601.0 tmax=341452801.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.49
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/331570/ft2_4FGL_J1311.0+3233_daily_bin393.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/331570/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin393.fits evtable="EVENTS" outfile="/scratch/kocevski/331570/ft1_filtered_4FGL_J1311.0+3233_daily_bin393.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/331570/ft1_filtered_4FGL_J1311.0+3233_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/331570/ft2_4FGL_J1311.0+3233_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/331570/ltcube_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.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/331570/ft2_4FGL_J1311.0+3233_daily_bin393.fits
.....................!
real 16.15
user 15.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331570/ft1_filtered_4FGL_J1311.0+3233_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/331570/ft2_4FGL_J1311.0+3233_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/331570/ltcube_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.fits outfile=/scratch/kocevski/331570/expmap_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.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/331570/ltcube_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.fits
.....................!
real 194.27
user 189.12
sys 4.18

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/331570/ft1_filtered_4FGL_J1311.0+3233_daily_bin393.fits scfile=/scratch/kocevski/331570/ft2_4FGL_J1311.0+3233_daily_bin393.fits outfile=/scratch/kocevski/331570/cmap_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331570/ft1_filtered_4FGL_J1311.0+3233_daily_bin393.fits scfile=/scratch/kocevski/331570/ft2_4FGL_J1311.0+3233_daily_bin393.fits outfile=/scratch/kocevski/331570/cmap_HighResolution_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.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.54
user 0.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.4053       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2835       1.0000         .10000E-03   10000.    
    11 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.695       1.0000         .10000E-03   10000.    
    14 'norm      '    17.245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8178       1.0000         .10000E-03   10000.    
    18 'norm      '    13.988       1.0000         .10000E-03   10000.    
    19 'norm      '    .11687E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.407       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.650       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3016       1.0000         .10000E-03   10000.    
    25 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.904       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90482       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0014       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=   5272.907     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3474 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2140        3.3218       -.96086E-07   -.18226E-03
   2  Prefactor     .10000E-03    2.9891        .17482E-07** at limit **
   3  Prefactor     5.4054        2.6150        .34888E-07    .61880E-04
   4  Prefactor     .10000E-03    1.1667       -.12705E-07** at limit **
   5  norm          .10000E-03    1.6206        .14187E-07** at limit **
   6  Prefactor     36.385        14.954        .29431E-07    .55529E-05
   7  Prefactor     .10000E-03    9.6491       -.23575E-05** at limit **
   8  Prefactor     .10000E-03    46.276       -.13530E-07** at limit **
   9  Prefactor     .10000E-03    2.1420       -.40249E-07** at limit **
  10  Prefactor     3.2834        4.5845        .26452E-05   -.13894E-02
  11  norm          .10000E-03    2.0010        .17630E-07** at limit **
  12  Prefactor     .10002E-03    35.253        .72960E-05** at limit **
  13  Prefactor     21.693        21.090       -.41170E-06   -.94195E-04
  14  norm          17.245        5.7387        .35813E-07    .41796E-04
  15  Prefactor     18.253        15.575       -.92324E-06   -.92318E-05
  16  norm          .10000E-03    1.7287        .18377E-07** at limit **
  17  norm          7.8177        11.985        .74916E-06   -.18137E-03
  18  norm          13.991        5.1404       -.31809E-06   -.46355E-03
  19  norm          .10000E-03    18.796       -.14345E-05** at limit **
  20  norm          13.406        14.539        .78033E-08    .20819E-05
  21  Prefactor     .10000E-03    1.4107       -.21939E-07** at limit **
  22  Prefactor     .10000E-03    20.440       -.17919E-05** at limit **
  23  norm          15.651        8.1670        .35691E-07   -.22945E-04
  24  Prefactor     7.3008        36.811       -.14768E-06   -.56031E-05
  25  norm          .10000E-03    6.8964        .26505E-06** at limit **
  26  Prefactor     14.903        12.787        .47394E-07   -.98620E-05
  27  Prefactor     .10000E-03    10.862        .27701E-05** at limit **
  28  Prefactor     .10002E-03    48.474       -.68540E-05** at limit **
  29  Prefactor     .10000E-03    1.8010       -.14634E-07** at limit **
  30  Normalizat    .90478        .17822        .39514E-07    .87540E-05
  31  Prefactor     1.0015        .21845       -.21591E-06    .25218E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.21403
  Prefactor  = 0.0001
  Prefactor  = 5.40536
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 36.3854
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.2834
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 21.6928
  norm       = 17.2447
  Prefactor  = 18.2529
  norm       = 0.0001
  norm       = 7.81775
  norm       = 13.9906
  norm       = 0.0001
  norm       = 13.4063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.6509
  Prefactor  = 7.30084
  norm       = 0.0001
  Prefactor  = 14.9033
  Prefactor  = 0.000100003
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Normalizat = 0.904779
  Prefactor  = 1.00149
 **********
 **   18 **HESSE 
 **********

 FCN=   5272.907     FROM HESSE     STATUS=OK           622 CALLS     4096 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2140        3.3288        .91890E-04   -1.5209    
   2  Prefactor     .10000E-03    3.0213        .12260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4054        2.6195        .77398E-04   -1.5243    
   4  Prefactor     .10000E-03    1.1822        .76499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6253        .90271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.385        14.940        .66440E-04   -1.4501    
   7  Prefactor     .10000E-03    9.9088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1463        .10379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.2834        5.0844        .95516E-03   -1.5346    
  11  norm          .10000E-03    2.0189        .10025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    37.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.693        21.099        .85994E-04   -1.4776    
  14  norm          17.245        5.7412        .96447E-04   -1.4877    
  15  Prefactor     18.253        15.687        .93748E-04   -1.4853    
  16  norm          .10000E-03    1.7342        .93192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8177        12.025        .71706E-03   -1.5149    
  18  norm          13.991        5.0721        .91814E-04   -1.4960    
  19  norm          .10000E-03    18.881        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.406        14.538        .10939E-03   -1.4976    
  21  Prefactor     .10000E-03    1.4284        .84115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.651        8.1591        .10124E-03   -1.4917    
  24  Prefactor     7.3008        36.769        .14844E-03   -1.5167    
  25  norm          .10000E-03    6.9740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.903        12.791        .10375E-03   -1.4936    
  27  Prefactor     .10000E-03    11.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    50.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.8206        .95132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90478        .20772        .23820E-03   -.96292    
  31  Prefactor     1.0015        .25401        .28339E-03   -.92680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00931e-09
Minuit parameter uncertainties:
  1  3.32893
  2  6.76222e-07
  3  2.61957
  4  4.40809e-07
  5  4.33443e-07
  6  14.9412
  7  0.000286802
  8  9.9586e-06
  9  2.62187e-06
  10  5.08502
  11  5.92856e-06
  12  0.00173421
  13  21.1058
  14  5.74141
  15  15.6908
  16  2.74029e-06
  17  12.0287
  18  5.0723
  19  0.000150277
  20  14.5422
  21  6.07285e-06
  22  0.00019464
  23  8.15966
  24  32.8005
  25  2.31476e-05
  26  12.7937
  27  0.000356992
  28  0.00189277
  29  1.49925e-06
  30  0.2079
  31  0.254317
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.503e-04  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.001e+00  2.543e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.048e-01  2.079e-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: 5.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/331570/likelihoodResults_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.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) = 5272.90736759
delta logL = -0.0002525177797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5272.9071162
delta logL = -1.12426641863e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12628E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2550       1.0000          .0000       5.0000    
     3 'Normalizat'    .90480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0015       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=   5272.907     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      199 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    145.33        .64819E-01** at limit **
   2  alpha         2.3277        3.7835        .41404       -.21189E-04
   3  Normalizat    .90478        .21770E-01    .44963E-01    .12627E-04
   4  Prefactor     1.0015        .27253E-01    .45140E-01    .27732E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100019
  alpha      = 2.32773
  Normalizat = 0.904779
  Prefactor  = 1.00149
 **********
 **   18 **HESSE 
 **********

 FCN=   5272.907     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    23.220        .34775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3277        3.5196        .50000       -.68961E-01
   3  Normalizat    .90478        .20039        .23820E-03   -.96292    
   4  Prefactor     1.0015        .25077        .28339E-03   -.92680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55027e-09
Minuit parameter uncertainties:
  1  0.00133515
  2  2.53555
  3  0.200558
  4  0.251058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331570': 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) = 5272.90711461
delta logL = 4.60393493995e-07

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.335e-03  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.328e+00  2.536e+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:  1.001e+00  2.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  9.048e-01  2.006e-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/331570/cmap_HighResolution_341193601_341452801_4FGL_J1311.0+3233_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-05', job_status='DONE', photon_flux_upper_limit='5.55e-08', time_completed='2021-09-07 04:04:09.243718', job_id='331570', GAL2='1.00', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631012649.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='393' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:04:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 331570: <4FGL_J1311.0+3233_daily_bin393> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin393 197.76 32.5565 341193601 341452801 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 :                                   780.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

