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


Performing analysis on: 4FGL_J1311.0+3233_daily_bin204
RA = 197.76, Dec = 32.5565
tmin = 292204801, tmax = 292464001
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='327461', job_status='RUN', time_executed='2021-09-07 03:42:00.495157', time_epoch_executed='1631011320.5' WHERE source_name='4FGL J1311.0+3233' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327461

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327461/ft1_4FGL_J1311.0+3233_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327461/ft2_4FGL_J1311.0+3233_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327461/ft1_4FGL_J1311.0+3233_daily_bin204.fits outfile=/scratch/kocevski/327461/ft1_filteredMKT_4FGL_J1311.0+3233_daily_bin204.fits ra=197.76 dec=32.5565 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.51
user 9.11
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327461/ft1_filtered_4FGL_J1311.0+3233_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/327461/ft2_4FGL_J1311.0+3233_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/327461/ltcube_292204801_292464001_4FGL_J1311.0+3233_daily_bin204.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/327461/ft2_4FGL_J1311.0+3233_daily_bin204.fits
.....................!
real 13.39
user 13.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327461/ft1_filtered_4FGL_J1311.0+3233_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/327461/ft2_4FGL_J1311.0+3233_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/327461/ltcube_292204801_292464001_4FGL_J1311.0+3233_daily_bin204.fits outfile=/scratch/kocevski/327461/expmap_292204801_292464001_4FGL_J1311.0+3233_daily_bin204.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/327461/ltcube_292204801_292464001_4FGL_J1311.0+3233_daily_bin204.fits
.....................!
real 191.81
user 186.51
sys 4.92

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/327461/ft1_filtered_4FGL_J1311.0+3233_daily_bin204.fits scfile=/scratch/kocevski/327461/ft2_4FGL_J1311.0+3233_daily_bin204.fits outfile=/scratch/kocevski/327461/cmap_292204801_292464001_4FGL_J1311.0+3233_daily_bin204.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.56
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7281       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54765E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.403       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6984       1.0000         .10000E-03   10000.    
    11 'norm      '    11.752       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.812       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6885       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3366       1.0000         .10000E-03   10000.    
    17 'norm      '    8.4158       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6713       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7627       1.0000         .10000E-03   10000.    
    20 'norm      '    46.312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8063       1.0000         .10000E-03   10000.    
    23 'norm      '    .43936       1.0000         .10000E-03   10000.    
    24 'Prefactor '    92.127       1.0000         .10000E-03   10000.    
    25 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.062       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.282       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2791       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .52323       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=   4059.399     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     4140 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8918        4.7701       -.29838E-06    .21201E-03
   2  Prefactor     .10000E-03    6.1038        .11383E-06** at limit **
   3  Prefactor     .10000E-03    1.0246        .99957E-07** at limit **
   4  Prefactor     6.7241        3.9534        .95770E-07    .37365E-03
   5  norm          .10000E-03    5.4840       -.53577E-07** at limit **
   6  Prefactor     .10017E-03    13.053       -.35080E-05** at limit **
   7  Prefactor     35.404        25.366       -.85541E-07    .15415E-05
   8  Prefactor     .10000E-03    57.120       -.10425E-05** at limit **
   9  Prefactor     .10000E-03    21.723        .23613E-06** at limit **
  10  Prefactor     5.6992        5.8084       -.58078E-06   -.15002E-04
  11  norm          11.754        8.3442       -.76121E-06    .10953E-03
  12  Prefactor     .10000E-03    17.389        .97901E-07** at limit **
  13  Prefactor     15.765        44.892        .61866E-05    .17125E-04
  14  norm          .10000E-03    4.0642        .53223E-06** at limit **
  15  Prefactor     1.6901        20.340        .12916E-04    .27363E-04
  16  norm          2.3377        4.2916        .83087E-06    .97129E-06
  17  norm          8.4159        8.4247        .20459E-07   -.22560E-05
  18  norm          1.6822        17.349       -.18982E-05   -.12343E-03
  19  norm          1.7560        23.685        .19864E-05    .12951E-04
  20  norm          46.340        38.605       -.30450E-05   -.11925E-03
  21  Prefactor     .10000E-03    2.0645       -.39794E-06** at limit **
  22  Prefactor     3.8062        20.295       -.24547E-05   -.35689E-04
  23  norm          .39818        15.211       -.23999E-06    .14010E-03
  24  Prefactor     92.073        85.468        .62747E-05   -.10582E-04
  25  norm          .10000E-03    25.636       -.18676E-06** at limit **
  26  Prefactor     15.069        18.838        .33555E-06   -.13897E-04
  27  Prefactor     22.286        31.879       -.98574E-07   -.43201E-04
  28  Prefactor     .10000E-03    129.28       -.19668E-05** at limit **
  29  Prefactor     .10000E-03    3.5845        .24581E-06** at limit **
  30  Normalizat    1.2788        .21888        .19342E-07   -.79212E-05
  31  Prefactor     .52342        .24296       -.26892E-05   -.41733E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.89181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.7241
  norm       = 0.0001
  Prefactor  = 0.000100165
  Prefactor  = 35.4036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69917
  norm       = 11.7538
  Prefactor  = 0.0001
  Prefactor  = 15.7646
  norm       = 0.0001
  Prefactor  = 1.69007
  norm       = 2.33772
  norm       = 8.41589
  norm       = 1.68224
  norm       = 1.75599
  norm       = 46.3398
  Prefactor  = 0.0001
  Prefactor  = 3.80618
  norm       = 0.398181
  Prefactor  = 92.0734
  norm       = 0.0001
  Prefactor  = 15.0687
  Prefactor  = 22.2855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27881
  Prefactor  = 0.523421
 **********
 **   18 **HESSE 
 **********

 FCN=   4059.399     FROM HESSE     STATUS=OK           628 CALLS     4768 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8918        4.7618        .92712E-04   -1.5079    
   2  Prefactor     .10000E-03    6.1494        .15372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0266        .62952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7241        3.8546        .90606E-04   -1.5189    
   5  norm          .10000E-03    5.5770        .14564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10017E-03    55.573        .40783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.404        25.348        .67353E-04   -1.4517    
   8  Prefactor     .10000E-03    57.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6992        5.8061        .14680E-03   -1.5230    
  11  norm          11.754        8.2991        .11686E-03   -1.5022    
  12  Prefactor     .10000E-03    17.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.765        42.926        .10072E-03   -1.4914    
  14  norm          .10000E-03    4.1163        .12546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6901        20.232        .16200E-02   -1.5448    
  16  norm          2.3377        4.2407        .84562E-03   -1.5402    
  17  norm          8.4159        8.4279        .13819E-03   -1.5128    
  18  norm          1.6822        9.9027        .21321E-03   -1.5449    
  19  norm          1.7560        14.341        .28596E-03   -1.5443    
  20  norm          46.340        39.438        .29459E-03   -1.4345    
  21  Prefactor     .10000E-03    2.0736        .88994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.8062        18.773        .20689E-03   -1.5318    
  23  norm          .39818        118.79        .43546E-02   -1.5582    
  24  Prefactor     92.073        85.123        .20934E-03   -1.3786    
  25  norm          .10000E-03    25.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.069        18.822        .10320E-03   -1.4931    
  27  Prefactor     22.286        31.859        .84856E-04   -1.4763    
  28  Prefactor     .10000E-03    130.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.2917        .23285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2788        .24421        .20809E-03   -.84201    
  31  Prefactor     .52342        .26660        .36121E-03   -1.1091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80296e-09
