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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin906
RA = 203.02, Dec = -5.1611
tmin = 474163201, tmax = 474422401
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='740159', job_status='RUN', time_executed='2021-09-08 01:49:32.365623', time_epoch_executed='1631090972.37' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740159

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740159/ft1_4FGL_J1332.0-0509_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740159/ft2_4FGL_J1332.0-0509_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740159/ft1_4FGL_J1332.0-0509_daily_bin906.fits outfile=/scratch/kocevski/740159/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin906.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=474163201.0 tmax=474422401.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.63
user 5.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740159/ft2_4FGL_J1332.0-0509_daily_bin906.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/740159/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/740159/ft1_filtered_4FGL_J1332.0-0509_daily_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740159/ft1_filtered_4FGL_J1332.0-0509_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/740159/ft2_4FGL_J1332.0-0509_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/740159/ltcube_474163201_474422401_4FGL_J1332.0-0509_daily_bin906.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/740159/ft2_4FGL_J1332.0-0509_daily_bin906.fits
.....................!
real 16.73
user 16.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740159/ft1_filtered_4FGL_J1332.0-0509_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/740159/ft2_4FGL_J1332.0-0509_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/740159/ltcube_474163201_474422401_4FGL_J1332.0-0509_daily_bin906.fits outfile=/scratch/kocevski/740159/expmap_474163201_474422401_4FGL_J1332.0-0509_daily_bin906.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/740159/ltcube_474163201_474422401_4FGL_J1332.0-0509_daily_bin906.fits
.....................!
real 192.85
user 187.40
sys 4.96

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/740159/ft1_filtered_4FGL_J1332.0-0509_daily_bin906.fits scfile=/scratch/kocevski/740159/ft2_4FGL_J1332.0-0509_daily_bin906.fits outfile=/scratch/kocevski/740159/cmap_474163201_474422401_4FGL_J1332.0-0509_daily_bin906.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.62
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740159/ft1_filtered_4FGL_J1332.0-0509_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/740159/ft2_4FGL_J1332.0-0509_daily_bin906.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740159/Model_4FGL_J1332.0-0509_daily_bin906.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/740159/ft1_filtered_4FGL_J1332.0-0509_daily_bin906.fits......................!
real 31.06
user 29.73
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    215.76       1.0000         .10000E-03   10000.    
     2 'norm      '    .37921E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .92019E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    15.394       1.0000         .10000E-03   10000.    
     6 'norm      '    21.928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35519E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49477E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14245E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    63.408       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3430       1.0000         .10000E-03   10000.    
    13 'norm      '    .94696E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .88818E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .98597E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    11.220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20825E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5386       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19344E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .29957E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99502       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92543       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=   3013.639     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2449 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     211.61        135.78        .37340E-07   -.46343E-05
   2  norm          .10000E-03    34.729        .82851E-08** at limit **
   3  norm          1.5338        .58795        .50042E-08   -.94661E-04
   4  Prefactor     .10000E-03    48.205        .55929E-06** at limit **
   5  norm          15.580        16.923        .13750E-06    .10465E-03
   6  norm          22.444        18.089       -.29604E-07   -.61667E-05
   7  Prefactor     .10000E-03    23.489        .11783E-06** at limit **
   8  Prefactor     .10000E-03    47.225       -.12275E-06** at limit **
   9  Prefactor     .10000E-03    6.3186        .11252E-07** at limit **
  10  Prefactor     64.381        66.991       -.50376E-05   -.10004E-03
  11  norm          .10000E-03    .91297        .32395E-07** at limit **
  12  norm          2.0780        23.325        .62729E-05   -.72987E-04
  13  norm          .10000E-03    15.308       -.72495E-06** at limit **
  14  norm          .10000E-03    17.565        .76775E-08** at limit **
  15  Prefactor     .10000E-03    5.7385       -.53043E-06** at limit **
  16  Prefactor     .10000E-03    7.8913        .80141E-08** at limit **
  17  Prefactor     .10000E-03    95.224       -.13961E-06** at limit **
  18  norm          11.256        13.008       -.20594E-06   -.18760E-03
  19  Prefactor     .10000E-03    6.3970        .15737E-07** at limit **
  20  norm          5.6063        5.2549        .57284E-07   -.23331E-04
  21  Prefactor     .10000E-03    14.731        .85744E-08** at limit **
  22  norm          .10000E-03    9.3737        .80640E-08** at limit **
  23  Normalizat    .99452        .31040       -.56441E-06    .42449E-04
  24  Prefactor     .92520        .20858        .21634E-06   -.51226E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 211.611
  norm       = 0.0001
  norm       = 1.53381
  Prefactor  = 0.0001
  norm       = 15.5796
  norm       = 22.4437
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 64.3808
  norm       = 0.0001
  norm       = 2.07798
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2557
  Prefactor  = 0.0001
  norm       = 5.60634
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.994524
  Prefactor  = 0.925205
 **********
 **   18 **HESSE 
 **********

 FCN=   3013.639     FROM HESSE     STATUS=OK           391 CALLS     2840 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     211.61        137.73        .27531E-04   -1.2788    
   2  norm          .10000E-03    34.778        .19560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5338        .59642        .22734E-04   -1.5460    
   4  Prefactor     .10000E-03    48.197        .18228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          15.580        16.943        .10208E-03   -1.4918    
   6  norm          22.444        18.101        .85537E-04   -1.4760    
   7  Prefactor     .10000E-03    24.469        .39276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.669        .19217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3431        .13476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.381        67.427        .50395E-04   -1.4101    
  11  norm          .10000E-03    .92275        .51177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0780        24.057        .26306E-03   -1.5420    
  13  norm          .10000E-03    15.672        .20798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    17.566        .20838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7029        .12756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8930        .15063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    95.375        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.256        13.046        .11960E-03   -1.5037    
  19  Prefactor     .10000E-03    6.4070        .13561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.6063        5.2493        .11370E-03   -1.5234    
  21  Prefactor     .10000E-03    14.737        .20259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.3766        .16417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99452        .35990        .31735E-03   -.93214    
  24  Prefactor     .92520        .24306        .21888E-03   -.95266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59826e-10
