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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin163
RA = 203.02, Dec = -5.1611
tmin = 281577601, tmax = 281836801
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='735777', job_status='RUN', time_executed='2021-09-08 01:33:38.598748', time_epoch_executed='1631090018.6' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735777

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735777/ft1_4FGL_J1332.0-0509_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735777/ft2_4FGL_J1332.0-0509_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735777/ft1_4FGL_J1332.0-0509_daily_bin163.fits outfile=/scratch/kocevski/735777/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin163.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=281577601.0 tmax=281836801.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.00
user 2.75
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735777/ft1_filtered_4FGL_J1332.0-0509_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/735777/ft2_4FGL_J1332.0-0509_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/735777/ltcube_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.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/735777/ft2_4FGL_J1332.0-0509_daily_bin163.fits
.....................!
real 11.88
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735777/ft1_filtered_4FGL_J1332.0-0509_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/735777/ft2_4FGL_J1332.0-0509_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/735777/ltcube_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.fits outfile=/scratch/kocevski/735777/expmap_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.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/735777/ltcube_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.fits
.....................!
real 158.07
user 153.03
sys 4.59

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.0-0509 @ 203.02 -5.1611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/735777/ft1_filtered_4FGL_J1332.0-0509_daily_bin163.fits scfile=/scratch/kocevski/735777/ft2_4FGL_J1332.0-0509_daily_bin163.fits outfile=/scratch/kocevski/735777/cmap_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735777/ft1_filtered_4FGL_J1332.0-0509_daily_bin163.fits scfile=/scratch/kocevski/735777/ft2_4FGL_J1332.0-0509_daily_bin163.fits outfile=/scratch/kocevski/735777/cmap_HighResolution_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.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.48
user 0.35
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735777/ft1_filtered_4FGL_J1332.0-0509_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/735777/ft2_4FGL_J1332.0-0509_daily_bin163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735777/Model_4FGL_J1332.0-0509_daily_bin163.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/735777/ft1_filtered_4FGL_J1332.0-0509_daily_bin163.fits.....................!
real 42.31
user 40.69
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10035E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9915       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0138       1.0000         .10000E-03   10000.    
    12 'norm      '    15.245       1.0000         .10000E-03   10000.    
    13 'norm      '    .16468E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    75.645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.556       1.0000         .10000E-03   10000.    
    18 'norm      '    7.2759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2454       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89799       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=   5962.211     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2359 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.769       -.74049E-06** at limit **
   2  norm          .10000E-03    39.128        .14435E-05** at limit **
   3  norm          2.9916        .44661        .19844E-08   -.74163E-04
   4  Prefactor     .10000E-03    29.461       -.59801E-06** at limit **
   5  norm          .10000E-03    5.1689        .82310E-09** at limit **
   6  norm          .10000E-03    10.435        .67169E-07** at limit **
   7  Prefactor     .10000E-03    3.5166        .25627E-07** at limit **
   8  Prefactor     .10000E-03    4.8926        .99870E-08** at limit **
   9  Prefactor     12.623        10.931        .65494E-07   -.13643E-04
  10  Prefactor     .10000E-03    74.887        .13116E-05** at limit **
  11  norm          1.0127        1.3418        .16877E-06    .16353E-03
  12  norm          15.255        5.8190        .18363E-06    .75772E-04
  13  norm          .10000E-03    19.446        .83432E-06** at limit **
  14  norm          75.649        44.403        .14969E-06    .50928E-04
  15  Prefactor     .10000E-03    5.4449       -.54916E-06** at limit **
  16  Prefactor     .10000E-03    25.339       -.39854E-06** at limit **
  17  Prefactor     70.538        57.456       -.80714E-06   -.16293E-03
  18  norm          7.2745        7.8654        .23337E-05   -.19829E-03
  19  Prefactor     .10000E-03    17.378        .30740E-06** at limit **
  20  norm          .10000E-03    1.1834       -.29669E-07** at limit **
  21  Prefactor     .10000E-03    19.002        .37198E-06** at limit **
  22  norm          .10000E-03    15.498       -.48724E-06** at limit **
  23  Normalizat    1.2456        .23786       -.51596E-06   -.18768E-04
  24  Prefactor     .89786        .15572       -.14490E-06   -.35631E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.000100002
  norm       = 2.99157
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.623
  Prefactor  = 0.0001
  norm       = 1.01269
  norm       = 15.255
  norm       = 0.0001
  norm       = 75.6491
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.5378
  norm       = 7.27445
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.24565
  Prefactor  = 0.897862
 **********
 **   18 **HESSE 
 **********

 FCN=   5962.211     FROM HESSE     STATUS=OK           387 CALLS     2746 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    40.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9916        .44823        .18987E-04   -1.5362    
   4  Prefactor     .10000E-03    29.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1909        .17144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5203        .14141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.8949        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.623        10.925        .11275E-03   -1.4997    
  10  Prefactor     .10000E-03    75.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0127        1.2044        .98591E-03   -1.5507    
  12  norm          15.255        5.7301        .10258E-03   -1.4927    
  13  norm          .10000E-03    19.915        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          75.649        44.414        .46167E-04   -1.3966    
  15  Prefactor     .10000E-03    5.6442        .35368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.538        57.598        .23895E-03   -1.4026    
  18  norm          7.2745        7.8878        .74350E-03   -1.5168    
  19  Prefactor     .10000E-03    17.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2085        .82003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    15.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2456        .27832        .31065E-03   -.85204    
  24  Prefactor     .89786        .18282        .23717E-03   -.96216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62031e-10
