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


Performing analysis on: 4FGL_J0024.7+0349_daily_bin1669
RA = 6.1975, Dec = 3.8321
tmin = 671932801, tmax = 672192001
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='680700', job_status='RUN', time_executed='2022-04-21 00:05:56.960078', time_epoch_executed='1650524756.96' WHERE source_name='4FGL J0024.7+0349' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680700/ft1_4FGL_J0024.7+0349_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680700/ft1_4FGL_J0024.7+0349_daily_bin1669.fits outfile=/scratch/kocevski/680700/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1669.fits ra=6.1975 dec=3.8321 rad=12.0 tmin=671932801.0 tmax=672192001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.58
user 3.63
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.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/680700/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1669.fits evtable="EVENTS" outfile="/scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.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 1.81
user 0.35
sys 0.19

Number of photons that the gtmktime cut: 842

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/680700/ltcube_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.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/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits
.....................!
real 18.21
user 16.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/680700/ltcube_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.fits outfile=/scratch/kocevski/680700/expmap_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.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/680700/ltcube_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.fits
.....................!
real 193.74
user 186.21
sys 5.73

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

Setting source of interest to:
4FGL J0024.7+0349 @ 6.1975 3.8321

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits scfile=/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits outfile=/scratch/kocevski/680700/cmap_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.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=6.1975 yref=3.8321 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 3.47
user 0.40
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits scfile=/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits outfile=/scratch/kocevski/680700/cmap_HighResolution_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.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=6.1975 yref=3.8321 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 1.24
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/680700/Model_4FGL_J0024.7+0349_daily_bin1669.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/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits.....................!
real 114.06
user 97.15
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits', '/scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits', expMap='/scratch/kocevski/680700/expmap_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.fits', expCube='/scratch/kocevski/680700/ltcube_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/680700/Model_4FGL_J0024.7+0349_daily_bin1669.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0024.7+0349'

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.144e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/680700/ft1_filtered_4FGL_J0024.7+0349_daily_bin1669.fits
Spacecraft file(s): /scratch/kocevski/680700/ft2_4FGL_J0024.7+0349_daily_bin1669.fits
Exposure map: /scratch/kocevski/680700/expmap_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.fits
Exposure cube: /scratch/kocevski/680700/ltcube_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/680700/Model_4FGL_J0024.7+0349_daily_bin1669.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) = 8828.58908648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.637       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4095       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1491       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17229E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    6.3478       1.0000         .10000E-03   10000.    
     7 'norm      '    .81649E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.960       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4764       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.706       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3132       1.0000         .10000E-03   10000.    
    15 'norm      '    19.334       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    104.01       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5558       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76596       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0029       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8828.460     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2410 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.635        28.802        .64738E-06    .16129E-04
   2  Prefactor     8.0896        17.093        .62174E-06    .62784E-04
   3  Prefactor     3.4100        4.8475       -.70840E-06    .11061E-03
   4  norm          3.1481        2.9848       -.35784E-06    .22628E-03
   5  Prefactor     .10003E-03    29.976        .13136E-04** at limit **
   6  norm          6.3488        3.7832        .25821E-06    .31211E-03
   7  norm          .75119E-01    11.240       -.74964E-05    .51453E-03
   8  Prefactor     10.963        13.082        .64362E-06    .24456E-03
   9  norm          2.4757        8.4133       -.28544E-05    .52781E-04
  10  norm          .10000E-03    4.3616        .19818E-07** at limit **
  11  Prefactor     18.702        17.698        .31908E-06    .43388E-04
  12  Prefactor     .10000E-03    2.5907        .26520E-07** at limit **
  13  Prefactor     .10000E-03    2.1986       -.53317E-06** at limit **
  14  Prefactor     5.3126        4.1273       -.26275E-06    .11208E-03
  15  norm          19.334        15.454       -.26927E-08    .65733E-05
  16  Prefactor     .10000E-03    42.824        .45460E-06** at limit **
  17  norm          104.01        6.5851       -.18655E-06    .19236E-03
  18  Prefactor     9.5404        30.538        .84065E-05    .23419E-04
  19  Prefactor     .10000E-03    6.1835       -.13607E-07** at limit **
  20  Prefactor     .10000E-03    22.046        .16572E-05** at limit **
  21  Normalizat    .76624        .20381        .19155E-05    .26657E-03
  22  Prefactor     1.0028        .13921        .40343E-06    .48994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6351
  Prefactor  = 8.08958
  Prefactor  = 3.41004
  norm       = 3.14813
  Prefactor  = 0.000100026
  norm       = 6.34881
  norm       = 0.0751185
  Prefactor  = 10.9629
  norm       = 2.47565
  norm       = 0.0001
  Prefactor  = 18.7018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.31257
  norm       = 19.3337
  Prefactor  = 0.0001
  norm       = 104.007
  Prefactor  = 9.54043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.766236
  Prefactor  = 1.0028
 **********
 **   18 **HESSE 
 **********

 FCN=   8828.460     FROM HESSE     STATUS=OK           358 CALLS     2768 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.635        28.794        .82391E-04   -1.4735    
   2  Prefactor     8.0896        16.996        .14094E-03   -1.5139    
   3  Prefactor     3.4100        4.8435        .21909E-03   -1.5339    
   4  norm          3.1481        2.9585        .13651E-03   -1.5353    
   5  Prefactor     .10003E-03    32.687        .38079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.3488        3.7417        .12326E-03   -1.5204    
   7  norm          .75119E-01    4.1694        .51484E-01   -1.5653    
   8  Prefactor     10.963        13.127        .12102E-03   -1.5046    
   9  norm          2.4757        8.4676        .25981E-03   -1.5393    
  10  norm          .10000E-03    4.3642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.702        17.731        .92604E-04   -1.4843    
  12  Prefactor     .10000E-03    2.5972        .14760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2690        .27198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3126        4.1320        .16204E-03   -1.5247    
  15  norm          19.334        15.460        .91089E-04   -1.4828    
  16  Prefactor     .10000E-03    42.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          104.01        6.5859        .39428E-04   -1.3665    
  18  Prefactor     9.5404        30.957        .12964E-03   -1.5090    
  19  Prefactor     .10000E-03    6.1894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76624        .23347        .38683E-03   -1.0133    
  22  Prefactor     1.0028        .16046        .24766E-03   -.92636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32264e-09
