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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin531
RA = 203.02, Dec = -5.1611
tmin = 376963201, tmax = 377222401
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='737386', job_status='RUN', time_executed='2021-09-08 01:40:29.991121', time_epoch_executed='1631090429.99' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737386

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737386/ft1_4FGL_J1332.0-0509_daily_bin531.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737386/ft2_4FGL_J1332.0-0509_daily_bin531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737386/ft1_4FGL_J1332.0-0509_daily_bin531.fits outfile=/scratch/kocevski/737386/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin531.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=376963201.0 tmax=377222401.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.68
user 4.34
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737386/ft2_4FGL_J1332.0-0509_daily_bin531.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/737386/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin531.fits evtable="EVENTS" outfile="/scratch/kocevski/737386/ft1_filtered_4FGL_J1332.0-0509_daily_bin531.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.53
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737386/ft1_filtered_4FGL_J1332.0-0509_daily_bin531.fits" evtable="EVENTS" scfile=/scratch/kocevski/737386/ft2_4FGL_J1332.0-0509_daily_bin531.fits sctable="SC_DATA" outfile=/scratch/kocevski/737386/ltcube_376963201_377222401_4FGL_J1332.0-0509_daily_bin531.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/737386/ft2_4FGL_J1332.0-0509_daily_bin531.fits
.....................!
real 16.39
user 15.98
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737386/ft1_filtered_4FGL_J1332.0-0509_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/737386/ft2_4FGL_J1332.0-0509_daily_bin531.fits sctable="SC_DATA" expcube=/scratch/kocevski/737386/ltcube_376963201_377222401_4FGL_J1332.0-0509_daily_bin531.fits outfile=/scratch/kocevski/737386/expmap_376963201_377222401_4FGL_J1332.0-0509_daily_bin531.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/737386/ltcube_376963201_377222401_4FGL_J1332.0-0509_daily_bin531.fits
.....................!
real 194.01
user 188.62
sys 4.67

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/737386/ft1_filtered_4FGL_J1332.0-0509_daily_bin531.fits scfile=/scratch/kocevski/737386/ft2_4FGL_J1332.0-0509_daily_bin531.fits outfile=/scratch/kocevski/737386/cmap_376963201_377222401_4FGL_J1332.0-0509_daily_bin531.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/737386/ft1_filtered_4FGL_J1332.0-0509_daily_bin531.fits scfile=/scratch/kocevski/737386/ft2_4FGL_J1332.0-0509_daily_bin531.fits outfile=/scratch/kocevski/737386/cmap_HighResolution_376963201_377222401_4FGL_J1332.0-0509_daily_bin531.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737386/ft1_filtered_4FGL_J1332.0-0509_daily_bin531.fits evtable="EVENTS" scfile=/scratch/kocevski/737386/ft2_4FGL_J1332.0-0509_daily_bin531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737386/Model_4FGL_J1332.0-0509_daily_bin531.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/737386/ft1_filtered_4FGL_J1332.0-0509_daily_bin531.fits.....................!
real 56.86
user 54.55
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4642       1.0000         .10000E-03   10000.    
     3 'norm      '    .56809       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    20.244       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.421       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1937       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5869       1.0000         .10000E-03   10000.    
    13 'norm      '    11.816       1.0000         .10000E-03   10000.    
    14 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.425       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.408       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16746E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93219       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=   7209.241     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2697 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.158        .18714E-05** at limit **
   2  norm          5.4655        23.254       -.11041E-05   -.53384E-05
   3  norm          .56811        .21591       -.28116E-07   -.33567E-03
   4  Prefactor     .10000E-03    53.142       -.10638E-08** at limit **
   5  norm          20.247        10.864        .16692E-05   -.86848E-04
   6  norm          .10000E-03    7.7160        .20705E-06** at limit **
   7  Prefactor     .10000E-03    10.262       -.78064E-06** at limit **
   8  Prefactor     .10000E-03    4.6146        .21772E-05** at limit **
   9  Prefactor     2.9784        3.2909        .59252E-06   -.20702E-02
  10  Prefactor     28.437        26.358       -.54702E-05   -.18052E-03
  11  norm          5.1937        1.7603       -.65255E-07   -.70499E-04
  12  norm          1.5830        5.8620        .33644E-05    .15681E-03
  13  norm          11.820        8.6298        .26188E-06   -.24244E-03
  14  norm          .10000E-03    13.162       -.42325E-06** at limit **
  15  Prefactor     13.426        6.2514       -.31757E-06   -.24934E-07
  16  Prefactor     .10000E-03    10.241       -.82232E-06** at limit **
  17  Prefactor     21.401        35.399       -.16632E-05    .33457E-05
  18  norm          2.6189        5.1824       -.16732E-05   -.96777E-04
  19  Prefactor     .10000E-03    6.4819       -.75193E-07** at limit **
  20  norm          .10000E-03    1.1777        .17657E-07** at limit **
  21  Prefactor     .10000E-03    200.34       -.40568E-05** at limit **
  22  norm          .10000E-03    4.6030       -.21881E-05** at limit **
  23  Normalizat    1.0901        .20691        .77572E-06   -.55850E-04
  24  Prefactor     .93224        .13590       -.17834E-07   -.14100E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.46549
  norm       = 0.568111
  Prefactor  = 0.0001
  norm       = 20.2472
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97838
  Prefactor  = 28.4367
  norm       = 5.19375
  norm       = 1.58301
  norm       = 11.8203
  norm       = 0.0001
  Prefactor  = 13.4261
  Prefactor  = 0.0001
  Prefactor  = 21.4013
  norm       = 2.61885
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09012
  Prefactor  = 0.932245
 **********
 **   18 **HESSE 
 **********

 FCN=   7209.241     FROM HESSE     STATUS=OK           399 CALLS     3096 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4655        23.263        .17189E-03   -1.5240    
   3  norm          .56811        .21477        .23095E-04   -1.5557    
   4  Prefactor     .10000E-03    53.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          20.247        10.788        .89019E-04   -1.4808    
   6  norm          .10000E-03    7.8381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5768        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9784        7.0946        .11763E-02   -1.5363    
  10  Prefactor     28.437        25.624        .75150E-04   -1.4641    
  11  norm          5.1937        1.7626        .62296E-04   -1.5252    
  12  norm          1.5830        5.4722        .23537E-03   -1.5456    
  13  norm          11.820        8.3599        .11654E-03   -1.5020    
  14  norm          .10000E-03    13.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.426        6.2218        .10932E-03   -1.4975    
  16  Prefactor     .10000E-03    10.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.401        35.449        .86567E-04   -1.4782    
  18  norm          2.6189        5.1502        .25204E-03   -1.5384    
  19  Prefactor     .10000E-03    6.5049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2110        .17985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    209.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.5692        .17724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0901        .24723        .30495E-03   -.90070    
  24  Prefactor     .93224        .16175        .21827E-03   -.95023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.302e-09