Minuit parameter uncertainties:
  1  0.000659572
  2  0.000609368
  3  0.448229
  4  0.000327204
  5  9.4756e-07
  6  1.20784e-05
  7  3.30093e-07
  8  1.04423e-06
  9  10.9271
  10  4.84861e-05
  11  1.20448
  12  5.73034
  13  3.43053e-05
  14  44.4331
  15  5.42361e-05
  16  0.000218505
  17  57.6435
  18  7.88891
  19  9.27268e-05
  20  1.46286e-06
  21  0.00014835
  22  0.000151268
  23  0.278648
  24  0.182941
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.013e+00  1.204e+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:  8.979e-01  1.829e-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.246e+00  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.06e-08 +/- 3.64e-08
Energy Flux (Fixed Index): 9.21e-06 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/735777/likelihoodResults_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.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) = 5961.76926618
delta logL = 0.441260943078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5961.76625835
delta logL = 0.444268765378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0431       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5423       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88640       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=   5961.766     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0436        1.1130        .12221E-01    .19583E-03
   2  alpha         1.5426        .62035        .45826       -.28579E-04
   3  Normalizat    1.2673        .23247        .69683E-01    .88131E-05
   4  Prefactor     .88645        .15429        .44832E-01    .99137E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.04359
  alpha      = 1.5426
  Normalizat = 1.26728
  Prefactor  = 0.886445
 **********
 **   18 **HESSE 
 **********

 FCN=   5961.766     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0436        1.2099        .80752E-04   -1.5504    
   2  alpha         1.5426        .78598        .20230E-01   -.39300    
   3  Normalizat    1.2673        .27262        .30830E-03   -.84549    
   4  Prefactor     .88645        .18104        .23839E-03   -.96616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58035e-09
Minuit parameter uncertainties:
  1  1.20998
  2  0.802005
  3  0.272934
  4  0.181158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735777': 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) = 5961.7662582
delta logL = 0.444268917406

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.044e+00  1.210e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.543e+00  8.020e-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:  8.864e-01  1.812e-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.267e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.54 +/- 0.80
Photon Flux (Free Index): 1.86e-08 +/- 2.37e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.95e-05

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/735777/cmap_HighResolution_281577601_281836801_4FGL_J1332.0-0509_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-05', comment='SUCCESS', photon_flux='3.06e-08', energy_flux2='1.60e-05', photon_flux_error='3.64e-08', dlogl='4.44e-01', energy_flux='9.21e-06', photon_flux2='1.86e-08', job_status='DONE', time_completed='2021-09-08 01:42:19.022821', photon_index_error2='0.80', photon_index2='1.54', ts='1.16', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.95e-05', EG='1.25', time_epoch_completed='1631090539.02', return_code='0', job_id='735777', GAL2='0.89', EG2='1.27', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='2.37e-08', ts2='2.05', photon_index='2.39' WHERE bin_id='163' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:42:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 735777: <4FGL_J1332.0-0509_daily_bin163> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin163> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:41 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:30:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:30:59 2021
Terminated at Wed Sep  8 01:42:19 2021
Results reported at Wed Sep  8 01:42:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin163 203.02 -5.1611 281577601 281836801 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 :                                   518.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            698 sec.

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

