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 188 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin1666
RA = 327.424, Dec = 3.3959
tmin = 671155201, tmax = 671414401
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='414436', job_status='RUN', time_executed='2022-04-12 00:38:51.220117', time_epoch_executed='1649749131.22' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414436/ft1_4FGL_J2149.6+0323_daily_bin1666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414436/ft1_4FGL_J2149.6+0323_daily_bin1666.fits outfile=/scratch/kocevski/414436/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1666.fits ra=327.424 dec=3.3959 rad=12.0 tmin=671155201.0 tmax=671414401.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 5.52
user 4.97
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.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/414436/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1666.fits evtable="EVENTS" outfile="/scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 764

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits" evtable="EVENTS" scfile=/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits sctable="SC_DATA" outfile=/scratch/kocevski/414436/ltcube_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.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/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits
.....................!
real 12.10
user 11.67
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits sctable="SC_DATA" expcube=/scratch/kocevski/414436/ltcube_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.fits outfile=/scratch/kocevski/414436/expmap_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.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/414436/ltcube_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.fits
.....................!
real 192.35
user 185.73
sys 6.22

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 J2149.6+0323 @ 327.424 3.3959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits scfile=/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits outfile=/scratch/kocevski/414436/cmap_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.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=327.424 yref=3.3959 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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits scfile=/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits outfile=/scratch/kocevski/414436/cmap_HighResolution_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.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=327.424 yref=3.3959 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits evtable="EVENTS" scfile=/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414436/Model_4FGL_J2149.6+0323_daily_bin1666.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/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits.....................!
real 79.35
user 77.43
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits', '/scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits', expMap='/scratch/kocevski/414436/expmap_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.fits', expCube='/scratch/kocevski/414436/ltcube_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/414436/Model_4FGL_J2149.6+0323_daily_bin1666.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.6+0323'

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.704e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/414436/ft1_filtered_4FGL_J2149.6+0323_daily_bin1666.fits
Spacecraft file(s): /scratch/kocevski/414436/ft2_4FGL_J2149.6+0323_daily_bin1666.fits
Exposure map: /scratch/kocevski/414436/expmap_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.fits
Exposure cube: /scratch/kocevski/414436/ltcube_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/414436/Model_4FGL_J2149.6+0323_daily_bin1666.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) = 8495.88269578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4046       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31165E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35125       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.571       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20216E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.6153       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.249       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9928       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.551       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .70060       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93760       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8495.798     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2423 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3991        38.301        .11764E-05    .68157E-05
   2  Prefactor     .10000E-03    11.326       -.54768E-06** at limit **
   3  Prefactor     29.537        21.981       -.62720E-06   -.14266E-03
   4  Prefactor     .10000E-03    20.949        .39859E-06** at limit **
   5  Prefactor     2.9334        41.909        .47561E-06   -.32397E-04
   6  Prefactor     .10000E-03    45.794       -.61774E-06** at limit **
   7  Prefactor     14.349        6.7200        .11683E-06    .34570E-03
   8  Prefactor     .10065E-03    6.1872       -.14856E-05** at limit **
   9  Prefactor     .35175        1.5553        .82483E-06   -.26057E-03
  10  Prefactor     31.551        29.540        .25575E-06   -.58213E-04
  11  Prefactor     13.562        24.822        .88290E-07   -.23275E-04
  12  Prefactor     .10002E-03    427.02       -.10408E-04** at limit **
  13  Prefactor     .10000E-03    17.575        .31757E-07** at limit **
  14  norm          .10000E-03    .96792        .35719E-06** at limit **
  15  norm          10.542        19.045        .79246E-06   -.51043E-04
  16  Prefactor     6.6176        6.2111       -.27370E-07   -.15985E-03
  17  Prefactor     .10000E-03    4.7475        .10692E-06** at limit **
  18  Prefactor     .10000E-03    9.6580        .23845E-07** at limit **
  19  Prefactor     57.252        21.439        .35959E-07   -.10491E-03
  20  Prefactor     9.9951        14.851        .62677E-06    .81561E-05
  21  Prefactor     .10000E-03    6.0780        .34681E-08** at limit **
  22  Prefactor     20.554        10.340        .31346E-06   -.14973E-04
  23  Normalizat    .70030        .21833       -.45139E-05   -.32633E-03
  24  Prefactor     .93768        .10258        .57967E-06   -.81809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.39908
  Prefactor  = 0.0001
  Prefactor  = 29.537
  Prefactor  = 0.0001
  Prefactor  = 2.93336
  Prefactor  = 0.0001
  Prefactor  = 14.3488
  Prefactor  = 0.000100652
  Prefactor  = 0.351749
  Prefactor  = 31.5515
  Prefactor  = 13.5619
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.542
  Prefactor  = 6.61758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.2524
  Prefactor  = 9.99511
  Prefactor  = 0.0001
  Prefactor  = 20.5539
  Normalizat = 0.700296
  Prefactor  = 0.937684
 **********
 **   18 **HESSE 
 **********

 FCN=   8495.798     FROM HESSE     STATUS=OK           403 CALLS     2826 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3991        38.513        .14739E-03   -1.5164    
   2  Prefactor     .10000E-03    11.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.537        21.967        .73729E-04   -1.4620    
   4  Prefactor     .10000E-03    20.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9334        42.105        .23746E-03   -1.5365    
   6  Prefactor     .10000E-03    45.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.349        6.4765        .10573E-03   -1.4950    
   8  Prefactor     .10065E-03    56.350        .39751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .35175        2.7590        .19792E-02   -1.5589    
  10  Prefactor     31.551        29.712        .71304E-04   -1.4584    
  11  Prefactor     13.562        24.834        .10873E-03   -1.4971    
  12  Prefactor     .10002E-03    433.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.6609        .16831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.542        18.504        .12334E-03   -1.5058    
  16  Prefactor     6.6176        6.2113        .15602E-03   -1.5193    
  17  Prefactor     .10000E-03    4.7943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     57.252        21.412        .53020E-04   -1.4193    
  20  Prefactor     9.9951        14.832        .12676E-03   -1.5076    
  21  Prefactor     .10000E-03    6.0816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.554        10.345        .88352E-04   -1.4801    
  23  Normalizat    .70030        .24029        .37333E-03   -1.0388    
  24  Prefactor     .93768        .11896        .17091E-03   -.94836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27848e-08
