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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin157
RA = 203.02, Dec = -5.1611
tmin = 280022401, tmax = 280281601
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='735768', job_status='RUN', time_executed='2021-09-08 01:32:46.747251', time_epoch_executed='1631089966.75' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735768/ft1_4FGL_J1332.0-0509_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735768/ft1_4FGL_J1332.0-0509_daily_bin157.fits outfile=/scratch/kocevski/735768/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin157.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=280022401.0 tmax=280281601.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.64
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.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/735768/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin157.fits evtable="EVENTS" outfile="/scratch/kocevski/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.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.61
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/735768/ltcube_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.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/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits
.....................!
real 15.67
user 15.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/735768/ltcube_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.fits outfile=/scratch/kocevski/735768/expmap_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.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/735768/ltcube_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.fits
.....................!
real 192.52
user 186.30
sys 5.59

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/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits scfile=/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits outfile=/scratch/kocevski/735768/cmap_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits scfile=/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits outfile=/scratch/kocevski/735768/cmap_HighResolution_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.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.70
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735768/Model_4FGL_J1332.0-0509_daily_bin157.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/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits.....................!
real 58.73
user 57.30
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits', '/scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits', expMap='/scratch/kocevski/735768/expmap_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.fits', expCube='/scratch/kocevski/735768/ltcube_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/735768/Model_4FGL_J1332.0-0509_daily_bin157.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/735768/ft1_filtered_4FGL_J1332.0-0509_daily_bin157.fits
Spacecraft file(s): /scratch/kocevski/735768/ft2_4FGL_J1332.0-0509_daily_bin157.fits
Exposure map: /scratch/kocevski/735768/expmap_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.fits
Exposure cube: /scratch/kocevski/735768/ltcube_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/735768/Model_4FGL_J1332.0-0509_daily_bin157.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) = 7213.40511646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2348       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5935       1.0000         .10000E-03   10000.    
     5 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6572       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4519       1.0000         .10000E-03   10000.    
    12 'norm      '    16.576       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4223       1.0000         .10000E-03   10000.    
    14 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.995       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26938E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .64054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3927       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0966       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2221       1.0000         .10000E-03   10000.    
    22 'norm      '    6.4854       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6673       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63499       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=   7213.377     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2766 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.292       -.21445E-06** at limit **
   2  norm          .10000E-03    7.0853        .36141E-07** at limit **
   3  norm          1.2347        .27865        .31267E-07    .10158E-02
   4  Prefactor     2.6516        196.89       -.13042E-04    .33765E-05
   5  norm          .10000E-03    6.1233        .39810E-06** at limit **
   6  norm          .10000E-03    3.3848       -.15193E-08** at limit **
   7  Prefactor     .10000E-03    15.117       -.31418E-07** at limit **
   8  Prefactor     7.1080        14.238        .13238E-06    .20276E-04
   9  Prefactor     9.6552        10.978        .60134E-08    .38388E-04
  10  Prefactor     .10000E-03    45.084       -.25459E-06** at limit **
  11  norm          4.4516        1.8276        .15291E-06    .59702E-03
  12  norm          16.572        5.4279       -.37990E-06    .10498E-03
  13  norm          4.4240        6.4000        .25375E-05    .66319E-03
  14  norm          .10000E-03    14.474       -.92774E-07** at limit **
  15  Prefactor     .10000E-03    3.6164       -.40789E-07** at limit **
  16  Prefactor     35.047        33.130        .58097E-06    .31792E-05
  17  Prefactor     .10112E-03    32.201        .41058E-05** at limit **
  18  norm          .10018E-03    8.0273       -.25631E-05** at limit **
  19  Prefactor     3.3761        18.036        .68125E-06    .21364E-04
  20  norm          1.0966        1.3994       -.63593E-08    .71037E-04
  21  Prefactor     8.2521        44.797       -.18575E-05    .24240E-06
  22  norm          6.4858        8.3989       -.54710E-07   -.95978E-05
  23  Normalizat    1.6674        .22648       -.43037E-06    .19918E-03
  24  Prefactor     .63482        .13379        .38479E-06    .20449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.23471
  Prefactor  = 2.65162
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.10805
  Prefactor  = 9.65521
  Prefactor  = 0.0001
  norm       = 4.45165
  norm       = 16.5717
  norm       = 4.424
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.0465
  Prefactor  = 0.00010112
  norm       = 0.000100177
  Prefactor  = 3.37611
  norm       = 1.09659
  Prefactor  = 8.25208
  norm       = 6.48581
  Normalizat = 1.66742
  Prefactor  = 0.634816
 **********
 **   18 **HESSE 
 **********

 FCN=   7213.377     FROM HESSE     STATUS=OK           413 CALLS     3179 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.0874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2347        .27913        .20164E-04   -1.5486    
   4  Prefactor     2.6516        198.69        .25337E-03   -1.5382    
   5  norm          .10000E-03    6.2195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3871        .15260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1080        14.242        .15051E-03   -1.5175    
   9  Prefactor     9.6552        10.994        .12895E-03   -1.5086    
  10  Prefactor     .10000E-03    45.686        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4516        1.8319        .34840E-03   -1.5286    
  12  norm          16.572        5.4170        .98373E-04   -1.4894    
  13  norm          4.4240        6.5347        .95750E-03   -1.5287    
  14  norm          .10000E-03    14.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6656        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.047        33.034        .67742E-04   -1.4523    
  17  Prefactor     .10112E-03    26.420        .14868       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10018E-03    49.745        .38819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3761        17.407        .21966E-03   -1.5340    
  20  norm          1.0966        1.3721        .11016E-03   -1.5499    
  21  Prefactor     8.2521        43.870        .13982E-03   -1.5133    
  22  norm          6.4858        8.3970        .78797E-03   -1.5199    
  23  Normalizat    1.6674        .26838        .27807E-03   -.73177    
  24  Prefactor     .63482        .15649        .26506E-03   -1.0614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1168e-09
