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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1758
RA = 202.819, Dec = -13.4282
tmin = 695001601, tmax = 695260801
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='366450', job_status='RUN', time_executed='2023-01-13 00:48:25.678418', time_epoch_executed='1673599705.68' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366450

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366450/ft1_4FGL_J1331.2-1325_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366450/ft1_4FGL_J1331.2-1325_daily_bin1758.fits outfile=/scratch/kocevski/366450/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1758.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=695001601.0 tmax=695260801.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 2.78
user 2.57
sys 0.19

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

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

Number of photons that the gtmktime cut: 1126

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/366450/ltcube_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.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/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits
.....................!
real 16.72
user 16.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/366450/ltcube_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.fits outfile=/scratch/kocevski/366450/expmap_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.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/366450/ltcube_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.fits
.....................!
real 192.65
user 186.44
sys 5.72

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/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits scfile=/scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits outfile=/scratch/kocevski/366450/cmap_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits scfile=/scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits outfile=/scratch/kocevski/366450/cmap_HighResolution_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366450/Model_4FGL_J1331.2-1325_daily_bin1758.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/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits.....................!
real 85.41
user 83.27
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits', '/scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits', expMap='/scratch/kocevski/366450/expmap_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.fits', expCube='/scratch/kocevski/366450/ltcube_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/366450/Model_4FGL_J1331.2-1325_daily_bin1758.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/366450/ft1_filtered_4FGL_J1331.2-1325_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/366450/ft2_4FGL_J1331.2-1325_daily_bin1758.fits
Exposure map: /scratch/kocevski/366450/expmap_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.fits
Exposure cube: /scratch/kocevski/366450/ltcube_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/366450/Model_4FGL_J1331.2-1325_daily_bin1758.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11911.1731533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53008       1.0000          .0000       .10000E+07
     2 'norm      '    .21435E-03   1.0000          .0000       .10000E+07
     3 'norm      '    9.9619       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13094E-01   1.0000          .0000       .10000E+07
     5 'norm      '    2.4904       1.0000          .0000       .10000E+07
     6 'norm      '    10.203       1.0000          .0000       .10000E+07
     7 'norm      '    .21529E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    17.496       1.0000          .0000       .10000E+07
     9 'Prefactor '    .12962E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.8798       1.0000          .0000       .10000E+07
    11 'norm      '    1.6952       1.0000          .0000       .10000E+07
    12 'norm      '    1.7216       1.0000          .0000       .10000E+07
    13 'norm      '    4.0938       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.2129       1.0000          .0000       .10000E+07
    15 'Prefactor '    4.6397       1.0000          .0000       .10000E+07
    16 'norm      '    .11273E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.2034       1.0000          .0000       .10000E+07
    18 'norm      '    2.6882       1.0000          .0000       .10000E+07
    19 'Prefactor '    2.1312       1.0000          .0000       .10000E+07
    20 'norm      '    .27256E-07   1.0000          .0000       .10000E+07
    21 'norm      '    26.031       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1485       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84446       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=   11910.66     FROM MIGRAD    STATUS=CONVERGED    141 CALLS     1447 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .52997        .17807        .91219E-08    .71325E-03
   2  norm           .0000        3.0952        .21077E-06** at limit **
   3  norm          9.9593        5.8624        .32773E-08   -.99829E-04
   4  Prefactor     .42516E-06    14.450       -.26291E-05** at limit **
   5  norm          2.4896        1.5625        .59332E-07    .23390E-02
   6  norm          10.276        3.7201       -.72970E-07   -.15822E-01
   7  norm          .14455E-06    31.021       -.52817E-06** at limit **
   8  Prefactor     17.469        6.8978       -.53533E-06   -.13482E-02
   9  Prefactor      .0000        1.6854       -.11690E-06** at limit **
  10  Prefactor     6.0608        8.7203        .12366E-05    .11960E-01
  11  norm          1.6942        1.0787       -.36738E-07    .29633E-02
  12  norm          1.6670        3.1754       -.24996E-06   -.71790E-03
  13  norm          4.1638        5.1250        .16285E-06    .72031E-03
  14  Prefactor     9.1727        7.7868       -.64411E-06   -.24373E-01
  15  Prefactor     3.9628        14.089        .20766E-06   -.50090E-03
  16  norm          .26396E-06    19.858        .12948E-05** at limit **
  17  Prefactor     5.1948        6.8425        .10313E-05    .20223E-01
  18  norm          2.6948        3.2823       -.31716E-07    .10262E-02
  19  Prefactor     2.1242        3.1287       -.18671E-06   -.28942E-02
  20  norm           .0000        2.6238        .47218E-06** at limit **
  21  norm          26.051        3.5479        .34038E-07   -.18298E-02
  22  Normalizat    1.1480        .19770        .50233E-05    .13656E-03
  23  Prefactor     .84502        .10324       -.22472E-05    .20652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.529967
  norm       = 0
  norm       = 9.95925
  Prefactor  = 4.2516e-07
  norm       = 2.48957
  norm       = 10.2759
  norm       = 1.44551e-07
  Prefactor  = 17.4694
  Prefactor  = 0
  Prefactor  = 6.06076
  norm       = 1.69419
  norm       = 1.66696
  norm       = 4.16382
  Prefactor  = 9.17274
  Prefactor  = 3.96277
  norm       = 2.63956e-07
  Prefactor  = 5.1948
  norm       = 2.6948
  Prefactor  = 2.12419
  norm       = 0
  norm       = 26.0506
  Normalizat = 1.14804
  Prefactor  = 0.845016
 **********
 **   18 **HESSE 
 **********

 FCN=   11910.66     FROM HESSE     STATUS=OK           430 CALLS     1877 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .52997        .17904        .58344E-03   -1.5693    
   2  norm           .0000        3.0922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9593        5.8695        .31723E-03   -1.5645    
   4  Prefactor     .42516E-06    20.141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4896        1.5632        .64744E-03   -1.5676    
   6  norm          10.276        6.8449        .31344E-03   -1.5644    
   7  norm          .14455E-06    3.0899        .74913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.469        7.2268        .23917E-03   -1.5624    
   9  Prefactor      .0000        1.6892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0608        20.163        .41391E-03   -1.5659    
  11  norm          1.6942        1.0751        .80792E-04   -1.5682    
  12  norm          1.6670        4.5814        .80025E-03   -1.5682    
  13  norm          4.1638        5.3196        .49803E-03   -1.5667    
  14  Prefactor     9.1727        14.264        .32995E-03   -1.5647    
  15  Prefactor     3.9628        14.283        .46701E-03   -1.5668    
  16  norm          .26396E-06    23.336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.1948        10.463        .44045E-03   -1.5662    
  18  norm          2.6948        3.3132        .62116E-03   -1.5675    
  19  Prefactor     2.1242        3.1498        .70595E-03   -1.5679    
  20  norm           .0000        2.6181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          26.051        3.5476        .19604E-03   -1.5606    
  22  Normalizat    1.1480        .17045        .71871E-01   -.88224    
  23  Prefactor     .84502        .88066E-01    .44293E-01   -.98090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02939e-07
