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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin945
RA = 203.02, Dec = -5.1611
tmin = 484272001, tmax = 484531201
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='740229', job_status='RUN', time_executed='2021-09-08 01:48:24.823601', time_epoch_executed='1631090904.82' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740229/ft1_4FGL_J1332.0-0509_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740229/ft2_4FGL_J1332.0-0509_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740229/ft1_4FGL_J1332.0-0509_daily_bin945.fits outfile=/scratch/kocevski/740229/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin945.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.23
user 4.93
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740229/ft1_filtered_4FGL_J1332.0-0509_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/740229/ft2_4FGL_J1332.0-0509_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/740229/ltcube_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.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/740229/ft2_4FGL_J1332.0-0509_daily_bin945.fits
.....................!
real 16.18
user 15.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740229/ft1_filtered_4FGL_J1332.0-0509_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/740229/ft2_4FGL_J1332.0-0509_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/740229/ltcube_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.fits outfile=/scratch/kocevski/740229/expmap_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.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/740229/ltcube_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.fits
.....................!
real 192.36
user 186.83
sys 4.34

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/740229/ft1_filtered_4FGL_J1332.0-0509_daily_bin945.fits scfile=/scratch/kocevski/740229/ft2_4FGL_J1332.0-0509_daily_bin945.fits outfile=/scratch/kocevski/740229/cmap_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740229/ft1_filtered_4FGL_J1332.0-0509_daily_bin945.fits scfile=/scratch/kocevski/740229/ft2_4FGL_J1332.0-0509_daily_bin945.fits outfile=/scratch/kocevski/740229/cmap_HighResolution_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.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.56
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10525E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .89198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.676       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.440       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.045       1.0000         .10000E-03   10000.    
    13 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.7669       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    106.27       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7265       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7295       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.265       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4269       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72413       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=   4940.050     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     3228 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.458       -.14109E-05** at limit **
   2  norm          .10000E-03    93.034        .13951E-06** at limit **
   3  norm          .89192        .31205        .38818E-08   -.16049E-03
   4  Prefactor     .10000E-03    28.668        .11249E-05** at limit **
   5  norm          24.672        14.503        .32402E-07   -.26725E-04
   6  norm          .10000E-03    4.9210        .29948E-07** at limit **
   7  Prefactor     .10000E-03    17.000       -.67009E-07** at limit **
   8  Prefactor     11.438        13.316        .29876E-07   -.10361E-04
   9  Prefactor     .10000E-03    9.4875        .14899E-06** at limit **
  10  Prefactor     .10000E-03    11.636       -.13931E-06** at limit **
  11  norm          .10000E-03    .74652       -.12115E-07** at limit **
  12  norm          18.043        5.8907       -.97551E-08   -.47240E-04
  13  norm          .10000E-03    2.8814        .22411E-07** at limit **
  14  norm          8.7445        43.164       -.66056E-05   -.14400E-03
  15  Prefactor     17.362        10.195       -.35470E-06   -.91766E-04
  16  Prefactor     .10000E-03    57.313       -.48813E-06** at limit **
  17  Prefactor     106.28        69.514        .12576E-05    .10600E-03
  18  norm          1.7299        15.087        .18955E-05   -.62205E-04
  19  Prefactor     5.7319        13.623        .38296E-05   -.26610E-03
  20  norm          .10000E-03    1.1590        .16027E-07** at limit **
  21  Prefactor     .10000E-03    12.483        .13635E-06** at limit **
  22  norm          12.265        12.403       -.45225E-06    .88887E-04
  23  Normalizat    1.4274        .25255       -.80783E-06    .29079E-05
  24  Prefactor     .72385        .16354        .28901E-06   -.58456E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.891921
  Prefactor  = 0.000100001
  norm       = 24.6721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.0434
  norm       = 0.0001
  norm       = 8.74449
  Prefactor  = 17.3616
  Prefactor  = 0.0001
  Prefactor  = 106.279
  norm       = 1.72986
  Prefactor  = 5.73191
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2651
  Normalizat = 1.42742
  Prefactor  = 0.723845
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.050     FROM HESSE     STATUS=OK           393 CALLS     3621 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    94.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .89192        .31220        .22104E-04   -1.5519    
   4  Prefactor     .10000E-03    28.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.672        14.524        .80640E-04   -1.4714    
   6  norm          .10000E-03    4.9237        .15228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.438        13.331        .11844E-03   -1.5031    
   9  Prefactor     .10000E-03    9.5620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .76627        .11845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.043        5.8874        .93373E-04   -1.4858    
  13  norm          .10000E-03    2.8869        .11648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.7445        49.807        .13537E-03   -1.5116    
  15  Prefactor     17.362        9.8998        .96120E-04   -1.4874    
  16  Prefactor     .10000E-03    57.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     106.28        70.142        .39010E-04   -1.3642    
  18  norm          1.7299        14.419        .31959E-03   -1.5445    
  19  Prefactor     5.7319        14.239        .83902E-03   -1.5229    
  20  norm          .10000E-03    1.1703        .73869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.265        12.422        .57191E-03   -1.5007    
  23  Normalizat    1.4274        .29656        .27949E-03   -.79839    
  24  Prefactor     .72385        .19164        .24374E-03   -1.0260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00388e-10