Minuit parameter uncertainties:
  1  33.7956
  2  8.48893e-06
  3  21.9731
  4  6.14906e-05
  5  22.2454
  6  0.000108674
  7  6.47677
  8  0.0121297
  9  1.9701
  10  29.7261
  11  24.8532
  12  0.00541435
  13  9.47018e-06
  14  6.85746e-06
  15  18.5142
  16  6.21194
  17  1.19854e-05
  18  1.71569e-05
  19  21.4151
  20  14.8372
  21  5.68868e-06
  22  10.3457
  23  0.240656
  24  0.118992
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  6.618e+00  6.212e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.377e-01  1.190e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.003e-01  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 327.424 3.396
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.33e-05

TS (Fixed Index): 1.93
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 9.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414436/likelihoodResults_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.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) = 8495.057463
delta logL = 0.74013391024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8495.03516418
delta logL = 0.762432729642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2433       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3476       1.0000          .0000       10.000    
     3 'Normalizat'    .72036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8495.035     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2473        13.832        .34909E-02   -.10493E-04
   2  Index         1.3479        .74579        .29739       -.61743E-04
   3  Normalizat    .72024        .19198        .83180E-01    .45545E-04
   4  Prefactor     .93298        .10017        .45423E-01    .33533E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.24725
  Index      = 1.34791
  Normalizat = 0.720239
  Prefactor  = 0.932981
 **********
 **   18 **HESSE 
 **********

 FCN=   8495.035     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2473        8.8760        .13963E-03   -1.5134    
   2  Index         1.3479        .57543        .10871E-01   -.81893    
   3  Normalizat    .72024        .22263        .36835E-03   -1.0310    
   4  Prefactor     .93298        .11772        .17128E-03   -.94998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77971e-09
Minuit parameter uncertainties:
  1  8.8774
  2  0.57819
  3  0.222913
  4  0.117754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414436': 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) = 8495.03516381
delta logL = 0.762433104626

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  8.247e+00  8.877e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.348e+00  5.782e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.330e-01  1.178e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.202e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 327.424 3.396
Photon Index (Free Index): 1.35 +/- 0.58
Photon Flux (Free Index): 1.06e-08 +/- 1.41e-08
Energy Flux (Free Index): 5.56e-05 +/- 7.35e-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/414436/cmap_HighResolution_671155201_671414401_4FGL_J2149.6+0323_daily_bin1666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='5.56e-05', photon_flux_error='2.73e-08', dlogl='7.62e-01', energy_flux='1.42e-05', photon_flux2='1.06e-08', job_status='DONE', time_completed='2022-04-12 00:51:58.042667', photon_index_error2='0.58', photon_index2='1.35', ts='1.93', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.40e-08', energy_flux_error2='7.35e-05', EG='0.70', time_epoch_completed='1649749918.04', return_code='0', job_id='414436', GAL2='0.93', EG2='0.72', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='1.41e-08', ts2='3.45', photon_index='2.16' WHERE bin_id='1666' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Apr 12 00:51:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 414436: <4FGL_J2149.6+0323_daily_bin1666> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin1666> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 12 00:35:33 2022
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 12 00:35:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 12 00:35:35 2022
Terminated at Tue Apr 12 00:51:58 2022
Results reported at Tue Apr 12 00:51:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1666 327.424 3.3959 671155201 671414401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.6+0323 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