Minuit parameter uncertainties:
  1  0.179035
  2  2.33768e-06
  3  5.8695
  4  0.0058525
  5  1.56318
  6  6.84495
  7  0.00133666
  8  7.2268
  9  4.14716e-06
  10  20.163
  11  1.07514
  12  4.58144
  13  5.31957
  14  14.2639
  15  14.2827
  16  0.0049637
  17  10.4632
  18  3.31317
  19  3.14985
  20  1.28593e-05
  21  3.54759
  22  0.170529
  23  0.0880807
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  6.061e+00  2.016e+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.450e-01  8.808e-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.148e+00  1.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366450/likelihoodResults_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.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) = 11910.1450229
delta logL = 0.515162436182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11910.1212714
delta logL = 0.538913869701

Fit tolerance = 1e-08

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

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

 FCN=   11910.12     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      315 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2228        19.944        .10163E-03    .78735E-02
   2  Index         3.9138        2.3445        .16408        .27430E-03
   3  Normalizat    1.1063        .43047E-01    .73008E-01    .11159E-03
   4  Prefactor     .85882        .22949E-01    .44478E-01    .20754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.22281
  Index      = 3.91376
  Normalizat = 1.10626
  Prefactor  = 0.858818
 **********
 **   18 **HESSE 
 **********

 FCN=   11910.12     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      348 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2228        51.169        .40654E-05   -1.5686    
   2  Index         3.9138        6.9392        .59355E-02   -.21899    
   3  Normalizat    1.1063        .16849        .32308E-03   -.89551    
   4  Prefactor     .85882        .90231E-01    .19503E-03   -.97595    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05805e-09
Minuit parameter uncertainties:
  1  15.8204
  2  6.01711
  3  0.168573
  4  0.0902464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366450': 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) = 11910.121271
delta logL = 0.538914315488

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.223e+00  1.582e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  3.914e+00  6.017e+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.588e-01  9.025e-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.106e+00  1.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.91 +/- 6.02
Photon Flux (Free Index): 5.32e-08 +/- 5.42e-08
Energy Flux (Free Index): 8.08e-06 +/- 1.44e-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/366450/cmap_HighResolution_695001601_695260801_4FGL_J1331.2-1325_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', energy_flux2='8.08e-06', dlogl='5.39e-01', photon_flux2='5.32e-08', job_status='DONE', time_completed='2023-01-13 01:01:34.039358', photon_index_error2='6.02', photon_index2='3.91', ts='0.27', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.44e-05', EG='1.15', time_epoch_completed='1673600494.04', return_code='0', job_id='366450', GAL2='0.86', EG2='1.11', return_code2='102', photon_flux_error2='5.42e-08', ts2='1.42', photon_index='2.60' WHERE bin_id='1758' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:01:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 366450: <4FGL_J1331.2-1325_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1758> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Jan 13 00:45:24 2023
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:47:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:47:33 2023
Terminated at Fri Jan 13 01:01:34 2023
Results reported at Fri Jan 13 01:01:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1758 202.819 -13.4282 695001601 695260801 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 :                                   790.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            970 sec.

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

