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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin991
RA = 203.02, Dec = -5.1611
tmin = 496195201, tmax = 496454401
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='740302', job_status='RUN', time_executed='2021-09-08 01:47:44.833025', time_epoch_executed='1631090864.83' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='991'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740302/ft1_4FGL_J1332.0-0509_daily_bin991.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740302/ft2_4FGL_J1332.0-0509_daily_bin991.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740302/ft1_4FGL_J1332.0-0509_daily_bin991.fits outfile=/scratch/kocevski/740302/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin991.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=496195201.0 tmax=496454401.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.54
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740302/ft1_filtered_4FGL_J1332.0-0509_daily_bin991.fits" evtable="EVENTS" scfile=/scratch/kocevski/740302/ft2_4FGL_J1332.0-0509_daily_bin991.fits sctable="SC_DATA" outfile=/scratch/kocevski/740302/ltcube_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.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/740302/ft2_4FGL_J1332.0-0509_daily_bin991.fits
.....................!
real 14.79
user 14.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740302/ft1_filtered_4FGL_J1332.0-0509_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/740302/ft2_4FGL_J1332.0-0509_daily_bin991.fits sctable="SC_DATA" expcube=/scratch/kocevski/740302/ltcube_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.fits outfile=/scratch/kocevski/740302/expmap_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.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/740302/ltcube_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.fits
.....................!
real 193.26
user 188.26
sys 4.46

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/740302/ft1_filtered_4FGL_J1332.0-0509_daily_bin991.fits scfile=/scratch/kocevski/740302/ft2_4FGL_J1332.0-0509_daily_bin991.fits outfile=/scratch/kocevski/740302/cmap_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740302/ft1_filtered_4FGL_J1332.0-0509_daily_bin991.fits scfile=/scratch/kocevski/740302/ft2_4FGL_J1332.0-0509_daily_bin991.fits outfile=/scratch/kocevski/740302/cmap_HighResolution_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.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/740302/ft1_filtered_4FGL_J1332.0-0509_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/740302/ft2_4FGL_J1332.0-0509_daily_bin991.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740302/Model_4FGL_J1332.0-0509_daily_bin991.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/740302/ft1_filtered_4FGL_J1332.0-0509_daily_bin991.fits.....................!
real 53.61
user 52.17
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .65469       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.707       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9433       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14975E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2952       1.0000         .10000E-03   10000.    
    13 'norm      '    .95917E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.382       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.189       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1121       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1386       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=   6699.116     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2838 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.472        .21154E-05** at limit **
   2  norm          .10001E-03    42.191        .48950E-05** at limit **
   3  norm          .65472        .22592        .44503E-08   -.52495E-03
   4  Prefactor     .10000E-03    21.753        .29054E-05** at limit **
   5  norm          .10000E-03    6.2674       -.60816E-07** at limit **
   6  norm          .10000E-03    5.4907       -.87247E-07** at limit **
   7  Prefactor     .10000E-03    10.606       -.24137E-06** at limit **
   8  Prefactor     12.709        17.368        .59357E-06    .59163E-04
   9  Prefactor     5.9428        9.3956        .35557E-05   -.82325E-03
  10  Prefactor     .10012E-03    22.465        .64489E-06** at limit **
  11  norm          .10000E-03    .68923       -.93011E-07** at limit **
  12  norm          6.3120        5.3432        .14885E-06    .22618E-04
  13  norm          .29773E-01    7.4568       -.78471E-06    .12149E-03
  14  norm          .10000E-03    8.2384        .62143E-07** at limit **
  15  Prefactor     .10000E-03    1.8660        .44584E-08** at limit **
  16  Prefactor     17.382        28.122        .18865E-06    .23760E-04
  17  Prefactor     .10001E-03    19.205       -.45022E-05** at limit **
  18  norm          .10000E-03    1.8683       -.11608E-07** at limit **
  19  Prefactor     12.193        18.676        .84966E-06    .13163E-03
  20  norm          .10000E-03    .98902        .19872E-07** at limit **
  21  Prefactor     .10001E-03    43.704       -.55770E-05** at limit **
  22  norm          .10000E-03    14.934       -.36667E-06** at limit **
  23  Normalizat    1.1118        .23529       -.10273E-05    .41360E-04
  24  Prefactor     1.1387        .14902       -.49585E-07    .34004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.000100008
  norm       = 0.654716
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7091
  Prefactor  = 5.94276
  Prefactor  = 0.00010012
  norm       = 0.0001
  norm       = 6.31199
  norm       = 0.0297731
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3822
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 12.1931
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Normalizat = 1.11185
  Prefactor  = 1.13873
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.116     FROM HESSE     STATUS=OK           403 CALLS     3241 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    43.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .65472        .22584        .21893E-04   -1.5546    
   4  Prefactor     .10000E-03    22.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.2995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.5012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.709        17.400        .11237E-03   -1.4995    
   9  Prefactor     5.9428        10.411        .82357E-03   -1.5220    
  10  Prefactor     .10012E-03    98.787        .59119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2444        .13130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.3120        4.7598        .12827E-03   -1.5205    
  13  norm          .29773E-01    9.7306        .54018E-01   -1.5674    
  14  norm          .10000E-03    8.2395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8858        .10915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.382        28.087        .96066E-04   -1.4874    
  17  Prefactor     .10001E-03    20.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8726        .10925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.193        18.677        .11474E-03   -1.5009    
  20  norm          .10000E-03    1.0177        .15893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    45.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1118        .27473        .32198E-03   -.89372    
  24  Prefactor     1.1387        .17497        .21152E-03   -.88238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96017e-09
