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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin1596
RA = 203.02, Dec = -5.1611
tmin = 653011201, tmax = 653270401
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='303929', job_status='RUN', time_executed='2021-09-14 00:34:09.370582', time_epoch_executed='1631604849.37' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='1596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303929

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303929/ft1_4FGL_J1332.0-0509_daily_bin1596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303929/ft2_4FGL_J1332.0-0509_daily_bin1596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303929/ft1_4FGL_J1332.0-0509_daily_bin1596.fits outfile=/scratch/kocevski/303929/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1596.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=653011201.0 tmax=653270401.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.14
user 2.89
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303929/ft1_filtered_4FGL_J1332.0-0509_daily_bin1596.fits" evtable="EVENTS" scfile=/scratch/kocevski/303929/ft2_4FGL_J1332.0-0509_daily_bin1596.fits sctable="SC_DATA" outfile=/scratch/kocevski/303929/ltcube_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.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/303929/ft2_4FGL_J1332.0-0509_daily_bin1596.fits
.....................!
real 15.51
user 15.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303929/ft1_filtered_4FGL_J1332.0-0509_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/303929/ft2_4FGL_J1332.0-0509_daily_bin1596.fits sctable="SC_DATA" expcube=/scratch/kocevski/303929/ltcube_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.fits outfile=/scratch/kocevski/303929/expmap_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.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/303929/ltcube_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.fits
.....................!
real 192.45
user 186.75
sys 4.79

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/303929/ft1_filtered_4FGL_J1332.0-0509_daily_bin1596.fits scfile=/scratch/kocevski/303929/ft2_4FGL_J1332.0-0509_daily_bin1596.fits outfile=/scratch/kocevski/303929/cmap_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303929/ft1_filtered_4FGL_J1332.0-0509_daily_bin1596.fits scfile=/scratch/kocevski/303929/ft2_4FGL_J1332.0-0509_daily_bin1596.fits outfile=/scratch/kocevski/303929/cmap_HighResolution_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/303929/ft1_filtered_4FGL_J1332.0-0509_daily_bin1596.fits evtable="EVENTS" scfile=/scratch/kocevski/303929/ft2_4FGL_J1332.0-0509_daily_bin1596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/303929/Model_4FGL_J1332.0-0509_daily_bin1596.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/303929/ft1_filtered_4FGL_J1332.0-0509_daily_bin1596.fits.....................!
real 51.29
user 49.81
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    123.10       1.0000         .10000E-03   10000.    
     2 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    37.210       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7660       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3958       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36522E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.8998       1.0000         .10000E-03   10000.    
    13 'norm      '    8.4634       1.0000         .10000E-03   10000.    
    14 'norm      '    22.374       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9125       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .13489E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5515       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0590       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11394E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5342       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7239       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73107       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=   6128.262     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2807 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     123.10        124.09       -.19019E-05    .27452E-05
   2  norm          .10000E-03    20.412       -.36940E-06** at limit **
   3  norm          2.6042        .64145        .17214E-07   -.11980E-03
   4  Prefactor     .10000E-03    91.787        .11045E-05** at limit **
   5  norm          37.213        20.224        .48009E-06    .22413E-04
   6  norm          .10000E-03    4.2845       -.91294E-08** at limit **
   7  Prefactor     2.7624        6.2562        .20022E-06   -.28785E-03
   8  Prefactor     4.3941        61.375       -.11826E-05   -.46681E-06
   9  Prefactor     .10000E-03    11.174       -.78371E-07** at limit **
  10  Prefactor     .10000E-03    30.695       -.15923E-05** at limit **
  11  norm          .10000E-03    1.1199       -.49568E-07** at limit **
  12  norm          5.9016        6.4454        .10714E-05    .65054E-03
  13  norm          8.4624        8.1168       -.15472E-05    .25935E-03
  14  norm          22.357        33.673        .45124E-06    .30514E-05
  15  Prefactor     .10000E-03    2.8169        .49541E-07** at limit **
  16  Prefactor     2.9137        28.819        .39191E-06   -.10951E-03
  17  Prefactor     .10000E-03    22.414        .53568E-06** at limit **
  18  norm          .10000E-03    4.0777       -.65891E-08** at limit **
  19  Prefactor     5.5532        12.308       -.17882E-06   -.50747E-05
  20  norm          5.0589        2.4895       -.11040E-07    .19159E-04
  21  Prefactor     .10000E-03    25.385       -.44363E-07** at limit **
  22  norm          2.5288        23.193       -.73268E-05   -.12418E-04
  23  Normalizat    1.7239        .26887       -.45546E-07    .17747E-03
  24  Prefactor     .73103        .15874        .47485E-06    .15045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 123.099
  norm       = 0.0001
  norm       = 2.60418
  Prefactor  = 0.0001
  norm       = 37.2132
  norm       = 0.0001
  Prefactor  = 2.76238
  Prefactor  = 4.39411
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.90156
  norm       = 8.4624
  norm       = 22.3574
  Prefactor  = 0.0001
  Prefactor  = 2.91369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.55323
  norm       = 5.05889
  Prefactor  = 0.0001
  norm       = 2.5288
  Normalizat = 1.72393
  Prefactor  = 0.731032
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.262     FROM HESSE     STATUS=OK           411 CALLS     3218 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     123.10        127.64        .36276E-04   -1.3484    
   2  norm          .10000E-03    20.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6042        .66103        .26068E-04   -1.5385    
   4  Prefactor     .10000E-03    91.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          37.213        20.191        .65702E-04   -1.4487    
   6  norm          .10000E-03    4.2874        .15826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7624        12.413        .12236E-02   -1.5376    
   8  Prefactor     4.3941        61.921        .19209E-03   -1.5289    
   9  Prefactor     .10000E-03    11.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.782        .86099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1996        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9016        6.8990        .14577E-03   -1.5222    
  13  norm          8.4624        8.0423        .13780E-03   -1.5126    
  14  norm          22.357        33.650        .84680E-04   -1.4762    
  15  Prefactor     .10000E-03    2.9176        .25627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.9137        37.342        .11903E-02   -1.5367    
  17  Prefactor     .10000E-03    22.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.829        .30428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5532        12.284        .17051E-03   -1.5237    
  20  norm          5.0589        2.4903        .83521E-04   -1.5258    
  21  Prefactor     .10000E-03    25.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5288        22.702        .25656E-03   -1.5390    
  23  Normalizat    1.7239        .31619        .29672E-03   -.71666    
  24  Prefactor     .73103        .18564        .26340E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03364e-09
