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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1748
RA = 203.059, Dec = 47.3728
tmin = 692409601, tmax = 692668801
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='886427', job_status='RUN', time_executed='2022-12-14 00:41:27.428393', time_epoch_executed='1671007287.43' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/886427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/886427/ft1_4FGL_J1332.2+4722_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/886427/ft1_4FGL_J1332.2+4722_daily_bin1748.fits outfile=/scratch/kocevski/886427/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1748.fits ra=203.059 dec=47.3728 rad=12.0 tmin=692409601.0 tmax=692668801.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.57
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.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/886427/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/886427/ft1_filtered_4FGL_J1332.2+4722_daily_bin1748.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 705

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/886427/ft1_filtered_4FGL_J1332.2+4722_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/886427/ltcube_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.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/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits
.....................!
real 11.63
user 11.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/886427/ft1_filtered_4FGL_J1332.2+4722_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/886427/ltcube_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.fits outfile=/scratch/kocevski/886427/expmap_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.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/886427/ltcube_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.fits
.....................!
real 194.78
user 189.33
sys 5.13

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/886427/ft1_filtered_4FGL_J1332.2+4722_daily_bin1748.fits scfile=/scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits outfile=/scratch/kocevski/886427/cmap_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/886427/ft1_filtered_4FGL_J1332.2+4722_daily_bin1748.fits scfile=/scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits outfile=/scratch/kocevski/886427/cmap_HighResolution_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/886427/ft1_filtered_4FGL_J1332.2+4722_daily_bin1748.fits', '/scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits', expMap='/scratch/kocevski/886427/expmap_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.fits', expCube='/scratch/kocevski/886427/ltcube_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/886427/Model_4FGL_J1332.2+4722_daily_bin1748.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/886427/ft1_filtered_4FGL_J1332.2+4722_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/886427/ft2_4FGL_J1332.2+4722_daily_bin1748.fits
Exposure map: /scratch/kocevski/886427/expmap_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.fits
Exposure cube: /scratch/kocevski/886427/ltcube_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/886427/Model_4FGL_J1332.2+4722_daily_bin1748.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) = 7619.37714346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4291       1.0000          .0000       .10000E+07
     2 'Prefactor '    31.192       1.0000          .0000       .10000E+07
     3 'Prefactor '    .34062E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .90425       1.0000          .0000       .10000E+07
     5 'Prefactor '    .17069E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .67627E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .24173E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .15118E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    49.008       1.0000          .0000       .10000E+07
    10 'Prefactor '    .33476E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .22637E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    17.054       1.0000          .0000       .10000E+07
    13 'norm      '    3.1183       1.0000          .0000       .10000E+07
    14 'norm      '    .45353E-07   1.0000          .0000       .10000E+07
    15 'norm      '    25.144       1.0000          .0000       .10000E+07
    16 'Prefactor '    .94102E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .46979E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.6330       1.0000          .0000       .10000E+07
    19 'Prefactor '    .27617E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .11435E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    55.093       1.0000          .0000       .10000E+07
    22 'Prefactor '    49.364       1.0000          .0000       .10000E+07
    23 'Prefactor '    8.7138       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.2180       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92972       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=   7619.374     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     2177 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4344        7.8584        .20837E-06   -.41534E-03
   2  Prefactor     31.184        1.7018        .19280E-07   -.28313E-02
   3  Prefactor     .43798E-07    15.467       -.49795E-06** at limit **
   4  norm          .90420        1.2102       -.25653E-07    .11143E-03
   5  Prefactor     .54956E-08    11.360        .29838E-06** at limit **
   6  Prefactor     .11657E-08    9.7228        .30066E-06** at limit **
   7  norm           .0000        3.2637       -.77598E-07** at limit **
   8  norm           .0000        2.7515       -.14881E-07** at limit **
   9  Prefactor     48.742        3.0195       -.88637E-08   -.45830E-01
  10  Prefactor     .36504E-06    23.705        .32103E-06** at limit **
  11  norm           .0000        1.8551        .23468E-07** at limit **
  12  Prefactor     17.158        2.5177       -.65158E-08   -.33133E-01
  13  norm          3.1188        1.2416       -.49474E-08    .21397E-03
  14  norm           .0000        1.3454        .11188E-07** at limit **
  15  norm          25.161        1.8425       -.13714E-07   -.11313E-01
  16  Prefactor     .62728E-08    10.001       -.23846E-06** at limit **
  17  Prefactor     .16018E-05    8.9933        .10500E-06** at limit **
  18  Prefactor     2.6327        3.0527        .18948E-07   -.12559E-03
  19  Prefactor     .52991E-06    10.627       -.33327E-06** at limit **
  20  Prefactor      .0000        1.5859        .16732E-06** at limit **
  21  Prefactor     55.066        2.6741       -.97124E-08   -.25384E-01
  22  Prefactor     49.379        1.6139       -.19190E-08   -.39559E-01
  23  Prefactor     8.7183        1.0863       -.33037E-08    .83772E-03
  24  Normalizat    1.2181        .18144        .21516E-05    .96013E-05
  25  Prefactor     .92970        .22420       -.49355E-05    .10362E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.4344
  Prefactor  = 31.1836
  Prefactor  = 4.37983e-08
  norm       = 0.9042
  Prefactor  = 5.4956e-09
  Prefactor  = 1.16573e-09
  norm       = 0
  norm       = 0
  Prefactor  = 48.7423
  Prefactor  = 3.65041e-07
  norm       = 0
  Prefactor  = 17.1578
  norm       = 3.11885
  norm       = 0
  norm       = 25.1609
  Prefactor  = 6.27276e-09
  Prefactor  = 1.60183e-06
  Prefactor  = 2.63267
  Prefactor  = 5.29909e-07
  Prefactor  = 0
  Prefactor  = 55.066
  Prefactor  = 49.3785
  Prefactor  = 8.71835
  Normalizat = 1.21814
  Prefactor  = 0.929696
 **********
 **   18 **HESSE 
 **********

 FCN=   7619.374     FROM HESSE     STATUS=OK           477 CALLS     2654 TOTAL
                     EDM=   .44E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4344        9.1612        .43103E-03   -1.5661    
   2  Prefactor     31.184        26.876        .17908E-03   -1.5596    
   3  Prefactor     .43798E-07    15.754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .90420        1.2150        .45467E-03   -1.5689    
   5  Prefactor     .54956E-08    11.369        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11657E-08    9.7744        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        3.2705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.7258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     48.742        30.634        .14286E-03   -1.5568    
  10  Prefactor     .36504E-06    30.897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.8477        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.158        41.302        .24226E-03   -1.5625    
  13  norm          3.1188        1.2449        .57392E-03   -1.5673    
  14  norm           .0000        1.3407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.161        15.867        .19947E-03   -1.5608    
  16  Prefactor     .62728E-08    23.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16018E-05    27.677        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6327        3.0572        .62816E-03   -1.5676    
  19  Prefactor     .52991E-06    22.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.5764        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.066        28.892        .13474E-03   -1.5560    
  22  Prefactor     49.379        67.662        .14234E-03   -1.5567    
  23  Prefactor     8.7183        18.963        .33933E-03   -1.5649    
  24  Normalizat    1.2181        .15595        .50221E-01   -.86044    
  25  Prefactor     .92970        .18824        .69948E-01   -.95111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35928e-07
