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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin397
RA = 203.02, Dec = -5.1611
tmin = 342230401, tmax = 342489601
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='737188', job_status='RUN', time_executed='2021-09-08 01:38:46.994906', time_epoch_executed='1631090326.99' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737188/ft1_4FGL_J1332.0-0509_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737188/ft2_4FGL_J1332.0-0509_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737188/ft1_4FGL_J1332.0-0509_daily_bin397.fits outfile=/scratch/kocevski/737188/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin397.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=342230401.0 tmax=342489601.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.68
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737188/ft2_4FGL_J1332.0-0509_daily_bin397.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/737188/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/737188/ft1_filtered_4FGL_J1332.0-0509_daily_bin397.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.73
user 0.38
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737188/ft1_filtered_4FGL_J1332.0-0509_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/737188/ft2_4FGL_J1332.0-0509_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/737188/ltcube_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.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/737188/ft2_4FGL_J1332.0-0509_daily_bin397.fits
.....................!
real 17.58
user 17.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737188/ft1_filtered_4FGL_J1332.0-0509_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/737188/ft2_4FGL_J1332.0-0509_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/737188/ltcube_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.fits outfile=/scratch/kocevski/737188/expmap_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.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/737188/ltcube_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.fits
.....................!
real 193.82
user 188.05
sys 4.58

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/737188/ft1_filtered_4FGL_J1332.0-0509_daily_bin397.fits scfile=/scratch/kocevski/737188/ft2_4FGL_J1332.0-0509_daily_bin397.fits outfile=/scratch/kocevski/737188/cmap_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737188/ft1_filtered_4FGL_J1332.0-0509_daily_bin397.fits scfile=/scratch/kocevski/737188/ft2_4FGL_J1332.0-0509_daily_bin397.fits outfile=/scratch/kocevski/737188/cmap_HighResolution_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.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.59
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737188/ft1_filtered_4FGL_J1332.0-0509_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/737188/ft2_4FGL_J1332.0-0509_daily_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737188/Model_4FGL_J1332.0-0509_daily_bin397.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/737188/ft1_filtered_4FGL_J1332.0-0509_daily_bin397.fits.....................!
real 56.77
user 55.04
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    55.161       1.0000         .10000E-03   10000.    
     3 'norm      '    .89493       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10360E-03   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 '    22.698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.977       1.0000         .10000E-03   10000.    
    11 'norm      '    .23938       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8829       1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.575       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81071E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.7199       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1399       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=   7186.582     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2715 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6052       -.10955E-06** at limit **
   2  norm          55.161        29.041       -.15603E-06   -.27042E-04
   3  norm          .89488        .24157       -.42351E-07   -.19000E-02
   4  Prefactor     .10000E-03    18.262       -.24232E-06** at limit **
   5  norm          .10000E-03    18.908       -.80777E-06** at limit **
   6  norm          .10000E-03    5.3769        .95290E-07** at limit **
   7  Prefactor     .10000E-03    3.1094        .16180E-06** at limit **
   8  Prefactor     22.675        26.090       -.24958E-05   -.31790E-03
   9  Prefactor     .10000E-03    5.6058        .54597E-06** at limit **
  10  Prefactor     22.977        25.130       -.13987E-05    .55721E-05
  11  norm          .23802        1.0842        .13027E-06   -.11478E-04
  12  norm          3.8834        4.9350        .91701E-06    .72987E-03
  13  norm          .10000E-03    8.0586        .27928E-06** at limit **
  14  norm          .10000E-03    11.786        .11379E-06** at limit **
  15  Prefactor     13.574        6.8973       -.18031E-06   -.11497E-02
  16  Prefactor     19.577        23.006        .32195E-07    .25436E-04
  17  Prefactor     .10000E-03    16.332       -.26712E-06** at limit **
  18  norm          .10015E-03    10.694        .53525E-05** at limit **
  19  Prefactor     .10002E-03    6.9763        .13386E-05** at limit **
  20  norm          .10000E-03    1.0772        .24911E-06** at limit **
  21  Prefactor     .10000E-03    12.646       -.10287E-07** at limit **
  22  norm          8.7201        9.1387       -.56750E-07   -.53189E-04
  23  Normalizat    .99816        .24551        .79110E-05    .14396E-03
  24  Prefactor     1.1396        .15289       -.40938E-05   -.44646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 55.1606
  norm       = 0.894878
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.675
  Prefactor  = 0.0001
  Prefactor  = 22.9771
  norm       = 0.238016
  norm       = 3.88338
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.5738
  Prefactor  = 19.5772
  Prefactor  = 0.0001
  norm       = 0.000100151
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.72006
  Normalizat = 0.998164
  Prefactor  = 1.1396
 **********
 **   18 **HESSE 
 **********

 FCN=   7186.582     FROM HESSE     STATUS=OK           393 CALLS     3108 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          55.161        29.039        .54009E-04   -1.4221    
   3  norm          .89488        .24180        .20836E-04   -1.5519    
   4  Prefactor     .10000E-03    18.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    19.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.3888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1255        .14601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.675        26.494        .84074E-04   -1.4755    
   9  Prefactor     .10000E-03    5.6563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.977        25.111        .83564E-04   -1.4749    
  11  norm          .23802        2.0596        .16181E-02   -1.5610    
  12  norm          3.8834        4.9564        .15255E-03   -1.5314    
  13  norm          .10000E-03    8.1565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.574        6.6324        .10871E-03   -1.4971    
  16  Prefactor     19.577        22.992        .90451E-04   -1.4823    
  17  Prefactor     .10000E-03    16.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10015E-03    21.878        .31673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    41.133        .41033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0963        .85955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.7201        9.1422        .13574E-03   -1.5117    
  23  Normalizat    .99816        .26682        .33871E-03   -.93092    
  24  Prefactor     1.1396        .16671        .21281E-03   -.88211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23956e-08