Minuit parameter uncertainties:
  1  1.76723e-05
  2  22.5662
  3  0.214774
  4  0.000142314
  5  10.789
  6  1.42379e-05
  7  4.8108e-05
  8  1.68951e-05
  9  7.09664
  10  25.6343
  11  1.76258
  12  5.47395
  13  8.36074
  14  1.69938e-06
  15  6.22209
  16  4.70482e-07
  17  35.4842
  18  5.15105
  19  3.93707e-06
  20  4.85057e-07
  21  1.40786e-05
  22  1.16803e-05
  23  0.247492
  24  0.161832
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.194e+00  1.763e+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:  9.322e-01  1.618e-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.090e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.30
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.57e-07 +/- 5.33e-08
Energy Flux (Fixed Index): 4.72e-05 +/- 1.60e-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) = 7209.22623688
delta logL = 0.0147045043159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7209.22359359
delta logL = 0.0173478030147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0737       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4600       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93570       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=   7209.224     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0737        28.058        .44626E-02    .12391E-02
   2  alpha         2.4600        3.7042        .23955        .31711E-04
   3  Normalizat    1.0828        .19422        .69120E-01    .16021E-04
   4  Prefactor     .93571        .14270        .45458E-01    .85352E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.07368
  alpha      = 2.46001
  Normalizat = 1.08276
  Prefactor  = 0.935705
 **********
 **   18 **HESSE 
 **********

 FCN=   7209.224     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0737        1.8700        .61102E-04   -1.5257    
   2  alpha         2.4600        .35937        .10118E-01   -.15995E-01
   3  Normalizat    1.0828        .24191        .30582E-03   -.90307    
   4  Prefactor     .93571        .15997        .21791E-03   -.94904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26799e-11
Minuit parameter uncertainties:
  1  1.87
  2  0.360621
  3  0.242162
  4  0.160055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737386': 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) = 7209.22359358
delta logL = 0.0173478041452

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.074e+00  1.870e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.460e+00  3.606e-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:  9.357e-01  1.601e-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.083e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.23
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.46 +/- 0.36
Photon Flux (Free Index): 1.63e-07 +/- 6.20e-08
Energy Flux (Free Index): 4.65e-05 +/- 1.62e-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/737386/cmap_HighResolution_376963201_377222401_4FGL_J1332.0-0509_daily_bin531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.57e-07', energy_flux2='4.65e-05', photon_flux_error='5.33e-08', dlogl='1.73e-02', energy_flux='4.72e-05', photon_flux2='1.63e-07', job_status='DONE', time_completed='2021-09-08 01:51:30.095244', photon_index_error2='0.36', photon_index2='2.46', ts='18.30', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='1.09', time_epoch_completed='1631091090.1', return_code='0', job_id='737386', GAL2='0.94', EG2='1.08', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='6.20e-08', ts2='18.23', photon_index='2.39' WHERE bin_id='531' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:51:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 737386: <4FGL_J1332.0-0509_daily_bin531> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin531> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:39 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:37:41 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:37:41 2021
Terminated at Wed Sep  8 01:51:30 2021
Results reported at Wed Sep  8 01:51:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin531 203.02 -5.1611 376963201 377222401 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.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            951 sec.

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