Minuit parameter uncertainties:
  1  127.928
  2  1.44868e-06
  3  0.661029
  4  3.08471e-05
  5  20.1947
  6  9.08189e-07
  7  11.7152
  8  33.0312
  9  1.14132e-05
  10  0.00040469
  11  1.45355e-05
  12  6.8999
  13  8.04331
  14  33.6785
  15  9.57716e-07
  16  20.8776
  17  9.96857e-09
  18  2.80593e-05
  19  12.2899
  20  2.49031
  21  2.17729e-06
  22  15.161
  23  0.316558
  24  0.1858
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.454e-05  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:  7.310e-01  1.858e-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.724e+00  3.166e-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.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303929/likelihoodResults_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6128.26387276
delta logL = -0.00149108118694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6126.23821946
delta logL = 2.02416222359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26940       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9808       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82266       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=   6126.238     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      317 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27445        .19428        .50494E-02    .30913E-02
   2  alpha         4.9674        .79344        .46746       -.81109E-04
   3  Normalizat    1.4931        .26578        .70880E-01   -.26314E-04
   4  Prefactor     .82232        .15801        .44011E-01   -.46199E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.274449
  alpha      = 4.96742
  Normalizat = 1.49314
  Prefactor  = 0.822321
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.238     FROM HESSE     STATUS=OK            33 CALLS      350 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27445        .27835        .22718E-04   -1.5603    
   2  alpha         4.9674        4.0707        .53334E-01    1.4092    
   3  Normalizat    1.4931        .31774        .31359E-03   -.77971    
   4  Prefactor     .82232        .18934        .24985E-03   -.98911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47509e-07
Minuit parameter uncertainties:
  1  0.278347
  2  0.676704
  3  0.318169
  4  0.189489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303929': 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) = 6126.23817347
delta logL = 2.02420820815

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.744e-01  2.783e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  4.967e+00  6.767e-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.223e-01  1.895e-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.493e+00  3.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 4.97 +/- 0.68
Photon Flux (Free Index): 1.84e-07 +/- 1.12e-07
Energy Flux (Free Index): 2.54e-05 +/- 1.52e-05

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/303929/cmap_HighResolution_653011201_653270401_4FGL_J1332.0-0509_daily_bin1596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-05', comment='SUCCESS', energy_flux2='2.54e-05', dlogl='2.02e+00', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-14 00:45:19.643368', photon_index_error2='0.68', photon_index2='4.97', ts='-0.00', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.52e-05', EG='1.72', time_epoch_completed='1631605519.64', return_code='0', job_id='303929', GAL2='0.82', EG2='1.49', return_code2='0', photon_flux_error2='1.12e-07', ts2='4.48', photon_index='2.39' WHERE bin_id='1596' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 00:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 303929: <4FGL_J1332.0-0509_daily_bin1596> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin1596> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 14 00:30:21 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 00:31:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 00:31:09 2021
Terminated at Tue Sep 14 00:45:20 2021
Results reported at Tue Sep 14 00:45:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin1596 203.02 -5.1611 653011201 653270401 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 :                                   671.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            899 sec.

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

