aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 66 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 = 17298
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1332.2+4722_weekly_bin526
RA = 203.059, Dec = 47.3728
tmin = 557107201, tmax = 557712001
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='966956', job_status='RUN', time_executed='2021-07-21 04:25:38.777357', time_epoch_executed='1626866738.78' WHERE source_name='4FGL J1332.2+4722' and cadence='weekly' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/966956

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/966956/ft1_4FGL_J1332.2+4722_weekly_bin526.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/966956/ft1_4FGL_J1332.2+4722_weekly_bin526.fits outfile=/scratch/kocevski/966956/ft1_filteredMKT_4FGL_J1332.2+4722_weekly_bin526.fits ra=203.059 dec=47.3728 rad=12.0 tmin=557107201.0 tmax=557712001.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 7.95
user 7.54
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.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/966956/ft1_filteredMKT_4FGL_J1332.2+4722_weekly_bin526.fits evtable="EVENTS" outfile="/scratch/kocevski/966956/ft1_filtered_4FGL_J1332.2+4722_weekly_bin526.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.70
user 0.37
sys 0.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/966956/ft1_filtered_4FGL_J1332.2+4722_weekly_bin526.fits" evtable="EVENTS" scfile=/scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits sctable="SC_DATA" outfile=/scratch/kocevski/966956/ltcube_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.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/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits
.....................!
real 30.52
user 29.92
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/966956/ft1_filtered_4FGL_J1332.2+4722_weekly_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/966956/ltcube_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.fits outfile=/scratch/kocevski/966956/expmap_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.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/966956/ltcube_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.fits
.....................!
real 193.04
user 186.85
sys 5.76

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/966956/ft1_filtered_4FGL_J1332.2+4722_weekly_bin526.fits scfile=/scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits outfile=/scratch/kocevski/966956/cmap_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.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.70
user 0.41
sys 0.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/966956/ft1_filtered_4FGL_J1332.2+4722_weekly_bin526.fits scfile=/scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits outfile=/scratch/kocevski/966956/cmap_HighResolution_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.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.73
user 0.43
sys 0.28

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/966956/ft1_filtered_4FGL_J1332.2+4722_weekly_bin526.fits', '/scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits', expMap='/scratch/kocevski/966956/expmap_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.fits', expCube='/scratch/kocevski/966956/ltcube_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/966956/Model_4FGL_J1332.2+4722_weekly_bin526.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  1.000e-04  1.000e+04 ( 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/966956/ft1_filtered_4FGL_J1332.2+4722_weekly_bin526.fits
Spacecraft file(s): /scratch/kocevski/966956/ft2_4FGL_J1332.2+4722_weekly_bin526.fits
Exposure map: /scratch/kocevski/966956/expmap_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.fits
Exposure cube: /scratch/kocevski/966956/ltcube_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/966956/Model_4FGL_J1332.2+4722_weekly_bin526.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) = 14139.1462695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5484       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.466       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.413       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13542E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.138       1.0000         .10000E-03   10000.    
    13 'norm      '    12.576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    58.918       1.0000         .10000E-03   10000.    
    15 'Prefactor '    62.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1433       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9621       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6266       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.086       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4250       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.619       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0554       1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.077       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.049       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.3106       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1648       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .83094       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14139.14     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     5118 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4046        7.5016       -.77035E-06   -.66463E-04
   2  Prefactor     9.3170        22.142        .47539E-05   -.48679E-08
   3  Prefactor     11.224        11.147        .17788E-06   -.31180E-04
   4  norm          3.5484        1.4624        .84942E-07   -.50093E-04
   5  Prefactor     35.468        29.759        .27681E-05   -.59511E-05
   6  Prefactor     3.0825        5.0697        .93633E-07   -.80221E-04
   7  Prefactor     .10000E-03    18.067       -.27164E-06** at limit **
   8  norm          12.413        10.877        .17892E-06   -.10147E-03
   9  norm          2.1224        2.7838        .53095E-06   -.10766E-03
  10  Prefactor     .10000E-03    33.134        .11873E-05** at limit **
  11  Prefactor     1.2032        2.9195        .85327E-06   -.14748E-02
  12  Prefactor     15.130        21.696       -.48303E-05   -.65498E-04
  13  norm          12.575        3.6507        .36668E-08   -.60254E-03
  14  Prefactor     58.929        37.234        .99516E-05    .61017E-05
  15  Prefactor     62.225        52.394        .21983E-04    .20293E-04
  16  Prefactor     9.1445        16.072       -.17178E-06   -.23308E-04
  17  norm          2.9624        1.0207        .11872E-06   -.20433E-03
  18  norm          .10000E-03    9.6388       -.73970E-07** at limit **
  19  norm          3.6268        2.3513       -.15219E-06   -.22780E-03
  20  norm          .10000E-03    2.5848       -.35851E-07** at limit **
  21  Prefactor     27.089        23.025        .25113E-05   -.81855E-05
  22  Prefactor     .10000E-03    2.3372        .77370E-08** at limit **
  23  Prefactor     .10000E-03    4.4451        .49139E-07** at limit **
  24  Prefactor     1.4251        1.7983        .14792E-06   -.92847E-04
  25  Prefactor     17.623        12.492        .93442E-06   -.60291E-04
  26  Prefactor     2.0556        1.4682        .17375E-07   -.20661E-03
  27  Prefactor     17.078        13.805        .44993E-06   -.27052E-04
  28  Prefactor     18.049        23.667        .11096E-06   -.14619E-04
  29  Prefactor     8.3108        8.6248        .48920E-06   -.28697E-03
  30  Normalizat    1.1645        .12797       -.39055E-05    .29295E-03
  31  Prefactor     .83125        .14108        .99410E-06   -.31803E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.40465
  Prefactor  = 9.31698
  Prefactor  = 11.2237
  norm       = 3.54843
  Prefactor  = 35.468
  Prefactor  = 3.08249
  Prefactor  = 0.0001
  norm       = 12.4129
  norm       = 2.12245
  Prefactor  = 0.000100002
  Prefactor  = 1.2032
  Prefactor  = 15.1302
  norm       = 12.5755
  Prefactor  = 58.9294
  Prefactor  = 62.2248
  Prefactor  = 9.14446
  norm       = 2.96236
  norm       = 0.0001
  norm       = 3.62681
  norm       = 0.0001
  Prefactor  = 27.0887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4251
  Prefactor  = 17.6234
  Prefactor  = 2.05557
  Prefactor  = 17.078
  Prefactor  = 18.0485
  Prefactor  = 8.31081
  Normalizat = 1.16447
  Prefactor  = 0.831251
 **********
 **   18 **HESSE 
 **********

 FCN=   14139.14     FROM HESSE     STATUS=OK           632 CALLS     5750 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4046        7.4406        .15860E-03   -1.5202    
   2  Prefactor     9.3170        21.990        .13132E-03   -1.5097    
   3  Prefactor     11.224        11.142        .11959E-03   -1.5038    
   4  norm          3.5484        1.4629        .89498E-04   -1.5331    
   5  Prefactor     35.468        29.756        .67293E-04   -1.4516    
   6  Prefactor     3.0825        5.0624        .23103E-03   -1.5357    
   7  Prefactor     .10000E-03    18.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.413        10.882        .56847E-03   -1.5003    
   9  norm          2.1224        2.7681        .21598E-03   -1.5417    
  10  Prefactor     .10000E-03    33.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2032        18.870        .20758E-02   -1.5489    
  12  Prefactor     15.130        21.785        .10294E-03   -1.4930    
  13  norm          12.575        3.9080        .56355E-03   -1.4999    
  14  Prefactor     58.929        37.463        .52268E-04   -1.4171    
  15  Prefactor     62.225        52.382        .50877E-04   -1.4129    
  16  Prefactor     9.1445        16.061        .13254E-03   -1.5103    
  17  norm          2.9624        1.0214        .23594E-04   -1.5364    
  18  norm          .10000E-03    9.6390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6268        2.3438        .13856E-03   -1.5327    
  20  norm          .10000E-03    2.5910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.089        22.996        .76975E-04   -1.4667    
  22  Prefactor     .10000E-03    2.3390        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.4476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4251        1.7728        .17264E-03   -1.5469    
  25  Prefactor     17.623        12.525        .95418E-04   -1.4868    
  26  Prefactor     2.0556        1.4511        .10886E-03   -1.5421    
  27  Prefactor     17.078        13.755        .96921E-04   -1.4881    
  28  Prefactor     18.049        23.642        .94275E-04   -1.4858    
  29  Prefactor     8.3108        8.6352        .69532E-03   -1.5131    
  30  Normalizat    1.1645        .14937        .22514E-03   -.87708    
  31  Prefactor     .83125        .16391        .31829E-03   -.98586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6763e-08
