/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 0 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin41
RA = 203.02, Dec = -5.1611
tmin = 249955201, tmax = 250214401
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='734634', job_status='RUN', time_executed='2021-09-08 01:26:07.133422', time_epoch_executed='1631089567.13' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734634/ft1_4FGL_J1332.0-0509_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734634/ft2_4FGL_J1332.0-0509_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734634/ft1_4FGL_J1332.0-0509_daily_bin41.fits outfile=/scratch/kocevski/734634/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin41.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.78
user 1.30
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734634/ft2_4FGL_J1332.0-0509_daily_bin41.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/734634/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/734634/ft1_filtered_4FGL_J1332.0-0509_daily_bin41.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.60
user 0.32
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734634/ft1_filtered_4FGL_J1332.0-0509_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/734634/ft2_4FGL_J1332.0-0509_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/734634/ltcube_249955201_250214401_4FGL_J1332.0-0509_daily_bin41.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/734634/ft2_4FGL_J1332.0-0509_daily_bin41.fits
.....................!
real 16.71
user 15.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734634/ft1_filtered_4FGL_J1332.0-0509_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/734634/ft2_4FGL_J1332.0-0509_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/734634/ltcube_249955201_250214401_4FGL_J1332.0-0509_daily_bin41.fits outfile=/scratch/kocevski/734634/expmap_249955201_250214401_4FGL_J1332.0-0509_daily_bin41.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/734634/ltcube_249955201_250214401_4FGL_J1332.0-0509_daily_bin41.fits
.....................!
real 192.51
user 186.24
sys 4.23

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/734634/ft1_filtered_4FGL_J1332.0-0509_daily_bin41.fits scfile=/scratch/kocevski/734634/ft2_4FGL_J1332.0-0509_daily_bin41.fits outfile=/scratch/kocevski/734634/cmap_249955201_250214401_4FGL_J1332.0-0509_daily_bin41.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=203.02 yref=-5.1611 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734634/ft1_filtered_4FGL_J1332.0-0509_daily_bin41.fits scfile=/scratch/kocevski/734634/ft2_4FGL_J1332.0-0509_daily_bin41.fits outfile=/scratch/kocevski/734634/cmap_HighResolution_249955201_250214401_4FGL_J1332.0-0509_daily_bin41.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.61
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734634/ft1_filtered_4FGL_J1332.0-0509_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/734634/ft2_4FGL_J1332.0-0509_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734634/Model_4FGL_J1332.0-0509_daily_bin41.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/734634/ft1_filtered_4FGL_J1332.0-0509_daily_bin41.fits.....................!
real 84.37
user 82.77
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.0132       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.748       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9366       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.539       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2337       1.0000         .10000E-03   10000.    
    12 'norm      '    .16406E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.6511       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9608       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    15.217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3778       1.0000         .10000E-03   10000.    
    20 'norm      '    1.3462       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2266       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97987       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=   11547.83     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2727 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.249        .14406E-06** at limit **
   2  norm          .10000E-03    8.4475       -.68557E-06** at limit **
   3  norm          7.0132        .47323        .53244E-08   -.69290E-03
   4  Prefactor     34.744        35.466       -.11535E-05   -.17468E-03
   5  norm          .10000E-03    3.5112       -.12061E-07** at limit **
   6  norm          .10000E-03    2.4009       -.14988E-07** at limit **
   7  Prefactor     .10000E-03    3.2353        .42641E-07** at limit **
   8  Prefactor     .10000E-03    5.8391        .15719E-06** at limit **
   9  Prefactor     1.9356        2.1759        .30622E-06   -.83673E-03
  10  Prefactor     37.552        18.074       -.58772E-06   -.99733E-03
  11  norm          3.2335        1.2675        .40299E-08   -.35527E-03
  12  norm          .10004E-03    2.5113        .15073E-05** at limit **
  13  norm          6.6530        5.5563       -.61076E-06   -.15293E-02
  14  norm          .10000E-03    11.058       -.15403E-05** at limit **
  15  Prefactor     .10001E-03    3.4340        .11367E-05** at limit **
  16  Prefactor     6.9590        12.002        .17274E-06    .13268E-04
  17  Prefactor     .10000E-03    23.877        .41491E-06** at limit **
  18  norm          15.220        7.1259       -.19935E-07   -.91007E-03
  19  Prefactor     5.3775        6.1906        .46156E-07   -.61971E-04
  20  norm          1.3461        1.1776        .93228E-08   -.95677E-04
  21  Prefactor     .10000E-03    8.4378       -.71814E-06** at limit **
  22  norm          .10000E-03    5.1581       -.75115E-07** at limit **
  23  Normalizat    1.2267        .19442       -.39557E-06   -.59329E-03
  24  Prefactor     .97983        .12506       -.91216E-07   -.81814E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.01318
  Prefactor  = 34.7441
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93559
  Prefactor  = 37.5523
  norm       = 3.23352
  norm       = 0.000100039
  norm       = 6.65296
  norm       = 0.000100002
  Prefactor  = 0.000100012
  Prefactor  = 6.95896
  Prefactor  = 0.0001
  norm       = 15.22
  Prefactor  = 5.37749
  norm       = 1.34613
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.2267
  Prefactor  = 0.979825
 **********
 **   18 **HESSE 
 **********

 FCN=   11547.83     FROM HESSE     STATUS=OK           393 CALLS     3120 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.4745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.0132        .47446        .18400E-04   -1.5178    
   4  Prefactor     34.744        35.582        .67982E-04   -1.4528    
   5  norm          .10000E-03    3.5257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.4024        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9356        7.2033        .14919E-02   -1.5430    
  10  Prefactor     37.552        18.588        .65415E-04   -1.4482    
  11  norm          3.2335        1.2679        .72574E-04   -1.5348    
  12  norm          .10004E-03    9.2663        .24256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.6530        5.6800        .77798E-03   -1.5192    
  14  norm          .10000E-03    11.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    9.8732        .32430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.9590        12.011        .15206E-03   -1.5180    
  17  Prefactor     .10000E-03    23.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          15.220        6.7717        .10268E-03   -1.4928    
  19  Prefactor     5.3775        6.2038        .86646E-03   -1.5244    
  20  norm          1.3461        1.1873        .10593E-03   -1.5476    
  21  Prefactor     .10000E-03    8.4650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.1681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2267        .23396        .34682E-03   -.85782    
  24  Prefactor     .97983        .14940        .25190E-03   -.93405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.04389e-09
