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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1752
RA = 203.059, Dec = 47.3728
tmin = 693446401, tmax = 693705601
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='264917', job_status='RUN', time_executed='2022-12-26 01:01:37.331610', time_epoch_executed='1672045297.33' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264917/ft1_4FGL_J1332.2+4722_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264917/ft2_4FGL_J1332.2+4722_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264917/ft1_4FGL_J1332.2+4722_daily_bin1752.fits outfile=/scratch/kocevski/264917/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1752.fits ra=203.059 dec=47.3728 rad=12.0 tmin=693446401.0 tmax=693705601.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.46
user 3.24
sys 0.20

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

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

Number of photons that the gtmktime cut: 435

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264917/ft1_filtered_4FGL_J1332.2+4722_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/264917/ft2_4FGL_J1332.2+4722_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/264917/ltcube_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.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/264917/ft2_4FGL_J1332.2+4722_daily_bin1752.fits
.....................!
real 13.86
user 13.41
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264917/ft1_filtered_4FGL_J1332.2+4722_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/264917/ft2_4FGL_J1332.2+4722_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/264917/ltcube_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.fits outfile=/scratch/kocevski/264917/expmap_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.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/264917/ltcube_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.fits
.....................!
real 192.53
user 186.06
sys 5.18

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/264917/ft1_filtered_4FGL_J1332.2+4722_daily_bin1752.fits scfile=/scratch/kocevski/264917/ft2_4FGL_J1332.2+4722_daily_bin1752.fits outfile=/scratch/kocevski/264917/cmap_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264917/ft1_filtered_4FGL_J1332.2+4722_daily_bin1752.fits scfile=/scratch/kocevski/264917/ft2_4FGL_J1332.2+4722_daily_bin1752.fits outfile=/scratch/kocevski/264917/cmap_HighResolution_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9418       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.0903       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.5108       1.0000          .0000       .10000E+07
     4 'norm      '    6.2277       1.0000          .0000       .10000E+07
     5 'Prefactor '    .34020E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .87885E-05   1.0000          .0000       .10000E+07
     7 'norm      '    2.1482       1.0000          .0000       .10000E+07
     8 'norm      '    .83561E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14381E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .65311E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.3057       1.0000          .0000       .10000E+07
    12 'Prefactor '    .41729E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .67167       1.0000          .0000       .10000E+07
    14 'norm      '    2.5426       1.0000          .0000       .10000E+07
    15 'norm      '    .17998E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .28915E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    57.579       1.0000          .0000       .10000E+07
    18 'Prefactor '    .76639E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.0537       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.4252       1.0000          .0000       .10000E+07
    21 'Prefactor '    7.4633       1.0000          .0000       .10000E+07
    22 'Prefactor '    .21130E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    9.5149       1.0000          .0000       .10000E+07
    24 'Normalizat'    .87073       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91382       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=   4769.342     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     2081 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2666        7.6847        .21739E-06    .10227E-02
   2  Prefactor     1.3159        9.7277        .24732E-06   -.69051E-03
   3  Prefactor     5.6396        3.8568        .10291E-06   -.19528E-01
   4  norm          6.2251        2.5605       -.65486E-07   -.24512E-03
   5  Prefactor      .0000        5.0125        .48319E-06** at limit **
   6  Prefactor      .0000        6.4248       -.57934E-07** at limit **
   7  norm          2.1442        1.4582        .33636E-07    .10841E-01
   8  norm           .0000        4.0432        .21484E-06** at limit **
   9  Prefactor     .55511E-10    11.701       -.19025E-06** at limit **
  10  Prefactor     .39413E-08    70.297        .28929E-05** at limit **
  11  norm          1.3041        1.9565       -.15308E-06   -.29381E-03
  12  Prefactor     .55511E-10    33.062       -.10558E-05** at limit **
  13  norm          .67148        .66868       -.30511E-07   -.27392E-03
  14  norm          2.5380        4.2695       -.19604E-06   -.26657E-03
  15  norm           .0000        9.6121       -.25398E-06** at limit **
  16  Prefactor     .49960E-08    45.297        .11939E-05** at limit **
  17  Prefactor     57.737        5.6252       -.82989E-07   -.49202E-01
  18  Prefactor      .0000        2.5620        .76486E-07** at limit **
  19  Prefactor     5.0228        12.305       -.29898E-06   -.60785E-02
  20  Prefactor     3.4278        2.6925       -.14381E-06   -.12062E-02
  21  Prefactor     7.4204        3.5526       -.10633E-06    .39552E-01
  22  Prefactor      .0000        29.291       -.78349E-06** at limit **
  23  Prefactor     9.5208        2.7281       -.42159E-07   -.43040E-01
  24  Normalizat    .87096        .18721        .23826E-05    .27085E-05
  25  Prefactor     .91350        .23658       -.69012E-06    .42557E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 5.26663
  Prefactor  = 1.31587
  Prefactor  = 5.63957
  norm       = 6.22515
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.1442
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.94129e-09
  norm       = 1.30413
  Prefactor  = 5.55112e-11
  norm       = 0.671485
  norm       = 2.53803
  norm       = 0
  Prefactor  = 4.996e-09
  Prefactor  = 57.7373
  Prefactor  = 0
  Prefactor  = 5.02277
  Prefactor  = 3.42779
  Prefactor  = 7.42038
  Prefactor  = 0
  Prefactor  = 9.52079
  Normalizat = 0.87096
  Prefactor  = 0.913503
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.342     FROM HESSE     STATUS=OK           477 CALLS     2558 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2666        11.707        .45219E-03   -1.5662    
   2  Prefactor     1.3159        187.78        .71376E-03   -1.5685    
   3  Prefactor     5.6396        18.468        .42776E-03   -1.5660    
   4  norm          6.2251        2.5625        .40202E-03   -1.5658    
   5  Prefactor      .0000        5.0202        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.4341        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.1442        12.528        .70277E-03   -1.5679    
   8  norm           .0000        3.9940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    11.726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .39413E-08    71.301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3041        1.9973        .96553E-03   -1.5685    
  12  Prefactor     .55511E-10    32.916        .15887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .67148        .66006        .63039E-03   -1.5692    
  14  norm          2.5380        4.2963        .64017E-03   -1.5676    
  15  norm           .0000        9.4679        .17172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49960E-08    48.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.737        42.688        .13179E-03   -1.5556    
  18  Prefactor      .0000        2.5656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0228        13.329        .44705E-03   -1.5663    
  20  Prefactor     3.4278        2.8234        .54631E-03   -1.5671    
  21  Prefactor     7.4204        24.578        .36687E-03   -1.5653    
  22  Prefactor      .0000        29.249        .16964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.5208        10.352        .32464E-03   -1.5646    
  24  Normalizat    .87096        .16139        .44526E-01   -.97488    
  25  Prefactor     .91350        .20126        .45181E-01   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99819e-07
