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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin411
RA = 203.02, Dec = -5.1611
tmin = 345859201, tmax = 346118401
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='737208', job_status='RUN', time_executed='2021-09-08 01:38:44.307021', time_epoch_executed='1631090324.31' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737208

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737208/ft1_4FGL_J1332.0-0509_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737208/ft2_4FGL_J1332.0-0509_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737208/ft1_4FGL_J1332.0-0509_daily_bin411.fits outfile=/scratch/kocevski/737208/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin411.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=345859201.0 tmax=346118401.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.46
user 3.21
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737208/ft2_4FGL_J1332.0-0509_daily_bin411.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/737208/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin411.fits evtable="EVENTS" outfile="/scratch/kocevski/737208/ft1_filtered_4FGL_J1332.0-0509_daily_bin411.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.53
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737208/ft1_filtered_4FGL_J1332.0-0509_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/737208/ft2_4FGL_J1332.0-0509_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/737208/ltcube_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.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/737208/ft2_4FGL_J1332.0-0509_daily_bin411.fits
.....................!
real 17.58
user 17.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737208/ft1_filtered_4FGL_J1332.0-0509_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/737208/ft2_4FGL_J1332.0-0509_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/737208/ltcube_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.fits outfile=/scratch/kocevski/737208/expmap_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.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/737208/ltcube_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.fits
.....................!
real 192.91
user 188.37
sys 3.90

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/737208/ft1_filtered_4FGL_J1332.0-0509_daily_bin411.fits scfile=/scratch/kocevski/737208/ft2_4FGL_J1332.0-0509_daily_bin411.fits outfile=/scratch/kocevski/737208/cmap_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.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.58
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737208/ft1_filtered_4FGL_J1332.0-0509_daily_bin411.fits scfile=/scratch/kocevski/737208/ft2_4FGL_J1332.0-0509_daily_bin411.fits outfile=/scratch/kocevski/737208/cmap_HighResolution_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737208/ft1_filtered_4FGL_J1332.0-0509_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/737208/ft2_4FGL_J1332.0-0509_daily_bin411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737208/Model_4FGL_J1332.0-0509_daily_bin411.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/737208/ft1_filtered_4FGL_J1332.0-0509_daily_bin411.fits.....................!
real 55.19
user 53.69
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.767       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .74156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.867       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6000       1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.704       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .23651E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .84618       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38901E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .53983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3329       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0629       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=   6802.139     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2778 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.782        48.638        .41124E-05    .14327E-03
   2  norm          .10000E-03    13.506        .13716E-05** at limit **
   3  norm          .74155        .26125       -.67835E-07    .33967E-03
   4  Prefactor     .10000E-03    17.722       -.44919E-05** at limit **
   5  norm          .10000E-03    7.9922       -.32258E-06** at limit **
   6  norm          .10000E-03    3.1217       -.17462E-07** at limit **
   7  Prefactor     7.8365        8.9484        .61194E-06    .22282E-04
   8  Prefactor     11.865        22.195        .23151E-05    .11102E-03
   9  Prefactor     6.6005        6.3911        .24993E-06    .24089E-05
  10  Prefactor     32.753        21.802        .20498E-05   -.53933E-03
  11  norm          .10000E-03    .36765       -.43308E-08** at limit **
  12  norm          .10052E-03    2.4925       -.69398E-09** at limit **
  13  norm          .85226        1.0025        .30703E-06   -.29281E-02
  14  norm          .10000E-03    8.4871       -.23399E-05** at limit **
  15  Prefactor     17.105        7.0794        .33001E-06    .64784E-04
  16  Prefactor     .10000E-03    5.9074       -.13692E-07** at limit **
  17  Prefactor     .10002E-03    164.25       -.15078E-04** at limit **
  18  norm          .10000E-03    2.4156       -.29313E-07** at limit **
  19  Prefactor     .41737E-01    4.7302        .81132E-06   -.47178E-03
  20  norm          .53893        2.0670       -.17130E-06   -.11772E-03
  21  Prefactor     .10000E-03    9.1898        .97012E-06** at limit **
  22  norm          .10000E-03    7.9514        .14668E-05** at limit **
  23  Normalizat    1.3329        .23494       -.23804E-06    .93791E-04
  24  Prefactor     1.0629        .15260        .95336E-06    .43214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.7816
  norm       = 0.0001
  norm       = 0.741548
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.83648
  Prefactor  = 11.8646
  Prefactor  = 6.6005
  Prefactor  = 32.7534
  norm       = 0.0001
  norm       = 0.000100518
  norm       = 0.852257
  norm       = 0.0001
  Prefactor  = 17.105
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.0417368
  norm       = 0.53893
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.33292
  Prefactor  = 1.06287
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.139     FROM HESSE     STATUS=OK           411 CALLS     3189 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.782        48.704        .55742E-04   -1.4268    
   2  norm          .10000E-03    13.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .74155        .26214        .23032E-04   -1.5536    
   4  Prefactor     .10000E-03    17.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.0971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1229        .14231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.8365        8.9411        .14325E-03   -1.5148    
   8  Prefactor     11.865        22.291        .11629E-03   -1.5019    
   9  Prefactor     6.6005        6.3925        .15620E-03   -1.5194    
  10  Prefactor     32.753        24.966        .70068E-04   -1.4563    
  11  norm          .10000E-03    .37262        .48816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10052E-03    24.245        .22156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .85226        7.2840        .61324E-01   -1.5523    
  14  norm          .10000E-03    8.4937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.105        7.1556        .96846E-04   -1.4881    
  16  Prefactor     .10000E-03    5.9118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    166.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.4215        .12516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .41737E-01    6.5578        .65874E-01   -1.5667    
  20  norm          .53893        3.6297        .21815E-02   -1.5561    
  21  Prefactor     .10000E-03    9.1921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.9556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3329        .27530        .30697E-03   -.82589    
  24  Prefactor     1.0629        .17900        .22797E-03   -.90662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72288e-08
