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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1778
RA = 202.819, Dec = -13.4282
tmin = 700185601, tmax = 700444801
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='964616', job_status='RUN', time_executed='2023-03-14 01:08:46.296375', time_epoch_executed='1678781326.3' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964616/ft1_4FGL_J1331.2-1325_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964616/ft2_4FGL_J1331.2-1325_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964616/ft1_4FGL_J1331.2-1325_daily_bin1778.fits outfile=/scratch/kocevski/964616/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1778.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=700185601.0 tmax=700444801.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.16
user 2.90
sys 0.23

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

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

Number of photons that the gtmktime cut: 1087

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964616/ft1_filtered_4FGL_J1331.2-1325_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/964616/ft2_4FGL_J1331.2-1325_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/964616/ltcube_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.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/964616/ft2_4FGL_J1331.2-1325_daily_bin1778.fits
.....................!
real 10.34
user 10.02
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964616/ft1_filtered_4FGL_J1331.2-1325_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/964616/ft2_4FGL_J1331.2-1325_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/964616/ltcube_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.fits outfile=/scratch/kocevski/964616/expmap_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.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/964616/ltcube_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.fits
.....................!
real 152.62
user 148.03
sys 4.25

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/964616/ft1_filtered_4FGL_J1331.2-1325_daily_bin1778.fits scfile=/scratch/kocevski/964616/ft2_4FGL_J1331.2-1325_daily_bin1778.fits outfile=/scratch/kocevski/964616/cmap_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964616/ft1_filtered_4FGL_J1331.2-1325_daily_bin1778.fits scfile=/scratch/kocevski/964616/ft2_4FGL_J1331.2-1325_daily_bin1778.fits outfile=/scratch/kocevski/964616/cmap_HighResolution_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/964616/ft1_filtered_4FGL_J1331.2-1325_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/964616/ft2_4FGL_J1331.2-1325_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964616/Model_4FGL_J1331.2-1325_daily_bin1778.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/964616/ft1_filtered_4FGL_J1331.2-1325_daily_bin1778.fits.....................!
real 66.86
user 65.68
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24909       1.0000          .0000       .10000E+07
     2 'norm      '    .46729E-03   1.0000          .0000       .10000E+07
     3 'norm      '    7.2664       1.0000          .0000       .10000E+07
     4 'Prefactor '    .47921E-01   1.0000          .0000       .10000E+07
     5 'norm      '    1.3843       1.0000          .0000       .10000E+07
     6 'norm      '    26.027       1.0000          .0000       .10000E+07
     7 'norm      '    .90107E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12538E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.2658       1.0000          .0000       .10000E+07
    10 'Prefactor '    24.328       1.0000          .0000       .10000E+07
    11 'norm      '    5.9909       1.0000          .0000       .10000E+07
    12 'norm      '    .86375E-06   1.0000          .0000       .10000E+07
    13 'norm      '    7.5532       1.0000          .0000       .10000E+07
    14 'Prefactor '    .79705E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .48282E-02   1.0000          .0000       .10000E+07
    16 'norm      '    25.410       1.0000          .0000       .10000E+07
    17 'Prefactor '    .60116E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .21949E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.8811       1.0000          .0000       .10000E+07
    20 'norm      '    1.0469       1.0000          .0000       .10000E+07
    21 'norm      '    42.776       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.1646       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0174       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=   11171.28     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1884 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24910        .17993        .12850E-09** at limit **
   2  norm          .37748E-08    2.5964        .22099E-06** at limit **
   3  norm          7.2639        5.1071       -.81693E-08    .64869E-03
   4  Prefactor     .55511E-09    .73776       -.11282E-06** at limit **
   5  norm          1.3847        1.4061        .10695E-06   -.21470E-03
   6  norm          26.029        1.1526       -.25204E-07    .10446E-02
   7  norm          .83267E-09    2.1824       -.37615E-06** at limit **
   8  Prefactor     .18929E-07    3.1834       -.51208E-06** at limit **
   9  Prefactor     7.2776        1.9900        .68342E-07    .42811E-02
  10  Prefactor     24.216        4.3027       -.20494E-07   -.12422E-01
  11  norm          5.9909        1.5748       -.42879E-07    .62209E-03
  12  norm          .55733E-07    8.0952       -.84543E-07** at limit **
  13  norm          7.5973        6.0516        .18928E-06    .64005E-02
  14  Prefactor     .17875E-07    5.9511       -.72267E-06** at limit **
  15  Prefactor     .18041E-07    14.322        .65001E-06** at limit **
  16  norm          25.480        5.2287        .22103E-06   -.14457    
  17  Prefactor     .18652E-07    3.7709        .59133E-06** at limit **
  18  norm          .11102E-09    1.3248        .18493E-06** at limit **
  19  Prefactor     2.9004        5.2367        .26134E-06   -.22470E-03
  20  norm          1.0183        6.9501        .78523E-06    .20702E-03
  21  norm          42.817        4.8410       -.18285E-07    .17631E-02
  22  Normalizat    1.1643        .22860        .42448E-05    .17204E-04
  23  Prefactor     1.0175        .11894       -.33586E-05   -.25927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.249096
  norm       = 3.77476e-09
  norm       = 7.26388
  Prefactor  = 5.55112e-10
  norm       = 1.38472
  norm       = 26.0292
  norm       = 8.32667e-10
  Prefactor  = 1.89293e-08
  Prefactor  = 7.27763
  Prefactor  = 24.2159
  norm       = 5.99089
  norm       = 5.57332e-08
  norm       = 7.59735
  Prefactor  = 1.78746e-08
  Prefactor  = 1.80411e-08
  norm       = 25.4799
  Prefactor  = 1.86517e-08
  norm       = 1.11022e-10
  Prefactor  = 2.9004
  norm       = 1.01833
  norm       = 42.817
  Normalizat = 1.16431
  Prefactor  = 1.01754
 **********
 **   18 **HESSE 
 **********

 FCN=   11171.28     FROM HESSE     STATUS=OK           420 CALLS     2304 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24910        .19188        .83357E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .37748E-08    2.6034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.2639        5.1121        .37186E-03   -1.5654    
   4  Prefactor     .55511E-09    29.830        .15624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3847        1.4123        .92418E-03   -1.5684    
   6  norm          26.029        11.075        .19605E-03   -1.5606    
   7  norm          .83267E-09    2.2041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18929E-07    3.2004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2776        7.0456        .37187E-03   -1.5654    
  10  Prefactor     24.216        17.089        .20279E-03   -1.5610    
  11  norm          5.9909        1.5718        .41000E-03   -1.5659    
  12  norm          .55733E-07    8.1244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.5973        7.0271        .36467E-03   -1.5653    
  14  Prefactor     .17875E-07    5.9726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .18041E-07    14.972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.480        37.619        .19842E-03   -1.5607    
  17  Prefactor     .18652E-07    3.7981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11102E-09    1.3283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9004        5.6022        .59851E-03   -1.5674    
  20  norm          1.0183        7.5961        .12141E-02   -1.5688    
  21  norm          42.817        4.8450        .15291E-03   -1.5577    
  22  Normalizat    1.1643        .20221        .80094E-01   -.87713    
  23  Prefactor     1.0175        .10226        .42408E-01   -.92147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38974e-06