Minuit parameter uncertainties:
  1  9.16124
  2  26.876
  3  0.00166165
  4  1.21503
  5  0.000500988
  6  0.000212572
  7  5.68551e-07
  8  1.04608e-06
  9  30.6339
  10  0.00671672
  11  8.17602e-07
  12  41.3023
  13  1.24492
  14  1.10913e-06
  15  15.8674
  16  0.000763776
  17  0.0133169
  18  3.05721
  19  0.00685316
  20  1.32925e-08
  21  28.8921
  22  67.6634
  23  18.9634
  24  0.156008
  25  0.188372
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.650e-07  6.717e-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:  9.297e-01  1.884e-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.218e+00  1.560e-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: 6.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/886427/likelihoodResults_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.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) = 7619.3893621
delta logL = -0.0158244181621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7619.37353783
delta logL = -1.51427229866e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15358E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.8156       1.0000          .0000       10.000    
     3 'Normalizat'    1.2182       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92958       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=   7619.374     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      284 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77716E-09    .14432        .42118E-03** at limit **
   2  Index         3.3531        5.2904        .50000        .13642E-09
   3  Normalizat    1.2181        .35776E-03    .50221E-01    .51942E-03
   4  Prefactor     .92970        .44453E-03    .69948E-01    .39637E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77156e-10
  Index      = 3.35314
  Normalizat = 1.21815
  Prefactor  = 0.929697
 **********
 **   18 **HESSE 
 **********

 FCN=   7619.374     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      315 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77716E-09    .81964        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3531        5.5052        .50000       -.33564    
   3  Normalizat    1.2181        .85020E-03    .22203E-03   -.86044    
   4  Prefactor     .92970        .10553E-02    .30945E-03   -.95111    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.48489e-12
Minuit parameter uncertainties:
  1  5.01477e-05
  2  11668.1
  3  0.000850198
  4  0.00105525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/886427': 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) = 7619.37353767
delta logL = 5.78074832447e-09

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  7.772e-10  5.015e-05  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  3.353e+00  1.167e+04  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:  9.297e-01  1.055e-03  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.218e+00  8.502e-04  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/886427/cmap_HighResolution_692409601_692668801_4FGL_J1332.2+4722_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2022-12-14 00:54:22.134963', job_id='886427', GAL2='0.93', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1671008062.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.78e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1748' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:54:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 886427: <4FGL_J1332.2+4722_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1748> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec 14 00:40:24 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:40:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:40:25 2022
Terminated at Wed Dec 14 00:54:22 2022
Results reported at Wed Dec 14 00:54:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1748 203.059 47.3728 692409601 692668801 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