Minuit parameter uncertainties:
  1  5.06464e-05
  2  0.00010092
  3  0.474459
  4  35.604
  5  2.36586e-06
  6  1.01316e-06
  7  3.16461e-07
  8  2.28271e-05
  9  7.20655
  10  18.5905
  11  1.26793
  12  0.00120084
  13  5.68049
  14  0.000263246
  15  0.000682945
  16  12.0152
  17  9.97183e-05
  18  6.77204
  19  6.20456
  20  1.18731
  21  0.000105805
  22  7.81645e-06
  23  0.234158
  24  0.14946
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.234e+00  1.268e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.798e-01  1.495e-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.227e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.42
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 9.78e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 1.15e-05

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) = 11546.9192139
delta logL = 0.908062114288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11546.9185053
delta logL = 0.908770763868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3725       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9016       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11546.92     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3724        1.5510        .55086E-02    .14962E-03
   2  alpha         1.9016        .36692        .34369       -.16044E-04
   3  Normalizat    1.2615        .18955        .77443E-01    .22647E-04
   4  Prefactor     .96539        .12474        .45833E-01    .18477E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.3724
  alpha      = 1.90156
  Normalizat = 1.2615
  Prefactor  = 0.96539
 **********
 **   18 **HESSE 
 **********

 FCN=   11546.92     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .28E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3724        1.4201        .77969E-04   -1.5341    
   2  alpha         1.9016        .36268        .14044E-01   -.24172    
   3  Normalizat    1.2615        .22622        .34277E-03   -.84723    
   4  Prefactor     .96539        .14861        .25354E-03   -.93892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76179e-13
Minuit parameter uncertainties:
  1  1.42006
  2  0.364043
  3  0.226392
  4  0.148673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734634': 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) = 11546.9185053
delta logL = 0.908770788115

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.372e+00  1.420e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.902e+00  3.640e-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:  9.654e-01  1.487e-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.262e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.08
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.90 +/- 0.36
Photon Flux (Free Index): 7.05e-08 +/- 3.64e-08
Energy Flux (Free Index): 3.52e-05 +/- 1.55e-05

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/734634/cmap_HighResolution_249955201_250214401_4FGL_J1332.0-0509_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.78e-08', energy_flux2='3.52e-05', photon_flux_error='3.83e-08', dlogl='9.09e-01', energy_flux='2.94e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-08 01:40:45.511688', photon_index_error2='0.36', photon_index2='1.90', ts='16.42', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='1.23', time_epoch_completed='1631090445.51', return_code='0', job_id='734634', GAL2='0.97', EG2='1.26', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.64e-08', ts2='18.08', photon_index='2.39' WHERE bin_id='41' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:40:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 734634: <4FGL_J1332.0-0509_daily_bin41> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin41> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:39 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:25:53 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:25:53 2021
Terminated at Wed Sep  8 01:40:46 2021
Results reported at Wed Sep  8 01:40:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin41 203.02 -5.1611 249955201 250214401 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 :                                   872.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            907 sec.

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