Minuit parameter uncertainties:
  1  0.191882
  2  0.000198442
  3  5.1121
  4  0.00026361
  5  1.41233
  6  11.075
  7  8.68732e-05
  8  0.000492319
  9  7.04563
  10  17.0889
  11  1.57179
  12  0.00134554
  13  7.02713
  14  0.000653154
  15  0.00103926
  16  37.6191
  17  0.000532286
  18  2.16055e-05
  19  5.60225
  20  5.56251
  21  4.84495
  22  0.20235
  23  0.102283
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.422e+01  1.709e+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:  1.018e+00  1.023e-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.164e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 8.03e-08 +/- 5.66e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/964616/likelihoodResults_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.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) = 11170.7866712
delta logL = 0.496088800344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11170.7667937
delta logL = 0.51596627939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9255       1.0000          .0000       .10000E+07
     2 'Index     '    3.3419       1.0000          .0000       10.000    
     3 'Normalizat'    1.1193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0358       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=   11170.77     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      301 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9025        113.43        .71185E-04   -.34005E-02
   2  Index         3.3433        3.3917        .45442E-02   -.58426E-04
   3  Normalizat    1.1193        .21300        .36059E-03   -.54606E-04
   4  Prefactor     1.0358        .11701        .20117E-03   -.23735E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.90251
  Index      = 3.34329
  Normalizat = 1.11931
  Prefactor  = 1.03579
 **********
 **   18 **HESSE 
 **********

 FCN=   11170.77     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9025        14.485        .28474E-05   -1.5652    
   2  Index         3.3433        .90984        .18177E-03   -.33773    
   3  Normalizat    1.1193        .22574        .14424E-04   -.89134    
   4  Prefactor     1.0358        .11949        .80469E-05   -.91546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71014e-11
Minuit parameter uncertainties:
  1  14.4847
  2  0.915578
  3  0.225932
  4  0.119518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964616': 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) = 11170.7667922
delta logL = 0.515967793039

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  7.903e+00  1.448e+01  0.000e+00  1.000e+06 ( 1.000e-13)
288        Index:  3.343e+00  9.156e-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:  1.036e+00  1.195e-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.119e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.34 +/- 0.92
Photon Flux (Free Index): 1.08e-07 +/- 6.08e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.13e-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/964616/cmap_HighResolution_700185601_700444801_4FGL_J1331.2-1325_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='8.03e-08', energy_flux2='1.88e-05', photon_flux_error='5.66e-08', dlogl='5.16e-01', energy_flux='2.11e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2023-03-14 01:19:54.567229', photon_index_error2='0.92', photon_index2='3.34', ts='3.21', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.13e-05', EG='1.16', time_epoch_completed='1678781994.57', return_code='0', job_id='964616', GAL2='1.04', EG2='1.12', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.08e-08', ts2='4.38', photon_index='2.60' WHERE bin_id='1778' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:19:54 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 964616: <4FGL_J1331.2-1325_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1778> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 14 01:05:19 2023
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 01:05:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 01:05:20 2023
Terminated at Tue Mar 14 01:19:55 2023
Results reported at Tue Mar 14 01:19:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1778 202.819 -13.4282 700185601 700444801 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            876 sec.

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

