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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin832
RA = 203.02, Dec = -5.1611
tmin = 454982401, tmax = 455241601
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='738956', job_status='RUN', time_executed='2021-09-08 01:45:19.098034', time_epoch_executed='1631090719.1' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='832'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738956/ft1_4FGL_J1332.0-0509_daily_bin832.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738956/ft2_4FGL_J1332.0-0509_daily_bin832.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738956/ft1_4FGL_J1332.0-0509_daily_bin832.fits outfile=/scratch/kocevski/738956/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin832.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=454982401.0 tmax=455241601.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.59
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738956/ft1_filtered_4FGL_J1332.0-0509_daily_bin832.fits" evtable="EVENTS" scfile=/scratch/kocevski/738956/ft2_4FGL_J1332.0-0509_daily_bin832.fits sctable="SC_DATA" outfile=/scratch/kocevski/738956/ltcube_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.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/738956/ft2_4FGL_J1332.0-0509_daily_bin832.fits
.....................!
real 14.36
user 13.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738956/ft1_filtered_4FGL_J1332.0-0509_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/738956/ft2_4FGL_J1332.0-0509_daily_bin832.fits sctable="SC_DATA" expcube=/scratch/kocevski/738956/ltcube_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.fits outfile=/scratch/kocevski/738956/expmap_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.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/738956/ltcube_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.fits
.....................!
real 191.82
user 186.95
sys 4.16

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/738956/ft1_filtered_4FGL_J1332.0-0509_daily_bin832.fits scfile=/scratch/kocevski/738956/ft2_4FGL_J1332.0-0509_daily_bin832.fits outfile=/scratch/kocevski/738956/cmap_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.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/738956/ft1_filtered_4FGL_J1332.0-0509_daily_bin832.fits scfile=/scratch/kocevski/738956/ft2_4FGL_J1332.0-0509_daily_bin832.fits outfile=/scratch/kocevski/738956/cmap_HighResolution_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738956/ft1_filtered_4FGL_J1332.0-0509_daily_bin832.fits evtable="EVENTS" scfile=/scratch/kocevski/738956/ft2_4FGL_J1332.0-0509_daily_bin832.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738956/Model_4FGL_J1332.0-0509_daily_bin832.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/738956/ft1_filtered_4FGL_J1332.0-0509_daily_bin832.fits.....................!
real 51.30
user 49.85
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.339       1.0000         .10000E-03   10000.    
     2 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .89187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.8842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7271       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18184E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12093       1.0000         .10000E-03   10000.    
    12 'norm      '    11.959       1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10306E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4762       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.566       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.8504       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .79357E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7499       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .52789       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=   6315.265     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2781 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.475        49.966       -.45039E-05   -.25489E-03
   2  norm          .10000E-03    9.8257       -.21569E-08** at limit **
   3  norm          .89132        .27320        .69678E-07   -.50358E-03
   4  Prefactor     .10000E-03    16.789       -.19872E-05** at limit **
   5  norm          .10000E-03    6.4074        .26279E-07** at limit **
   6  norm          7.8809        8.8152       -.20135E-05    .34078E-03
   7  Prefactor     6.7617        12.442        .18934E-06   -.28526E-04
   8  Prefactor     14.776        18.166       -.16595E-06    .60041E-04
   9  Prefactor     1.7355        19.471       -.23576E-05   -.29933E-04
  10  Prefactor     .10000E-03    70.934        .64016E-05** at limit **
  11  norm          .12057        1.0281        .10677E-06    .24323E-03
  12  norm          11.975        5.0492        .10488E-05   -.48669E-03
  13  norm          .10000E-03    6.8864       -.11527E-05** at limit **
  14  norm          .10000E-03    26.974       -.15917E-05** at limit **
  15  Prefactor     1.4764        3.4943       -.13047E-05    .53127E-04
  16  Prefactor     19.566        20.702       -.42283E-06   -.24797E-05
  17  Prefactor     .10000E-03    20.363        .22189E-05** at limit **
  18  norm          .10000E-03    1.4226        .78367E-07** at limit **
  19  Prefactor     .10000E-03    14.231        .92451E-06** at limit **
  20  norm          5.8506        3.1270       -.89694E-07    .15448E-03
  21  Prefactor     .10000E-03    10.739       -.70170E-07** at limit **
  22  norm          .10001E-03    82.353        .27202E-04** at limit **
  23  Normalizat    1.7500        .23321        .11208E-05    .12923E-03
  24  Prefactor     .52790        .13994        .14921E-05    .18898E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.4747
  norm       = 0.0001
  norm       = 0.891318
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.88093
  Prefactor  = 6.76168
  Prefactor  = 14.7761
  Prefactor  = 1.73548
  Prefactor  = 0.0001
  norm       = 0.120571
  norm       = 11.9749
  norm       = 0.000100002
  norm       = 0.000100001
  Prefactor  = 1.47637
  Prefactor  = 19.5664
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.85055
  Prefactor  = 0.0001
  norm       = 0.000100005
  Normalizat = 1.75
  Prefactor  = 0.527903
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.265     FROM HESSE     STATUS=OK           401 CALLS     3182 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.475        50.836        .55972E-04   -1.4272    
   2  norm          .10000E-03    9.8328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .89132        .27568        .20947E-04   -1.5519    
   4  Prefactor     .10000E-03    16.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.4540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.8809        8.8035        .71401E-03   -1.5146    
   7  Prefactor     6.7617        12.352        .15435E-03   -1.5188    
   8  Prefactor     14.776        18.259        .10417E-03   -1.4939    
   9  Prefactor     1.7355        19.271        .31951E-03   -1.5444    
  10  Prefactor     .10000E-03    70.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12057        2.4452        .15139E-02   -1.5639    
  12  norm          11.975        5.0127        .10765E-03   -1.5016    
  13  norm          .10000E-03    7.0352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    27.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4764        3.4829        .22038E-03   -1.5465    
  16  Prefactor     19.566        20.718        .90548E-04   -1.4823    
  17  Prefactor     .10000E-03    20.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.4233        .92550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.8506        3.1299        .98459E-04   -1.5224    
  21  Prefactor     .10000E-03    10.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    80.212        .57609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7500        .27658        .25853E-03   -.70976    
  24  Prefactor     .52790        .16418        .27351E-03   -1.1071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32809e-09
