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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1769
RA = 202.819, Dec = -13.4282
tmin = 697852801, tmax = 698112001
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='435848', job_status='RUN', time_executed='2023-02-15 00:52:23.845624', time_epoch_executed='1676451143.85' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435848/ft1_4FGL_J1331.2-1325_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435848/ft2_4FGL_J1331.2-1325_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435848/ft1_4FGL_J1331.2-1325_daily_bin1769.fits outfile=/scratch/kocevski/435848/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1769.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=697852801.0 tmax=698112001.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.39
user 4.12
sys 0.22

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

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

Number of photons that the gtmktime cut: 670

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435848/ft1_filtered_4FGL_J1331.2-1325_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/435848/ft2_4FGL_J1331.2-1325_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/435848/ltcube_697852801_698112001_4FGL_J1331.2-1325_daily_bin1769.fits outfile=/scratch/kocevski/435848/expmap_697852801_698112001_4FGL_J1331.2-1325_daily_bin1769.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/435848/ltcube_697852801_698112001_4FGL_J1331.2-1325_daily_bin1769.fits
.....................!
real 191.90
user 187.52
sys 4.00

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/435848/ft1_filtered_4FGL_J1331.2-1325_daily_bin1769.fits scfile=/scratch/kocevski/435848/ft2_4FGL_J1331.2-1325_daily_bin1769.fits outfile=/scratch/kocevski/435848/cmap_697852801_698112001_4FGL_J1331.2-1325_daily_bin1769.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435848/ft1_filtered_4FGL_J1331.2-1325_daily_bin1769.fits scfile=/scratch/kocevski/435848/ft2_4FGL_J1331.2-1325_daily_bin1769.fits outfile=/scratch/kocevski/435848/cmap_HighResolution_697852801_698112001_4FGL_J1331.2-1325_daily_bin1769.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41306       1.0000          .0000       .10000E+07
     2 'norm      '    .90966       1.0000          .0000       .10000E+07
     3 'norm      '    .36148E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .43922       1.0000          .0000       .10000E+07
     5 'norm      '    .21077E-04   1.0000          .0000       .10000E+07
     6 'norm      '    2.9374       1.0000          .0000       .10000E+07
     7 'norm      '    .70112E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.4552       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29139E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .39687E-04   1.0000          .0000       .10000E+07
    11 'norm      '    3.1968       1.0000          .0000       .10000E+07
    12 'norm      '    10.357       1.0000          .0000       .10000E+07
    13 'norm      '    .11656       1.0000          .0000       .10000E+07
    14 'Prefactor '    29.597       1.0000          .0000       .10000E+07
    15 'Prefactor '    40.559       1.0000          .0000       .10000E+07
    16 'norm      '    .11436E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .33210E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .20061E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .11956E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .81426E-03   1.0000          .0000       .10000E+07
    21 'norm      '    27.129       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.5403       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84818       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=   7317.911     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1813 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41282        .26420       -.21347E-07    .10434E-02
   2  norm          .91526        1.8082       -.36606E-06   -.28392E-01
   3  norm          .22204E-09    2.8276       -.39092E-06** at limit **
   4  Prefactor     .12929E-06    6.5225       -.34021E-06** at limit **
   5  norm           .0000        1.7395        .38027E-06** at limit **
   6  norm          2.9436        6.4412        .47758E-06   -.50864E-03
   7  norm          .36637E-08    12.527        .96512E-06** at limit **
   8  Prefactor     3.4535        5.1591       -.22278E-06   -.12750E-03
   9  Prefactor     .57732E-08    1.9383        .23047E-06** at limit **
  10  Prefactor     .55123E-07    20.980       -.10411E-06** at limit **
  11  norm          3.1979        1.6789        .16039E-07    .40710E-03
  12  norm          10.402        4.5160       -.22682E-06    .29888E-02
  13  norm          .12712E-07    78.927        .30233E-05** at limit **
  14  Prefactor     29.533        7.3567        .14006E-06   -.23991E-01
  15  Prefactor     40.933        6.8454        .28524E-06   -.40759E-01
  16  norm          .60507E-08    14.924       -.64345E-06** at limit **
  17  Prefactor     .19096E-07    30.689       -.30709E-05** at limit **
  18  norm           .0000        2.0653       -.23603E-06** at limit **
  19  Prefactor     .93259E-08    1.3883        .16880E-06** at limit **
  20  norm          .11102E-09    3.6590       -.54280E-06** at limit **
  21  norm          27.127        5.2113       -.52083E-07   -.12862E-03
  22  Normalizat    1.5408        .27642        .94277E-05    .10109E-03
  23  Prefactor     .84801        .13834       -.61782E-05    .10112E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.412821
  norm       = 0.915264
  norm       = 2.22045e-10
  Prefactor  = 1.29285e-07
  norm       = 0
  norm       = 2.94365
  norm       = 3.66374e-09
  Prefactor  = 3.45349
  Prefactor  = 5.77316e-09
  Prefactor  = 5.51226e-08
  norm       = 3.19793
  norm       = 10.4019
  norm       = 1.27121e-08
  Prefactor  = 29.5325
  Prefactor  = 40.9335
  norm       = 6.05072e-09
  Prefactor  = 1.90958e-08
  norm       = 0
  Prefactor  = 9.32587e-09
  norm       = 1.11022e-10
  norm       = 27.1271
  Normalizat = 1.54083
  Prefactor  = 0.848014
 **********
 **   18 **HESSE 
 **********

 FCN=   7317.911     FROM HESSE     STATUS=OK           420 CALLS     2233 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41282        .26811        .76033E-03   -1.5695    
   2  norm          .91526        12.185        .45094E-03   -1.5689    
   3  norm          .22204E-09    2.8389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .12929E-06    72.056        .85077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.7327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9436        6.4677        .59238E-03   -1.5674    
   7  norm          .36637E-08    13.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4535        5.1764        .54383E-03   -1.5671    
   9  Prefactor     .57732E-08    3.1627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55123E-07    23.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1979        1.6795        .56645E-03   -1.5672    
  12  norm          10.402        4.8704        .31110E-03   -1.5643    
  13  norm          .12712E-07    4.0424        .95924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.533        18.933        .18384E-03   -1.5599    
  15  Prefactor     40.933        29.654        .15704E-03   -1.5580    
  16  norm          .60507E-08    16.950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19096E-07    31.984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        2.0656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .93259E-08    3.2575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .11102E-09    3.6838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          27.127        5.2085        .19203E-03   -1.5604    
  22  Normalizat    1.5408        .23990        .73603E-01   -.76637    
  23  Prefactor     .84801        .12086        .44341E-01   -.97982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64668e-07