Minuit parameter uncertainties:
  1  3.361e-05
  2  29.0469
  3  0.241803
  4  9.51336e-05
  5  0.000211517
  6  6.35367e-06
  7  1.62337e-05
  8  26.5075
  9  7.23102e-05
  10  25.1221
  11  1.40009
  12  4.95688
  13  3.90232e-05
  14  5.01404e-05
  15  6.63279
  16  23.0021
  17  0.000127686
  18  0.0036307
  19  0.00202204
  20  1.251e-05
  21  7.10413e-06
  22  9.14369
  23  0.267178
  24  0.166787
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.380e-01  1.400e+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.140e+00  1.668e-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.982e-01  2.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737188/likelihoodResults_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.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): 102
logL (Free Index) = 7186.44750652
delta logL = 0.134928008139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7186.44242702
delta logL = 0.140007513884

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12891       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4170       1.0000          .0000       5.0000    
     3 'Normalizat'    .95220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1591       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=   7186.442     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12286        5.1392        .96482E-02    .36017E-02
   2  alpha         4.4522        4.0890        .50000        .34908E-04
   3  Normalizat    .95287        .45152E-01    .78159E-01    .50424E-04
   4  Prefactor     1.1589        .29843E-01    .35677E-01    .68661E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.122861
  alpha      = 4.45223
  Normalizat = 0.952865
  Prefactor  = 1.15889
 **********
 **   18 **HESSE 
 **********

 FCN=   7186.442     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      258 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12286        18.242        .50065E-04   -1.5638    
   2  alpha         4.4522        2.7604        .84997E-01    .89609    
   3  Normalizat    .95287        .16769        .34593E-03   -.94627    
   4  Prefactor     1.1589        .11306        .21130E-03   -.87606    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81196e-06
Minuit parameter uncertainties:
  1  2.99389
  2  18.3416
  3  0.167781
  4  0.11308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737188': 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): 102
logL (Free Index) = 7186.44241241
delta logL = 0.140022122146

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.229e-01  2.994e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.452e+00  1.834e+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:  1.159e+00  1.131e-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.529e-01  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/737188/cmap_HighResolution_342230401_342489601_4FGL_J1332.0-0509_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-08 01:50:46.285751', job_id='737188', GAL2='1.16', fit_tolerance='1e-08', EG2='0.95', EG='1.00', time_epoch_completed='1631091046.29', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.40e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='397' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 737188: <4FGL_J1332.0-0509_daily_bin397> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin397> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:26 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:35:38 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:35:38 2021
Terminated at Wed Sep  8 01:50:47 2021
Results reported at Wed Sep  8 01:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin397 203.02 -5.1611 342230401 342489601 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 :                                   711.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            921 sec.

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