Minuit parameter uncertainties:
  1  7.44164
  2  22.0094
  3  11.1442
  4  1.46294
  5  29.7681
  6  5.06311
  7  4.19448e-05
  8  10.8837
  9  2.76828
  10  0.000505497
  11  9.53311
  12  21.7963
  13  3.90813
  14  37.4776
  15  52.4209
  16  16.0684
  17  1.02139
  18  2.01909e-07
  19  2.34387
  20  5.40462e-06
  21  23.004
  22  1.21989e-06
  23  3.77511e-06
  24  1.77286
  25  12.5272
  26  1.45111
  27  13.758
  28  23.6546
  29  8.63648
  30  0.149426
  31  0.164008
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  1.513e+01  2.180e+01  1.000e-04  1.000e+04 ( 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:  8.313e-01  1.640e-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:  1.164e+00  1.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/966956/likelihoodResults_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.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): 0
logL (Free Index) = 14137.9139975
delta logL = 1.22921641917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14137.8750539
delta logL = 1.26815996867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5521       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3833       1.0000          .0000       10.000    
     3 'Normalizat'    1.1106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87466       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=   14137.88     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      316 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5592        34.688        .53614E-02    .11580E-02
   2  Index         4.3823        2.8957        .13112        .31789E-03
   3  Normalizat    1.1107        .35086E-01    .37586E-01    .26748E-03
   4  Prefactor     .87459        .41737E-01    .70312E-01    .48697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55923
  Index      = 4.38229
  Normalizat = 1.1107
  Prefactor  = 0.874587
 **********
 **   18 **HESSE 
 **********

 FCN=   14137.88     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      349 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5592        65.311        .13107E-03   -1.5331    
   2  Index         4.3823        6.9953        .69199E-02   -.12386    
   3  Normalizat    1.1107        .12052        .22962E-03   -.89409    
   4  Prefactor     .87459        .14505        .31109E-03   -.97035    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.21089e-09
