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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin1598
RA = 197.76, Dec = 32.5565
tmin = 653529601, tmax = 653788801
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='726506', job_status='RUN', time_executed='2021-09-20 00:30:30.738997', time_epoch_executed='1632123030.74' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726506

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726506/ft1_4FGL_J1311.0+3233_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726506/ft2_4FGL_J1311.0+3233_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726506/ft1_4FGL_J1311.0+3233_daily_bin1598.fits outfile=/scratch/kocevski/726506/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin1598.fits ra=197.76 dec=32.5565 rad=12.0 tmin=653529601.0 tmax=653788801.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.08
user 4.82
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726506/ft1_filtered_4FGL_J1311.0+3233_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/726506/ft2_4FGL_J1311.0+3233_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/726506/ltcube_653529601_653788801_4FGL_J1311.0+3233_daily_bin1598.fits outfile=/scratch/kocevski/726506/expmap_653529601_653788801_4FGL_J1311.0+3233_daily_bin1598.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/726506/ltcube_653529601_653788801_4FGL_J1311.0+3233_daily_bin1598.fits
.....................!
real 191.46
user 185.23
sys 5.77

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/726506/ft1_filtered_4FGL_J1311.0+3233_daily_bin1598.fits scfile=/scratch/kocevski/726506/ft2_4FGL_J1311.0+3233_daily_bin1598.fits outfile=/scratch/kocevski/726506/cmap_653529601_653788801_4FGL_J1311.0+3233_daily_bin1598.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726506/ft1_filtered_4FGL_J1311.0+3233_daily_bin1598.fits scfile=/scratch/kocevski/726506/ft2_4FGL_J1311.0+3233_daily_bin1598.fits outfile=/scratch/kocevski/726506/cmap_HighResolution_653529601_653788801_4FGL_J1311.0+3233_daily_bin1598.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4949       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90115       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1459       1.0000         .10000E-03   10000.    
     5 'norm      '    14.878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.225       1.0000         .10000E-03   10000.    
     8 'Prefactor '    66.291       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3948       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.616       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42621       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3814       1.0000         .10000E-03   10000.    
    17 'norm      '    19.383       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4321       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7018       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5031       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .44793       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.8181       1.0000         .10000E-03   10000.    
    23 'norm      '    .15340E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.803       1.0000         .10000E-03   10000.    
    25 'norm      '    9.1697       1.0000         .10000E-03   10000.    
    26 'Prefactor '    26.290       1.0000         .10000E-03   10000.    
    27 'Prefactor '    40.096       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.0953       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0735       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0880       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=   6353.832     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4177 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4948        3.4276       -.11544E-06    .48264E-03
   2  Prefactor     .10000E-03    3.1717        .62854E-07** at limit **
   3  Prefactor     .90116        1.8924        .64125E-06    .35860E-03
   4  Prefactor     2.1459        1.8996       -.28783E-07   -.40373E-03
   5  norm          14.878        6.6746        .27422E-07   -.12970E-03
   6  Prefactor     6.5107        7.0382        .19578E-07   -.15367E-03
   7  Prefactor     10.226        12.602       -.26742E-07   -.14090E-04
   8  Prefactor     66.294        62.919        .35794E-07    .34179E-04
   9  Prefactor     .10000E-03    3.3303        .69027E-07** at limit **
  10  Prefactor     4.3919        6.1058        .36075E-08   -.40321E-03
  11  norm          3.6393        3.7943       -.75828E-07    .28334E-03
  12  Prefactor     39.589        54.366       -.41194E-06   -.32466E-04
  13  Prefactor     .10000E-03    20.221       -.28112E-06** at limit **
  14  norm          .10000E-03    4.3915        .20766E-06** at limit **
  15  Prefactor     .45428        144.41        .69249E-05   -.61631E-04
  16  norm          4.3794        4.5758       -.34524E-06   -.22677E-03
  17  norm          19.385        15.060        .66098E-07   -.12535E-05
  18  norm          3.4321        3.4719       -.59213E-07   -.87012E-04
  19  norm          4.7019        5.2815       -.11182E-06    .61015E-04
  20  norm          5.5022        20.578       -.53009E-06   -.40757E-04
  21  Prefactor     .45224        10.376        .50566E-05   -.39013E-03
  22  Prefactor     9.8130        21.200       -.32129E-05   -.33311E-03
  23  norm          .10000E-03    9.4701       -.35786E-05** at limit **
  24  Prefactor     10.804        155.01       -.60015E-05   -.48053E-04
  25  norm          9.1687        8.5413       -.75708E-06    .44971E-04
  26  Prefactor     26.296        19.152        .22142E-06   -.27283E-04
  27  Prefactor     40.094        23.769        .36311E-07   -.10964E-04
  28  Prefactor     .10000E-03    25.576        .45189E-06** at limit **
  29  Prefactor     4.0951        3.7032        .98576E-07   -.13681E-03
  30  Normalizat    1.0735        .18812       -.16763E-05   -.37838E-03
  31  Prefactor     1.0881        .22663        .84139E-06   -.64297E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.49483
  Prefactor  = 0.0001
  Prefactor  = 0.90116
  Prefactor  = 2.14591
  norm       = 14.8783
  Prefactor  = 6.51073
  Prefactor  = 10.2264
  Prefactor  = 66.2941
  Prefactor  = 0.0001
  Prefactor  = 4.39195
  norm       = 3.63927
  Prefactor  = 39.5895
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.454282
  norm       = 4.37941
  norm       = 19.3846
  norm       = 3.43211
  norm       = 4.70192
  norm       = 5.50224
  Prefactor  = 0.452244
  Prefactor  = 9.81301
  norm       = 0.000100001
  Prefactor  = 10.8044
  norm       = 9.16872
  Prefactor  = 26.296
  Prefactor  = 40.0943
  Prefactor  = 0.0001
  Prefactor  = 4.09512
  Normalizat = 1.07348
  Prefactor  = 1.08808
 **********
 **   18 **HESSE 
 **********

 FCN=   6353.832     FROM HESSE     STATUS=OK           640 CALLS     4817 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4948        3.4351        .97053E-04   -1.5198    
   2  Prefactor     .10000E-03    3.1836        .13863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .90116        1.8473        .15465E-02   -1.5518    
   4  Prefactor     2.1459        1.9033        .99537E-04   -1.5415    
   5  norm          14.878        6.6732        .10384E-03   -1.4936    
   6  Prefactor     6.5107        7.0316        .15728E-03   -1.5198    
   7  Prefactor     10.226        12.595        .12530E-03   -1.5068    
   8  Prefactor     66.294        62.879        .49293E-04   -1.4078    
   9  Prefactor     .10000E-03    3.3494        .14207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3919        6.0829        .19211E-03   -1.5289    
  11  norm          3.6393        3.7775        .15068E-03   -1.5326    
  12  Prefactor     39.589        54.432        .63683E-04   -1.4449    
  13  Prefactor     .10000E-03    20.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.5871        .32601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .45428        157.04        .48124E-02   -1.5573    
  16  norm          4.3794        4.6096        .15528E-03   -1.5289    
  17  norm          19.385        15.063        .90973E-04   -1.4827    
  18  norm          3.4321        3.5225        .12625E-03   -1.5337    
  19  norm          4.7019        5.3760        .16801E-03   -1.5274    
  20  norm          5.5022        20.482        .17127E-03   -1.5239    
  21  Prefactor     .45224        18.973        .20592E-02   -1.5573    
  22  Prefactor     9.8130        23.361        .12789E-03   -1.5081    
  23  norm          .10000E-03    15.926        .30528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.804        159.04        .12190E-03   -1.5050    
  25  norm          9.1687        8.2286        .13235E-03   -1.5102    
  26  Prefactor     26.296        19.171        .78129E-04   -1.4682    
  27  Prefactor     40.094        23.770        .63302E-04   -1.4441    
  28  Prefactor     .10000E-03    25.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     4.0951        3.7072        .14010E-03   -1.5303    
  30  Normalizat    1.0735        .22284        .24294E-03   -.90608    
  31  Prefactor     1.0881        .26692        .30173E-03   -.89849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01566e-09