Minuit parameter uncertainties:
  1  137.942
  2  1.79059e-05
  3  0.596422
  4  0.000290809
  5  16.9479
  6  18.1051
  7  1.59733e-05
  8  0.000406808
  9  1.24003e-06
  10  67.507
  11  1.8658e-06
  12  14.1475
  13  5.42091e-05
  14  2.27878e-06
  15  9.4599e-05
  16  6.20368e-07
  17  1.7611e-05
  18  13.0495
  19  1.73606e-06
  20  5.24971
  21  2.91221e-06
  22  1.13872e-06
  23  0.360783
  24  0.243348
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.866e-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:  9.252e-01  2.433e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.945e-01  3.608e-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: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740159/likelihoodResults_474163201_474422401_4FGL_J1332.0-0509_daily_bin906.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) = 3013.6436825
delta logL = -0.00503520448819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3013.63864747
delta logL = -1.75392870005e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3863       1.0000          .0000       5.0000    
     3 'Normalizat'    .99454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92527       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3013.639     FROM MIGRAD    STATUS=FAILED        93 CALLS      229 TOTAL
                     EDM=   .42E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    74.209        .51306E-02** at limit **
   2  alpha         1.7515        2.5661        .50000       -.14588E-05
   3  Normalizat    .99452        .72873E-01    .31735E-03    .24338E-03
   4  Prefactor     .92521        .48990E-01    .21888E-03    .40020E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3013.639     FROM SIMPLEX   STATUS=UNCHANGED    222 CALLS      451 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    74.209        .14783E-03** at limit **
   2  alpha         1.7515        2.5661        .48074E-07   -.14588E-05
   3  Normalizat    .99452        .72873E-01    .33174E-08    .24338E-03
   4  Prefactor     .92521        .48990E-01    .10604E-08    .40020E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3013.639     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      483 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7017        .54531E-03** at limit **
   2  alpha         1.7513        4.1234        .50000       -.14805E-05
   3  Normalizat    .99452        .35204        .63471E-04    .24224E-03
   4  Prefactor     .92521        .23685        .43776E-04    .39885E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.7513
  Normalizat = 0.994523
  Prefactor  = 0.925208
 **********
 **   18 **HESSE 
 **********

 FCN=   3013.639     FROM HESSE     STATUS=OK            27 CALLS      510 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0563        .10906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7513        2.7524        .50000       -.30415    
   3  Normalizat    .99452        .35210        .12694E-04   -.93214    
   4  Prefactor     .92521        .23689        .87551E-05   -.95266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4665e-09
Minuit parameter uncertainties:
  1  4.02334e-06
  2  126.431
  3  0.352924
  4  0.237153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740159': 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) = 3013.63864119
delta logL = 6.10116876487e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  4.023e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.751e+00  1.264e+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:  9.252e-01  2.372e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.945e-01  3.529e-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/740159/cmap_HighResolution_474163201_474422401_4FGL_J1332.0-0509_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-08 01:57:56.913387', job_id='740159', GAL2='0.93', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631091476.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='906' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:57:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 740159: <4FGL_J1332.0-0509_daily_bin906> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin906> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:33 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:36 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:36 2021
Terminated at Wed Sep  8 01:57:57 2021
Results reported at Wed Sep  8 01:57:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin906 203.02 -5.1611 474163201 474422401 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 :                                   498.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             231.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            744 sec.

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

