aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 144 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1711
RA = 203.059, Dec = 47.3728
tmin = 682819201, tmax = 683078401
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='135109', job_status='RUN', time_executed='2022-09-16 17:43:57.857814', time_epoch_executed='1663375437.86' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135109/ft1_4FGL_J1332.2+4722_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135109/ft1_4FGL_J1332.2+4722_daily_bin1711.fits outfile=/scratch/kocevski/135109/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1711.fits ra=203.059 dec=47.3728 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.58
user 4.31
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.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/135109/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.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.54
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 516

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/135109/ltcube_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.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/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits
.....................!
real 14.73
user 13.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/135109/ltcube_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.fits outfile=/scratch/kocevski/135109/expmap_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.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/135109/ltcube_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.fits
.....................!
real 192.86
user 186.48
sys 5.88

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 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.2+4722 @ 203.059 47.3728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits scfile=/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits outfile=/scratch/kocevski/135109/cmap_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.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.059 yref=47.3728 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits scfile=/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits outfile=/scratch/kocevski/135109/cmap_HighResolution_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.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.059 yref=47.3728 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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135109/Model_4FGL_J1332.2+4722_daily_bin1711.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/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits.....................!
real 48.47
user 47.11
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits', '/scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits', expMap='/scratch/kocevski/135109/expmap_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.fits', expCube='/scratch/kocevski/135109/ltcube_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135109/Model_4FGL_J1332.2+4722_daily_bin1711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.2+4722'

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.063e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/135109/ft1_filtered_4FGL_J1332.2+4722_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/135109/ft2_4FGL_J1332.2+4722_daily_bin1711.fits
Exposure map: /scratch/kocevski/135109/expmap_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.fits
Exposure cube: /scratch/kocevski/135109/ltcube_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135109/Model_4FGL_J1332.2+4722_daily_bin1711.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) = 5749.24011165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32932E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .77948E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .46334E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.0522       1.0000          .0000       .10000E+07
     5 'Prefactor '    .29735E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.094       1.0000          .0000       .10000E+07
     7 'norm      '    .98995E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.1047       1.0000          .0000       .10000E+07
     9 'Prefactor '    30.057       1.0000          .0000       .10000E+07
    10 'Prefactor '    .81299E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .75746E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .29425E-02   1.0000          .0000       .10000E+07
    13 'norm      '    1.0376       1.0000          .0000       .10000E+07
    14 'norm      '    5.1319       1.0000          .0000       .10000E+07
    15 'norm      '    16.511       1.0000          .0000       .10000E+07
    16 'Prefactor '    .87410E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    20.349       1.0000          .0000       .10000E+07
    18 'Prefactor '    .23468E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .10570E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .89812       1.0000          .0000       .10000E+07
    21 'Prefactor '    25.529       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12849E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    9.5289       1.0000          .0000       .10000E+07
    24 'Normalizat'    .73373       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5749.215     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     2125 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        6.2325        .54392E-07** at limit **
   2  Prefactor      .0000        7.8028       -.51575E-06** at limit **
   3  Prefactor     .10270E-07    20.031        .15663E-06** at limit **
   4  norm          2.0520        1.6217        .29736E-07   -.43256E-03
   5  Prefactor      .0000        2.1293        .79740E-08** at limit **
   6  Prefactor     10.077        5.6777       -.11654E-07   -.42738E-01
   7  norm          .16653E-09    10.669        .17599E-06** at limit **
   8  norm          1.1140        3.8844        .79280E-07   -.27945E-03
   9  Prefactor     30.014        4.6564       -.11722E-07    .34067E-01
  10  Prefactor     .46185E-07    2.6476        .68321E-07** at limit **
  11  norm           .0000        3.6418        .38235E-07** at limit **
  12  Prefactor     .52736E-08    20.387        .29009E-06** at limit **
  13  norm          1.0384        1.2958       -.60506E-07    .44794E-03
  14  norm          5.1173        3.7735        .15012E-07   -.23171E-03
  15  norm          16.535        13.876       -.47565E-08    .54965E-02
  16  Prefactor     .16098E-06    150.73        .17193E-05** at limit **
  17  Prefactor     20.287        4.9016        .85715E-08   -.23007E-01
  18  Prefactor      .0000        1.4770       -.10165E-06** at limit **
  19  Prefactor     .77716E-09    25.162       -.11963E-07** at limit **
  20  Prefactor     .92616        2.6198        .16829E-07   -.44394E-03
  21  Prefactor     25.570        1.3116        .32364E-10    .23509E-02
  22  Prefactor     .17925E-06    127.76        .13996E-05** at limit **
  23  Prefactor     9.5104        15.478       -.21181E-07    .72564E-02
  24  Normalizat    .73406        .18084       -.22236E-05   -.15390E-04
  25  Prefactor     1.2673        .23367        .43614E-05   -.28137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.02696e-08
  norm       = 2.05205
  Prefactor  = 0
  Prefactor  = 10.0771
  norm       = 1.66533e-10
  norm       = 1.11398
  Prefactor  = 30.0138
  Prefactor  = 4.61853e-08
  norm       = 0
  Prefactor  = 5.27356e-09
  norm       = 1.0384
  norm       = 5.11735
  norm       = 16.5348
  Prefactor  = 1.60982e-07
  Prefactor  = 20.2871
  Prefactor  = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 0.926155
  Prefactor  = 25.5702
  Prefactor  = 1.79246e-07
  Prefactor  = 9.51044
  Normalizat = 0.734063
  Prefactor  = 1.26728
 **********
 **   18 **HESSE 
 **********

 FCN=   5749.215     FROM HESSE     STATUS=OK           477 CALLS     2602 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        6.2180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        7.8239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10270E-07    20.685        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0520        1.6202        .72129E-03   -1.5679    
   5  Prefactor      .0000        2.1431        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.077        16.851        .31515E-03   -1.5644    
   7  norm          .16653E-09    10.699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1140        4.0139        .11272E-02   -1.5687    
   9  Prefactor     30.014        36.377        .18243E-03   -1.5598    
  10  Prefactor     .46185E-07    30.063        .14462E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        3.6482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .52736E-08    22.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0384        1.3085        .12336E-03   -1.5688    
  14  norm          5.1173        3.7842        .44356E-03   -1.5663    
  15  norm          16.535        13.910        .24622E-03   -1.5627    
  16  Prefactor     .16098E-06    151.22        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.287        27.425        .22175E-03   -1.5618    
  18  Prefactor      .0000        1.4771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .77716E-09    25.537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .92616        3.0015        .45890E-03   -1.5689    
  21  Prefactor     25.570        24.275        .19796E-03   -1.5607    
  22  Prefactor     .17925E-06    128.50        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.5104        15.600        .32440E-03   -1.5646    
  24  Normalizat    .73406        .15681        .42739E-01   -1.0256    
  25  Prefactor     1.2673        .19781        .55072E-01   -.84285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43203e-07