Minuit parameter uncertainties:
  1  0.268114
  2  6.67897
  3  4.97975e-05
  4  0.00610441
  5  8.82198e-06
  6  6.46775
  7  0.000444877
  8  5.17646
  9  0.000270352
  10  0.0022951
  11  1.67951
  12  4.87044
  13  0.000453717
  14  18.933
  15  29.6537
  16  0.000639924
  17  0.0015622
  18  1.0435e-06
  19  0.000348744
  20  3.75372e-05
  21  5.20853
  22  0.240074
  23  0.120901
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.512e-08  2.295e-03  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.480e-01  1.209e-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.541e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/435848/likelihoodResults_697852801_698112001_4FGL_J1331.2-1325_daily_bin1769.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): 102
logL (Free Index) = 7317.93133606
delta logL = -0.0208032371866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7317.36828999
delta logL = 0.542242830423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30810E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.8746       1.0000          .0000       10.000    
     3 'Normalizat'    1.4495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87592       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=   7317.368     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30599E-01    .43982        .33181E-03** at limit **
   2  Index         5.8786        2.5044        .11005        .29816E-03
   3  Normalizat    1.4495        .49502E-01    .75373E-01    .35185E-04
   4  Prefactor     .87600        .25925E-01    .44697E-01   -.29387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0305985
  Index      = 5.87864
  Normalizat = 1.44955
  Prefactor  = 0.875997
 **********
 **   18 **HESSE 
 **********

 FCN=   7317.368     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      302 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30599E-01    1.5304        .14964E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8786        7.6618        .60224E-02    .17665    
   3  Normalizat    1.4495        .19231        .33354E-03   -.79206    
   4  Prefactor     .87600        .98465E-01    .21687E-03   -.96985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96973e-10
Minuit parameter uncertainties:
  1  0.432795
  2  6.25977
  3  0.192402
  4  0.0984848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435848': 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) = 7317.36828614
delta logL = 0.542246678247

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  3.060e-02  4.328e-01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  5.879e+00  6.260e+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.760e-01  9.848e-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.450e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 5.88 +/- 6.26
Photon Flux (Free Index): 9.16e-08 +/- 9.03e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.30e-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/435848/cmap_HighResolution_697852801_698112001_4FGL_J1331.2-1325_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='5.42e-01', photon_flux2='9.16e-08', job_status='DONE', time_completed='2023-02-15 01:02:35.233829', photon_index_error2='6.26', photon_index2='5.88', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.30e-05', EG='1.54', time_epoch_completed='1676451755.23', return_code='0', job_id='435848', GAL2='0.88', EG2='1.45', return_code2='102', photon_flux_error2='9.03e-08', ts2='1.17', photon_index='2.60' WHERE bin_id='1769' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:02:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0056>
Subject: Job 435848: <4FGL_J1331.2-1325_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:50:21 2023
Job was executed on host(s) <bullet0056>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:50:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:50:22 2023
Terminated at Wed Feb 15 01:02:35 2023
Results reported at Wed Feb 15 01:02:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1769 202.819 -13.4282 697852801 698112001 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 :                                   613.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            734 sec.

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

