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


Performing analysis on: 4FGL_J1324.9+4748_daily_bin1747
RA = 201.24, Dec = 47.8086
tmin = 692150401, tmax = 692409601
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='802228', job_status='RUN', time_executed='2022-12-11 00:56:25.094340', time_epoch_executed='1670748985.09' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802228

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802228/ft1_4FGL_J1324.9+4748_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802228/ft1_4FGL_J1324.9+4748_daily_bin1747.fits outfile=/scratch/kocevski/802228/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin1747.fits ra=201.24 dec=47.8086 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.73
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.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/802228/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.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.35
sys 0.14

Number of photons that the gtmktime cut: 635

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/802228/ltcube_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.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/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits
.....................!
real 12.29
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/802228/ltcube_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.fits outfile=/scratch/kocevski/802228/expmap_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.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/802228/ltcube_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.fits
.....................!
real 190.63
user 185.72
sys 4.56

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/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits scfile=/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits outfile=/scratch/kocevski/802228/cmap_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits scfile=/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits outfile=/scratch/kocevski/802228/cmap_HighResolution_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802228/Model_4FGL_J1324.9+4748_daily_bin1747.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/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits.....................!
real 56.85
user 55.42
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits', '/scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits', expMap='/scratch/kocevski/802228/expmap_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.fits', expCube='/scratch/kocevski/802228/ltcube_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/802228/Model_4FGL_J1324.9+4748_daily_bin1747.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/802228/ft1_filtered_4FGL_J1324.9+4748_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/802228/ft2_4FGL_J1324.9+4748_daily_bin1747.fits
Exposure map: /scratch/kocevski/802228/expmap_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.fits
Exposure cube: /scratch/kocevski/802228/ltcube_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/802228/Model_4FGL_J1324.9+4748_daily_bin1747.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) = 6948.99609677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4084       1.0000          .0000       .10000E+07
     2 'Prefactor '    .32221E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17862E-03   1.0000          .0000       .10000E+07
     4 'norm      '    5.8517       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.9031       1.0000          .0000       .10000E+07
     6 'norm      '    1.0642       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.9653       1.0000          .0000       .10000E+07
     8 'Prefactor '    .41425E-02   1.0000          .0000       .10000E+07
     9 'norm      '    6.5430       1.0000          .0000       .10000E+07
    10 'norm      '    6.8379       1.0000          .0000       .10000E+07
    11 'Prefactor '    22.343       1.0000          .0000       .10000E+07
    12 'Prefactor '    47.987       1.0000          .0000       .10000E+07
    13 'norm      '    .68072E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1834       1.0000          .0000       .10000E+07
    15 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    16 'norm      '    2.1853       1.0000          .0000       .10000E+07
    17 'norm      '    .15689E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .40978E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    25.489       1.0000          .0000       .10000E+07
    20 'Prefactor '    .50759       1.0000          .0000       .10000E+07
    21 'Prefactor '    .11015E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .23967E-05   1.0000          .0000       .10000E+07
    23 'Prefactor '    17.268       1.0000          .0000       .10000E+07
    24 'Prefactor '    62.762       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0971       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=   6948.914     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     2261 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4676        8.0968       -.20316E-06   -.63488E-03
   2  Prefactor     .75495E-08    9.0693       -.10496E-05** at limit **
   3  Prefactor      .0000        1.9472       -.76165E-07** at limit **
   4  norm          5.8548        2.7209        .81692E-07   -.24279E-04
   5  Prefactor     2.8837        14.789        .21271E-06    .13844E-02
   6  norm          1.0672        1.5144       -.10343E-06    .86219E-04
   7  Prefactor     1.9836        5.7867       -.78662E-07   -.59814E-04
   8  Prefactor     .87985E-07    6.6657       -.76438E-06** at limit **
   9  norm          6.5637        9.0283       -.46939E-06   -.16190E-02
  10  norm          6.7878        4.2933       -.87942E-07    .37521E-02
  11  Prefactor     25.417        33.389       -.11208E-06   -.17138    
  12  Prefactor     47.163        38.897        .16515E-07   -.17584    
  13  norm           .0000        1.6995        .18213E-06** at limit **
  14  Prefactor     10.807        29.064       -.50320E-06    .34657E-01
  15  norm           .0000        .52092        .13032E-06** at limit **
  16  norm          2.1718        3.0631       -.35439E-07   -.54531E-03
  17  norm           .0000        3.4176       -.68623E-07** at limit **
  18  Prefactor     .79436E-06    32.299       -.10065E-05** at limit **
  19  Prefactor     27.914        26.343       -.25891E-06    .57223E-01
  20  Prefactor     .43378        9.3402        .74044E-06   -.15307E-02
  21  Prefactor     .37248E-07    14.016        .84842E-06** at limit **
  22  Prefactor      .0000        2.9607        .33528E-07** at limit **
  23  Prefactor     17.130        3.5350        .85497E-07    .12185    
  24  Prefactor     63.796        11.005       -.43809E-07    .22771E-01
  25  Normalizat    1.0063        .18261        .46060E-05    .22837E-04
  26  Prefactor     1.0979        .22605       -.32346E-05    .23542E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.46761
  Prefactor  = 7.54952e-09
  Prefactor  = 0
  norm       = 5.85485
  Prefactor  = 2.8837
  norm       = 1.06723
  Prefactor  = 1.98363
  Prefactor  = 8.79852e-08
  norm       = 6.56369
  norm       = 6.78775
  Prefactor  = 25.4168
  Prefactor  = 47.1627
  norm       = 0
  Prefactor  = 10.8068
  norm       = 0
  norm       = 2.17183
  norm       = 0
  Prefactor  = 7.94365e-07
  Prefactor  = 27.9138
  Prefactor  = 0.433777
  Prefactor  = 3.7248e-08
  Prefactor  = 0
  Prefactor  = 17.1301
  Prefactor  = 63.7959
  Normalizat = 1.0063
  Prefactor  = 1.0979
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.914     FROM HESSE     STATUS=OK           516 CALLS     2777 TOTAL
                     EDM=   .48E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4676        8.1167        .43186E-03   -1.5661    
   2  Prefactor     .75495E-08    15.400        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.9486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8548        2.7254        .41492E-03   -1.5660    
   5  Prefactor     2.8837        14.959        .59610E-03   -1.5674    
   6  norm          1.0672        1.7160        .27618E-02   -1.5687    
   7  Prefactor     1.9836        5.8331        .73950E-03   -1.5680    
   8  Prefactor     .87985E-07    15.695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.5637        9.0343        .39210E-03   -1.5657    
  10  norm          6.7878        4.3964        .38345E-03   -1.5656    
  11  Prefactor     25.417        44.850        .21161E-03   -1.5607    
  12  Prefactor     47.163        41.207        .14437E-03   -1.5571    
  13  norm           .0000        1.6926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.807        44.231        .35023E-03   -1.5642    
  15  norm           .0000        .51776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1718        3.0991        .69603E-03   -1.5678    
  17  norm           .0000        3.4255        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .79436E-06    33.010        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.914        41.566        .19811E-03   -1.5602    
  20  Prefactor     .43378        10.063        .77949E-03   -1.5695    
  21  Prefactor     .37248E-07    14.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        2.8972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.130        22.173        .24075E-03   -1.5625    
  24  Prefactor     63.796        50.398        .12623E-03   -1.5548    
  25  Normalizat    1.0063        .15410        .45631E-01   -.92820    
  26  Prefactor     1.0979        .19029        .62520E-01   -.89534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76024e-06