Minuit parameter uncertainties:
  1  5.75878e-06
  2  4.9847e-06
  3  0.000920603
  4  1.62025
  5  1.01573e-06
  6  16.8509
  7  8.35125e-05
  8  4.0139
  9  36.3773
  10  0.00235671
  11  2.55595e-06
  12  0.00068274
  13  1.30848
  14  3.78423
  15  13.91
  16  0.00986774
  17  27.4249
  18  1.88873e-06
  19  0.000279261
  20  3.00152
  21  24.2755
  22  0.00959793
  23  15.5996
  24  0.156904
  25  0.197932
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  4.619e-08  2.357e-03  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.642e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.267e+00  1.979e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  7.341e-01  1.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135109/likelihoodResults_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.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) = 5749.21704548
delta logL = -0.00216512678344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5748.94416229
delta logL = 0.270718064081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97927E-01   1.0000          .0000       .10000E+07
     2 'Index     '    6.0847       1.0000          .0000       10.000    
     3 'Normalizat'    .69588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2981       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5748.944     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      260 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96842E-01    1.8788        .73724E-03** at limit **
   2  Index         6.0938        2.9271        .20657        .34159E-04
   3  Normalizat    .69607        .23927E-01    .42235E-01   -.26520E-03
   4  Prefactor     1.2978        .30798E-01    .54512E-01   -.31060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0968415
  Index      = 6.09382
  Normalizat = 0.696067
  Prefactor  = 1.29777
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.944     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96842E-01    9.7860        .33573E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0938        7.7483        .78804E-02    .22055    
   3  Normalizat    .69607        .11649        .24901E-03   -1.0405    
   4  Prefactor     1.2978        .14777        .24102E-03   -.83373    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21586e-10
Minuit parameter uncertainties:
  1  1.94699
  2  11.1487
  3  0.116529
  4  0.147815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135109': 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): 102
logL (Free Index) = 5748.94415214
delta logL = 0.270728214149

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  9.684e-02  1.947e+00  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  6.094e+00  1.115e+01  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  7.116e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.298e+00  1.478e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  6.961e-01  1.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 203.059 47.373

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/135109/cmap_HighResolution_682819201_683078401_4FGL_J1332.2+4722_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2022-09-16 17:55:15.500881', job_id='135109', GAL2='1.30', fit_tolerance='1e-08', EG2='0.70', EG='0.73', time_epoch_completed='1663376115.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='2.71e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1711' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:55:15 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 135109: <4FGL_J1332.2+4722_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1711> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:40:19 2022
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:41:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:41:25 2022
Terminated at Fri Sep 16 17:55:16 2022
Results reported at Fri Sep 16 17:55:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1711 203.059 47.3728 682819201 683078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.2+4722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   679.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            897 sec.

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

