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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin346
RA = 203.02, Dec = -5.1611
tmin = 329011201, tmax = 329270401
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='736027', job_status='RUN', time_executed='2021-09-08 01:33:31.068214', time_epoch_executed='1631090011.07' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736027

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736027/ft1_4FGL_J1332.0-0509_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736027/ft1_4FGL_J1332.0-0509_daily_bin346.fits outfile=/scratch/kocevski/736027/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin346.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=329011201.0 tmax=329270401.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 3.67
user 3.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.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/736027/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.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.56
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/736027/ltcube_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.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/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits
.....................!
real 17.68
user 17.12
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/736027/ltcube_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.fits outfile=/scratch/kocevski/736027/expmap_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.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/736027/ltcube_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.fits
.....................!
real 194.66
user 187.84
sys 5.68

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

Setting source of interest to:
4FGL J1332.0-0509 @ 203.02 -5.1611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits scfile=/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits outfile=/scratch/kocevski/736027/cmap_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.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.02 yref=-5.1611 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits scfile=/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits outfile=/scratch/kocevski/736027/cmap_HighResolution_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.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.02 yref=-5.1611 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736027/Model_4FGL_J1332.0-0509_daily_bin346.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/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits.....................!
real 62.09
user 60.47
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits', '/scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits', expMap='/scratch/kocevski/736027/expmap_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.fits', expCube='/scratch/kocevski/736027/ltcube_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/736027/Model_4FGL_J1332.0-0509_daily_bin346.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.0-0509'

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/736027/ft1_filtered_4FGL_J1332.0-0509_daily_bin346.fits
Spacecraft file(s): /scratch/kocevski/736027/ft2_4FGL_J1332.0-0509_daily_bin346.fits
Exposure map: /scratch/kocevski/736027/expmap_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.fits
Exposure cube: /scratch/kocevski/736027/ltcube_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/736027/Model_4FGL_J1332.0-0509_daily_bin346.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) = 7982.25329184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.111       1.0000         .10000E-03   10000.    
     2 'norm      '    7.1281       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.5701       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3211       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2287       1.0000         .10000E-03   10000.    
    11 'norm      '    .55532       1.0000         .10000E-03   10000.    
    12 'norm      '    .32467       1.0000         .10000E-03   10000.    
    13 'norm      '    .41406E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.802       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0793       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4604       1.0000         .10000E-03   10000.    
    20 'norm      '    2.3312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.537       1.0000         .10000E-03   10000.    
    22 'norm      '    12.807       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95095       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7982.220     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2770 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.084        39.029       -.25540E-05   -.73736E-04
   2  norm          7.1222        35.620        .82133E-08   -.99961E-05
   3  norm          3.2910        .41701        .28846E-07   -.63739E-03
   4  Prefactor     .10000E-03    160.14        .12235E-05** at limit **
   5  norm          9.5587        9.0673        .30745E-06    .75338E-04
   6  norm          .10000E-03    3.2739        .16701E-07** at limit **
   7  Prefactor     3.3213        6.3102        .11273E-06   -.89956E-04
   8  Prefactor     .10000E-03    9.7366        .45442E-07** at limit **
   9  Prefactor     .10000E-03    3.3663       -.17944E-06** at limit **
  10  Prefactor     6.2241        9.8182       -.11170E-05   -.14487E-03
  11  norm          .55579        1.1477        .40702E-06   -.25230E-03
  12  norm          .32828        2.3296        .22925E-05   -.26221E-03
  13  norm          .10000E-03    2.3975       -.21724E-06** at limit **
  14  norm          13.785        30.249       -.45831E-06   -.25489E-04
  15  Prefactor     5.0864        5.2713        .22500E-06   -.11887E-03
  16  Prefactor     21.383        26.026        .18325E-06   -.50912E-05
  17  Prefactor     .10000E-03    25.354       -.13029E-06** at limit **
  18  norm          .10000E-03    4.9155       -.39088E-07** at limit **
  19  Prefactor     5.4516        14.182        .16052E-05    .96197E-04
  20  norm          2.3316        2.0607        .10146E-06   -.84580E-04
  21  Prefactor     14.504        37.375       -.22456E-05   -.76167E-04
  22  norm          12.808        10.777        .15387E-07    .82839E-06
  23  Normalizat    .95120        .21927       -.73338E-06   -.47146E-04
  24  Prefactor     1.1213        .13931       -.11473E-06   -.84006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0845
  norm       = 7.12217
  norm       = 3.29099
  Prefactor  = 0.0001
  norm       = 9.55866
  norm       = 0.0001
  Prefactor  = 3.32128
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.2241
  norm       = 0.555789
  norm       = 0.328284
  norm       = 0.000100004
  norm       = 13.7852
  Prefactor  = 5.08641
  Prefactor  = 21.3835
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.45159
  norm       = 2.33161
  Prefactor  = 14.5037
  norm       = 12.8079
  Normalizat = 0.951203
  Prefactor  = 1.12131
 **********
 **   18 **HESSE 
 **********

 FCN=   7982.220     FROM HESSE     STATUS=OK           409 CALLS     3179 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.084        39.726        .94113E-04   -1.4857    
   2  norm          7.1222        35.601        .15025E-03   -1.5174    
   3  norm          3.2910        .41982        .18903E-04   -1.5345    
   4  Prefactor     .10000E-03    161.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.5587        9.0774        .12954E-03   -1.5090    
   6  norm          .10000E-03    3.2759        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3213        6.2836        .22212E-03   -1.5343    
   8  Prefactor     .10000E-03    9.7748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.271        .31098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2241        9.7113        .16085E-03   -1.5209    
  11  norm          .55579        1.1278        .12989E-03   -1.5559    
  12  norm          .32828        2.3757        .25423E-03   -1.5593    
  13  norm          .10000E-03    25.557        .26079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.785        30.320        .10781E-03   -1.4965    
  15  Prefactor     5.0864        5.2251        .17841E-03   -1.5257    
  16  Prefactor     21.383        25.986        .86629E-04   -1.4783    
  17  Prefactor     .10000E-03    25.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.9733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4516        14.326        .17196E-03   -1.5241    
  20  norm          2.3316        2.0513        .11579E-03   -1.5403    
  21  Prefactor     14.504        38.226        .10505E-03   -1.4946    
  22  norm          12.808        10.777        .11193E-03   -1.4992    
  23  Normalizat    .95120        .25003        .34494E-03   -.94684    
  24  Prefactor     1.1213        .16119        .21449E-03   -.88788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82812e-10
