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


Performing analysis on: 4FGL_J1333.7+5056_daily_bin1110
RA = 203.439, Dec = 50.9366
tmin = 527040001, tmax = 527299201
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='779623', job_status='RUN', time_executed='2021-09-08 03:42:38.385389', time_epoch_executed='1631097758.39' WHERE source_name='4FGL J1333.7+5056' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779623/ft1_4FGL_J1333.7+5056_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779623/ft1_4FGL_J1333.7+5056_daily_bin1110.fits outfile=/scratch/kocevski/779623/ft1_filteredMKT_4FGL_J1333.7+5056_daily_bin1110.fits ra=203.439 dec=50.9366 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.08
user 5.76
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/779623/ltcube_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.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/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits
.....................!
real 17.26
user 16.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/779623/ltcube_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.fits outfile=/scratch/kocevski/779623/expmap_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.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/779623/ltcube_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.fits
.....................!
real 192.28
user 187.05
sys 4.75

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/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits scfile=/scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits outfile=/scratch/kocevski/779623/cmap_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits scfile=/scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits outfile=/scratch/kocevski/779623/cmap_HighResolution_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.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/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/779623/Model_4FGL_J1333.7+5056_daily_bin1110.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/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits....................!
real 37.43
user 36.00
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits', '/scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits', expMap='/scratch/kocevski/779623/expmap_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.fits', expCube='/scratch/kocevski/779623/ltcube_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/779623/Model_4FGL_J1333.7+5056_daily_bin1110.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/779623/ft1_filtered_4FGL_J1333.7+5056_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/779623/ft2_4FGL_J1333.7+5056_daily_bin1110.fits
Exposure map: /scratch/kocevski/779623/expmap_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.fits
Exposure cube: /scratch/kocevski/779623/ltcube_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/779623/Model_4FGL_J1333.7+5056_daily_bin1110.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) = 3706.45050809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7221       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6622       1.0000         .10000E-03   10000.    
     4 'norm      '    10.413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44555E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    15.332       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12169E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9794       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8798       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3206       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.6370       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3724       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .76112       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=   3706.266     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     3870 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7227        8.3704       -.20878E-06   -.18648E-04
   2  Prefactor     .10000E-03    19.673       -.24594E-05** at limit **
   3  Prefactor     6.6622        6.7230       -.58478E-05    .23549E-03
   4  norm          10.413        4.7776        .13656E-05    .73163E-03
   5  Prefactor     .10000E-03    26.794       -.14989E-06** at limit **
   6  norm          1.1582        1.6930       -.28361E-07   -.85116E-04
   7  Prefactor     .10000E-03    25.560        .68943E-05** at limit **
   8  Prefactor     .40661E-01    14.690       -.28367E-05    .54890E-03
   9  norm          15.330        21.968       -.18923E-06   -.11391E-04
  10  norm          .10000E-03    3.7598       -.70155E-07** at limit **
  11  Prefactor     .10000E-03    26.340        .29257E-05** at limit **
  12  Prefactor     .10000E-03    41.518        .19792E-04** at limit **
  13  Prefactor     .10000E-03    112.54        .23689E-05** at limit **
  14  norm          5.9749        5.5837       -.27028E-06   -.39529E-03
  15  Prefactor     .10000E-03    35.836       -.78645E-05** at limit **
  16  Prefactor     .10000E-03    74.497       -.28652E-04** at limit **
  17  norm          1.8787        2.0782       -.13516E-06   -.30206E-03
  18  norm          .10000E-03    60.479        .96697E-05** at limit **
  19  norm          3.3210        3.6162        .63970E-07    .80802E-04
  20  norm          .10000E-03    15.096       -.16936E-05** at limit **
  21  Prefactor     .10000E-03    289.72       -.57368E-04** at limit **
  22  Prefactor     .10000E-03    137.91        .50791E-04** at limit **
  23  Prefactor     .10000E-03    18.974       -.14906E-06** at limit **
  24  Prefactor     .10000E-03    3.6357        .99944E-07** at limit **
  25  Prefactor     .10000E-03    66.343       -.11407E-04** at limit **
  26  Prefactor     3.6380        3.7970       -.18984E-06   -.22211E-03
  27  Prefactor     .10000E-03    26.451        .22043E-05** at limit **
  28  Prefactor     .10000E-03    30.005       -.14609E-04** at limit **
  29  Prefactor     .10000E-03    62.409        .32475E-05** at limit **
  30  Prefactor     .10000E-03    15.182        .20939E-05** at limit **
  31  Prefactor     .10000E-03    13.344       -.84420E-07** at limit **
  32  Normalizat    1.3723        .22585        .90094E-06    .19572E-03
  33  Prefactor     .76111        .27073       -.24312E-06    .10638E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.72269
  Prefactor  = 0.0001
  Prefactor  = 6.6622
  norm       = 10.4129
  Prefactor  = 0.0001
  norm       = 1.15816
  Prefactor  = 0.0001
  Prefactor  = 0.0406614
  norm       = 15.3298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.97494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87867
  norm       = 0.0001
  norm       = 3.32097
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37234
  Prefactor  = 0.76111
 **********
 **   18 **HESSE 
 **********

 FCN=   3706.266     FROM HESSE     STATUS=OK           689 CALLS     4559 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7227        8.3674        .13572E-03   -1.5117    
   2  Prefactor     .10000E-03    19.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6622        6.7254        .15013E-03   -1.5192    
   4  norm          10.413        4.8093        .82572E-04   -1.5062    
   5  Prefactor     .10000E-03    26.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.1582        1.6521        .93180E-04   -1.5493    
   7  Prefactor     .10000E-03    25.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .40661E-01    28.828        .61727E-01   -1.5668    
   9  norm          15.330        21.970        .10229E-03   -1.4925    
  10  norm          .10000E-03    3.8377        .11525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    113.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9749        5.5807        .13376E-03   -1.5219    
  15  Prefactor     .10000E-03    35.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    74.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8787        2.0623        .88022E-04   -1.5434    
  18  norm          .10000E-03    60.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3210        3.6168        .11728E-03   -1.5343    
  20  norm          .10000E-03    15.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    289.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    138.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6547        .11335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    67.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.6380        3.7895        .11566E-03   -1.5326    
  27  Prefactor     .10000E-03    26.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    30.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    62.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    15.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    13.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3723        .27086        .21244E-03   -.81432    
  33  Prefactor     .76111        .32168        .33170E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23631e-09
