/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 23 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 = 7533
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1333.2+2725_daily_bin1216
RA = 203.323, Dec = 27.4221
tmin = 554515201, tmax = 554774401
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='772217', job_status='RUN', time_executed='2021-09-08 03:19:11.231502', time_epoch_executed='1631096351.23' WHERE source_name='4FGL J1333.2+2725' and cadence='daily' and bin_id='1216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772217

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772217/ft1_4FGL_J1333.2+2725_daily_bin1216.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772217/ft1_4FGL_J1333.2+2725_daily_bin1216.fits outfile=/scratch/kocevski/772217/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1216.fits ra=203.323 dec=27.4221 rad=12.0 tmin=554515201.0 tmax=554774401.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 4.14
user 3.87
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.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/772217/ft1_filteredMKT_4FGL_J1333.2+2725_daily_bin1216.fits evtable="EVENTS" outfile="/scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits" evtable="EVENTS" scfile=/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits sctable="SC_DATA" outfile=/scratch/kocevski/772217/ltcube_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.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/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits
.....................!
real 13.50
user 12.92
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits sctable="SC_DATA" expcube=/scratch/kocevski/772217/ltcube_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.fits outfile=/scratch/kocevski/772217/expmap_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.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/772217/ltcube_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.fits
.....................!
real 193.73
user 185.87
sys 6.36

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

Setting source of interest to:
4FGL J1333.2+2725 @ 203.323 27.4221

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits scfile=/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits outfile=/scratch/kocevski/772217/cmap_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.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.323 yref=27.4221 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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits scfile=/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits outfile=/scratch/kocevski/772217/cmap_HighResolution_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.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.323 yref=27.4221 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits evtable="EVENTS" scfile=/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772217/Model_4FGL_J1333.2+2725_daily_bin1216.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/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits.....................!
real 42.84
user 40.86
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits', '/scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits', expMap='/scratch/kocevski/772217/expmap_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.fits', expCube='/scratch/kocevski/772217/ltcube_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/772217/Model_4FGL_J1333.2+2725_daily_bin1216.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1333.2+2725'

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.668e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/772217/ft1_filtered_4FGL_J1333.2+2725_daily_bin1216.fits
Spacecraft file(s): /scratch/kocevski/772217/ft2_4FGL_J1333.2+2725_daily_bin1216.fits
Exposure map: /scratch/kocevski/772217/expmap_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.fits
Exposure cube: /scratch/kocevski/772217/ltcube_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/772217/Model_4FGL_J1333.2+2725_daily_bin1216.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) = 4776.55410156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5143       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .21270E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.795       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8218       1.0000         .10000E-03   10000.    
     8 'norm      '    16.705       1.0000         .10000E-03   10000.    
     9 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62781E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    81.455       1.0000         .10000E-03   10000.    
    15 'norm      '    .52408E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.993       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1000       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9005       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73925       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1263       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   4776.522     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     2979 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.204        .18142E-02** at limit **
   2  Prefactor     4.5142        4.9261        .15520E-03   -.68417E-04
   3  norm          .10000E-03    2.9450        .11566E-02** at limit **
   4  Prefactor     .10000E-03    13.778        .18142E-02** at limit **
   5  norm          .10000E-03    7.8012        .18493E-02** at limit **
   6  Prefactor     37.787        47.900        .65194E-04    .10446E-03
   7  norm          6.8298        8.3467        .15362E-03    .23897E-03
   8  norm          16.718        7.3882        .97993E-04    .42705E-03
   9  norm          .10000E-03    5.0902        .15193E-02** at limit **
  10  norm          .10000E-03    4.9628        .15035E-02** at limit **
  11  Prefactor     .10041E-03    47.244        .25365E-02** at limit **
  12  Prefactor     .10000E-03    61.631        .36285E-03** at limit **
  13  norm          .10000E-03    6.0480        .32464E-02** at limit **
  14  Prefactor     81.552        88.683        .22251E-03    .12718E-03
  15  norm          .30243E-01    6.9654        .49610E-01    .63371E-03
  16  Prefactor     12.993        31.543        .11112E-03    .30897E-04
  17  Prefactor     10.560        36.221        .12328E-03    .12633E-04
  18  Prefactor     .10000E-03    82.054        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.4124        .30990E-03** at limit **
  20  Prefactor     8.0943        12.290        .14087E-03    .33088E-05
  21  Prefactor     2.8991        6.3785        .23859E-03   -.15248E-05
  22  Normalizat    .73928        .22953        .26493E-03    .71664E-05
  23  Prefactor     1.1265        .21899        .22099E-03    .54592E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.51419
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 37.7866
  norm       = 6.82984
  norm       = 16.7175
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 81.5515
  norm       = 0.0302433
  Prefactor  = 12.993
  Prefactor  = 10.5605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.09426
  Prefactor  = 2.89914
  Normalizat = 0.739281
  Prefactor  = 1.12646
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.522     FROM HESSE     STATUS=OK           356 CALLS     3335 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.5142        4.9260        .62081E-05   -1.5283    
   3  norm          .10000E-03    2.9451        .23132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.8517        .36986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.787        47.893        .13039E-04   -1.4478    
   7  norm          6.8298        8.3441        .61447E-05   -1.5185    
   8  norm          16.718        7.3819        .39197E-05   -1.4890    
   9  norm          .10000E-03    5.0904        .30385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9628        .30070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10041E-03    47.931        .50729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    61.634        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0771        .64929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     81.552        88.603        .44503E-04   -1.3899    
  15  norm          .30243E-01    6.7779        .50530E-01   -1.5673    
  16  Prefactor     12.993        31.526        .44449E-05   -1.4987    
  17  Prefactor     10.560        36.192        .49314E-05   -1.5058    
  18  Prefactor     .10000E-03    82.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4125        .61981E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0943        12.288        .56349E-05   -1.5139    
  21  Prefactor     2.8991        6.3781        .95436E-05   -1.5367    
  22  Normalizat    .73928        .22969        .10597E-04   -1.0236    
  23  Prefactor     1.1265        .21918        .44199E-04   -.88625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01286e-08
