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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin948
RA = 203.02, Dec = -5.1611
tmin = 485049601, tmax = 485308801
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='740233', job_status='RUN', time_executed='2021-09-08 01:48:09.638674', time_epoch_executed='1631090889.64' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740233/ft1_4FGL_J1332.0-0509_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740233/ft2_4FGL_J1332.0-0509_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740233/ft1_4FGL_J1332.0-0509_daily_bin948.fits outfile=/scratch/kocevski/740233/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin948.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=485049601.0 tmax=485308801.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.61
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740233/ft1_filtered_4FGL_J1332.0-0509_daily_bin948.fits" evtable="EVENTS" scfile=/scratch/kocevski/740233/ft2_4FGL_J1332.0-0509_daily_bin948.fits sctable="SC_DATA" outfile=/scratch/kocevski/740233/ltcube_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.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/740233/ft2_4FGL_J1332.0-0509_daily_bin948.fits
.....................!
real 17.72
user 17.27
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740233/ft1_filtered_4FGL_J1332.0-0509_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/740233/ft2_4FGL_J1332.0-0509_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/740233/ltcube_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.fits outfile=/scratch/kocevski/740233/expmap_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.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/740233/ltcube_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.fits
.....................!
real 193.48
user 187.58
sys 5.06

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/740233/ft1_filtered_4FGL_J1332.0-0509_daily_bin948.fits scfile=/scratch/kocevski/740233/ft2_4FGL_J1332.0-0509_daily_bin948.fits outfile=/scratch/kocevski/740233/cmap_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740233/ft1_filtered_4FGL_J1332.0-0509_daily_bin948.fits scfile=/scratch/kocevski/740233/ft2_4FGL_J1332.0-0509_daily_bin948.fits outfile=/scratch/kocevski/740233/cmap_HighResolution_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=203.02 yref=-5.1611 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740233/ft1_filtered_4FGL_J1332.0-0509_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/740233/ft2_4FGL_J1332.0-0509_daily_bin948.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740233/Model_4FGL_J1332.0-0509_daily_bin948.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/740233/ft1_filtered_4FGL_J1332.0-0509_daily_bin948.fits.....................!
real 64.75
user 63.04
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.863       1.0000         .10000E-03   10000.    
     5 'norm      '    29.309       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8444       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.302       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.841       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4650       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9946       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2806       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .85712       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0487       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95018       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=   8021.477     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2717 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.214        .75437E-05** at limit **
   2  norm          .10000E-03    14.522       -.44857E-05** at limit **
   3  norm          3.7019        .43748       -.25030E-07   -.38996E-03
   4  Prefactor     79.871        70.038        .46585E-05    .86837E-04
   5  norm          29.311        17.093       -.12987E-06    .25699E-05
   6  norm          .10000E-03    9.2021       -.98871E-06** at limit **
   7  Prefactor     4.8451        7.2095        .80650E-06   -.12965E-02
   8  Prefactor     27.304        19.595        .35101E-06    .18689E-04
   9  Prefactor     .10000E-03    2.7628        .38938E-07** at limit **
  10  Prefactor     .10000E-03    12.464        .70592E-05** at limit **
  11  norm          .10000E-03    .83959        .12454E-06** at limit **
  12  norm          10.842        4.4068       -.12799E-06   -.53633E-03
  13  norm          5.4647        6.8975        .11774E-05   -.18939E-02
  14  norm          .10000E-03    14.427       -.40198E-05** at limit **
  15  Prefactor     6.2179        5.2476       -.20200E-06   -.24926E-03
  16  Prefactor     .10000E-03    6.9967        .70814E-07** at limit **
  17  Prefactor     .10000E-03    31.375        .37650E-05** at limit **
  18  norm          5.9949        6.3798       -.55974E-07   -.12162E-03
  19  Prefactor     5.2779        10.534        .11354E-05   -.73367E-03
  20  norm          .10000E-03    .90017       -.86733E-07** at limit **
  21  Prefactor     .10000E-03    34.881       -.89778E-05** at limit **
  22  norm          .85626        7.5031       -.13566E-06   -.37147E-04
  23  Normalizat    1.0485        .20863       -.47238E-06   -.80345E-04
  24  Prefactor     .95030        .13240       -.38906E-06   -.97710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.000100001
  norm       = 3.70194
  Prefactor  = 79.8706
  norm       = 29.3106
  norm       = 0.0001
  Prefactor  = 4.84508
  Prefactor  = 27.304
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 10.8419
  norm       = 5.46472
  norm       = 0.000100001
  Prefactor  = 6.21787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.99489
  Prefactor  = 5.2779
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.856255
  Normalizat = 1.04853
  Prefactor  = 0.950297
 **********
 **   18 **HESSE 
 **********

 FCN=   8021.477     FROM HESSE     STATUS=OK           401 CALLS     3118 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7019        .43959        .19125E-04   -1.5323    
   4  Prefactor     79.871        70.256        .44940E-04   -1.3918    
   5  norm          29.311        17.092        .74005E-04   -1.4625    
   6  norm          .10000E-03    9.2729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8451        8.0009        .91384E-03   -1.5268    
   8  Prefactor     27.304        19.658        .76670E-04   -1.4662    
   9  Prefactor     .10000E-03    2.7709        .14535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9306        .15726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.842        4.6142        .10472E-03   -1.5049    
  13  norm          5.4647        8.6135        .85941E-03   -1.5240    
  14  norm          .10000E-03    14.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2179        5.2264        .16099E-03   -1.5209    
  16  Prefactor     .10000E-03    7.0053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9949        6.3592        .16400E-03   -1.5218    
  19  Prefactor     5.2779        11.348        .87454E-03   -1.5248    
  20  norm          .10000E-03    .93782        .16586E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .85626        32.771        .47742E-02   -1.5523    
  23  Normalizat    1.0485        .24385        .33369E-03   -.91422    
  24  Prefactor     .95030        .15642        .22809E-03   -.94405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50579e-08