Minuit parameter uncertainties:
  1  3.43519
  2  4.42729e-06
  3  1.84744
  4  1.90339
  5  6.67352
  6  7.0325
  7  12.598
  8  62.9422
  9  1.19345e-07
  10  6.08371
  11  3.77773
  12  54.5001
  13  0.000186952
  14  6.82042e-06
  15  16.9356
  16  4.60999
  17  15.0659
  18  3.52271
  19  5.37651
  20  20.5086
  21  5.85986
  22  23.3825
  23  0.000188473
  24  83.1727
  25  8.22961
  26  19.1751
  27  23.7756
  28  5.57981e-05
  29  3.70736
  30  0.223038
  31  0.267244
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  1.088e+00  2.672e-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.073e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 197.760 32.556
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 1.30e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 9.38e-06 +/- 1.07e-05

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

Saving results to:
/scratch/kocevski/726506/likelihoodResults_653529601_653788801_4FGL_J1311.0+3233_daily_bin1598.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) = 6353.56617944
delta logL = 0.266149245122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6353.56583587
delta logL = 0.266492812354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8532       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6113       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0871       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=   6353.566     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      302 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8550        7.8962        .14309E-03    .52360E-04
   2  alpha         1.6112        .84449        .21827E-01    .68303E-04
   3  Normalizat    1.0772        .20831        .24261E-03   -.33786E-04
   4  Prefactor     1.0871        .26117        .30190E-03   -.17699E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.85498
  alpha      = 1.61117
  Normalizat = 1.07715
  Prefactor  = 1.08705
 **********
 **   18 **HESSE 
 **********

 FCN=   6353.566     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8550        7.8197        .57234E-05   -1.5147    
   2  alpha         1.6112        .83704        .43655E-02   -.36349    
   3  Normalizat    1.0772        .20855        .97045E-05   -.90489    
   4  Prefactor     1.0871        .26148        .12076E-04   -.89881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66803e-12
