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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin1205
RA = 203.02, Dec = -5.1611
tmin = 551664001, tmax = 551923201
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='740641', job_status='RUN', time_executed='2021-09-08 01:49:49.007470', time_epoch_executed='1631090989.01' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740641/ft1_4FGL_J1332.0-0509_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740641/ft1_4FGL_J1332.0-0509_daily_bin1205.fits outfile=/scratch/kocevski/740641/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1205.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=551664001.0 tmax=551923201.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.86
user 3.61
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.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/740641/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/740641/ft1_filtered_4FGL_J1332.0-0509_daily_bin1205.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740641/ft1_filtered_4FGL_J1332.0-0509_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/740641/ltcube_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.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/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.fits
.....................!
real 15.51
user 15.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740641/ft1_filtered_4FGL_J1332.0-0509_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/740641/ltcube_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.fits outfile=/scratch/kocevski/740641/expmap_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.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/740641/ltcube_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.fits
.....................!
real 192.74
user 186.98
sys 5.29

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/740641/ft1_filtered_4FGL_J1332.0-0509_daily_bin1205.fits scfile=/scratch/kocevski/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.fits outfile=/scratch/kocevski/740641/cmap_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740641/ft1_filtered_4FGL_J1332.0-0509_daily_bin1205.fits scfile=/scratch/kocevski/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.fits outfile=/scratch/kocevski/740641/cmap_HighResolution_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740641/ft1_filtered_4FGL_J1332.0-0509_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/740641/ft2_4FGL_J1332.0-0509_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740641/Model_4FGL_J1332.0-0509_daily_bin1205.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/740641/ft1_filtered_4FGL_J1332.0-0509_daily_bin1205.fits.....................!
real 32.58
user 31.18
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.958       1.0000         .10000E-03   10000.    
     2 'norm      '    .84112E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.5320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7041       1.0000         .10000E-03   10000.    
     5 'norm      '    .44781E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .18137E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34051E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77964       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1068       1.0000         .10000E-03   10000.    
    11 'norm      '    .15180E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.843       1.0000         .10000E-03   10000.    
    13 'norm      '    21.825       1.0000         .10000E-03   10000.    
    14 'norm      '    .24413E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .75664E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20346E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83753E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.3975       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.473       1.0000         .10000E-03   10000.    
    20 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    284.16       1.0000         .10000E-03   10000.    
    22 'norm      '    .11469E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88386E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2778.324     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     1958 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.772        31.046       -.82682E-05   -.15391E-01
   2  norm          .10001E-03    39.373        .45955E-04** at limit **
   3  norm          7.4530        1.1031        .72063E-06    .39293E-03
   4  Prefactor     51.961        169.99        .12671E-04    .39504E-03
   5  norm          .10000E-03    25.690        .23470E-04** at limit **
   6  norm          .10000E-03    27.824        .11808E-04** at limit **
   7  Prefactor     .10000E-03    8.7740       -.86667E-05** at limit **
   8  Prefactor     .10006E-03    45.100        .16699E-04** at limit **
   9  Prefactor     .83735        2.0729        .10923E-04   -.21985E-02
  10  Prefactor     8.1769        148.13        .12607E-05    .87465E-03
  11  norm          .10000E-03    2.2169        .15117E-05** at limit **
  12  norm          13.548        14.013       -.82455E-05   -.48511E-03
  13  norm          21.736        18.186        .21361E-04    .10468E-02
  14  norm          .10013E-03    41.372       -.51346E-04** at limit **
  15  Prefactor     .10000E-03    5.8351        .29196E-05** at limit **
  16  Prefactor     .10004E-03    35.044        .62107E-05** at limit **
  17  Prefactor     .11227E-03    2.2611       -.42990E-05** at limit **
  18  norm          9.5275        2.8168       -.15112E-05    .65636E-02
  19  Prefactor     49.023        64.968       -.23963E-04    .60731E-02
  20  norm          .10000E-03    1.6471        .33902E-05** at limit **
  21  Prefactor     284.11        13.475       -.20143E-05   -.10208E-01
  22  norm          .10000E-03    22.482        .26197E-04** at limit **
  23  Normalizat    .79175E-01    1.2091        .27747E-04   -.27359E-04
  24  Prefactor     1.4419        .34232        .27577E-04   -.58145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.7717
  norm       = 0.00010001
  norm       = 7.45303
  Prefactor  = 51.9613
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.837348
  Prefactor  = 8.17693
  norm       = 0.0001
  norm       = 13.5475
  norm       = 21.7363
  norm       = 0.000100132
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.000112274
  norm       = 9.52746
  Prefactor  = 49.0232
  norm       = 0.0001
  Prefactor  = 284.106
  norm       = 0.0001
  Normalizat = 0.0791749
  Prefactor  = 1.44192
 **********
 **   18 **HESSE 
 **********

 FCN=   2778.324     FROM HESSE     STATUS=NOT POSDEF   443 CALLS     2401 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.772        91.091        .12643E-02   -1.4097    
   2  norm          .10001E-03    34.093        .10436E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.4530        2.0929        .36532E-02   -1.5162    
   4  Prefactor     51.961        183.33        .42046E-02   -1.4265    
   5  norm          .10000E-03    22.303        .10605E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    23.983        .10157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6022        .98434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    39.998        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83735        96.346        .69521E-01   -1.5525    
  10  Prefactor     8.1769        485.40        .40616E-02   -1.5136    
  11  norm          .10000E-03    1.9742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.548        12.466        .26913E-02   -1.4972    
  13  norm          21.736        16.934        .21435E-02   -1.4775    
  14  norm          .10013E-03    36.530        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0964        .10468E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    30.415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11227E-03    51.138        .10437E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.5275        23.046        .32683E-02   -1.5091    
  19  Prefactor     49.023        72.827        .14112E-02   -1.4306    
  20  norm          .10000E-03    1.4326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     284.11        226.47        .60184E-03   -1.2321    
  22  norm          .10000E-03    19.441        .10335E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79175E-01    9.7550        .33379       -1.4042    
  24  Prefactor     1.4419        1.4193        .49110E-01   -.79180    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.90682e-06
