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


Performing analysis on: 4FGL_J1332.2+4722_daily_bin1710
RA = 203.059, Dec = 47.3728
tmin = 682560001, tmax = 682819201
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='135107', job_status='RUN', time_executed='2022-09-16 17:42:01.960305', time_epoch_executed='1663375321.96' WHERE source_name='4FGL J1332.2+4722' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135107/ft1_4FGL_J1332.2+4722_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135107/ft2_4FGL_J1332.2+4722_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135107/ft1_4FGL_J1332.2+4722_daily_bin1710.fits outfile=/scratch/kocevski/135107/ft1_filteredMKT_4FGL_J1332.2+4722_daily_bin1710.fits ra=203.059 dec=47.3728 rad=12.0 tmin=682560001.0 tmax=682819201.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.71
user 3.43
sys 0.23

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

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

Number of photons that the gtmktime cut: 506

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135107/ft1_filtered_4FGL_J1332.2+4722_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/135107/ft2_4FGL_J1332.2+4722_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/135107/ltcube_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.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/135107/ft2_4FGL_J1332.2+4722_daily_bin1710.fits
.....................!
real 16.13
user 15.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135107/ft1_filtered_4FGL_J1332.2+4722_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/135107/ft2_4FGL_J1332.2+4722_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/135107/ltcube_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.fits outfile=/scratch/kocevski/135107/expmap_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.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/135107/ltcube_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.fits
.....................!
real 191.99
user 186.45
sys 4.98

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/135107/ft1_filtered_4FGL_J1332.2+4722_daily_bin1710.fits scfile=/scratch/kocevski/135107/ft2_4FGL_J1332.2+4722_daily_bin1710.fits outfile=/scratch/kocevski/135107/cmap_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=203.059 yref=47.3728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135107/ft1_filtered_4FGL_J1332.2+4722_daily_bin1710.fits scfile=/scratch/kocevski/135107/ft2_4FGL_J1332.2+4722_daily_bin1710.fits outfile=/scratch/kocevski/135107/cmap_HighResolution_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.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.55
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7689       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.7509       1.0000          .0000       .10000E+07
     3 'Prefactor '    .87430E-07   1.0000          .0000       .10000E+07
     4 'norm      '    1.1758       1.0000          .0000       .10000E+07
     5 'Prefactor '    .44964E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    25.230       1.0000          .0000       .10000E+07
     7 'norm      '    6.6617       1.0000          .0000       .10000E+07
     8 'norm      '    .33307E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .72818E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    31.413       1.0000          .0000       .10000E+07
    11 'norm      '    .91038E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    .22038E-07   1.0000          .0000       .10000E+07
    13 'norm      '    .66069       1.0000          .0000       .10000E+07
    14 'norm      '    .23814E-07   1.0000          .0000       .10000E+07
    15 'norm      '    6.0327       1.0000          .0000       .10000E+07
    16 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    17 'Prefactor '    18.721       1.0000          .0000       .10000E+07
    18 'Prefactor '    8.3706       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.8254       1.0000          .0000       .10000E+07
    20 'Prefactor '    .96535E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .45210E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    14.054       1.0000          .0000       .10000E+07
    23 'Prefactor '    .60294E-02   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0599       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88912       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=   5620.219     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     2610 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7687        6.8164       -.30859E-07   -.95505E-04
   2  Prefactor     3.7496        1.5309       -.79361E-08   -.89565E-02
   3  Prefactor     .12212E-08    13.037       -.55467E-07** at limit **
   4  norm          1.1757        1.1713        .82420E-08    .98603E-03
   5  Prefactor      .0000        3.8257        .96502E-07** at limit **
   6  Prefactor     25.221        2.2180       -.10957E-08   -.95298E-01
   7  norm          6.6622        15.690       -.26692E-08   -.66738E-02
   8  norm           .0000        1.5993       -.35774E-07** at limit **
   9  Prefactor     .37415E-07    10.849       -.11677E-06** at limit **
  10  Prefactor     31.394        2.2874        .60712E-08   -.50215E-01
  11  norm           .0000        4.3880        .51661E-07** at limit **
  12  Prefactor     .25535E-08    31.673       -.35060E-06** at limit **
  13  norm          .66058        .99498        .29393E-08    .24836E-03
  14  norm          .55511E-10    2.7575       -.81678E-07** at limit **
  15  norm          6.0319        13.274       -.10321E-06   -.41683E-02
  16  Prefactor     .12157E-07    11.030       -.11968E-06** at limit **
  17  Prefactor     18.725        1.5404       -.41065E-08    .19361E-01
  18  Prefactor     8.3712        5.2280       -.22187E-07   -.42060E-03
  19  Prefactor     1.8237        1.8577       -.86151E-08   -.97607E-02
  20  Prefactor     .10319        8.3751        .24174E-06** at limit **
  21  Prefactor     .12170E-05    127.63       -.31887E-06** at limit **
  22  Prefactor     14.132        10.398        .32948E-07   -.49273E-01
  23  Prefactor     .13944E-06    70.375       -.54097E-07** at limit **
  24  Normalizat    1.0600        .18448       -.16886E-05   -.37522E-04
  25  Prefactor     .88892        .22818        .21456E-05    .18615E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.76868
  Prefactor  = 3.74964
  Prefactor  = 1.22125e-09
  norm       = 1.1757
  Prefactor  = 0
  Prefactor  = 25.2206
  norm       = 6.66223
  norm       = 0
  Prefactor  = 3.74145e-08
  Prefactor  = 31.394
  norm       = 0
  Prefactor  = 2.55351e-09
  norm       = 0.660576
  norm       = 5.55112e-11
  norm       = 6.03191
  Prefactor  = 1.21569e-08
  Prefactor  = 18.7252
  Prefactor  = 8.37122
  Prefactor  = 1.82372
  Prefactor  = 0.103191
  Prefactor  = 1.21703e-06
  Prefactor  = 14.1317
  Prefactor  = 1.39444e-07
  Normalizat = 1.06003
  Prefactor  = 0.888923
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.219     FROM HESSE     STATUS=OK           481 CALLS     3091 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7687        7.2842        .33825E-03   -1.5649    
   2  Prefactor     3.7496        38.225        .52107E-03   -1.5669    
   3  Prefactor     .12212E-08    13.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1757        1.1711        .10558E-03   -1.5686    
   5  Prefactor      .0000        3.8144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.221        21.161        .19913E-03   -1.5608    
   7  norm          6.6622        15.807        .38855E-03   -1.5656    
   8  norm           .0000        1.6007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .37415E-07    21.961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.394        28.699        .17845E-03   -1.5596    
  11  norm           .0000        4.3356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25535E-08    31.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .66058        1.0129        .63958E-03   -1.5692    
  14  norm          .55511E-10    2.7549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.0319        13.335        .40856E-03   -1.5659    
  16  Prefactor     .12157E-07    21.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.725        35.242        .23120E-03   -1.5621    
  18  Prefactor     8.3712        5.3582        .34626E-03   -1.5650    
  19  Prefactor     1.8237        74.650        .77239E-03   -1.5681    
  20  Prefactor     .10319        1.2971        .47227E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12170E-05    130.78        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.132        55.277        .26692E-03   -1.5633    
  23  Prefactor     .13944E-06    70.269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0600        .16852        .39939E-01   -.91046    
  25  Prefactor     .88892        .19874        .44866E-01   -.96529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98133e-07
