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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin919
RA = 203.02, Dec = -5.1611
tmin = 477532801, tmax = 477792001
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='740181', job_status='RUN', time_executed='2021-09-08 01:48:30.817159', time_epoch_executed='1631090910.82' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='919'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740181/ft1_4FGL_J1332.0-0509_daily_bin919.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740181/ft1_4FGL_J1332.0-0509_daily_bin919.fits outfile=/scratch/kocevski/740181/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin919.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=477532801.0 tmax=477792001.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 4.19
user 3.40
sys 0.46

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.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/740181/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin919.fits evtable="EVENTS" outfile="/scratch/kocevski/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.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.58
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits" evtable="EVENTS" scfile=/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits sctable="SC_DATA" outfile=/scratch/kocevski/740181/ltcube_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.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/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits
.....................!
real 15.96
user 15.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits evtable="EVENTS" scfile=/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits sctable="SC_DATA" expcube=/scratch/kocevski/740181/ltcube_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.fits outfile=/scratch/kocevski/740181/expmap_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.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/740181/ltcube_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.fits
.....................!
real 192.16
user 186.45
sys 4.51

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/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits scfile=/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits outfile=/scratch/kocevski/740181/cmap_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.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.64
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits scfile=/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits outfile=/scratch/kocevski/740181/cmap_HighResolution_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits evtable="EVENTS" scfile=/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740181/Model_4FGL_J1332.0-0509_daily_bin919.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/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits.....................!
real 64.17
user 62.66
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits', '/scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits', expMap='/scratch/kocevski/740181/expmap_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.fits', expCube='/scratch/kocevski/740181/ltcube_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/740181/Model_4FGL_J1332.0-0509_daily_bin919.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/740181/ft1_filtered_4FGL_J1332.0-0509_daily_bin919.fits
Spacecraft file(s): /scratch/kocevski/740181/ft2_4FGL_J1332.0-0509_daily_bin919.fits
Exposure map: /scratch/kocevski/740181/expmap_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.fits
Exposure cube: /scratch/kocevski/740181/ltcube_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/740181/Model_4FGL_J1332.0-0509_daily_bin919.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8134.62303007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5236       1.0000         .10000E-03   10000.    
     2 'norm      '    42.147       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11610E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0510       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0154       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8989       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48903E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.606       1.0000         .10000E-03   10000.    
    18 'norm      '    .48579E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .69374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.1509       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5961       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64558       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=   8134.547     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2418 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5178        44.289       -.36342E-05   -.17842E-05
   2  norm          42.157        29.286       -.37995E-06    .43516E-05
   3  norm          2.3562        .35032        .58786E-08    .19447E-03
   4  Prefactor     .10000E-03    218.56       -.14158E-04** at limit **
   5  norm          .10000E-03    2.9345        .25292E-06** at limit **
   6  norm          .10000E-03    2.4800       -.13757E-06** at limit **
   7  Prefactor     2.7664        6.9813       -.30515E-06   -.49152E-04
   8  Prefactor     .10000E-03    15.508        .41470E-06** at limit **
   9  Prefactor     2.0499        2.7211        .38702E-06   -.19513E-02
  10  Prefactor     6.0095        29.915        .57624E-06   -.15833E-03
  11  norm          .10000E-03    .50854        .67279E-08** at limit **
  12  norm          6.8993        5.4006       -.17572E-06   -.14751E-04
  13  norm          .10000E-03    3.0024        .27091E-08** at limit **
  14  norm          .10030E-03    10.942        .69398E-06** at limit **
  15  Prefactor     5.1502        4.5753        .11238E-07   -.11919E-02
  16  Prefactor     .10000E-03    4.9569        .28093E-06** at limit **
  17  Prefactor     33.609        28.515       -.12326E-06    .28702E-05
  18  norm          .10000E-03    4.1012       -.19529E-06** at limit **
  19  Prefactor     .10000E-03    5.0414        .63471E-08** at limit **
  20  norm          .69379        2.1394       -.85773E-07   -.18663E-03
  21  Prefactor     .10000E-03    10.461        .27356E-06** at limit **
  22  norm          7.1489        13.745       -.12352E-04   -.63603E-04
  23  Normalizat    1.5963        .19735       -.87773E-06    .11073E-03
  24  Prefactor     .64560        .12621        .15811E-05   -.47414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.51778
  norm       = 42.1567
  norm       = 2.35617
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.7664
  Prefactor  = 0.0001
  Prefactor  = 2.04995
  Prefactor  = 6.00948
  norm       = 0.0001
  norm       = 6.89931
  norm       = 0.0001
  norm       = 0.000100302
  Prefactor  = 5.15019
  Prefactor  = 0.0001
  Prefactor  = 33.6087
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.693785
  Prefactor  = 0.0001
  norm       = 7.14888
  Normalizat = 1.59626
  Prefactor  = 0.645597
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.547     FROM HESSE     STATUS=OK           403 CALLS     2821 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5178        45.115        .12986E-03   -1.5091    
   2  norm          42.157        29.288        .61748E-04   -1.4408    
   3  norm          2.3562        .35475        .18622E-04   -1.5401    
   4  Prefactor     .10000E-03    220.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.9408        .15088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4813        .13871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7664        6.9631        .24468E-03   -1.5375    
   8  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0499        5.4651        .14432E-02   -1.5422    
  10  Prefactor     6.0095        31.329        .81855E-03   -1.5218    
  11  norm          .10000E-03    .95454        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8993        5.5318        .10935E-03   -1.5183    
  13  norm          .10000E-03    3.0310        .15237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10030E-03    147.98        .58091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1502        4.5967        .86555E-03   -1.5254    
  16  Prefactor     .10000E-03    4.9632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.609        28.519        .69125E-04   -1.4548    
  18  norm          .10000E-03    11.009        .33698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .69379        2.1343        .21990E-03   -1.5541    
  21  Prefactor     .10000E-03    10.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.1489        13.773        .15000E-03   -1.5173    
  23  Normalizat    1.5963        .23195        .26841E-03   -.75108    
  24  Prefactor     .64560        .14647        .25564E-03   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38013e-09