Minuit parameter uncertainties:
  1  0.000470028
  2  0.000205166
  3  0.439593
  4  70.3291
  5  17.095
  6  3.20768e-05
  7  8.00265
  8  19.6623
  9  7.09581e-07
  10  0.000277513
  11  8.8017e-06
  12  4.61437
  13  8.6155
  14  0.000177744
  15  5.22675
  16  3.6005e-06
  17  0.000242788
  18  6.35996
  19  11.3524
  20  3.46577e-07
  21  0.000535621
  22  10.6001
  23  0.244112
  24  0.156493
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  8.802e-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.503e-01  1.565e-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.049e+00  2.441e-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: 8.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740233/likelihoodResults_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.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) = 8021.47942133
delta logL = -0.00247668718112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8021.47694575
delta logL = -1.10424753075e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8021.477     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      274 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.879        .15785E-02** at limit **
   2  alpha         1.3778        3.1323        .50000       -.47005E-06
   3  Normalizat    1.0485        .23226        .33369E-03    .98964E-03
   4  Prefactor     .95030        .15308        .22809E-03    .15754E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.37776
  Normalizat = 1.04853
  Prefactor  = 0.950298
 **********
 **   18 **HESSE 
 **********

 FCN=   8021.477     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8921        .63140E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3778        3.0631        .50000       -.46553    
   3  Normalizat    1.0485        .23241        .66739E-04   -.91422    
   4  Prefactor     .95030        .15307        .45617E-04   -.94405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1801e-09
Minuit parameter uncertainties:
  1  8.57362e-05
  2  73.662
  3  0.232634
  4  0.153144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740233': 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) = 8021.47693621
delta logL = 8.43446377985e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  8.574e-05  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.378e+00  7.366e+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.503e-01  1.531e-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.049e+00  2.326e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/740233/cmap_HighResolution_485049601_485308801_4FGL_J1332.0-0509_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='8.57e-08', time_completed='2021-09-08 02:01:41.247477', job_id='740233', GAL2='0.95', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631091701.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='948' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:01:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 740233: <4FGL_J1332.0-0509_daily_bin948> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin948 203.02 -5.1611 485049601 485308801 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 :                                   789.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            964 sec.

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

