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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin1490
RA = 203.02, Dec = -5.1611
tmin = 625536001, tmax = 625795201
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='742197', job_status='RUN', time_executed='2021-09-08 01:52:51.412693', time_epoch_executed='1631091171.41' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742197

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742197/ft1_4FGL_J1332.0-0509_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742197/ft2_4FGL_J1332.0-0509_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742197/ft1_4FGL_J1332.0-0509_daily_bin1490.fits outfile=/scratch/kocevski/742197/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1490.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=625536001.0 tmax=625795201.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.40
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742197/ft1_filtered_4FGL_J1332.0-0509_daily_bin1490.fits" evtable="EVENTS" scfile=/scratch/kocevski/742197/ft2_4FGL_J1332.0-0509_daily_bin1490.fits sctable="SC_DATA" outfile=/scratch/kocevski/742197/ltcube_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.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/742197/ft2_4FGL_J1332.0-0509_daily_bin1490.fits
.....................!
real 13.73
user 13.33
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742197/ft1_filtered_4FGL_J1332.0-0509_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/742197/ft2_4FGL_J1332.0-0509_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/742197/ltcube_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.fits outfile=/scratch/kocevski/742197/expmap_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.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/742197/ltcube_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.fits
.....................!
real 191.58
user 185.73
sys 5.45

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/742197/ft1_filtered_4FGL_J1332.0-0509_daily_bin1490.fits scfile=/scratch/kocevski/742197/ft2_4FGL_J1332.0-0509_daily_bin1490.fits outfile=/scratch/kocevski/742197/cmap_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742197/ft1_filtered_4FGL_J1332.0-0509_daily_bin1490.fits scfile=/scratch/kocevski/742197/ft2_4FGL_J1332.0-0509_daily_bin1490.fits outfile=/scratch/kocevski/742197/cmap_HighResolution_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/742197/ft1_filtered_4FGL_J1332.0-0509_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/742197/ft2_4FGL_J1332.0-0509_daily_bin1490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742197/Model_4FGL_J1332.0-0509_daily_bin1490.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/742197/ft1_filtered_4FGL_J1332.0-0509_daily_bin1490.fits.....................!
real 52.43
user 51.07
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4495       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.409       1.0000         .10000E-03   10000.    
     5 'norm      '    10.064       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7265       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3624       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.001       1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.2854       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.634       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .45712E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4475       1.0000         .10000E-03   10000.    
    20 'norm      '    27.279       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.866       1.0000         .10000E-03   10000.    
    22 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94729       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1695       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=   6347.794     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2729 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.837       -.76580E-06** at limit **
   2  norm          .10000E-03    28.550        .11951E-05** at limit **
   3  norm          1.4494        .32668        .66853E-08    .58230E-04
   4  Prefactor     13.407        33.299       -.58792E-06   -.33540E-04
   5  norm          10.062        9.5084       -.12639E-07   -.29654E-04
   6  norm          6.7264        10.350       -.15479E-06   -.21732E-04
   7  Prefactor     11.584        12.266        .69810E-06   -.11359E-03
   8  Prefactor     .10000E-03    45.700       -.35223E-06** at limit **
   9  Prefactor     7.3627        10.349        .24609E-05   -.26079E-03
  10  Prefactor     23.989        29.723       -.28388E-05   -.25516E-03
  11  norm          .10000E-03    .86399       -.52093E-07** at limit **
  12  norm          3.2877        4.9810        .65359E-06   -.54391E-04
  13  norm          .10000E-03    2.7657       -.42165E-07** at limit **
  14  norm          .10000E-03    16.801       -.69879E-06** at limit **
  15  Prefactor     11.645        7.3289        .57893E-06    .43469E-03
  16  Prefactor     .10000E-03    14.107        .14205E-06** at limit **
  17  Prefactor     .10000E-03    16.448       -.32035E-07** at limit **
  18  norm          .10001E-03    6.2379        .53783E-06** at limit **
  19  Prefactor     3.4466        10.230        .38836E-06   -.37024E-04
  20  norm          27.281        5.5229       -.46617E-07   -.21890E-03
  21  Prefactor     34.867        27.510        .17202E-06    .23313E-04
  22  norm          .10000E-03    14.840        .12316E-05** at limit **
  23  Normalizat    .94720        .24963       -.56981E-06   -.46723E-04
  24  Prefactor     1.1695        .16637       -.26886E-06   -.66383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 1.44945
  Prefactor  = 13.4066
  norm       = 10.0624
  norm       = 6.72638
  Prefactor  = 11.5838
  Prefactor  = 0.0001
  Prefactor  = 7.36268
  Prefactor  = 23.9893
  norm       = 0.0001
  norm       = 3.28769
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 3.44661
  norm       = 27.2811
  Prefactor  = 34.8674
  norm       = 0.000100001
  Normalizat = 0.947202
  Prefactor  = 1.16951
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.794     FROM HESSE     STATUS=OK           399 CALLS     3128 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4494        .32695        .20680E-04   -1.5467    
   4  Prefactor     13.407        33.352        .10939E-03   -1.4976    
   5  norm          10.062        9.5048        .12631E-03   -1.5073    
   6  norm          6.7264        10.345        .15471E-03   -1.5189    
   7  Prefactor     11.584        12.277        .58849E-03   -1.5027    
   8  Prefactor     .10000E-03    46.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3627        10.828        .73908E-03   -1.5165    
  10  Prefactor     23.989        30.437        .81765E-04   -1.4728    
  11  norm          .10000E-03    1.5602        .14223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.2877        4.9695        .16743E-03   -1.5345    
  13  norm          .10000E-03    2.7677        .12931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.645        7.4038        .11745E-03   -1.5025    
  16  Prefactor     .10000E-03    14.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    20.212        .37270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4466        10.234        .21783E-03   -1.5337    
  20  norm          27.281        5.5216        .76703E-04   -1.4663    
  21  Prefactor     34.867        27.497        .67868E-04   -1.4526    
  22  norm          .10000E-03    15.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94720        .29147        .36688E-03   -.94821    
  24  Prefactor     1.1695        .19636        .22717E-03   -.87275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03589e-09