Minuit parameter uncertainties:
  1  4.76199
  2  1.03241e-05
  3  4.96148e-06
  4  3.85472
  5  1.02947e-05
  6  0.00606948
  7  25.3559
  8  0.000139021
  9  0.000120258
  10  5.8067
  11  8.29986
  12  2.10633e-06
  13  43.0099
  14  5.9101e-05
  15  11.6998
  16  4.24127
  17  8.42909
  18  8.16479
  19  10.0396
  20  39.46
  21  2.48497e-05
  22  16.9145
  23  13.7812
  24  85.2358
  25  9.3331e-05
  26  18.8295
  27  31.8833
  28  7.77636e-05
  29  3.52936e-05
  30  0.244426
  31  0.267244
Done.

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

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  1.756e+00  1.004e+01  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.234e-01  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.279e+00  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/327461/likelihoodResults_292204801_292464001_4FGL_J1311.0+3233_daily_bin204.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) = 4059.33155565
delta logL = 0.0671446784881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4059.31171797
delta logL = 0.0869823524695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82818       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3087       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53062       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=   4059.312     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      242 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82799        171.35        .11417E-03   -.17190E-02
   2  alpha         3.3089        2.6220        .17675E-01   -.93384E-04
   3  Normalizat    1.2643        .30274        .20892E-03   -.25524E-03
   4  Prefactor     .53061        .31197        .35865E-03   -.17294E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.827988
  alpha      = 3.30889
  Normalizat = 1.26434
  Prefactor  = 0.530607
 **********
 **   18 **HESSE 
 **********

 FCN=   4059.312     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82799        4.4838        .45667E-05   -1.5526    
   2  alpha         3.3089        1.9871        .70700E-03    .32949    
   3  Normalizat    1.2643        .23115        .41784E-04   -.84637    
   4  Prefactor     .53061        .26377        .14346E-04   -1.1059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14526e-09
Minuit parameter uncertainties:
  1  3.85382
  2  2.35915
  3  0.231343
  4  0.264383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327461': 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) = 4059.31171796
delta logL = 0.0869823655507

Extracting fit parameters...

4FGL J1311.0+3233
   Spectrum: LogParabola
332         norm:  8.280e-01  3.854e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  3.309e+00  2.359e+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.306e-01  2.644e-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.264e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/327461/cmap_HighResolution_292204801_292464001_4FGL_J1311.0+3233_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-05', job_status='DONE', photon_flux_upper_limit='5.58e-08', time_completed='2021-09-07 03:54:20.627375', job_id='327461', GAL2='0.53', fit_tolerance='1e-08', EG2='1.26', EG='1.28', time_epoch_completed='1631012060.63', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='8.70e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='204' AND source_name='4FGL J1311.0+3233' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 03:54:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 327461: <4FGL_J1311.0+3233_daily_bin204> in cluster <slac> Done

Job <4FGL_J1311.0+3233_daily_bin204> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 03:40:44 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 03:41:42 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:41:42 2021
Terminated at Tue Sep  7 03:54:21 2021
Results reported at Tue Sep  7 03:54:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1311.0+3233_daily_bin204 197.76 32.5565 292204801 292464001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1311.0+3233 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            817 sec.

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

