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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin282
RA = 203.02, Dec = -5.1611
tmin = 312422401, tmax = 312681601
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='735955', job_status='RUN', time_executed='2021-09-08 01:32:06.074648', time_epoch_executed='1631089926.07' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735955/ft1_4FGL_J1332.0-0509_daily_bin282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735955/ft2_4FGL_J1332.0-0509_daily_bin282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735955/ft1_4FGL_J1332.0-0509_daily_bin282.fits outfile=/scratch/kocevski/735955/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin282.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=312422401.0 tmax=312681601.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.96
user 3.64
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735955/ft1_filtered_4FGL_J1332.0-0509_daily_bin282.fits" evtable="EVENTS" scfile=/scratch/kocevski/735955/ft2_4FGL_J1332.0-0509_daily_bin282.fits sctable="SC_DATA" outfile=/scratch/kocevski/735955/ltcube_312422401_312681601_4FGL_J1332.0-0509_daily_bin282.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/735955/ft2_4FGL_J1332.0-0509_daily_bin282.fits
.....................!
real 15.21
user 14.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735955/ft1_filtered_4FGL_J1332.0-0509_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/735955/ft2_4FGL_J1332.0-0509_daily_bin282.fits sctable="SC_DATA" expcube=/scratch/kocevski/735955/ltcube_312422401_312681601_4FGL_J1332.0-0509_daily_bin282.fits outfile=/scratch/kocevski/735955/expmap_312422401_312681601_4FGL_J1332.0-0509_daily_bin282.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/735955/ltcube_312422401_312681601_4FGL_J1332.0-0509_daily_bin282.fits
.....................!
real 192.06
user 186.25
sys 4.59

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/735955/ft1_filtered_4FGL_J1332.0-0509_daily_bin282.fits scfile=/scratch/kocevski/735955/ft2_4FGL_J1332.0-0509_daily_bin282.fits outfile=/scratch/kocevski/735955/cmap_312422401_312681601_4FGL_J1332.0-0509_daily_bin282.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735955/ft1_filtered_4FGL_J1332.0-0509_daily_bin282.fits scfile=/scratch/kocevski/735955/ft2_4FGL_J1332.0-0509_daily_bin282.fits outfile=/scratch/kocevski/735955/cmap_HighResolution_312422401_312681601_4FGL_J1332.0-0509_daily_bin282.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735955/ft1_filtered_4FGL_J1332.0-0509_daily_bin282.fits evtable="EVENTS" scfile=/scratch/kocevski/735955/ft2_4FGL_J1332.0-0509_daily_bin282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735955/Model_4FGL_J1332.0-0509_daily_bin282.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/735955/ft1_filtered_4FGL_J1332.0-0509_daily_bin282.fits.....................!
real 61.08
user 59.00
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.509       1.0000         .10000E-03   10000.    
     2 'norm      '    29.643       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    22.346       1.0000         .10000E-03   10000.    
     6 'norm      '    15.741       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.512       1.0000         .10000E-03   10000.    
    11 'norm      '    4.7856       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7398       1.0000         .10000E-03   10000.    
    14 'norm      '    22.926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7448       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8535       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6960       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.912       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5665       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86481       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=   7527.728     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2673 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.499        59.786       -.18925E-04    .10203E-04
   2  norm          29.642        26.111       -.58617E-06    .16575E-05
   3  norm          1.2536        .35394        .13283E-06   -.22140E-02
   4  Prefactor     .10000E-03    49.949        .64384E-06** at limit **
   5  norm          22.345        11.708       -.20589E-06   -.13979E-04
   6  norm          15.742        10.303        .21511E-06    .32577E-03
   7  Prefactor     .10000E-03    5.4240        .11962E-06** at limit **
   8  Prefactor     .10000E-03    7.2754       -.68647E-06** at limit **
   9  Prefactor     .10000E-03    4.1228        .10298E-05** at limit **
  10  Prefactor     41.513        19.574        .16372E-06    .19270E-04
  11  norm          4.7856        1.8150       -.31892E-07   -.19260E-03
  12  norm          .10000E-03    1.3571       -.34646E-06** at limit **
  13  norm          5.7396        5.6516       -.53668E-06   -.12602E-03
  14  norm          22.926        34.283       -.69374E-06   -.27110E-05
  15  Prefactor     .10000E-03    1.9682       -.15060E-06** at limit **
  16  Prefactor     .10000E-03    9.5370       -.61626E-06** at limit **
  17  Prefactor     .10000E-03    34.238        .80631E-06** at limit **
  18  norm          5.7441        7.4081       -.29763E-06   -.17569E-03
  19  Prefactor     2.8493        16.270       -.10601E-06   -.11608E-03
  20  norm          3.6959        2.6850       -.13525E-06   -.33827E-03
  21  Prefactor     20.910        42.107       -.30660E-05   -.44163E-05
  22  norm          .10000E-03    12.933       -.38585E-06** at limit **
  23  Normalizat    1.5665        .23581       -.10540E-05    .31091E-04
  24  Prefactor     .86482        .14972        .84117E-06   -.61585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4992
  norm       = 29.6416
  norm       = 1.25361
  Prefactor  = 0.0001
  norm       = 22.3447
  norm       = 15.7417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.5126
  norm       = 4.78562
  norm       = 0.0001
  norm       = 5.73961
  norm       = 22.9257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74411
  Prefactor  = 2.84927
  norm       = 3.69592
  Prefactor  = 20.9097
  norm       = 0.0001
  Normalizat = 1.56653
  Prefactor  = 0.86482
 **********
 **   18 **HESSE 
 **********

 FCN=   7527.728     FROM HESSE     STATUS=OK           401 CALLS     3074 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.499        59.476        .90679E-04   -1.4825    
   2  norm          29.642        26.110        .73588E-04   -1.4619    
   3  norm          1.2536        .35567        .23285E-04   -1.5484    
   4  Prefactor     .10000E-03    50.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          22.345        11.715        .84733E-04   -1.4762    
   6  norm          15.742        10.349        .50474E-03   -1.4914    
   7  Prefactor     .10000E-03    5.4643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.2862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1553        .17199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.513        19.544        .62217E-04   -1.4418    
  11  norm          4.7856        1.8185        .68738E-04   -1.5270    
  12  norm          .10000E-03    1.3583        .98422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7396        5.6589        .16765E-03   -1.5229    
  14  norm          22.926        34.317        .83656E-04   -1.4750    
  15  Prefactor     .10000E-03    1.9739        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7441        7.4173        .16758E-03   -1.5229    
  19  Prefactor     2.8493        16.136        .24068E-03   -1.5370    
  20  norm          3.6959        2.6865        .11682E-03   -1.5323    
  21  Prefactor     20.910        41.804        .87587E-04   -1.4793    
  22  norm          .10000E-03    12.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5665        .27604        .30933E-03   -.75926    
  24  Prefactor     .86482        .17451        .25630E-03   -.97381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32933e-10
