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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1712
RA = 203.059, Dec = 47.3728
tmin = 683078401, tmax = 683337601
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='135110', job_status='RUN', time_executed='2022-09-16 17:42:23.161388', time_epoch_executed='1663375343.16' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135110/ft1_4FGL_J1332.2+4722_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135110/ft2_4FGL_J1332.2+4722_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135110/ft1_4FGL_J1332.2+4722_daily_bin1712.fits outfile=/scratch/kocevski/135110/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1712.fits ra=203.059 dec=47.3728 rad=12.0 tmin=683078401.0 tmax=683337601.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.75
user 4.47
sys 0.25

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

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

Number of photons that the gtmktime cut: 505

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135110/ft1_filtered_4FGL_J1332.2+4722_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/135110/ft2_4FGL_J1332.2+4722_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/135110/ltcube_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.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/135110/ft2_4FGL_J1332.2+4722_daily_bin1712.fits
.....................!
real 13.45
user 13.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135110/ft1_filtered_4FGL_J1332.2+4722_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/135110/ft2_4FGL_J1332.2+4722_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/135110/ltcube_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.fits outfile=/scratch/kocevski/135110/expmap_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.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/135110/ltcube_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.fits
.....................!
real 192.31
user 186.90
sys 5.00

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/135110/ft1_filtered_4FGL_J1332.2+4722_daily_bin1712.fits scfile=/scratch/kocevski/135110/ft2_4FGL_J1332.2+4722_daily_bin1712.fits outfile=/scratch/kocevski/135110/cmap_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135110/ft1_filtered_4FGL_J1332.2+4722_daily_bin1712.fits scfile=/scratch/kocevski/135110/ft2_4FGL_J1332.2+4722_daily_bin1712.fits outfile=/scratch/kocevski/135110/cmap_HighResolution_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4526       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10806E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    34.368       1.0000          .0000       .10000E+07
     4 'norm      '    1.1330       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24251E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11496       1.0000          .0000       .10000E+07
     7 'norm      '    14.162       1.0000          .0000       .10000E+07
     8 'norm      '    .24537E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .95170E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .52180E-03   1.0000          .0000       .10000E+07
    11 'norm      '    3.3789       1.0000          .0000       .10000E+07
    12 'Prefactor '    .66258       1.0000          .0000       .10000E+07
    13 'norm      '    1.2638       1.0000          .0000       .10000E+07
    14 'norm      '    .44158       1.0000          .0000       .10000E+07
    15 'norm      '    .23991E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .48701E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    74.221       1.0000          .0000       .10000E+07
    18 'Prefactor '    .15633E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .52494E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.2056       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11479E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .95610E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .13145E-05   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1705       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .48611       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=   5501.556     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     2243 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4659        6.8657        .11450E-06    .80100E-03
   2  Prefactor     .42255E-05    10.537        .53919E-06** at limit **
   3  Prefactor     34.326        1.5209       -.32680E-07   -.25812E-02
   4  norm          1.1313        1.1856        .25075E-06   -.13057E-02
   5  Prefactor     .15387E-05    8.7956        .25349E-05** at limit **
   6  Prefactor     .13649E-05    50.439        .18816E-05** at limit **
   7  norm          14.166        8.2741        .38718E-06    .86419E-01
   8  norm          .29260E-06    17.861       -.78826E-06** at limit **
   9  Prefactor     .13545E-07    6.3230       -.33608E-06** at limit **
  10  Prefactor     .44187E-07    3.7553       -.81597E-07** at limit **
  11  norm          3.3794        2.7240       -.15637E-06   -.62491E-03
  12  Prefactor     .40312E-06    349.10        .81037E-05** at limit **
  13  norm          1.2633        1.1212        .53592E-07    .29484E-02
  14  norm          .45071        3.0629       -.14151E-06   -.72229E-03
  15  norm          .55511E-10    3.3785        .61222E-06** at limit **
  16  Prefactor     .20608E-05    11.788        .11435E-05** at limit **
  17  Prefactor     74.210        1.2970        .30217E-07   -.17532E-01
  18  Prefactor     .77716E-09    61.277        .41807E-07** at limit **
  19  Prefactor     .11663E-06    3.3268        .51325E-06** at limit **
  20  Prefactor     4.2060        2.2978       -.91127E-07   -.23152E-02
  21  Prefactor     .46074E-08    5.1759       -.37033E-06** at limit **
  22  Prefactor     .25535E-08    14.942        .29525E-05** at limit **
  23  Prefactor     .13267E-07    5.4823       -.40534E-06** at limit **
  24  Normalizat    1.1709        .17044        .20739E-05    .28941E-04
  25  Prefactor     .48619        .20149        .63223E-05    .32911E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.46595
  Prefactor  = 4.22545e-06
  Prefactor  = 34.3262
  norm       = 1.1313
  Prefactor  = 1.53866e-06
  Prefactor  = 1.36485e-06
  norm       = 14.1658
  norm       = 2.92599e-07
  Prefactor  = 1.35447e-08
  Prefactor  = 4.41869e-08
  norm       = 3.3794
  Prefactor  = 4.03122e-07
  norm       = 1.26334
  norm       = 0.450706
  norm       = 5.55112e-11
  Prefactor  = 2.0608e-06
  Prefactor  = 74.2104
  Prefactor  = 7.77156e-10
  Prefactor  = 1.16629e-07
  Prefactor  = 4.20595
  Prefactor  = 4.60743e-09
  Prefactor  = 2.55351e-09
  Prefactor  = 1.32672e-08
  Normalizat = 1.17087
  Prefactor  = 0.486192
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.556     FROM HESSE     STATUS=OK           487 CALLS     2730 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4659        6.8872        .32571E-03   -1.5646    
   2  Prefactor     .42255E-05    19.753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.326        22.869        .17060E-03   -1.5591    
   4  norm          1.1313        1.1893        .10958E-03   -1.5687    
   5  Prefactor     .15387E-05    25.556        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13649E-05    13.092        .99931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.166        12.308        .26590E-03   -1.5633    
   8  norm          .29260E-06    2.5969        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .13545E-07    7.9440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .44187E-07    9.5955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3794        2.7252        .55022E-03   -1.5671    
  12  Prefactor     .40312E-06    337.61        .63799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2633        1.1215        .99096E-04   -1.5685    
  14  norm          .45071        2.9906        .84819E-03   -1.5721    
  15  norm          .55511E-10    8.8272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20608E-05    16.664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     74.210        44.970        .11608E-03   -1.5536    
  18  Prefactor     .77716E-09    2.5091        .84835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11663E-06    8.2172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.2060        2.3115        .49116E-03   -1.5667    
  21  Prefactor     .46074E-08    9.9668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .25535E-08    23.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .13267E-07    5.5711        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1709        .15444        .35660E-01   -.87508    
  25  Prefactor     .48619        .18066        .74229E-01   -1.1261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19803e-07
