/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 112 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1311.0+3233_daily_bin90
RA = 197.76, Dec = 32.5565
tmin = 262656001, tmax = 262915201
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='325857', job_status='RUN', time_executed='2021-09-07 03:37:34.292241', time_epoch_executed='1631011054.29' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325857

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325857/ft1_4FGL_J1311.0+3233_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325857/ft2_4FGL_J1311.0+3233_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325857/ft1_4FGL_J1311.0+3233_daily_bin90.fits outfile=/scratch/kocevski/325857/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin90.fits ra=197.76 dec=32.5565 rad=12.0 tmin=262656001.0 tmax=262915201.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 1.44
user 1.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325857/ft1_filtered_4FGL_J1311.0+3233_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/325857/ft2_4FGL_J1311.0+3233_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/325857/ltcube_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.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/325857/ft2_4FGL_J1311.0+3233_daily_bin90.fits
.....................!
real 18.65
user 18.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325857/ft1_filtered_4FGL_J1311.0+3233_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/325857/ft2_4FGL_J1311.0+3233_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/325857/ltcube_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.fits outfile=/scratch/kocevski/325857/expmap_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.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/325857/ltcube_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.fits
.....................!
real 195.60
user 189.44
sys 4.83

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/325857/ft1_filtered_4FGL_J1311.0+3233_daily_bin90.fits scfile=/scratch/kocevski/325857/ft2_4FGL_J1311.0+3233_daily_bin90.fits outfile=/scratch/kocevski/325857/cmap_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=197.76 yref=32.5565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325857/ft1_filtered_4FGL_J1311.0+3233_daily_bin90.fits scfile=/scratch/kocevski/325857/ft2_4FGL_J1311.0+3233_daily_bin90.fits outfile=/scratch/kocevski/325857/cmap_HighResolution_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4015       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13545E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9320       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8493       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8483       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.449       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2141       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.053       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.296       1.0000         .10000E-03   10000.    
    19 'norm      '    .14978E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    5.1941       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6177       1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.965       1.0000         .10000E-03   10000.    
    25 'norm      '    5.6866       1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.759       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.0875       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1532       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .58049       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=   4580.462     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4192 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4017        3.4597        .19690E-07   -.43235E-04
   2  Prefactor     .10002E-03    9.0612       -.13150E-05** at limit **
   3  Prefactor     2.1115        2.3372       -.19102E-07   -.27588E-04
   4  Prefactor     2.9321        2.3779       -.15376E-07   -.25678E-04
   5  norm          .10000E-03    1.4521       -.97354E-08** at limit **
   6  Prefactor     .10000E-03    2.6954        .12544E-07** at limit **
   7  Prefactor     .10000E-03    10.480        .67408E-07** at limit **
   8  Prefactor     .10000E-03    16.831       -.63417E-06** at limit **
   9  Prefactor     4.8484        6.4515       -.65411E-07   -.20035E-05
  10  Prefactor     .10002E-03    24.850        .37562E-05** at limit **
  11  norm          1.8532        5.0018        .84883E-06    .91531E-04
  12  Prefactor     .10000E-03    112.00       -.18081E-05** at limit **
  13  Prefactor     30.414        37.568       -.26194E-05   -.37813E-04
  14  norm          7.2148        4.8522       -.24324E-07    .15843E-05
  15  Prefactor     .10000E-03    21.252        .95428E-06** at limit **
  16  norm          12.054        7.0811        .14564E-06   -.66893E-04
  17  norm          .10000E-03    6.9378       -.87735E-08** at limit **
  18  norm          14.288        5.7233        .90822E-06   -.30775E-03
  19  norm          .10012E-03    48.831        .39491E-05** at limit **
  20  norm          5.1924        17.550       -.13493E-05   -.17264E-04
  21  Prefactor     .10000E-03    2.6049       -.30374E-06** at limit **
  22  Prefactor     5.6292        15.176       -.12848E-05   -.96676E-05
  23  norm          .10000E-03    3.2639       -.17155E-07** at limit **
  24  Prefactor     46.960        72.489        .24258E-06    .11737E-04
  25  norm          5.6888        10.136       -.63342E-07   -.36727E-05
  26  Prefactor     39.777        23.596       -.23544E-07   -.38030E-04
  27  Prefactor     .10000E-03    21.439        .89228E-06** at limit **
  28  Prefactor     .10000E-03    27.836       -.21491E-05** at limit **
  29  Prefactor     4.0884        3.4019        .48022E-08   -.94384E-05
  30  Normalizat    1.1527        .20014       -.63023E-06   -.10266E-03
  31  Prefactor     .58106        .23219        .11873E-05   -.48466E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40167
  Prefactor  = 0.000100017
  Prefactor  = 2.11153
  Prefactor  = 2.93211
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.84837
  Prefactor  = 0.000100018
  norm       = 1.85319
  Prefactor  = 0.0001
  Prefactor  = 30.414
  norm       = 7.21481
  Prefactor  = 0.0001
  norm       = 12.0541
  norm       = 0.0001
  norm       = 14.2881
  norm       = 0.000100123
  norm       = 5.1924
  Prefactor  = 0.0001
  Prefactor  = 5.62918
  norm       = 0.0001
  Prefactor  = 46.9605
  norm       = 5.68876
  Prefactor  = 39.7769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.08838
  Normalizat = 1.15266
  Prefactor  = 0.581064
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.462     FROM HESSE     STATUS=OK           638 CALLS     4830 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4017        3.4784        .11300E-03   -1.5339    
   2  Prefactor     .10002E-03    38.733        .30962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1115        2.3393        .97509E-04   -1.5417    
   4  Prefactor     2.9321        2.3682        .89134E-04   -1.5365    
   5  norm          .10000E-03    1.4612        .79645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6984        .10851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8484        6.4439        .18267E-03   -1.5268    
  10  Prefactor     .10002E-03    42.726        .29297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8532        4.9822        .21305E-03   -1.5436    
  12  Prefactor     .10000E-03    112.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.414        37.872        .72610E-04   -1.4604    
  14  norm          7.2148        4.8463        .11586E-03   -1.5171    
  15  Prefactor     .10000E-03    21.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.054        7.0532        .11538E-03   -1.5013    
  17  norm          .10000E-03    6.9440        .17411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.288        7.3435        .91029E-04   -1.4952    
  19  norm          .10012E-03    14.633        .55921E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.1924        17.497        .88193E-03   -1.5252    
  21  Prefactor     .10000E-03    2.6494        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6292        15.340        .84746E-03   -1.5233    
  23  norm          .10000E-03    3.2725        .11917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     46.960        72.239        .58508E-04   -1.4336    
  25  norm          5.6888        10.103        .16845E-03   -1.5231    
  26  Prefactor     39.777        23.609        .63568E-04   -1.4446    
  27  Prefactor     .10000E-03    21.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    27.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.0884        3.3988        .11006E-03   -1.5304    
  30  Normalizat    1.1527        .22928        .20872E-03   -.88079    
  31  Prefactor     .58106        .26309        .33900E-03   -1.0839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85447e-10