Minuit parameter uncertainties:
  1  30.5313
  2  5.20247
  3  0.120547
  4  0.145118
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/966956': 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) = 14137.875052
delta logL = 1.26816189704

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.559e+00  3.053e+01  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  4.382e+00  5.202e+00  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:  8.746e-01  1.451e-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:  1.111e+00  1.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 203.059 47.373
Photon Index (Free Index): 4.38 +/- 5.20
Photon Flux (Free Index): 5.74e-08 +/- 3.56e-08
Energy Flux (Free Index): 8.13e-06 +/- 6.58e-06

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/966956/cmap_HighResolution_557107201_557712001_4FGL_J1332.2+4722_weekly_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', comment='SUCCESS', energy_flux2='8.13e-06', dlogl='1.27e+00', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-07-21 05:01:36.419567', photon_index_error2='5.20', photon_index2='4.38', ts='0.58', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.52e-08', energy_flux_error2='6.58e-06', EG='1.16', time_epoch_completed='1626868896.42', return_code='0', job_id='966956', GAL2='0.87', EG2='1.11', return_code2='102', photon_flux_error2='3.56e-08', ts2='3.29', photon_index='2.64' WHERE bin_id='526' AND source_name='4FGL J1332.2+4722' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 05:01:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 966956: <4FGL_J1332.2+4722_weekly_bin526> in cluster <slac> Done

Job <4FGL_J1332.2+4722_weekly_bin526> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 20 19:36:01 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 19:38:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 20 19:38:14 2021
Terminated at Wed Jul 21 05:01:37 2021
Results reported at Wed Jul 21 05:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_weekly_bin526 203.059 47.3728 557107201 557712001 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 :                                   2149.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             64.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   33802 sec.
    Turnaround time :                            33936 sec.

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

