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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1746
RA = 202.819, Dec = -13.4282
tmin = 691891201, tmax = 692150401
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='728524', job_status='RUN', time_executed='2022-12-08 01:01:18.647488', time_epoch_executed='1670490078.65' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/728524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/728524/ft1_4FGL_J1331.2-1325_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/728524/ft1_4FGL_J1331.2-1325_daily_bin1746.fits outfile=/scratch/kocevski/728524/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1746.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=691891201.0 tmax=692150401.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.73
user 4.46
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.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/728524/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.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.54
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 946

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/728524/ltcube_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.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/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits
.....................!
real 12.25
user 11.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/728524/ltcube_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.fits outfile=/scratch/kocevski/728524/expmap_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.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/728524/ltcube_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.fits
.....................!
real 191.44
user 185.76
sys 5.33

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits scfile=/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits outfile=/scratch/kocevski/728524/cmap_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.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=202.819 yref=-13.4282 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits scfile=/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits outfile=/scratch/kocevski/728524/cmap_HighResolution_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.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=202.819 yref=-13.4282 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/728524/Model_4FGL_J1331.2-1325_daily_bin1746.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/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits.....................!
real 76.13
user 74.70
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits', '/scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits', expMap='/scratch/kocevski/728524/expmap_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.fits', expCube='/scratch/kocevski/728524/ltcube_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/728524/Model_4FGL_J1331.2-1325_daily_bin1746.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/728524/ft1_filtered_4FGL_J1331.2-1325_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/728524/ft2_4FGL_J1331.2-1325_daily_bin1746.fits
Exposure map: /scratch/kocevski/728524/expmap_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.fits
Exposure cube: /scratch/kocevski/728524/ltcube_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/728524/Model_4FGL_J1331.2-1325_daily_bin1746.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) = 10110.8654886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40414       1.0000          .0000       .10000E+07
     2 'norm      '    .14975E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .16658E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    31.814       1.0000          .0000       .10000E+07
     5 'norm      '    .84377E-07   1.0000          .0000       .10000E+07
     6 'norm      '    5.4835       1.0000          .0000       .10000E+07
     7 'norm      '    .98754E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6088       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.0545       1.0000          .0000       .10000E+07
    10 'Prefactor '    14.772       1.0000          .0000       .10000E+07
    11 'norm      '    .52930       1.0000          .0000       .10000E+07
    12 'norm      '    .68681E-05   1.0000          .0000       .10000E+07
    13 'norm      '    1.7142       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.3400       1.0000          .0000       .10000E+07
    15 'Prefactor '    .84505E-03   1.0000          .0000       .10000E+07
    16 'norm      '    41.055       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.9692       1.0000          .0000       .10000E+07
    18 'norm      '    .14346E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.0834       1.0000          .0000       .10000E+07
    20 'norm      '    .84344E-05   1.0000          .0000       .10000E+07
    21 'norm      '    14.884       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4688       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10110.86     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1828 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40416        .18444       -.12574E-07   -.89619E-02
   2  norm          .94369E-09    9.8583       -.25554E-06** at limit **
   3  norm          .33862E-08    2.0758       -.51114E-08** at limit **
   4  Prefactor     31.848        1.9502        .12695E-07   -.13942    
   5  norm           .0000        .71911        .17413E-07** at limit **
   6  norm          5.4808        1.3032        .76670E-08    .11942E-02
   7  norm          .11102E-09    3.1465       -.24864E-08** at limit **
   8  Prefactor     1.6126        4.2678       -.26376E-08   -.18377E-02
   9  Prefactor     1.0472        3.0821       -.10837E-07    .27416E-03
  10  Prefactor     14.793        1.9416        .59895E-08    .27436E-01
  11  norm          .52917        .62058       -.19103E-07   -.15383E-02
  12  norm          .43854E-08    1.9610       -.90388E-07** at limit **
  13  norm          1.7116        3.9111       -.19429E-06   -.19426E-02
  14  Prefactor     1.3346        1.1966        .93852E-08   -.14324E-02
  15  Prefactor     .11657E-08    6.8725       -.21920E-06** at limit **
  16  norm          41.050        1.6290       -.84769E-08    .12282    
  17  Prefactor     2.9710        1.0706        .18709E-08    .15282E-02
  18  norm          .38858E-09    1.4883        .78049E-07** at limit **
  19  Prefactor     1.0832        3.1458        .54426E-07    .27289E-03
  20  norm          .11102E-09    1.4269        .50510E-07** at limit **
  21  norm          14.885        3.3049        .32410E-07    .26913E-02
  22  Normalizat    1.4687        .21006       -.45626E-05    .12638E-04
  23  Prefactor     .81045        .10888        .37369E-05    .13413E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.404161
  norm       = 9.4369e-10
  norm       = 3.38618e-09
  Prefactor  = 31.848
  norm       = 0
  norm       = 5.4808
  norm       = 1.11022e-10
  Prefactor  = 1.61264
  Prefactor  = 1.04718
  Prefactor  = 14.7934
  norm       = 0.52917
  norm       = 4.38538e-09
  norm       = 1.71163
  Prefactor  = 1.3346
  Prefactor  = 1.16573e-09
  norm       = 41.0495
  Prefactor  = 2.97095
  norm       = 3.88578e-10
  Prefactor  = 1.0832
  norm       = 1.11022e-10
  norm       = 14.8853
  Normalizat = 1.46873
  Prefactor  = 0.810451
 **********
 **   18 **HESSE 
 **********

 FCN=   10110.86     FROM HESSE     STATUS=OK           416 CALLS     2244 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40416        .18805        .63897E-03   -1.5695    
   2  norm          .94369E-09    9.9284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .33862E-08    2.0922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.848        39.090        .17732E-03   -1.5595    
   5  norm           .0000        .71694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4808        7.0882        .42885E-03   -1.5661    
   7  norm          .11102E-09    3.1531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6126        5.1133        .83492E-03   -1.5683    
   9  Prefactor     1.0472        8.7352        .11998E-02   -1.5687    
  10  Prefactor     14.793        14.215        .26034E-03   -1.5631    
  11  norm          .52917        .63089        .75815E-03   -1.5693    
  12  norm          .43854E-08    1.9843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7116        4.1931        .80239E-03   -1.5682    
  14  Prefactor     1.3346        29.669        .94664E-03   -1.5685    
  15  Prefactor     .11657E-08    6.9032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          41.050        39.197        .15608E-03   -1.5580    
  17  Prefactor     2.9710        11.441        .58900E-03   -1.5673    
  18  norm          .38858E-09    1.4893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0832        3.1983        .11547E-02   -1.5687    
  20  norm          .11102E-09    1.4298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.885        3.3114        .25935E-03   -1.5631    
  22  Normalizat    1.4687        .18655        .65637E-01   -.78661    
  23  Prefactor     .81045        .93957E-01    .43853E-01   -.99344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95678e-06
