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 12 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1324.9+4748_daily_bin1758
RA = 201.24, Dec = 47.8086
tmin = 695001601, tmax = 695260801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='366438', job_status='RUN', time_executed='2023-01-13 00:47:43.217682', time_epoch_executed='1673599663.22' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/366438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/366438/ft1_4FGL_J1324.9+4748_daily_bin1758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/366438/ft1_4FGL_J1324.9+4748_daily_bin1758.fits outfile=/scratch/kocevski/366438/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin1758.fits ra=201.24 dec=47.8086 rad=12.0 tmin=695001601.0 tmax=695260801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.78
user 2.55
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/366438/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 786

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/366438/ltcube_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits
.....................!
real 17.67
user 17.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/366438/ltcube_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits outfile=/scratch/kocevski/366438/expmap_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/366438/ltcube_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits
.....................!
real 193.25
user 187.48
sys 4.88

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 211 point sources and 0 extended sources

Setting source of interest to:
4FGL J1324.9+4748 @ 201.24 47.8086

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits scfile=/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits outfile=/scratch/kocevski/366438/cmap_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=201.24 yref=47.8086 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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits scfile=/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits outfile=/scratch/kocevski/366438/cmap_HighResolution_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=201.24 yref=47.8086 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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/366438/Model_4FGL_J1324.9+4748_daily_bin1758.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits.....................!
real 65.46
user 63.91
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits', '/scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits', expMap='/scratch/kocevski/366438/expmap_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits', expCube='/scratch/kocevski/366438/ltcube_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/366438/Model_4FGL_J1324.9+4748_daily_bin1758.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1324.9+4748'

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  9.462e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/366438/ft1_filtered_4FGL_J1324.9+4748_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/366438/ft2_4FGL_J1324.9+4748_daily_bin1758.fits
Exposure map: /scratch/kocevski/366438/expmap_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits
Exposure cube: /scratch/kocevski/366438/ltcube_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/366438/Model_4FGL_J1324.9+4748_daily_bin1758.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) = 8595.75235923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5570       1.0000          .0000       .10000E+07
     2 'Prefactor '    .80032E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35527E-08   1.0000          .0000       .10000E+07
     4 'norm      '    2.8008       1.0000          .0000       .10000E+07
     5 'Prefactor '    24.579       1.0000          .0000       .10000E+07
     6 'norm      '    5.3094       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10161E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .50886E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .83553E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.0978       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.754       1.0000          .0000       .10000E+07
    12 'Prefactor '    15.179       1.0000          .0000       .10000E+07
    13 'norm      '    .12768E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    .26525E-01   1.0000          .0000       .10000E+07
    15 'norm      '    1.1568       1.0000          .0000       .10000E+07
    16 'norm      '    .60030E-04   1.0000          .0000       .10000E+07
    17 'norm      '    .48832E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.1673       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.5698       1.0000          .0000       .10000E+07
    20 'Prefactor '    .35442E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .49072E-07   1.0000          .0000       .10000E+07
    22 'Prefactor '    1.5085       1.0000          .0000       .10000E+07
    23 'Prefactor '    45.017       1.0000          .0000       .10000E+07
    24 'Prefactor '    .42376E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    .96375       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0890       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8595.709     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1742 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5447        5.0297       -.67572E-06   -.69278E-03
   2  Prefactor     .24790E-05    8.6331        .27991E-06** at limit **
   3  Prefactor     .27756E-08    3.3841        .21884E-06** at limit **
   4  norm          2.8009        1.9493        .12965E-06   -.43096E-03
   5  Prefactor     24.662        1.1139        .45954E-08   -.17294E-02
   6  norm          5.3094        2.0232        .95703E-07    .69695E-03
   7  Prefactor     .12768E-08    5.9142       -.17053E-06** at limit **
   8  Prefactor     .77716E-09    4.1992        .21516E-06** at limit **
   9  norm          .55511E-09    2.8948       -.92660E-07** at limit **
  10  norm          3.0977        2.4361        .17070E-06    .82981E-03
  11  Prefactor     14.532        4.4705       -.10558E-06   -.13689E-01
  12  Prefactor     15.573        14.453        .32263E-06   -.15235E-01
  13  norm           .0000        .68415        .57343E-07** at limit **
  14  Prefactor     .57126E-05    3.6127       -.23962E-06** at limit **
  15  norm          1.1556        .92561        .80857E-07    .33122E-03
  16  norm           .0000        2.4397       -.49524E-06** at limit **
  17  norm          .38303E-08    3.0400       -.43354E-06** at limit **
  18  Prefactor     1.2356        1.3520        .58820E-07    .19231E-02
  19  Prefactor     4.6309        11.360        .50480E-06   -.23667E-01
  20  Prefactor      .0000        1.7697        .46574E-06** at limit **
  21  Prefactor     .76772E-07    11.839       -.54305E-06** at limit **
  22  Prefactor     1.5126        1.4608        .24641E-06    .56055E-03
  23  Prefactor     44.662        15.257       -.20528E-06    .46175E-01
  24  Prefactor     .19806E-05    11.756        .82807E-07** at limit **
  25  Normalizat    .96373        .15924       -.48026E-05   -.81492E-05
  26  Prefactor     1.0889        .20081        .93031E-05    .14838E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54469
  Prefactor  = 2.47902e-06
  Prefactor  = 2.77556e-09
  norm       = 2.80094
  Prefactor  = 24.6617
  norm       = 5.3094
  Prefactor  = 1.27676e-09
  Prefactor  = 7.77156e-10
  norm       = 5.55112e-10
  norm       = 3.09766
  Prefactor  = 14.5315
  Prefactor  = 15.5727
  norm       = 0
  Prefactor  = 5.7126e-06
  norm       = 1.15556
  norm       = 0
  norm       = 3.83027e-09
  Prefactor  = 1.23557
  Prefactor  = 4.63093
  Prefactor  = 0
  Prefactor  = 7.67719e-08
  Prefactor  = 1.51259
  Prefactor  = 44.6615
  Prefactor  = 1.98058e-06
  Normalizat = 0.963728
  Prefactor  = 1.08893
 **********
 **   18 **HESSE 
 **********

 FCN=   8595.709     FROM HESSE     STATUS=OK           512 CALLS     2254 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5447        5.0518        .85274E-03   -1.5683    
   2  Prefactor     .24790E-05    15.536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27756E-08    3.3818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8009        1.9484        .60763E-03   -1.5674    
   5  Prefactor     24.662        18.103        .20175E-03   -1.5609    
   6  norm          5.3094        2.0269        .43594E-03   -1.5662    
   7  Prefactor     .12768E-08    5.9059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .77716E-09    4.2018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-09    2.8983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0977        2.4516        .57593E-03   -1.5673    
  11  Prefactor     14.532        15.830        .26049E-03   -1.5632    
  12  Prefactor     15.573        26.257        .25681E-03   -1.5629    
  13  norm           .0000        .68552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57126E-05    24.080        .16640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1556        .95656        .10727E-02   -1.5686    
  16  norm           .0000        2.4336        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .38303E-08    3.0494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2356        65.184        .10632E-02   -1.5686    
  19  Prefactor     4.6309        43.633        .47065E-03   -1.5665    
  20  Prefactor      .0000        1.7704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .76772E-07    12.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5126        1.4939        .87074E-03   -1.5683    
  23  Prefactor     44.662        26.995        .14906E-03   -1.5574    
  24  Prefactor     .19806E-05    17.151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96373        .13620        .45711E-01   -.94256    
  26  Prefactor     1.0889        .16637        .60608E-01   -.89821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82215e-06
