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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1780
RA = 202.819, Dec = -13.4282
tmin = 700704001, tmax = 700963201
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='65209', job_status='RUN', time_executed='2023-03-20 01:03:59.099963', time_epoch_executed='1679299439.1' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/65209

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/65209/ft1_4FGL_J1331.2-1325_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/65209/ft1_4FGL_J1331.2-1325_daily_bin1780.fits outfile=/scratch/kocevski/65209/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1780.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=700704001.0 tmax=700963201.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.14
user 3.93
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.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/65209/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 458

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/65209/ltcube_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.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/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits
.....................!
real 12.08
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/65209/ltcube_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.fits outfile=/scratch/kocevski/65209/expmap_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.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/65209/ltcube_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.fits
.....................!
real 190.92
user 185.63
sys 4.96

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/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits scfile=/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits outfile=/scratch/kocevski/65209/cmap_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits scfile=/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits outfile=/scratch/kocevski/65209/cmap_HighResolution_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/65209/Model_4FGL_J1331.2-1325_daily_bin1780.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/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits.....................!
real 44.46
user 43.12
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits', '/scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits', expMap='/scratch/kocevski/65209/expmap_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.fits', expCube='/scratch/kocevski/65209/ltcube_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/65209/Model_4FGL_J1331.2-1325_daily_bin1780.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/65209/ft1_filtered_4FGL_J1331.2-1325_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/65209/ft2_4FGL_J1331.2-1325_daily_bin1780.fits
Exposure map: /scratch/kocevski/65209/expmap_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.fits
Exposure cube: /scratch/kocevski/65209/ltcube_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/65209/Model_4FGL_J1331.2-1325_daily_bin1780.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) = 4835.71542745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23385       1.0000          .0000       .10000E+07
     2 'norm      '    6.2626       1.0000          .0000       .10000E+07
     3 'norm      '    .63009E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28051E-02   1.0000          .0000       .10000E+07
     5 'norm      '    3.7558       1.0000          .0000       .10000E+07
     6 'norm      '    55.833       1.0000          .0000       .10000E+07
     7 'norm      '    26.294       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.613       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.8520       1.0000          .0000       .10000E+07
    10 'Prefactor '    8.5833       1.0000          .0000       .10000E+07
    11 'norm      '    7.2978       1.0000          .0000       .10000E+07
    12 'norm      '    3.6115       1.0000          .0000       .10000E+07
    13 'norm      '    12.432       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.1650       1.0000          .0000       .10000E+07
    15 'Prefactor '    .90102E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .19194E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    14.225       1.0000          .0000       .10000E+07
    18 'norm      '    .43299E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.3904       1.0000          .0000       .10000E+07
    20 'norm      '    .17328       1.0000          .0000       .10000E+07
    21 'norm      '    26.977       1.0000          .0000       .10000E+07
    22 'Normalizat'    .93865       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89063       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=   4835.658     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1461 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23375        .25155        .50544E-07** at limit **
   2  norm          6.2326        9.3615        .27854E-05    .12532E-02
   3  norm          .38858E-09    4.4344        .34312E-06** at limit **
   4  Prefactor     .12314E-05    32.300        .83046E-05** at limit **
   5  norm          3.7550        3.1080       -.28851E-06    .18346E-02
   6  norm          55.873        1.1464        .10797E-07    .21897E-02
   7  norm          26.341        2.0683       -.92184E-07   -.13811E-01
   8  Prefactor     10.625        3.3710        .58172E-06    .28688E-01
   9  Prefactor     1.8451        9.7412        .14322E-05    .15293E-02
  10  Prefactor     8.5535        1.5919       -.41635E-06   -.72584E-02
  11  norm          7.2957        2.6009        .34861E-06    .56252E-02
  12  norm          3.6237        3.5935       -.30452E-06   -.46559E-02
  13  norm          12.371        2.9122        .63298E-06    .49613E-01
  14  Prefactor     6.7435        13.181       -.26730E-05   -.44852E-01
  15  Prefactor     .12516E-05    36.427       -.74668E-05** at limit **
  16  norm          .55511E-09    31.231        .12631E-05** at limit **
  17  Prefactor     14.316        11.891        .36165E-05    .36890E-01
  18  norm           .0000        1.5219       -.89193E-07** at limit **
  19  Prefactor     5.4827        5.1250        .21123E-06   -.79904E-02
  20  norm          .19759E-04    100.50       -.60511E-05** at limit **
  21  norm          27.036        5.9096       -.47335E-07    .24495E-02
  22  Normalizat    .93861        .33206       -.38288E-05   -.15313E-03
  23  Prefactor     .89118        .16964       -.10820E-04   -.23621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.233751
  norm       = 6.23262
  norm       = 3.88578e-10
  Prefactor  = 1.2314e-06
  norm       = 3.75499
  norm       = 55.8735
  norm       = 26.3409
  Prefactor  = 10.6245
  Prefactor  = 1.84515
  Prefactor  = 8.55353
  norm       = 7.29568
  norm       = 3.62369
  norm       = 12.3713
  Prefactor  = 6.74346
  Prefactor  = 1.25155e-06
  norm       = 5.55112e-10
  Prefactor  = 14.3158
  norm       = 0
  Prefactor  = 5.48273
  norm       = 1.97588e-05
  norm       = 27.0358
  Normalizat = 0.938611
  Prefactor  = 0.891176
 **********
 **   18 **HESSE 
 **********

 FCN=   4835.658     FROM HESSE     STATUS=OK           432 CALLS     1893 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23375        .27019        .78971E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2326        9.6972        .40089E-03   -1.5658    
   3  norm          .38858E-09    4.4370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12314E-05    35.775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7550        3.1090        .52072E-03   -1.5669    
   6  norm          55.873        21.591        .13384E-03   -1.5558    
   7  norm          26.341        21.148        .19506E-03   -1.5605    
   8  Prefactor     10.625        10.451        .30730E-03   -1.5643    
   9  Prefactor     1.8451        11.022        .76575E-03   -1.5681    
  10  Prefactor     8.5535        19.095        .34191E-03   -1.5649    
  11  norm          7.2957        2.6030        .37105E-03   -1.5654    
  12  norm          3.6237        4.8999        .53143E-03   -1.5670    
  13  norm          12.371        8.4763        .28384E-03   -1.5638    
  14  Prefactor     6.7435        16.615        .37451E-03   -1.5656    
  15  Prefactor     .12516E-05    39.959        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55511E-09    31.217        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.316        14.090        .26530E-03   -1.5632    
  18  norm           .0000        1.5222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4827        5.3139        .43260E-03   -1.5661    
  20  norm          .19759E-04    6.7452        .10211E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          27.036        5.9417        .19257E-03   -1.5604    
  22  Normalizat    .93861        .28974        .82079E-01   -.95116    
  23  Prefactor     .89118        .14537        .44886E-01   -.96450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35554e-07
