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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin33
RA = 203.439, Dec = 50.9366
tmin = 247881601, tmax = 248140801
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='774999', job_status='RUN', time_executed='2021-09-08 03:26:00.223877', time_epoch_executed='1631096760.22' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/774999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/774999/ft1_4FGL_J1333.7+5056_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/774999/ft1_4FGL_J1333.7+5056_daily_bin33.fits outfile=/scratch/kocevski/774999/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin33.fits ra=203.439 dec=50.9366 rad=12.0 tmin=247881601.0 tmax=248140801.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.43
user 1.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.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/774999/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/774999/ltcube_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.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/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits
.....................!
real 15.90
user 15.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/774999/ltcube_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.fits outfile=/scratch/kocevski/774999/expmap_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.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/774999/ltcube_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.fits
.....................!
real 192.12
user 186.55
sys 4.95

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1333.7+5056 @ 203.439 50.9366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits scfile=/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits outfile=/scratch/kocevski/774999/cmap_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.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=203.439 yref=50.9366 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits scfile=/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits outfile=/scratch/kocevski/774999/cmap_HighResolution_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.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=203.439 yref=50.9366 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/774999/Model_4FGL_J1333.7+5056_daily_bin33.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/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits.....................!
real 51.92
user 50.33
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits', '/scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits', expMap='/scratch/kocevski/774999/expmap_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.fits', expCube='/scratch/kocevski/774999/ltcube_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/774999/Model_4FGL_J1333.7+5056_daily_bin33.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.7+5056'

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  2.543e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/774999/ft1_filtered_4FGL_J1333.7+5056_daily_bin33.fits
Spacecraft file(s): /scratch/kocevski/774999/ft2_4FGL_J1333.7+5056_daily_bin33.fits
Exposure map: /scratch/kocevski/774999/expmap_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.fits
Exposure cube: /scratch/kocevski/774999/ltcube_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/774999/Model_4FGL_J1333.7+5056_daily_bin33.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) = 6156.26496193

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.639       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.096       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2306       1.0000         .10000E-03   10000.    
     4 'norm      '    6.1331       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5619       1.0000         .10000E-03   10000.    
     6 'norm      '    .50690       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    38.870       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5932       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9975       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9634       1.0000         .10000E-03   10000.    
    14 'norm      '    7.2737       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    103.00       1.0000         .10000E-03   10000.    
    17 'norm      '    .57487E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3681       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .57097E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.970       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4483       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .89369       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.1583       1.0000         .10000E-03   10000.    
    28 'Prefactor '    28.388       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    11.892       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .63109       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6156.235     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4707 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.639        9.6973        .54662E-07   -.35172E-04
   2  Prefactor     35.099        27.059       -.58003E-06   -.35385E-04
   3  Prefactor     6.2308        5.1329       -.32391E-07   -.29588E-04
   4  norm          6.1332        2.6569        .28801E-07   -.22805E-04
   5  Prefactor     3.5616        10.316        .66271E-05   -.35089E-03
   6  norm          .50717        1.2537        .37878E-06    .38886E-03
   7  Prefactor     .10000E-03    19.822       -.40841E-07** at limit **
   8  Prefactor     .10000E-03    3.9643        .18607E-08** at limit **
   9  norm          38.871        17.968        .18738E-06   -.50784E-06
  10  norm          1.4045        2.3567        .88818E-07   -.20461E-03
  11  Prefactor     6.6566        97.778        .12252E-04    .72678E-04
  12  Prefactor     5.9996        13.429       -.33908E-06   -.31833E-04
  13  Prefactor     6.8822        87.658       -.91046E-05   -.10059E-03
  14  norm          7.2739        4.8024        .54608E-07   -.81615E-04
  15  Prefactor     .10000E-03    111.04       -.66469E-06** at limit **
  16  Prefactor     103.01        51.659        .78350E-06   -.38659E-05
  17  norm          .10001E-03    .55734        .73219E-07** at limit **
  18  norm          1.0389        545.20        .13074E-05   -.18365E-05
  19  norm          .10000E-03    3.1446        .49648E-07** at limit **
  20  norm          .10000E-03    9.7032        .12868E-06** at limit **
  21  Prefactor     .10001E-03    368.05        .31162E-04** at limit **
  22  Prefactor     46.975        56.840        .21884E-06   -.73347E-05
  23  Prefactor     .10000E-03    9.0393       -.15704E-06** at limit **
  24  Prefactor     2.4483        2.6271        .17365E-07   -.40176E-04
  25  Prefactor     .89135        10.456        .66400E-06   -.98412E-04
  26  Prefactor     .10000E-03    2.0909        .10139E-07** at limit **
  27  Prefactor     2.1572        38.221        .23115E-05   -.46032E-05
  28  Prefactor     28.386        27.973        .91772E-07   -.16649E-04
  29  Prefactor     .10000E-03    46.120        .80158E-07** at limit **
  30  Prefactor     .10000E-03    17.365        .16269E-06** at limit **
  31  Prefactor     11.891        19.679        .10136E-05    .40684E-05
  32  Normalizat    .63093        .16190       -.18205E-05   -.90955E-04
  33  Prefactor     1.3035        .19375        .63467E-06   -.19377E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.6391
  Prefactor  = 35.0992
  Prefactor  = 6.2308
  norm       = 6.13319
  Prefactor  = 3.56159
  norm       = 0.507172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 38.8706
  norm       = 1.40454
  Prefactor  = 6.65656
  Prefactor  = 5.99959
  Prefactor  = 6.88223
  norm       = 7.27387
  Prefactor  = 0.0001
  Prefactor  = 103.008
  norm       = 0.000100008
  norm       = 1.03894
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 46.9745
  Prefactor  = 0.0001
  Prefactor  = 2.44833
  Prefactor  = 0.891353
  Prefactor  = 0.0001
  Prefactor  = 2.15718
  Prefactor  = 28.3862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8911
  Normalizat = 0.630934
  Prefactor  = 1.30346
 **********
 **   18 **HESSE 
 **********

 FCN=   6156.235     FROM HESSE     STATUS=OK           713 CALLS     5420 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.639        9.6968        .10128E-03   -1.4917    
   2  Prefactor     35.099        27.105        .67646E-04   -1.4522    
   3  Prefactor     6.2308        5.1367        .15069E-03   -1.5209    
   4  norm          6.1332        2.6587        .78619E-04   -1.5213    
   5  Prefactor     3.5616        10.757        .10707E-02   -1.5331    
   6  norm          .50717        1.0249        .13513E-02   -1.5566    
   7  Prefactor     .10000E-03    19.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9844        .15252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          38.871        17.972        .64289E-04   -1.4460    
  10  norm          1.4045        2.3103        .14883E-03   -1.5471    
  11  Prefactor     6.6566        105.31        .15628E-03   -1.5192    
  12  Prefactor     5.9996        13.391        .16396E-03   -1.5218    
  13  Prefactor     6.8822        93.912        .15203E-03   -1.5183    
  14  norm          7.2739        4.7887        .12524E-03   -1.5168    
  15  Prefactor     .10000E-03    111.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     103.01        51.933        .39618E-04   -1.3675    
  17  norm          .10001E-03    1.3017        .20213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0389        567.22        .37290E-03   -1.5504    
  19  norm          .10000E-03    3.1905        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.7324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    368.63        .21090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.975        56.730        .58506E-04   -1.4336    
  23  Prefactor     .10000E-03    9.0416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.4483        2.6178        .12801E-03   -1.5395    
  25  Prefactor     .89135        39.987        .47959E-02   -1.5519    
  26  Prefactor     .10000E-03    2.1250        .21941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.1572        37.883        .28040E-03   -1.5414    
  28  Prefactor     28.386        27.732        .75193E-04   -1.4642    
  29  Prefactor     .10000E-03    46.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    17.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     11.891        19.690        .11617E-03   -1.5018    
  32  Normalizat    .63093        .19000        .26475E-03   -1.0669    
  33  Prefactor     1.3035        .22956        .24505E-03   -.83204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33401e-08