Minuit parameter uncertainties:
  1  5.05183
  2  0.0124118
  3  0.000193435
  4  1.94836
  5  18.1033
  6  2.02692
  7  0.000175491
  8  0.000112988
  9  8.11211e-05
  10  2.4516
  11  15.83
  12  26.2575
  13  3.62734e-07
  14  0.0234572
  15  0.956555
  16  2.19567e-06
  17  0.0002162
  18  17.9489
  19  28.43
  20  4.32665e-06
  21  0.00193714
  22  1.49393
  23  26.9951
  24  0.0116566
  25  0.13625
  26  0.166447
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  1.453e+01  1.583e+01  0.000e+00  1.000e+06 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.089e+00  1.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.637e-01  1.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 201.240 47.809
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.55e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 3.80e-06 +/- 4.14e-06

TS (Fixed Index): 2.61
Ra Dec: 201.240 47.809
Photon Flux Upper Limit: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/366438/likelihoodResults_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8593.4313323
delta logL = 2.27771544077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8593.25066435
delta logL = 2.45838338775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7159       1.0000          .0000       .10000E+07
     2 'Index     '    1.0382       1.0000          .0000       10.000    
     3 'Normalizat'    .97707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0807       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8593.251     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      222 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7159        6.0289        .41989E-03    .10119E-01
   2  Index         1.0382        .34798        .24549       -.96458E-04
   3  Normalizat    .97707        .13034        .45879E-01    .87670E-04
   4  Prefactor     1.0807        .16553        .60803E-01    .12758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.71591
  Index      = 1.03824
  Normalizat = 0.977066
  Prefactor  = 1.08066
 **********
 **   18 **HESSE 
 **********

 FCN=   8593.251     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7159        9.3861        .16796E-04   -1.5660    
   2  Index         1.0382        .59343        .98849E-02   -.91465    
   3  Normalizat    .97707        .15789        .22250E-03   -.93803    
   4  Prefactor     1.0807        .20042        .26891E-03   -.90087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79935e-09
Minuit parameter uncertainties:
  1  9.38608
  2  0.597239
  3  0.157962
  4  0.200561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/366438': 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) = 8593.25066435
delta logL = 2.45838338863

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  5.716e+00  9.386e+00  0.000e+00  1.000e+06 ( 1.000e-13)
348        Index:  1.038e+00  5.972e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.081e+00  2.006e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  9.771e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.53
Ra Dec: 201.240 47.809
Photon Index (Free Index): 1.04 +/- 0.60
Photon Flux (Free Index): 2.59e-09 +/- 2.90e-09
Energy Flux (Free Index): 3.41e-05 +/- 4.98e-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/366438/cmap_HighResolution_695001601_695260801_4FGL_J1324.9+4748_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', comment='SUCCESS', photon_flux='1.55e-08', energy_flux2='3.41e-05', photon_flux_error='1.68e-08', dlogl='2.46e+00', energy_flux='3.80e-06', photon_flux2='2.59e-09', job_status='DONE', time_completed='2023-01-13 01:00:57.793418', photon_index_error2='0.60', photon_index2='1.04', ts='2.61', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='6.16e-08', energy_flux_error2='4.98e-05', EG='0.96', time_epoch_completed='1673600457.79', return_code='0', job_id='366438', GAL2='1.08', EG2='0.98', return_code2='0', energy_flux_error='4.14e-06', photon_flux_error2='2.90e-09', ts2='7.53', photon_index='2.67' WHERE bin_id='1758' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 01:00:57 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 366438: <4FGL_J1324.9+4748_daily_bin1758> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin1758> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Jan 13 00:45:23 2023
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:47:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 13 00:47:22 2023
Terminated at Fri Jan 13 01:00:58 2023
Results reported at Fri Jan 13 01:00:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin1758 201.24 47.8086 695001601 695260801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1324.9+4748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            935 sec.

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

