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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1749
RA = 202.819, Dec = -13.4282
tmin = 692668801, tmax = 692928001
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='953103', job_status='RUN', time_executed='2022-12-17 00:47:47.749160', time_epoch_executed='1671266867.75' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953103/ft1_4FGL_J1331.2-1325_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953103/ft2_4FGL_J1331.2-1325_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953103/ft1_4FGL_J1331.2-1325_daily_bin1749.fits outfile=/scratch/kocevski/953103/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1749.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=692668801.0 tmax=692928001.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.66
user 3.43
sys 0.21

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

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

Number of photons that the gtmktime cut: 859

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953103/ft1_filtered_4FGL_J1331.2-1325_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/953103/ft2_4FGL_J1331.2-1325_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/953103/ltcube_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.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/953103/ft2_4FGL_J1331.2-1325_daily_bin1749.fits
.....................!
real 12.55
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953103/ft1_filtered_4FGL_J1331.2-1325_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953103/ft2_4FGL_J1331.2-1325_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/953103/ltcube_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.fits outfile=/scratch/kocevski/953103/expmap_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.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/953103/ltcube_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.fits
.....................!
real 192.94
user 187.48
sys 5.02

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/953103/ft1_filtered_4FGL_J1331.2-1325_daily_bin1749.fits scfile=/scratch/kocevski/953103/ft2_4FGL_J1331.2-1325_daily_bin1749.fits outfile=/scratch/kocevski/953103/cmap_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953103/ft1_filtered_4FGL_J1331.2-1325_daily_bin1749.fits scfile=/scratch/kocevski/953103/ft2_4FGL_J1331.2-1325_daily_bin1749.fits outfile=/scratch/kocevski/953103/cmap_HighResolution_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953103/ft1_filtered_4FGL_J1331.2-1325_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/953103/ft2_4FGL_J1331.2-1325_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953103/Model_4FGL_J1331.2-1325_daily_bin1749.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/953103/ft1_filtered_4FGL_J1331.2-1325_daily_bin1749.fits.....................!
real 69.73
user 68.31
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20477       1.0000          .0000       .10000E+07
     2 'norm      '    .16353E-02   1.0000          .0000       .10000E+07
     3 'norm      '    17.895       1.0000          .0000       .10000E+07
     4 'Prefactor '    .20854E-01   1.0000          .0000       .10000E+07
     5 'norm      '    2.9349       1.0000          .0000       .10000E+07
     6 'norm      '    4.8132       1.0000          .0000       .10000E+07
     7 'norm      '    10.636       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.0776       1.0000          .0000       .10000E+07
     9 'Prefactor '    .88314E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.8660       1.0000          .0000       .10000E+07
    11 'norm      '    2.0117       1.0000          .0000       .10000E+07
    12 'norm      '    2.9327       1.0000          .0000       .10000E+07
    13 'norm      '    9.6719       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10569E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    25.676       1.0000          .0000       .10000E+07
    16 'norm      '    61.090       1.0000          .0000       .10000E+07
    17 'Prefactor '    .34117E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .15674E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17605E-03   1.0000          .0000       .10000E+07
    20 'norm      '    6.8181       1.0000          .0000       .10000E+07
    21 'norm      '    53.877       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1896       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94647       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=   9195.904     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1843 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20466        .16974       -.76470E-07** at limit **
   2  norm           .0000        4.8395       -.35185E-06** at limit **
   3  norm          17.896        1.5496        .26391E-06   -.52887E-01
   4  Prefactor     .17375E-07    22.508       -.33350E-05** at limit **
   5  norm          2.9357        1.9726        .29814E-07    .65411E-02
   6  norm          4.7973        2.3419        .77038E-06   -.78585E-01
   7  norm          10.639        2.3793        .44072E-06   -.99068E-01
   8  Prefactor     3.0483        5.6401       -.37540E-05   -.30195E-01
   9  Prefactor     .77716E-09    1.5696        .12404E-06** at limit **
  10  Prefactor     1.8423        1.3563       -.23327E-06   -.58333E-02
  11  norm          2.0121        1.4692       -.29923E-07    .39510E-02
  12  norm          2.9329        3.5885       -.22652E-07   -.66633E-02
  13  norm          9.6751        7.6987        .47381E-06    .39852E-01
  14  Prefactor     .14433E-08    7.7595        .31612E-06** at limit **
  15  Prefactor     25.799        31.165        .44579E-05   -.21879E-02
  16  norm          61.135        4.2212        .40955E-06   -.67717E-01
  17  Prefactor      .0000        21.432       -.22004E-07** at limit **
  18  norm          .11102E-09    1.5827        .26813E-06** at limit **
  19  Prefactor      .0000        1.4297        .50038E-06** at limit **
  20  norm          6.7760        4.7803       -.32092E-06   -.14036E-01
  21  norm          53.975        5.8610       -.16773E-06   -.47544E-01
  22  Normalizat    1.1896        .24477        .20969E-05    .75367E-04
  23  Prefactor     .94651        .12890       -.46563E-05    .19717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.204661
  norm       = 0
  norm       = 17.896
  Prefactor  = 1.7375e-08
  norm       = 2.93568
  norm       = 4.79731
  norm       = 10.6391
  Prefactor  = 3.04828
  Prefactor  = 7.77156e-10
  Prefactor  = 1.84231
  norm       = 2.01207
  norm       = 2.93288
  norm       = 9.67508
  Prefactor  = 1.44329e-09
  Prefactor  = 25.7995
  norm       = 61.1351
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 0
  norm       = 6.77596
  norm       = 53.9749
  Normalizat = 1.18964
  Prefactor  = 0.946512
 **********
 **   18 **HESSE 
 **********

 FCN=   9195.904     FROM HESSE     STATUS=OK           420 CALLS     2263 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20466        .18304        .78559E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        4.8467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.896        7.8528        .23648E-03   -1.5623    
   4  Prefactor     .17375E-07    22.546        .16981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9357        1.9771        .59265E-03   -1.5674    
   6  norm          4.7973        8.8543        .45832E-03   -1.5664    
   7  norm          10.639        8.7037        .30697E-03   -1.5643    
   8  Prefactor     3.0483        5.8367        .57792E-03   -1.5673    
   9  Prefactor     .77716E-09    1.8715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8423        79.974        .76234E-03   -1.5681    
  11  norm          2.0121        1.4811        .72960E-03   -1.5680    
  12  norm          2.9329        6.3202        .59288E-03   -1.5674    
  13  norm          9.6751        7.9626        .32198E-03   -1.5646    
  14  Prefactor     .14433E-08    7.7597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.799        31.555        .19739E-03   -1.5606    
  16  norm          61.135        50.415        .12795E-03   -1.5552    
  17  Prefactor      .0000        21.211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11102E-09    1.6071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.0030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.7760        6.5897        .38402E-03   -1.5656    
  21  norm          53.975        6.1438        .13625E-03   -1.5561    
  22  Normalizat    1.1896        .21391        .79237E-01   -.86924    
  23  Prefactor     .94651        .11034        .45595E-01   -.94534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85794e-07