Minuit parameter uncertainties:
  1  9.69774
  2  27.1145
  3  5.13708
  4  2.65873
  5  10.7623
  6  1.02493
  7  6.75843e-06
  8  2.79337e-06
  9  17.9742
  10  2.31045
  11  53.0642
  12  13.3974
  13  50.9431
  14  4.78891
  15  1.71808e-05
  16  51.9561
  17  0.000207847
  18  49.0225
  19  5.85597e-07
  20  1.09935e-05
  21  0.00358292
  22  56.795
  23  1.10738e-06
  24  2.61788
  25  11.948
  26  2.96047e-06
  27  18.0928
  28  27.7445
  29  3.88483e-05
  30  7.13925e-06
  31  19.701
  32  0.190196
  33  0.229733
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  7.274e+00  4.789e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.254e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.303e+00  2.297e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  6.309e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.13
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.71e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.19e-05

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) = 6155.64546445
delta logL = 0.589570724136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6155.62746213
delta logL = 0.607573046257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5289       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9774       1.0000          .0000       5.0000    
     3 'Normalizat'    .58826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3382       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6155.627     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      251 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5281        41.916        .47294E-02    .31161E-03
   2  alpha         2.9776        3.9819        .26888        .62303E-04
   3  Normalizat    .58827        .67693E-01    .61793E-01    .37091E-04
   4  Prefactor     1.3382        .74416E-01    .54800E-01    .33333E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.52814
  alpha      = 2.97758
  Normalizat = 0.588269
  Prefactor  = 1.3382
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.627     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5281        4.9692        .83702E-04   -1.5282    
   2  alpha         2.9776        .81606        .10660E-01    .19221    
   3  Normalizat    .58827        .18075        .27339E-03   -1.0848    
   4  Prefactor     1.3382        .22861        .24229E-03   -.82178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22067e-11
Minuit parameter uncertainties:
  1  4.96962
  2  0.831903
  3  0.180935
  4  0.22878
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/774999': 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) = 6155.6274621
delta logL = 0.607573080256

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  4.528e+00  4.970e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.978e+00  8.319e-01  0.000e+00  5.000e+00 ( 1.000e+00)
352         beta:  8.960e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
353           Eb:  7.642e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.338e+00  2.288e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  5.883e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.42
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.98 +/- 0.83
Photon Flux (Free Index): 7.79e-08 +/- 4.65e-08
Energy Flux (Free Index): 1.66e-05 +/- 9.16e-06

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/774999/cmap_HighResolution_247881601_248140801_4FGL_J1333.7+5056_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-08', energy_flux2='1.66e-05', photon_flux_error='3.10e-08', dlogl='6.08e-01', energy_flux='1.80e-05', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-08 03:41:28.144045', photon_index_error2='0.83', photon_index2='2.98', ts='4.13', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='9.16e-06', EG='0.63', time_epoch_completed='1631097688.14', return_code='0', job_id='774999', GAL2='1.34', EG2='0.59', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.65e-08', ts2='5.42', photon_index='2.25' WHERE bin_id='33' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:41:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 774999: <4FGL_J1333.7+5056_daily_bin33> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin33> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 03:25:28 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:25:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 03:25:44 2021
Terminated at Wed Sep  8 03:41:28 2021
Results reported at Wed Sep  8 03:41:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin33 203.439 50.9366 247881601 248140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.7+5056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   923.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            960 sec.

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

