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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin652
RA = 197.76, Dec = 32.5565
tmin = 408326401, tmax = 408585601
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='334227', job_status='RUN', time_executed='2021-09-07 04:04:29.692813', time_epoch_executed='1631012669.69' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334227/ft1_4FGL_J1311.0+3233_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334227/ft2_4FGL_J1311.0+3233_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334227/ft1_4FGL_J1311.0+3233_daily_bin652.fits outfile=/scratch/kocevski/334227/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin652.fits ra=197.76 dec=32.5565 rad=12.0 tmin=408326401.0 tmax=408585601.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.88
user 4.64
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334227/ft1_filtered_4FGL_J1311.0+3233_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/334227/ft2_4FGL_J1311.0+3233_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/334227/ltcube_408326401_408585601_4FGL_J1311.0+3233_daily_bin652.fits outfile=/scratch/kocevski/334227/expmap_408326401_408585601_4FGL_J1311.0+3233_daily_bin652.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/334227/ltcube_408326401_408585601_4FGL_J1311.0+3233_daily_bin652.fits
.....................!
real 191.25
user 185.70
sys 5.08

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/334227/ft1_filtered_4FGL_J1311.0+3233_daily_bin652.fits scfile=/scratch/kocevski/334227/ft2_4FGL_J1311.0+3233_daily_bin652.fits outfile=/scratch/kocevski/334227/cmap_408326401_408585601_4FGL_J1311.0+3233_daily_bin652.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334227/ft1_filtered_4FGL_J1311.0+3233_daily_bin652.fits scfile=/scratch/kocevski/334227/ft2_4FGL_J1311.0+3233_daily_bin652.fits outfile=/scratch/kocevski/334227/cmap_HighResolution_408326401_408585601_4FGL_J1311.0+3233_daily_bin652.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51442E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45145E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3490       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1109       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9585       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9569       1.0000         .10000E-03   10000.    
    11 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    108.35       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15510       1.0000         .10000E-03   10000.    
    14 'norm      '    3.7332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.437       1.0000         .10000E-03   10000.    
    16 'norm      '    .10833E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    61.233       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6130       1.0000         .10000E-03   10000.    
    19 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    39.110       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.055       1.0000         .10000E-03   10000.    
    23 'norm      '    12.391       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.512       1.0000         .10000E-03   10000.    
    25 'norm      '    26.362       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.770       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.0914       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99517       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96323       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=   4138.112     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     4827 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    50.739       -.21035E-05** at limit **
   2  Prefactor     .10002E-03    36.613       -.50548E-05** at limit **
   3  Prefactor     7.3563        4.0752       -.22179E-06   -.95230E-03
   4  Prefactor     .10000E-03    .96747       -.18061E-07** at limit **
   5  norm          5.1122        6.1437       -.11814E-06   -.60627E-04
   6  Prefactor     7.9607        14.042       -.93553E-07   -.57425E-04
   7  Prefactor     .10000E-03    17.440       -.24919E-06** at limit **
   8  Prefactor     .10000E-03    31.758       -.99738E-07** at limit **
   9  Prefactor     4.9590        5.5856        .17936E-07    .26529E-05
  10  Prefactor     4.9573        8.9163       -.43006E-08   -.89449E-04
  11  norm          .10000E-03    2.5403       -.89894E-08** at limit **
  12  Prefactor     108.70        148.31        .21964E-05    .12350E-04
  13  Prefactor     .83148E-01    246.87        .11618E-04   -.16962E-03
  14  norm          3.7335        3.6967        .26002E-07   -.88926E-05
  15  Prefactor     22.455        29.293       -.32045E-06   -.11112E-03
  16  norm          .10000E-03    7.6816        .51655E-06** at limit **
  17  norm          61.223        37.817       -.41645E-06   -.16981E-04
  18  norm          3.6129        3.6492        .36038E-06    .63297E-03
  19  norm          .10002E-03    12.256        .71940E-06** at limit **
  20  norm          39.129        30.651       -.35307E-06   -.17540E-04
  21  Prefactor     .10000E-03    4.3900       -.43040E-07** at limit **
  22  Prefactor     18.028        29.790       -.21028E-05   -.17655E-03
  23  norm          12.390        10.785        .95036E-07    .50682E-05
  24  Prefactor     16.830        272.87        .14433E-06   -.11568E-04
  25  norm          26.361        16.530        .10750E-06    .19176E-06
  26  Prefactor     .10000E-03    14.037        .19703E-06** at limit **
  27  Prefactor     16.774        27.307        .11306E-06    .14824E-06
  28  Prefactor     .10000E-03    45.225        .19509E-07** at limit **
  29  Prefactor     2.0926        3.6329       -.16041E-06   -.73852E-04
  30  Normalizat    .99549        .27519       -.44668E-05   -.24865E-03
  31  Prefactor     .96281        .30954        .51392E-05   -.51317E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100101
  Prefactor  = 0.000100025
  Prefactor  = 7.35627
  Prefactor  = 0.0001
  norm       = 5.11222
  Prefactor  = 7.96072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.959
  Prefactor  = 4.95734
  norm       = 0.0001
  Prefactor  = 108.696
  Prefactor  = 0.0831485
  norm       = 3.73352
  Prefactor  = 22.455
  norm       = 0.0001
  norm       = 61.2229
  norm       = 3.6129
  norm       = 0.000100016
  norm       = 39.1293
  Prefactor  = 0.0001
  Prefactor  = 18.0277
  norm       = 12.3897
  Prefactor  = 16.8303
  norm       = 26.3613
  Prefactor  = 0.0001
  Prefactor  = 16.7743
  Prefactor  = 0.0001
  Prefactor  = 2.09258
  Normalizat = 0.995494
  Prefactor  = 0.962805
 **********
 **   18 **HESSE 
 **********

 FCN=   4138.112     FROM HESSE     STATUS=OK           642 CALLS     5469 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10010E-03    56.919        .19626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    56.322        .38467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.3563        3.5702        .80733E-04   -1.5165    
   4  Prefactor     .10000E-03    .96932        .61740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1122        6.1335        .16675E-03   -1.5256    
   6  Prefactor     7.9607        14.020        .14213E-03   -1.5144    
   7  Prefactor     .10000E-03    17.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9590        5.5841        .15666E-03   -1.5263    
  10  Prefactor     4.9573        8.8768        .18064E-03   -1.5263    
  11  norm          .10000E-03    2.5520        .10011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     108.70        147.81        .19319E-03   -1.3619    
  13  Prefactor     .83148E-01    32.899        .10061       -1.5650    
  14  norm          3.7335        3.6893        .11844E-03   -1.5321    
  15  Prefactor     22.455        29.227        .84561E-04   -1.4760    
  16  norm          .10000E-03    7.8783        .17430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          61.223        37.774        .25638E-03   -1.4141    
  18  norm          3.6129        3.7638        .11973E-03   -1.5328    
  19  norm          .10002E-03    16.682        .29571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          39.129        30.620        .64092E-04   -1.4456    
  21  Prefactor     .10000E-03    4.3810        .13040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.028        29.771        .94258E-04   -1.4859    
  23  norm          12.390        10.765        .11380E-03   -1.5004    
  24  Prefactor     16.830        274.09        .98564E-04   -1.4887    
  25  norm          26.361        16.506        .78023E-04   -1.4681    
  26  Prefactor     .10000E-03    14.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.774        27.301        .97802E-04   -1.4889    
  28  Prefactor     .10000E-03    45.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.0926        3.6099        .15553E-03   -1.5419    
  30  Normalizat    .99549        .28007        .25380E-03   -.93182    
  31  Prefactor     .96281        .31550        .30206E-03   -.93980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84278e-09