Minuit parameter uncertainties:
  1  91.2881
  2  0.0011757
  3  2.09288
  4  185.375
  5  0.000118477
  6  0.000136219
  7  1.72588e-05
  8  0.00308748
  9  17.9925
  10  127.097
  11  1.68437e-06
  12  12.468
  13  16.9382
  14  0.00439111
  15  3.98591e-06
  16  0.00208744
  17  0.0501487
  18  23.0672
  19  72.9594
  20  3.01679e-06
  21  227.175
  22  0.000132689
  23  2.40644
  24  1.46111
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.684e-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.442e+00  1.461e+00  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:  7.917e-02  2.406e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740641/likelihoodResults_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.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) = 2778.32649758
delta logL = -0.00206180329042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2778.32443605
delta logL = -2.72410034086e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3892       1.0000          .0000       5.0000    
     3 'Normalizat'    .78886E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4421       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=   2778.324     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      245 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.6788        .75891E-03** at limit **
   2  alpha         2.2929        3.3858        .16481        .20332E-06
   3  Normalizat    .79198E-01    1.4122        .11671E-01    .25737E-03
   4  Prefactor     1.4419        .38910        .21705E-03    .16160E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.29287
  Normalizat = 0.0791985
  Prefactor  = 1.44191
 **********
 **   18 **HESSE 
 **********

 FCN=   2778.324     FROM HESSE     STATUS=OK            23 CALLS      268 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2437        .15178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2929        3.3310        .65925E-02   -.82946E-01
   3  Normalizat    .79198E-01    1.0745        .46684E-03   -1.4041    
   4  Prefactor     1.4419        .33729        .43411E-04   -.79180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86381e-09
Minuit parameter uncertainties:
  1  6.97492e-05
  2  150.053
  3  0.55775
  4  0.337811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740641': 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) = 2778.32443554
delta logL = 2.33457285503e-07

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  6.975e-05  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.293e+00  1.501e+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:  1.442e+00  3.378e-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:  7.920e-02  5.577e-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/740641/cmap_HighResolution_551664001_551923201_4FGL_J1332.0-0509_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.70e-05', job_status='DONE', photon_flux_upper_limit='2.23e-07', time_completed='2021-09-08 02:00:18.883075', job_id='740641', GAL2='1.44', fit_tolerance='1e-08', EG2='0.08', EG='0.08', time_epoch_completed='1631091618.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.44', dlogl='2.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1205' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:00:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 740641: <4FGL_J1332.0-0509_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin1205> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:46:16 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:46:18 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:46:18 2021
Terminated at Wed Sep  8 02:00:19 2021
Results reported at Wed Sep  8 02:00:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin1205 203.02 -5.1611 551664001 551923201 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 :                                   470.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