Minuit parameter uncertainties:
  1  3.53714e-05
  2  4.92639
  3  6.73247e-06
  4  1.5164e-05
  5  0.000227131
  6  47.942
  7  8.34553
  8  7.38228
  9  1.11117e-05
  10  2.57121e-06
  11  0.00887716
  12  0.000181645
  13  3.97996e-05
  14  88.7472
  15  0.904111
  16  31.5663
  17  36.2672
  18  1.25979e-05
  19  1.71784e-05
  20  12.2917
  21  6.37961
  22  0.229987
  23  0.219354
Done.

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

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  1.056e+01  3.627e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.126e+00  2.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.393e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 203.323 27.422
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772217/likelihoodResults_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.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) = 4776.38502959
delta logL = 0.136545756425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4776.36577116
delta logL = 0.155804194686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5636       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1751       1.0000          .0000       10.000    
     3 'Normalizat'    .70612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1478       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4776.366     FROM MIGRAD    STATUS=FAILED        86 CALLS      248 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5651        695.86        .15664E-03    .23508E-03
   2  Index         3.1761        5.2589        .86503E-02    .11880E-03
   3  Normalizat    .70610        .23748        .27089E-03    .10689E-03
   4  Prefactor     1.1478        .25146        .21920E-03    .64871E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4776.366     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      334 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5651        695.86        .33794E-03    .23508E-03
   2  Index         3.1761        5.2589        .13468E-02    .11880E-03
   3  Normalizat    .70610        .23748        .29783E-03    .10689E-03
   4  Prefactor     1.1478        .25146        .22056E-03    .64871E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4776.366     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      365 TOTAL
                     EDM=   .71E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5656        24.636        .62656E-05    .21048E-04
   2  Index         3.1761        2.0278        .34601E-03    .45013E-05
   3  Normalizat    .70610        .22804        .10835E-04    .25181E-05
   4  Prefactor     1.1478        .22371        .43841E-04    .51863E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56558
  Index      = 3.17608
  Normalizat = 0.706103
  Prefactor  = 1.14779
 **********
 **   18 **HESSE 
 **********

 FCN=   4776.366     FROM HESSE     STATUS=OK            23 CALLS      388 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5656        24.061        .12531E-05   -1.5195    
   2  Index         3.1761        1.9833        .13840E-04   -.37340    
   3  Normalizat    .70610        .22798        .21671E-05   -1.0365    
   4  Prefactor     1.1478        .22362        .87682E-05   -.87953    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.62702e-13
Minuit parameter uncertainties:
  1  24.0965
  2  2.04881
  3  0.228287
  4  0.223803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772217': 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) = 4776.36577024
delta logL = 0.155805106261

Extracting fit parameters...

4FGL J1333.2+2725
   Spectrum: PowerLaw
301    Prefactor:  6.566e+00  2.410e+01  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  3.176e+00  2.049e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  9.619e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.148e+00  2.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  7.061e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 203.323 27.422

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/772217/cmap_HighResolution_554515201_554774401_4FGL_J1333.2+2725_daily_bin1216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.90e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-08 03:29:38.382104', job_id='772217', GAL2='1.15', fit_tolerance='1e-08', EG2='0.71', EG='0.74', time_epoch_completed='1631096978.38', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.56e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1216' AND source_name='4FGL J1333.2+2725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:29:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 772217: <4FGL_J1333.2+2725_daily_bin1216> in cluster <slac> Done

Job <4FGL_J1333.2+2725_daily_bin1216> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 03:15:50 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 03:18:33 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:18:33 2021
Terminated at Wed Sep  8 03:29:39 2021
Results reported at Wed Sep  8 03:29:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1333.2+2725_daily_bin1216 203.323 27.4221 554515201 554774401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1333.2+2725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.14 sec.
    Max Memory :                                 1252 MB
    Average Memory :                             313.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            829 sec.

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