Minuit parameter uncertainties:
  1  39.7841
  2  31.877
  3  0.419824
  4  7.90436e-05
  5  9.07875
  6  1.51551e-07
  7  6.28488
  8  4.57844e-07
  9  0.000282039
  10  9.71374
  11  1.12779
  12  1.76606
  13  0.000672444
  14  30.3543
  15  5.22558
  16  26.0001
  17  1.90626e-05
  18  3.2948e-06
  19  14.3348
  20  2.05133
  21  38.2904
  22  10.779
  23  0.250333
  24  0.161255
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.558e-01  1.128e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.121e+00  1.613e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.512e-01  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.30
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736027/likelihoodResults_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.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) = 7982.15349876
delta logL = 0.066378044824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7982.15205613
delta logL = 0.0678206766388

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7982.152     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52699        30.214        .11387E-01    .18817E-02
   2  alpha         2.8888        3.1046        .41796        .32115E-04
   3  Normalizat    .93899        .53809E-01    .78393E-01    .27299E-04
   4  Prefactor     1.1262        .37042E-01    .36678E-01    .13276E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.526986
  alpha      = 2.88876
  Normalizat = 0.938994
  Prefactor  = 1.12617
 **********
 **   18 **HESSE 
 **********

 FCN=   7982.152     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52699        1.0884        .10381E-03   -1.5563    
   2  alpha         2.8888        1.4209        .37698E-01    .15614    
   3  Normalizat    .93899        .24030        .34698E-03   -.95103    
   4  Prefactor     1.1262        .15952        .21408E-03   -.88635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56325e-09
Minuit parameter uncertainties:
  1  1.08846
  2  1.51398
  3  0.240571
  4  0.159586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736027': 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) = 7982.15205249
delta logL = 0.0678243118473

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.270e-01  1.088e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.889e+00  1.514e+00  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.126e+00  1.596e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.390e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 203.020 -5.161

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/736027/cmap_HighResolution_329011201_329270401_4FGL_J1332.0-0509_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-09-08 01:46:38.370355', job_id='736027', GAL2='1.13', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1631090798.37', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.78e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='346' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 736027: <4FGL_J1332.0-0509_daily_bin346> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin346> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:59 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:32:16 2021
Terminated at Wed Sep  8 01:46:38 2021
Results reported at Wed Sep  8 01:46:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin346 203.02 -5.1611 329011201 329270401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.0-0509 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   783.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            939 sec.

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