Minuit parameter uncertainties:
  1  0.000123218
  2  0.000244174
  3  0.326946
  4  33.3983
  5  9.50619
  6  10.3478
  7  12.2799
  8  5.89282e-05
  9  10.8305
  10  30.4567
  11  1.02369e-06
  12  4.97014
  13  2.89761e-06
  14  0.000110842
  15  7.40438
  16  2.25792e-05
  17  7.49547e-06
  18  0.000935316
  19  10.2389
  20  5.52168
  21  27.507
  22  0.000174852
  23  0.291957
  24  0.196478
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.024e-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.170e+00  1.965e-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.472e-01  2.920e-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: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/742197/likelihoodResults_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.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) = 6347.79664122
delta logL = -0.0030642067004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6347.70748174
delta logL = 0.0860952769599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13779       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0532       1.0000          .0000       5.0000    
     3 'Normalizat'    .91095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1834       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=   6347.707     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      434 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13779        6.0546        .15090E-01    .14105E-02
   2  alpha         4.0532        2.9578        .50000        .29862E-04
   3  Normalizat    .91095        .39938E-01    .84351E-01    .13332E-04
   4  Prefactor     1.1834        .27162E-01    .51124E-01    .11996E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.137793
  alpha      = 4.05316
  Normalizat = 0.910949
  Prefactor  = 1.18343
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.707     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      469 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13779        39.918        .62088E-03   -1.5634    
   2  alpha         4.0532        2.9318        .65923E-01    .67035    
   3  Normalizat    .91095        .22452        .37348E-03   -.96076    
   4  Prefactor     1.1834        .13581        .22601E-03   -.86843    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.3827e-06
Minuit parameter uncertainties:
  1  4.69208
  2  22.3465
  3  0.224749
  4  0.13585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742197': 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) = 6347.70748174
delta logL = 0.0860952770427

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.378e-01  4.692e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.053e+00  2.235e+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.183e+00  1.359e-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.109e-01  2.247e-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/742197/cmap_HighResolution_625536001_625795201_4FGL_J1332.0-0509_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-09-08 02:05:12.038020', job_id='742197', GAL2='1.18', fit_tolerance='1e-08', EG2='0.91', EG='0.95', time_epoch_completed='1631091912.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='8.61e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1490' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:05:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 742197: <4FGL_J1332.0-0509_daily_bin1490> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin1490> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:50:56 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:52:40 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:52:40 2021
Terminated at Wed Sep  8 02:05:12 2021
Results reported at Wed Sep  8 02:05:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin1490 203.02 -5.1611 625536001 625795201 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 :                                   683.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            856 sec.

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