Minuit parameter uncertainties:
  1  41.4947
  2  29.2984
  3  0.35475
  4  0.000130897
  5  1.6767e-08
  6  7.9389e-07
  7  6.96518
  8  6.77829e-06
  9  5.46641
  10  27.4647
  11  6.03929e-06
  12  5.53218
  13  1.43066e-06
  14  0.0134073
  15  4.59697
  16  1.13536e-08
  17  28.5307
  18  4.70056e-06
  19  6.34344e-07
  20  2.13453
  21  4.1566e-06
  22  13.7794
  23  0.232107
  24  0.146556
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  6.039e-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:  6.456e-01  1.466e-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.596e+00  2.321e-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: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740181/likelihoodResults_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.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) = 8134.55171306
delta logL = -0.00501184137647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8134.54670266
delta logL = -1.43780653161e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4107       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64560       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8134.547     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      258 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    222.83        .12454E-02** at limit **
   2  alpha         2.7908        2.8436        .16474        .74186E-07
   3  Normalizat    1.5963        .11416        .26841E-03   -.42153E-03
   4  Prefactor     .64560        .72736E-01    .25564E-03   -.44333E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.79079
  Normalizat = 1.59625
  Prefactor  = 0.645599
 **********
 **   18 **HESSE 
 **********

 FCN=   8134.547     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1155        .24909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7908        3.2208        .65896E-02    .11658    
   3  Normalizat    1.5963        .22483        .53683E-04   -.75108    
   4  Prefactor     .64560        .14413        .10226E-04   -1.0570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89813e-10
Minuit parameter uncertainties:
  1  5.09323e-06
  2  100.51
  3  0.224974
  4  0.144214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740181': 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) = 8134.54669382
delta logL = 7.39759616408e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  5.093e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.791e+00  1.005e+02  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:  6.456e-01  1.442e-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.596e+00  2.250e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/740181/cmap_HighResolution_477532801_477792001_4FGL_J1332.0-0509_daily_bin919.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='6.51e-08', time_completed='2021-09-08 02:01:24.527182', job_id='740181', GAL2='0.65', fit_tolerance='1e-08', EG2='1.60', EG='1.60', time_epoch_completed='1631091684.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='7.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='919' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:01:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 740181: <4FGL_J1332.0-0509_daily_bin919> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin919 203.02 -5.1611 477532801 477792001 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 :                                   761.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            951 sec.

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