Minuit parameter uncertainties:
  1  0.183044
  2  5.1719e-06
  3  7.85276
  4  0.0012517
  5  1.97709
  6  8.85432
  7  8.70373
  8  5.83674
  9  7.5596e-05
  10  24.2769
  11  1.4811
  12  6.32018
  13  7.96262
  14  0.000213045
  15  31.5553
  16  50.4153
  17  4.69077e-05
  18  2.45819e-05
  19  6.56931e-06
  20  6.58968
  21  6.14378
  22  0.214066
  23  0.110365
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.842e+00  2.428e+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:  9.465e-01  1.104e-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.190e+00  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/953103/likelihoodResults_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.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) = 9195.8700916
delta logL = 0.034107561547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9195.86950637
delta logL = 0.0346927973824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9395       1.0000          .0000       .10000E+07
     2 'Index     '    3.0742       1.0000          .0000       10.000    
     3 'Normalizat'    1.1820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94825       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9195.869     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      292 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9797        14.816        .14904E-03    .61292E-02
   2  Index         3.0637        1.9779        .75143E-02    .52347E-05
   3  Normalizat    1.1810        .23913        .35181E-03   -.78654E-04
   4  Prefactor     .94851        .12676        .20752E-03   -.14158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.97966
  Index      = 3.06366
  Normalizat = 1.18102
  Prefactor  = 0.948513
 **********
 **   18 **HESSE 
 **********

 FCN=   9195.869     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9797        9.6054        .29809E-04   -1.5680    
   2  Index         3.0637        1.6126        .30057E-03   -.39767    
   3  Normalizat    1.1810        .23932        .14072E-04   -.87191    
   4  Prefactor     .94851        .12688        .41505E-04   -.94466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07052e-11
Minuit parameter uncertainties:
  1  8.72136
  2  1.64747
  3  0.239538
  4  0.126923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953103': 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) = 9195.86947327
delta logL = 0.0347258957827

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.980e+00  8.721e+00  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  3.064e+00  1.647e+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:  9.485e-01  1.269e-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.181e+00  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/953103/cmap_HighResolution_692668801_692928001_4FGL_J1331.2-1325_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2022-12-17 00:59:37.079976', job_id='953103', GAL2='0.95', fit_tolerance='1e-08', EG2='1.18', EG='1.19', time_epoch_completed='1671267577.08', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.47e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1749' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:59:37 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 953103: <4FGL_J1331.2-1325_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 00:45:25 2022
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:45:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:45:26 2022
Terminated at Sat Dec 17 00:59:37 2022
Results reported at Sat Dec 17 00:59:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1749 202.819 -13.4282 692668801 692928001 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 :                                   711.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