Minuit parameter uncertainties:
  1  8.1167
  2  0.000682035
  3  7.51072e-06
  4  2.72536
  5  13.136
  6  1.71598
  7  5.83308
  8  0.00235063
  9  9.03436
  10  4.39636
  11  44.8503
  12  41.2077
  13  7.81316e-06
  14  43.7269
  15  9.21261e-07
  16  3.0991
  17  1.09444e-05
  18  0.0102417
  19  41.5661
  20  4.17847
  21  0.00145342
  22  1.21311e-05
  23  22.1727
  24  50.3979
  25  0.154172
  26  0.190406
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  2.542e+01  4.485e+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.098e+00  1.904e-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:  1.006e+00  1.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.51
Ra Dec: 201.240 47.809
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802228/likelihoodResults_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.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) = 6948.91072701
delta logL = 0.00302665050549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6948.90932638
delta logL = 0.00442727182508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.730       1.0000          .0000       .10000E+07
     2 'Index     '    2.5870       1.0000          .0000       10.000    
     3 'Normalizat'    1.0080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0960       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6948.909     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      263 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.728        48.485        .75974E-05    .15168E-02
   2  Index         2.5870        .94035        .10549E-01    .70341E-04
   3  Normalizat    1.0078        .17789        .22760E-03   -.24691E-03
   4  Prefactor     1.0963        .22302        .27669E-03   -.22348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.728
  Index      = 2.58702
  Normalizat = 1.00776
  Prefactor  = 1.09627
 **********
 **   18 **HESSE 
 **********

 FCN=   6948.909     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.728        46.302        .15195E-05   -1.5603    
   2  Index         2.5870        .89819        .42196E-03   -.50362    
   3  Normalizat    1.0078        .17806        .45521E-04   -.92771    
   4  Prefactor     1.0963        .22311        .55338E-04   -.89586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89807e-10
Minuit parameter uncertainties:
  1  46.3031
  2  0.904613
  3  0.178161
  4  0.223297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802228': 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) = 6948.90932544
delta logL = 0.00442821173328

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  2.773e+01  4.630e+01  0.000e+00  1.000e+06 ( 1.000e-13)
348        Index:  2.587e+00  9.046e-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.096e+00  2.233e-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:  1.008e+00  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 201.240 47.809

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/802228/cmap_HighResolution_692150401_692409601_4FGL_J1324.9+4748_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2022-12-11 01:08:49.588077', job_id='802228', GAL2='1.10', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1670749729.59', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.43e-03', ts2='0.53', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1747' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:08:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 802228: <4FGL_J1324.9+4748_daily_bin1747> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin1747> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Dec 11 00:55:20 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 00:55:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 00:55:22 2022
Terminated at Sun Dec 11 01:08:50 2022
Results reported at Sun Dec 11 01:08:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin1747 201.24 47.8086 692150401 692409601 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 :                                   747.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