Minuit parameter uncertainties:
  1  0.000320339
  2  6.66415e-06
  3  0.312201
  4  0.000248527
  5  14.5264
  6  2.09497e-06
  7  2.17692e-05
  8  13.3344
  9  1.6346e-05
  10  1.82771e-05
  11  8.84663e-07
  12  5.88756
  13  8.00644e-07
  14  41.7919
  15  9.90077
  16  5.80553e-05
  17  70.1965
  18  9.99146
  19  14.2471
  20  1.6949e-07
  21  1.83414e-05
  22  12.4249
  23  0.296916
  24  0.191817
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  8.847e-07  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:  7.238e-01  1.918e-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.427e+00  2.969e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740229/likelihoodResults_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.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) = 4940.05582893
delta logL = -0.00607927600322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4940.04969111
delta logL = 5.85445168326e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6823       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4274       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72384       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=   4940.019     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      307 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34778E-01    4.3479        .90712E-02    .59735E-03
   2  alpha         5.0000        3.0077        .49409    ** at limit **
   3  Normalizat    1.3970        .60068E-01    .63768E-01   -.25383E-03
   4  Prefactor     .73618        .36169E-01    .42718E-01    .15689E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0347778
  alpha      = 5
  Normalizat = 1.39704
  Prefactor  = 0.736181
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.019     FROM HESSE     STATUS=OK            35 CALLS      342 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34778E-01    .18034        .36299E-03   -1.5671    
   2  alpha         5.0000        4.0574        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3970        .31492        .28206E-03   -.80714    
   4  Prefactor     .73618        .19375        .24190E-03   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24048e-09
Minuit parameter uncertainties:
  1  0.158161
  2  0.000343063
  3  0.315363
  4  0.193927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740229': 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) = 4940.01851701
delta logL = 0.031232649736

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.478e-02  1.582e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  5.000e+00  3.431e-04  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:  7.362e-01  1.939e-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.397e+00  3.154e-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/740229/cmap_HighResolution_484272001_484531201_4FGL_J1332.0-0509_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-05', job_status='DONE', photon_flux_upper_limit='9.23e-08', time_completed='2021-09-08 01:59:20.271990', job_id='740229', GAL2='0.74', fit_tolerance='1e-08', EG2='1.40', EG='1.43', time_epoch_completed='1631091560.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.12e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='945' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:59:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 740229: <4FGL_J1332.0-0509_daily_bin945> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin945 203.02 -5.1611 484272001 484531201 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 :                                   636.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            824 sec.

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