Minuit parameter uncertainties:
  1  50.8786
  2  4.04638e-06
  3  0.275676
  4  0.000314868
  5  1.59635e-05
  6  8.80491
  7  12.3568
  8  18.2662
  9  11.5708
  10  0.000253086
  11  1.08555
  12  5.01283
  13  0.000238546
  14  0.000324947
  15  3.4834
  16  20.7256
  17  0.000346627
  18  2.1527e-06
  19  4.87762e-05
  20  3.13002
  21  1.62853e-05
  22  0.0012941
  23  0.276824
  24  0.164326
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.206e-01  1.086e+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:  5.279e-01  1.643e-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.750e+00  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/738956/likelihoodResults_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.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) = 6314.97629898
delta logL = 0.288474927635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6314.97497984
delta logL = 0.289794071806

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22325       1.0000         .10000E-03   10000.    
     2 'alpha     '    .99170       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51992       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=   6314.975     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      253 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22334        1.1916        .16254E-01   -.15049E-02
   2  alpha         .99164        1.4338        .50000       -.75013E-04
   3  Normalizat    1.7602        .22013        .58323E-01    .32756E-03
   4  Prefactor     .51977        .13742        .62214E-01    .53591E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.223345
  alpha      = 0.991637
  Normalizat = 1.76022
  Prefactor  = 0.519772
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.975     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22334        .55462        .81319E-03   -1.5613    
   2  alpha         .99164        1.1332        .29963E-01   -.64769    
   3  Normalizat    1.7602        .25750        .25788E-03   -.70707    
   4  Prefactor     .51977        .16053        .27529E-03   -1.1108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76551e-09
Minuit parameter uncertainties:
  1  0.554628
  2  1.20534
  3  0.257699
  4  0.160667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738956': 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) = 6314.97497933
delta logL = 0.289794581709

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  5.198e-01  1.607e-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.760e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/738956/cmap_HighResolution_454982401_455241601_4FGL_J1332.0-0509_daily_bin832.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-08 01:56:32.789085', job_id='738956', GAL2='0.52', fit_tolerance='1e-08', EG2='1.76', EG='1.75', time_epoch_completed='1631091392.79', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='2.90e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='832' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:56:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 738956: <4FGL_J1332.0-0509_daily_bin832> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin832> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:48 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:42:13 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:42:13 2021
Terminated at Wed Sep  8 01:56:33 2021
Results reported at Wed Sep  8 01:56:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin832 203.02 -5.1611 454982401 455241601 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 :                                   671.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            945 sec.

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