Minuit parameter uncertainties:
  1  28.8106
  2  17.0061
  3  4.84403
  4  2.95862
  5  0.00183023
  6  3.74187
  7  1.11863
  8  13.1306
  9  8.47165
  10  5.9024e-06
  11  17.7357
  12  1.07655e-05
  13  4.16057e-06
  14  4.1322
  15  15.4631
  16  2.60848e-05
  17  6.58599
  18  31.0087
  19  2.40531e-05
  20  0.000199481
  21  0.23377
  22  0.160534
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.096e+01  1.313e+01  1.000e-04  1.000e+04 ( 1.000e-13)
119        Index:  2.391e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.003e+00  1.605e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  7.662e-01  2.338e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 6.197 3.832
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 3.85e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.53e-05

TS (Fixed Index): 1.05
Ra Dec: 6.197 3.832
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680700/likelihoodResults_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.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) = 8828.45338608
delta logL = 0.00648274881314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8828.45041435
delta logL = 0.00945448107086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9495       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4938       1.0000          .0000       10.000    
     3 'Normalizat'    .76163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   8828.450     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      251 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9439        15.261        .12704E-03   -.34186E-04
   2  Index         2.4943        .81789        .94517E-02    .50148E-03
   3  Normalizat    .76168        .22301        .38790E-03   -.90738E-04
   4  Prefactor     1.0048        .15931        .24745E-03    .99294E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.94387
  Index      = 2.49433
  Normalizat = 0.761676
  Prefactor  = 1.00477
 **********
 **   18 **HESSE 
 **********

 FCN=   8828.450     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9439        14.262        .50814E-05   -1.5077    
   2  Index         2.4943        .76364        .18903E-02   -.52491    
   3  Normalizat    .76168        .22302        .15516E-04   -1.0151    
   4  Prefactor     1.0048        .15933        .49489E-04   -.92571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50818e-10
Minuit parameter uncertainties:
  1  14.2673
  2  0.767658
  3  0.223287
  4  0.159401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680700': 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) = 8828.45041398
delta logL = 0.0094548468096

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  9.944e+00  1.427e+01  1.000e-04  1.000e+04 ( 1.000e-13)
119        Index:  2.494e+00  7.677e-01  0.000e+00  1.000e+01 (-1.000e+00)
120        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.005e+00  1.594e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  7.617e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.05
Ra Dec: 6.197 3.832
Photon Index (Free Index): 2.49 +/- 0.77
Photon Flux (Free Index): 4.25e-08 +/- 5.53e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.46e-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/680700/cmap_HighResolution_671932801_672192001_4FGL_J0024.7+0349_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='3.85e-08', energy_flux2='1.24e-05', photon_flux_error='4.61e-08', dlogl='9.45e-03', energy_flux='1.28e-05', photon_flux2='4.25e-08', job_status='DONE', time_completed='2022-04-21 00:20:44.965901', photon_index_error2='0.77', photon_index2='2.49', ts='1.05', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.46e-05', EG='0.77', time_epoch_completed='1650525644.97', return_code='0', job_id='680700', GAL2='1.00', EG2='0.76', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='5.53e-08', ts2='1.05', photon_index='2.39' WHERE bin_id='1669' AND source_name='4FGL J0024.7+0349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:20:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 680700: <4FGL_J0024.7+0349_daily_bin1669> in cluster <slac> Done

Job <4FGL_J0024.7+0349_daily_bin1669> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Apr 21 00:05:15 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:05:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:05:17 2022
Terminated at Thu Apr 21 00:20:45 2022
Results reported at Thu Apr 21 00:20:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0024.7+0349_daily_bin1669 6.1975 3.8321 671932801 672192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0024.7+0349 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   819.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