Minuit parameter uncertainties:
  1  7.28417
  2  23.9443
  3  0.000255615
  4  1.1711
  5  1.76321e-05
  6  21.161
  7  15.807
  8  7.55678e-06
  9  0.00181268
  10  28.6994
  11  3.4422e-06
  12  0.000568799
  13  1.01291
  14  2.21184e-05
  15  13.3356
  16  0.00103351
  17  35.2424
  18  5.3582
  19  23.3362
  20  0.731713
  21  0.0252325
  22  55.2794
  23  0.00626091
  24  0.168602
  25  0.198902
Done.

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

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  3.139e+01  2.870e+01  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:  8.889e-01  1.989e-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.060e+00  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.37
Ra Dec: 203.059 47.373
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 8.62e-06 +/- 7.88e-06

TS (Fixed Index): 2.37
Ra Dec: 203.059 47.373
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135107/likelihoodResults_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.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) = 5620.12140182
delta logL = 0.0979786261341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5620.11799672
delta logL = 0.101383722396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.177       1.0000          .0000       .10000E+07
     2 'Index     '    3.1073       1.0000          .0000       10.000    
     3 'Normalizat'    1.0405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90413       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5620.118     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.173        34.747        .83108E-05    .44048E-03
   2  Index         3.1071        1.2257        .80384E-02    .18092E-04
   3  Normalizat    1.0407        .19158        .21200E-03   -.32722E-03
   4  Prefactor     .90409        .22946        .27675E-03   -.30627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1734
  Index      = 3.10709
  Normalizat = 1.04067
  Prefactor  = 0.904087
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.118     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.173        29.918        .33243E-06   -1.5612    
   2  Index         3.1071        1.0567        .32154E-03   -.38826    
   3  Normalizat    1.0407        .19072        .42401E-04   -.91680    
   4  Prefactor     .90409        .22888        .55350E-04   -.95998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49313e-10
Minuit parameter uncertainties:
  1  29.9183
  2  1.06609
  3  0.19085
  4  0.229121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135107': 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): 0
logL (Free Index) = 5620.11799576
delta logL = 0.10138467847

Extracting fit parameters...

4FGL J1332.2+4722
   Spectrum: PowerLaw
357    Prefactor:  2.317e+01  2.992e+01  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  3.107e+00  1.066e+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:  9.041e-01  2.291e-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.041e+00  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 203.059 47.373
Photon Index (Free Index): 3.11 +/- 1.07
Photon Flux (Free Index): 4.90e-08 +/- 4.85e-08
Energy Flux (Free Index): 9.31e-06 +/- 7.59e-06

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/135107/cmap_HighResolution_682560001_682819201_4FGL_J1332.2+4722_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='9.31e-06', photon_flux_error='3.12e-08', dlogl='1.01e-01', energy_flux='8.62e-06', photon_flux2='4.90e-08', job_status='DONE', time_completed='2022-09-16 17:54:06.175612', photon_index_error2='1.07', photon_index2='3.11', ts='2.37', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='7.59e-06', EG='1.06', time_epoch_completed='1663376046.18', return_code='0', job_id='135107', GAL2='0.90', EG2='1.04', return_code2='0', energy_flux_error='7.88e-06', photon_flux_error2='4.85e-08', ts2='2.59', photon_index='2.64' WHERE bin_id='1710' AND source_name='4FGL J1332.2+4722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:54:06 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 135107: <4FGL_J1332.2+4722_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1332.2+4722_daily_bin1710> 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) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:41:24 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:24 2022
Terminated at Fri Sep 16 17:54:06 2022
Results reported at Fri Sep 16 17:54:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.2+4722_daily_bin1710 203.059 47.3728 682560001 682819201 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 :                                   726.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             319.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            827 sec.

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