Minuit parameter uncertainties:
  1  3.47856
  2  0.00164432
  3  2.33942
  4  2.36828
  5  1.46805e-07
  6  1.06286e-07
  7  3.42445e-06
  8  2.10188e-05
  9  6.44484
  10  0.00177919
  11  4.98331
  12  0.000175783
  13  37.9023
  14  4.84652
  15  9.89032e-06
  16  7.05367
  17  7.74103e-07
  18  7.34397
  19  0.00268568
  20  17.5144
  21  1.03386e-05
  22  15.3511
  23  1.83653e-06
  24  72.3741
  25  10.1061
  26  23.6141
  27  4.05218e-05
  28  9.42986e-05
  29  3.39896
  30  0.229484
  31  0.263646
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.001e-04  2.686e-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:  5.811e-01  2.636e-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.153e+00  2.295e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/325857/likelihoodResults_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.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) = 4580.46236614
delta logL = -4.55967865491e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4580.26774177
delta logL = 0.194578774071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68946       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5573       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59388       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=   4580.268     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      321 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68957        98.340        .89383E-04    .67907E-03
   2  alpha         3.5572        2.9830        .15634E-01    .51021E-04
   3  Normalizat    1.1298        .25108        .21012E-03    .13855E-03
   4  Prefactor     .59389        .28095        .33506E-03    .55986E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.689567
  alpha      = 3.55719
  Normalizat = 1.12984
  Prefactor  = 0.593893
 **********
 **   18 **HESSE 
 **********

 FCN=   4580.268     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68957        2.4857        .35753E-05   -1.5542    
   2  alpha         3.5572        1.4260        .62535E-03    .43662    
   3  Normalizat    1.1298        .21997        .42024E-04   -.88799    
   4  Prefactor     .59389        .25839        .13402E-04   -1.0784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9447e-10
Minuit parameter uncertainties:
  1  2.48608
  2  1.54241
  3  0.220147
  4  0.258905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325857': 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) = 4580.26774174
delta logL = 0.194578805939

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  6.896e-01  2.486e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.557e+00  1.542e+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:  5.939e-01  2.589e-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.130e+00  2.201e-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/325857/cmap_HighResolution_262656001_262915201_4FGL_J1311.0+3233_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-07 03:50:27.005968', job_id='325857', GAL2='0.59', fit_tolerance='1e-08', EG2='1.13', EG='1.15', time_epoch_completed='1631011827.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.95e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='90' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 03:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 325857: <4FGL_J1311.0+3233_daily_bin90> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin90> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 03:35:27 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:35:32 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:35:32 2021
Terminated at Tue Sep  7 03:50:27 2021
Results reported at Tue Sep  7 03:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin90 197.76 32.5565 262656001 262915201 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 :                                   769.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            900 sec.

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