Minuit parameter uncertainties:
  1  48.7412
  2  7.13343e-05
  3  0.262136
  4  0.000308888
  5  3.16461e-05
  6  1.75594e-06
  7  8.94266
  8  22.3063
  9  6.39318
  10  24.9737
  11  1.19134e-06
  12  0.00709348
  13  4.98363
  14  0.000110432
  15  7.15598
  16  4.1696e-06
  17  0.00320056
  18  4.77517e-06
  19  1.04519
  20  2.79723
  21  4.3388e-05
  22  6.30337e-05
  23  0.275602
  24  0.179104
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.191e-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.063e+00  1.791e-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.333e+00  2.756e-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: 5.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737208/likelihoodResults_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.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) = 6802.13903827
delta logL = -5.03117826156e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6802.13898401
delta logL = 3.94973267248e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10483E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1384       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3329       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       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=   6802.139     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      249 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .48403        .50891E-03** at limit **
   2  alpha         1.9824        3.4300        .16684       -.22426E-06
   3  Normalizat    1.3329        .26096        .30697E-03    .28451E-03
   4  Prefactor     1.0629        .17665        .22797E-03    .39296E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98241
  Normalizat = 1.33292
  Prefactor  = 1.06287
 **********
 **   18 **HESSE 
 **********

 FCN=   6802.139     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .41031        .10178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9824        3.4657        .66734E-02   -.20854    
   3  Normalizat    1.3329        .26117        .61394E-04   -.82589    
   4  Prefactor     1.0629        .17679        .45595E-04   -.90662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78579e-10
Minuit parameter uncertainties:
  1  5.39213e-07
  2  79.6746
  3  0.261431
  4  0.176888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737208': 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) = 6802.13897564
delta logL = 1.23195795823e-05

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  5.392e-07  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.982e+00  7.967e+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.063e+00  1.769e-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.333e+00  2.614e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/737208/cmap_HighResolution_345859201_346118401_4FGL_J1332.0-0509_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.73e-05', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-08 01:50:49.057952', job_id='737208', GAL2='1.06', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631091049.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.23e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='411' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 737208: <4FGL_J1332.0-0509_daily_bin411> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin411> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:27 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:35:51 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:35:51 2021
Terminated at Wed Sep  8 01:50:49 2021
Results reported at Wed Sep  8 01:50:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin411 203.02 -5.1611 345859201 346118401 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            922 sec.

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