Minuit parameter uncertainties:
  1  59.6576
  2  26.1203
  3  0.355672
  4  1.82057e-05
  5  11.7162
  6  10.3499
  7  3.45906e-08
  8  3.66473e-06
  9  1.26054e-08
  10  19.5474
  11  1.81851
  12  1.87227e-06
  13  5.6594
  14  34.3461
  15  3.10954e-06
  16  6.31935e-06
  17  5.5799e-06
  18  7.41853
  19  13.5665
  20  2.68658
  21  41.8625
  22  1.31754e-06
  23  0.27631
  24  0.174626
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.786e+00  1.819e+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:  8.648e-01  1.746e-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.567e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.93
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 5.50e-08
Energy Flux (Fixed Index): 4.35e-05 +/- 1.65e-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) = 7526.89186752
delta logL = 0.836007249674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7526.85486037
delta logL = 0.873014397588

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7437       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8138       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83466       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=   7526.855     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7435        1.8718        .46185E-02    .11054E-03
   2  alpha         1.8135        .36335        .30882       -.34653E-04
   3  Normalizat    1.6356        .23037        .68743E-01    .24337E-04
   4  Prefactor     .83457        .14679        .44167E-01    .29890E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.74355
  alpha      = 1.81352
  Normalizat = 1.6356
  Prefactor  = 0.834569
 **********
 **   18 **HESSE 
 **********

 FCN=   7526.855     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7435        1.9864        .71270E-04   -1.5272    
   2  alpha         1.8135        .41807        .12557E-01   -.27817    
   3  Normalizat    1.6356        .27026        .30409E-03   -.74036    
   4  Prefactor     .83457        .17163        .26021E-03   -.98466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12577e-12
Minuit parameter uncertainties:
  1  1.98643
  2  0.420211
  3  0.270508
  4  0.171735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735955': 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) = 7526.85486007
delta logL = 0.873014700036

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  4.744e+00  1.986e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.814e+00  4.202e-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:  8.346e-01  1.717e-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.636e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.60
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.81 +/- 0.42
Photon Flux (Free Index): 9.44e-08 +/- 5.09e-08
Energy Flux (Free Index): 5.31e-05 +/- 2.37e-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/735955/cmap_HighResolution_312422401_312681601_4FGL_J1332.0-0509_daily_bin282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='5.31e-05', photon_flux_error='5.50e-08', dlogl='8.73e-01', energy_flux='4.35e-05', photon_flux2='9.44e-08', job_status='DONE', time_completed='2021-09-08 01:43:11.384366', photon_index_error2='0.42', photon_index2='1.81', ts='14.93', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='1.57', time_epoch_completed='1631090591.38', return_code='0', job_id='735955', GAL2='0.83', EG2='1.64', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='5.09e-08', ts2='16.60', photon_index='2.39' WHERE bin_id='282' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:43:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 735955: <4FGL_J1332.0-0509_daily_bin282> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin282> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:53 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:31:55 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:31:55 2021
Terminated at Wed Sep  8 01:43:12 2021
Results reported at Wed Sep  8 01:43:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin282 203.02 -5.1611 312422401 312681601 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            739 sec.

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