Minuit parameter uncertainties:
  1  11.7068
  2  31.4391
  3  18.4684
  4  2.5625
  5  1.59983e-05
  6  1.27934e-05
  7  10.3656
  8  1.63257e-05
  9  5.24069e-05
  10  0.00106195
  11  1.99728
  12  9.1631e-05
  13  0.66006
  14  4.29629
  15  3.74381e-06
  16  0.000982366
  17  42.6884
  18  4.53265e-06
  19  13.3288
  20  2.82338
  21  24.5785
  22  2.2263e-05
  23  10.3521
  24  0.161477
  25  0.201428
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.941e-09  1.062e-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.135e-01  2.014e-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:  8.710e-01  1.615e-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: 5.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264917/likelihoodResults_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.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) = 4769.35022579
delta logL = -0.00820900338385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4769.34201882
delta logL = -2.04173193197e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78048E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.5733       1.0000          .0000       10.000    
     3 'Normalizat'    .87088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91359       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=   4769.342     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      204 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83267E-09    84.666       -.56541E-04** at limit **
   2  Index         2.4664        6.2284        .36733E-03    .34205E-11
   3  Normalizat    .87096        .18261       -.24985E-05    .61757E-03
   4  Prefactor     .91350        .23224        .33515E-04    .48671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.32667e-10
  Index      = 2.46641
  Normalizat = 0.870961
  Prefactor  = 0.913504
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.342     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      239 TOTAL
                     EDM=   .75E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83267E-09    .63853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4664        7.9566        .50000       -.53137    
   3  Normalizat    .87096        .33734E-03    .44528E-01   -.97488    
   4  Prefactor     .91350        .42884E-03    .45178E-01   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.52765e-14
Minuit parameter uncertainties:
  1  4.58216e-05
  2  5566.68
  3  0.000337343
  4  0.000428842
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264917': 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) = 4769.34201678
delta logL = -1.65528035723e-10

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  8.327e-10  4.582e-05  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.466e+00  5.567e+03  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.135e-01  4.288e-04  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:  8.710e-01  3.373e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/264917/cmap_HighResolution_693446401_693705601_4FGL_J1332.2+4722_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2022-12-26 01:11:32.512912', job_id='264917', GAL2='0.91', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1672045892.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.66e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1752' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:11:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 264917: <4FGL_J1332.2+4722_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1752> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Dec 26 01:00:18 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:00:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:00:31 2022
Terminated at Mon Dec 26 01:11:33 2022
Results reported at Mon Dec 26 01:11:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1752 203.059 47.3728 693446401 693705601 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 :                                   595.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             329.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            675 sec.

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