Minuit parameter uncertainties:
  1  0.188045
  2  0.000194163
  3  0.000167756
  4  39.0901
  5  3.10387e-06
  6  7.08817
  7  3.4613e-05
  8  5.11327
  9  6.04891
  10  14.2146
  11  0.630886
  12  0.000186463
  13  4.19315
  14  12.5853
  15  0.0001774
  16  39.1977
  17  11.4409
  18  4.66745e-05
  19  3.19831
  20  2.73603e-05
  21  3.31138
  22  0.186635
  23  0.0939757
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.479e+01  1.421e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  8.105e-01  9.398e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.469e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 4.71e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.24e-05

TS (Fixed Index): 1.70
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/728524/likelihoodResults_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.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) = 10110.2603363
delta logL = 0.600364922491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10110.2433909
delta logL = 0.617310319602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2984       1.0000          .0000       .10000E+07
     2 'Index     '    3.5610       1.0000          .0000       10.000    
     3 'Normalizat'    1.4143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82878       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+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=   10110.24     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      293 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2990        85.115        .12788E-04    .20095E-01
   2  Index         3.5611        3.8802        .53970E-02    .42917E-03
   3  Normalizat    1.4143        .21262        .29485E-03    .50315E-03
   4  Prefactor     .82876        .11167        .19923E-03    .65132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.29898
  Index      = 3.56108
  Normalizat = 1.41431
  Prefactor  = 0.828759
 **********
 **   18 **HESSE 
 **********

 FCN=   10110.24     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2990        8.8964        .51152E-06   -1.5666    
   2  Index         3.5611        1.0426        .21588E-03   -.29191    
   3  Normalizat    1.4143        .21276        .58970E-04   -.80216    
   4  Prefactor     .82876        .11058        .39846E-04   -.98677    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52695e-10
Minuit parameter uncertainties:
  1  8.89646
  2  1.05098
  3  0.212894
  4  0.110612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/728524': 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) = 10110.2433907
delta logL = 0.617310525991

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  4.299e+00  8.896e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  3.561e+00  1.051e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  8.288e-01  1.106e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.414e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.56 +/- 1.05
Photon Flux (Free Index): 9.08e-08 +/- 6.23e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.00e-05

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/728524/cmap_HighResolution_691891201_692150401_4FGL_J1331.2-1325_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='1.49e-05', photon_flux_error='4.71e-08', dlogl='6.17e-01', energy_flux='1.29e-05', photon_flux2='9.08e-08', job_status='DONE', time_completed='2022-12-08 01:13:48.060946', photon_index_error2='1.05', photon_index2='3.56', ts='1.70', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.00e-05', EG='1.47', time_epoch_completed='1670490828.06', return_code='0', job_id='728524', GAL2='0.83', EG2='1.41', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='6.23e-08', ts2='3.06', photon_index='2.60' WHERE bin_id='1746' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:13:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 728524: <4FGL_J1331.2-1325_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 01:00:15 2022
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:00:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:00:16 2022
Terminated at Thu Dec  8 01:13:48 2022
Results reported at Thu Dec  8 01:13:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1746 202.819 -13.4282 691891201 692150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            813 sec.

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