Minuit parameter uncertainties:
  1  6.88719
  2  0.0182717
  3  22.869
  4  1.18933
  5  0.0125417
  6  0.00845428
  7  12.3079
  8  0.00174339
  9  0.000655934
  10  0.00130227
  11  2.7252
  12  0.0233329
  13  1.12153
  14  2.32196
  15  3.83021e-05
  16  0.0117203
  17  44.9706
  18  8.87799e-05
  19  0.00195808
  20  2.31148
  21  0.00042788
  22  0.000490354
  23  0.000543612
  24  0.154496
  25  0.180875
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  4.419e-08  1.302e-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:  4.862e-01  1.809e-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.171e+00  1.545e-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: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135110/likelihoodResults_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.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) = 5501.55737416
delta logL = -0.00125843414753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5501.55611664
delta logL = -9.20753336686e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13956E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.5371       1.0000          .0000       10.000    
     3 'Normalizat'    1.1709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48609       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5501.556     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      247 TOTAL
                     EDM=   .32E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.7045        .42118E-03** at limit **
   2  Index         3.5994        1.3909        .20662E-03     .0000    
   3  Normalizat    1.1709        1.1172        .59193E-07    .57940E-04
   4  Prefactor     .48619        .82716       -.11596E-05    .42768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.59945
  Normalizat = 1.17087
  Prefactor  = 0.486192
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5501.556     FROM HESSE     STATUS=FAILED         9 CALLS      256 TOTAL
                     EDM=   .32E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.7045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4345        2.2250        .20662E-03   -.28391    
   3  Normalizat    1.1709        1.1172        .59193E-07   -.87508    
   4  Prefactor     .48619        .82716       -.11596E-05   -1.1261    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.1845e-12
Minuit parameter uncertainties:
  1  2.30209e-06
  2  1.41113
  3  1.14126
  4  0.849037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135110': 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): 101
logL (Free Index) = 5501.55611572
delta logL = 2.30193109019e-09

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  0.000e+00  2.302e-06  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  3.599e+00  1.411e+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:  4.862e-01  8.490e-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.171e+00  1.141e+00  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/135110/cmap_HighResolution_683078401_683337601_4FGL_J1332.2+4722_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-03', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2022-09-16 17:53:28.430034', job_id='135110', GAL2='0.49', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1663376008.43', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='2.30e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1712' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:53:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 135110: <4FGL_J1332.2+4722_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1712> 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) <bullet0172>, 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:53:29 2022
Results reported at Fri Sep 16 17:53:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1712 203.059 47.3728 683078401 683337601 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 :                                   667.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             314.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            790 sec.

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