Minuit parameter uncertainties:
  1  1.19908e-05
  2  4.86254e-06
  3  0.279127
  4  46.0646
  5  4.96367e-05
  6  9.81895e-07
  7  1.94066e-05
  8  14.2485
  9  10.9963
  10  5.58543e-05
  11  1.83196
  12  5.41713
  13  6.53572
  14  8.51304e-06
  15  7.41077e-06
  16  33.0511
  17  0.0108862
  18  0.00594003
  19  15.3389
  20  1.37215
  21  38.0971
  22  8.39857
  23  0.268617
  24  0.156595
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.452e+00  1.832e+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:  6.348e-01  1.566e-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:  1.667e+00  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.02
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 5.54e-08
Energy Flux (Fixed Index): 4.05e-05 +/- 1.67e-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) = 7213.14903822
delta logL = 0.227670275155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7213.14657627
delta logL = 0.230132226995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1346       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7728       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65975       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=   7213.147     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      232 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1351        21.784        .49559E-02    .54375E-03
   2  alpha         2.7718        3.8275        .33253        .66696E-04
   3  Normalizat    1.6085        .14707        .63733E-01    .63681E-04
   4  Prefactor     .65964        .66799E-01    .41863E-01    .98096E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13509
  alpha      = 2.77181
  Normalizat = 1.60849
  Prefactor  = 0.659643
 **********
 **   18 **HESSE 
 **********

 FCN=   7213.147     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1351        1.8878        .61351E-04   -1.5301    
   2  alpha         2.7718        .57813        .12932E-01    .10894    
   3  Normalizat    1.6085        .26805        .28188E-03   -.74774    
   4  Prefactor     .65964        .16072        .26031E-03   -1.0513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15897e-11
Minuit parameter uncertainties:
  1  1.88779
  2  0.583473
  3  0.268294
  4  0.160835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735768': 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) = 7213.14657448
delta logL = 0.230134023339

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.135e+00  1.888e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.772e+00  5.835e-01  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:  6.596e-01  1.608e-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:  1.608e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.50
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.77 +/- 0.58
Photon Flux (Free Index): 1.80e-07 +/- 9.23e-08
Energy Flux (Free Index): 4.21e-05 +/- 1.60e-05

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/735768/cmap_HighResolution_280022401_280281601_4FGL_J1332.0-0509_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='4.21e-05', photon_flux_error='5.54e-08', dlogl='2.30e-01', energy_flux='4.05e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-08 01:43:47.965651', photon_index_error2='0.58', photon_index2='2.77', ts='13.02', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.67', time_epoch_completed='1631090627.97', return_code='0', job_id='735768', GAL2='0.66', EG2='1.61', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='9.23e-08', ts2='13.50', photon_index='2.39' WHERE bin_id='157' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:43:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 735768: <4FGL_J1332.0-0509_daily_bin157> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin157> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:41 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:30:56 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:30:56 2021
Terminated at Wed Sep  8 01:43:48 2021
Results reported at Wed Sep  8 01:43:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin157 203.02 -5.1611 280022401 280281601 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 :                                   656.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            787 sec.

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