Minuit parameter uncertainties:
  1  0.0047997
  2  0.00236679
  3  3.57027
  4  7.05698e-08
  5  6.13422
  6  14.0262
  7  2.01821e-05
  8  5.99686e-06
  9  5.58467
  10  8.87919
  11  1.46387e-06
  12  148.312
  13  3.30773
  14  3.68948
  15  29.2457
  16  8.28227e-05
  17  37.7886
  18  3.76403
  19  0.00104761
  20  30.632
  21  4.70048e-05
  22  29.7952
  23  10.767
  24  136.583
  25  16.5084
  26  5.87104e-05
  27  27.3216
  28  1.85702e-05
  29  3.61027
  30  0.280484
  31  0.316101
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  1.048e-03  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:  9.628e-01  3.161e-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.955e-01  2.805e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334227/likelihoodResults_408326401_408585601_4FGL_J1311.0+3233_daily_bin652.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) = 4138.11242774
delta logL = -0.00028669340827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4138.11214067
delta logL = 3.78666300094e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3760       1.0000          .0000       5.0000    
     3 'Normalizat'    .99552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96283       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=   4138.112     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      244 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    225.35        .48903E-01** at limit **
   2  alpha         2.4190        2.9361        .41216       -.11681E-04
   3  Normalizat    .99550        .37885E-01    .46111E-01   -.65056E-05
   4  Prefactor     .96280        .44615E-01    .68286E-01    .18766E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 2.41904
  Normalizat = 0.995498
  Prefactor  = 0.962802
 **********
 **   18 **HESSE 
 **********

 FCN=   4138.112     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.934        .28534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4190        3.5353        .16486       -.32389E-01
   3  Normalizat    .99550        .25965        .25381E-03   -.93181    
   4  Prefactor     .96280        .30546        .30206E-03   -.93980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50459e-10
Minuit parameter uncertainties:
  1  0.000399903
  2  2.50909
  3  0.259982
  4  0.30601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334227': 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) = 4138.1121404
delta logL = 6.46873559162e-07

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.000e-04  3.999e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.419e+00  2.509e+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:  9.628e-01  3.060e-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.955e-01  2.600e-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/334227/cmap_HighResolution_408326401_408585601_4FGL_J1311.0+3233_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='5.08e-08', time_completed='2021-09-07 04:16:55.786811', job_id='334227', GAL2='0.96', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631013415.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='652' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 04:16:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 334227: <4FGL_J1311.0+3233_daily_bin652> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin652> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 04:00:32 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 04:00: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 04:00:53 2021
Terminated at Tue Sep  7 04:16:56 2021
Results reported at Tue Sep  7 04:16:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin652 197.76 32.5565 408326401 408585601 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 :                                   745.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            984 sec.

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