Minuit parameter uncertainties:
  1  8.36847
  2  5.5453e-06
  3  6.72614
  4  4.8095
  5  9.88642e-06
  6  1.65213
  7  3.82379e-06
  8  2.16371
  9  21.9812
  10  3.86272e-06
  11  1.11683e-05
  12  9.81844e-05
  13  9.69518e-05
  14  5.58114
  15  1.20177e-06
  16  8.14428e-05
  17  2.06234
  18  1.25948e-06
  19  3.617
  20  2.45723e-06
  21  2.94253e-06
  22  0.000445285
  23  4.45581e-06
  24  1.51567e-07
  25  4.71573e-05
  26  3.78975
  27  1.38011e-06
  28  1.41591e-05
  29  1.02994e-05
  30  1.13469e-07
  31  3.15061e-06
  32  0.271143
  33  0.32247
Done.

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

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  5.975e+00  5.581e+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:  7.611e-01  3.225e-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:  1.372e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 203.439 50.937
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.87e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.38e-05

TS (Fixed Index): 2.83
Ra Dec: 203.439 50.937
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779623/likelihoodResults_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.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) = 3706.22100525
delta logL = 0.0450793247551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3706.21812866
delta logL = 0.04795591433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3324       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0220       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75494       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=   3706.218     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      201 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3324        279.42        .39877E-02    .83771E-04
   2  alpha         2.0220        3.4454        .40431       -.27459E-04
   3  Normalizat    1.3808        .17414        .47932E-01    .96383E-05
   4  Prefactor     .75494        .19157        .75216E-01    .63385E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.33242
  alpha      = 2.022
  Normalizat = 1.38082
  Prefactor  = 0.754937
 **********
 **   18 **HESSE 
 **********

 FCN=   3706.218     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3324        6.0339        .14096E-03   -1.5205    
   2  alpha         2.0220        .73459        .14847E-01   -.19238    
   3  Normalizat    1.3808        .26629        .21189E-03   -.81185    
   4  Prefactor     .75494        .31934        .33293E-03   -1.0141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71452e-11
Minuit parameter uncertainties:
  1  6.03452
  2  0.746033
  3  0.266559
  4  0.32012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779623': 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) = 3706.21812866
delta logL = 0.0479559147816

Extracting fit parameters...

4FGL J1333.7+5056
   Spectrum: LogParabola
350         norm:  6.332e+00  6.035e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        alpha:  2.022e+00  7.460e-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:  7.549e-01  3.201e-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:  1.381e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 203.439 50.937
Photon Index (Free Index): 2.02 +/- 0.75
Photon Flux (Free Index): 3.18e-08 +/- 3.78e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.83e-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/779623/cmap_HighResolution_527040001_527299201_4FGL_J1333.7+5056_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-05', comment='SUCCESS', photon_flux='3.87e-08', energy_flux2='1.70e-05', photon_flux_error='3.62e-08', dlogl='4.80e-02', energy_flux='1.48e-05', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-09-08 03:55:15.168616', photon_index_error2='0.75', photon_index2='2.02', ts='2.83', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.83e-05', EG='1.37', time_epoch_completed='1631098515.17', return_code='0', job_id='779623', GAL2='0.75', EG2='1.38', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.78e-08', ts2='2.93', photon_index='2.25' WHERE bin_id='1110' AND source_name='4FGL J1333.7+5056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:55:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 779623: <4FGL_J1333.7+5056_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1333.7+5056_daily_bin1110> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 03:40:34 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:40:38 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:40:38 2021
Terminated at Wed Sep  8 03:55:15 2021
Results reported at Wed Sep  8 03:55:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.7+5056_daily_bin1110 203.439 50.9366 527040001 527299201 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 :                                   752.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            881 sec.

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