Minuit parameter uncertainties:
  1  7.8207
  2  0.856062
  3  0.208711
  4  0.261784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726506': 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) = 6353.56583572
delta logL = 0.266492959322

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  7.855e+00  7.821e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  1.611e+00  8.561e-01  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.087e+00  2.618e-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.077e+00  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 197.760 32.556
Photon Index (Free Index): 1.61 +/- 0.86
Photon Flux (Free Index): 8.58e-09 +/- 9.62e-09
Energy Flux (Free Index): 1.72e-05 +/- 2.24e-05

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/726506/cmap_HighResolution_653529601_653788801_4FGL_J1311.0+3233_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', comment='SUCCESS', photon_flux='1.30e-08', energy_flux2='1.72e-05', photon_flux_error='1.48e-08', dlogl='2.66e-01', energy_flux='9.38e-06', photon_flux2='8.58e-09', job_status='DONE', time_completed='2021-09-20 00:45:59.230425', photon_index_error2='0.86', photon_index2='1.61', ts='2.50', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='4.94e-08', energy_flux_error2='2.24e-05', EG='1.07', time_epoch_completed='1632123959.23', return_code='0', job_id='726506', GAL2='1.09', EG2='1.08', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='9.62e-09', ts2='3.04', photon_index='2.27' WHERE bin_id='1598' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 726506: <4FGL_J1311.0+3233_daily_bin1598> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin1598> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 20 00:30:18 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:30:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:30:20 2021
Terminated at Mon Sep 20 00:45:59 2021
Results reported at Mon Sep 20 00:45:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin1598 197.76 32.5565 653529601 653788801 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 :                                   930.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