Minuit parameter uncertainties:
  1  0.000350751
  2  0.00120427
  3  0.225843
  4  0.00053865
  5  7.31846e-06
  6  7.37755e-06
  7  3.72245e-05
  8  17.4074
  9  10.414
  10  0.00690542
  11  1.45528e-06
  12  4.76012
  13  1.07486
  14  6.98763e-06
  15  1.05162e-06
  16  28.1086
  17  0.000798704
  18  2.93182e-07
  19  18.6858
  20  1.02056e-06
  21  0.00151642
  22  5.2893e-05
  23  0.275082
  24  0.175061
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.455e-06  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.139e+00  1.751e-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.112e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740302/likelihoodResults_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.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) = 6699.11985121
delta logL = -0.00384481083711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6699.11600724
delta logL = -8.40816028358e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3903       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1388       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6699.116     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .71E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    252.93        .13145E-02** at limit **
   2  alpha         2.3395        3.7203        .16481        .56791E-05
   3  Normalizat    1.1118        .13057        .32198E-03   -.19935E-03
   4  Prefactor     1.1387        .87148E-01    .21152E-03   -.26291E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6699.116     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      395 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10014E-03    252.93        .16206E-03** at limit **
   2  alpha         2.3395        3.7203        .38559E-04    .56791E-05
   3  Normalizat    1.1118        .13057        .43134E-05   -.19935E-03
   4  Prefactor     1.1387        .87148E-01    .20538E-05   -.26291E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6699.116     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      437 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2561        .26290E-03** at limit **
   2  alpha         2.3052        3.6800        .65923E-02    .24144E-08
   3  Normalizat    1.1118        .25987        .12879E-04   -.70617E-05
   4  Prefactor     1.1387        .17365        .42303E-04    .15050E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.30519
  Normalizat = 1.11184
  Prefactor  = 1.13873
 **********
 **   18 **HESSE 
 **********

 FCN=   6699.116     FROM HESSE     STATUS=OK            23 CALLS      460 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2561        .52581E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3052        3.6493        .13185E-02   -.78002E-01
   3  Normalizat    1.1118        .25990        .25759E-05   -.89372    
   4  Prefactor     1.1387        .17367        .84607E-05   -.88238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50455e-13
Minuit parameter uncertainties:
  1  3.31291e-07
  2  122.595
  3  0.260201
  4  0.173756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740302': 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) = 6699.11600614
delta logL = 2.60492015514e-07

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  3.313e-07  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.305e+00  1.226e+02  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.139e+00  1.738e-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.112e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/740302/cmap_HighResolution_496195201_496454401_4FGL_J1332.0-0509_daily_bin991.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-09-08 01:59:57.457909', job_id='740302', GAL2='1.14', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631091597.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='991' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 740302: <4FGL_J1332.0-0509_daily_bin991> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin991> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:44 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:49 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:45:49 2021
Terminated at Wed Sep  8 01:59:58 2021
Results reported at Wed Sep  8 01:59:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin991 203.02 -5.1611 496195201 496454401 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 :                                   707.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            854 sec.

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