Minuit parameter uncertainties:
  1  0.270188
  2  9.69719
  3  8.17689e-05
  4  0.0132746
  5  3.10897
  6  21.5914
  7  21.1484
  8  10.4511
  9  9.01948
  10  19.0952
  11  2.60298
  12  4.89995
  13  8.47631
  14  16.6156
  15  0.0141436
  16  0.000257843
  17  14.0896
  18  1.16506e-05
  19  5.31395
  20  0.0230891
  21  5.94172
  22  0.290228
  23  0.145437
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  8.554e+00  1.910e+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.912e-01  1.454e-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:  9.386e-01  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/65209/likelihoodResults_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.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) = 4835.4331413
delta logL = 0.224452522742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4835.42954328
delta logL = 0.228050547375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.762       1.0000          .0000       .10000E+07
     2 'Index     '    1.8046       1.0000          .0000       10.000    
     3 'Normalizat'    .95605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88522       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=   4835.430     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      282 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.775        23.120        .10080E-04   -.40037E-03
   2  Index         1.8086        .97659        .12711E-01    .58272E-05
   3  Normalizat    .95590        .31271        .36046E-03    .20280E-04
   4  Prefactor     .88528        .16692        .19793E-03   -.70558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7752
  Index      = 1.80864
  Normalizat = 0.955899
  Prefactor  = 0.885281
 **********
 **   18 **HESSE 
 **********

 FCN=   4835.430     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.775        23.248        .40321E-06   -1.5629    
   2  Index         1.8086        .98211        .50842E-03   -.69225    
   3  Normalizat    .95590        .31291        .14418E-04   -.94523    
   4  Prefactor     .88528        .16704        .39586E-04   -.96657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55072e-11
Minuit parameter uncertainties:
  1  23.248
  2  0.993091
  3  0.313514
  4  0.167137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/65209': 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) = 4835.42953484
delta logL = 0.228058983467

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.578e+01  2.325e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  1.809e+00  9.931e-01  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.853e-01  1.671e-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:  9.559e-01  3.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.43
Ra Dec: 202.819 -13.428

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/65209/cmap_HighResolution_700704001_700963201_4FGL_J1331.2-1325_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2023-03-20 01:12:39.615217', job_id='65209', GAL2='0.89', fit_tolerance='1e-08', EG2='0.96', EG='0.94', time_epoch_completed='1679299959.62', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.28e-01', ts2='0.89', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1780' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:12:39 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 65209: <4FGL_J1331.2-1325_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1780> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Mar 20 01:00:23 2023
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:00:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:00:24 2023
Terminated at Mon Mar 20 01:12:40 2023
Results reported at Mon Mar 20 01:12:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1780 202.819 -13.4282 700704001 700963201 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 :                                   523.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

