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 68 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_J0024.7+0349_daily_bin1758
RA = 6.1975, Dec = 3.8321
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='354597', job_status='RUN', time_executed='2023-01-13 00:06:50.516344', time_epoch_executed='1673597210.52' WHERE source_name='4FGL J0024.7+0349' and cadence='daily' and bin_id='1758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354597

Creating custom pfile directory:
/scratch/kocevski/354597/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/354597/ft1_4FGL_J0024.7+0349_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/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354597/ft1_4FGL_J0024.7+0349_daily_bin1758.fits outfile=/scratch/kocevski/354597/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1758.fits ra=6.1975 dec=3.8321 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.39
user 2.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_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/354597/ft1_filteredMKT_4FGL_J0024.7+0349_daily_bin1758.fits evtable="EVENTS" outfile="/scratch/kocevski/354597/ft1_filtered_4FGL_J0024.7+0349_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.47
user 0.30
sys 0.15

Number of photons that the gtmktime cut: 934

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits" evtable="EVENTS" scfile=/scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits sctable="SC_DATA" outfile=/scratch/kocevski/354597/ltcube_695001601_695260801_4FGL_J0024.7+0349_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/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits
.....................!
real 15.30
user 14.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits sctable="SC_DATA" expcube=/scratch/kocevski/354597/ltcube_695001601_695260801_4FGL_J0024.7+0349_daily_bin1758.fits outfile=/scratch/kocevski/354597/expmap_695001601_695260801_4FGL_J0024.7+0349_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/354597/ltcube_695001601_695260801_4FGL_J0024.7+0349_daily_bin1758.fits
.....................!
real 157.59
user 152.27
sys 4.66

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/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits scfile=/scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits outfile=/scratch/kocevski/354597/cmap_695001601_695260801_4FGL_J0024.7+0349_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=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 0.56
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits scfile=/scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits outfile=/scratch/kocevski/354597/cmap_HighResolution_695001601_695260801_4FGL_J0024.7+0349_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=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 0.49
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits evtable="EVENTS" scfile=/scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/354597/Model_4FGL_J0024.7+0349_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/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits.....................!
real 81.77
user 78.69
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits', '/scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits', expMap='/scratch/kocevski/354597/expmap_695001601_695260801_4FGL_J0024.7+0349_daily_bin1758.fits', expCube='/scratch/kocevski/354597/ltcube_695001601_695260801_4FGL_J0024.7+0349_daily_bin1758.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/354597/Model_4FGL_J0024.7+0349_daily_bin1758.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  0.000e+00  1.000e+06 ( 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/354597/ft1_filtered_4FGL_J0024.7+0349_daily_bin1758.fits
Spacecraft file(s): /scratch/kocevski/354597/ft2_4FGL_J0024.7+0349_daily_bin1758.fits
Exposure map: /scratch/kocevski/354597/expmap_695001601_695260801_4FGL_J0024.7+0349_daily_bin1758.fits
Exposure cube: /scratch/kocevski/354597/ltcube_695001601_695260801_4FGL_J0024.7+0349_daily_bin1758.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/354597/Model_4FGL_J0024.7+0349_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) = 9753.18673771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.325       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.7508       1.0000          .0000       .10000E+07
     3 'norm      '    1.4786       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11329E-03   1.0000          .0000       .10000E+07
     5 'norm      '    3.4432       1.0000          .0000       .10000E+07
     6 'norm      '    1.0635       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.054       1.0000          .0000       .10000E+07
     8 'norm      '    22.916       1.0000          .0000       .10000E+07
     9 'norm      '    .36355       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.6314       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.6340       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.0936       1.0000          .0000       .10000E+07
    13 'Prefactor '    .27256E-06   1.0000          .0000       .10000E+07
    14 'norm      '    22.093       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10469       1.0000          .0000       .10000E+07
    16 'norm      '    33.396       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.0475       1.0000          .0000       .10000E+07
    18 'Prefactor '    .34401E-03   1.0000          .0000       .10000E+07
    19 'Normalizat'    .93660       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9752.266     FROM MIGRAD    STATUS=CONVERGED    110 CALLS     1200 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.328        1.8705       -.95392E-07   -.24267E-03
   2  Prefactor     2.7543        5.5458       -.48657E-07    .78602E-02
   3  norm          1.4840        2.1404        .10913E-06    .17621E-01
   4  Prefactor      .0000        5.6472        .21475E-06** at limit **
   5  norm          3.4453        3.3452        .11661E-06    .23313E-01
   6  norm          1.0687        1.9918       -.13174E-07    .45464E-02
   7  Prefactor     11.976        3.5154        .21706E-06   -.19797E-01
   8  norm          22.968        8.7289       -.21618E-06   -.17374E-02
   9  norm          .37435        2.9222        .14937E-05    .93166E-04
  10  Prefactor     4.6541        8.2390        .18095E-05    .54714E-02
  11  Prefactor     8.6406        4.7651       -.98671E-07    .25285E-02
  12  Prefactor     4.0977        2.2788        .70088E-09   -.63065E-02
  13  Prefactor     .55511E-10    .92444        .77479E-07** at limit **
  14  norm          22.057        2.4204       -.17946E-06    .19316E-01
  15  Prefactor     .43465E-07    70.484       -.46299E-05** at limit **
  16  norm          33.400        3.1753       -.43136E-08   -.18159E-01
  17  Prefactor     3.5123        35.827       -.20956E-05    .26187E-03
  18  Prefactor      .0000        20.860       -.85196E-06** at limit **
  19  Normalizat    .93621        .18893       -.23478E-05    .16944E-03
  20  Prefactor     .91113        .13567        .38674E-06    .65954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3284
  Prefactor  = 2.75426
  norm       = 1.48396
  Prefactor  = 0
  norm       = 3.44531
  norm       = 1.06872
  Prefactor  = 11.9764
  norm       = 22.968
  norm       = 0.37435
  Prefactor  = 4.65414
  Prefactor  = 8.64059
  Prefactor  = 4.09768
  Prefactor  = 5.55112e-11
  norm       = 22.057
  Prefactor  = 4.34652e-08
  norm       = 33.3997
  Prefactor  = 3.51234
  Prefactor  = 0
  Normalizat = 0.93621
  Prefactor  = 0.911133
 **********
 **   18 **HESSE 
 **********

 FCN=   9752.266     FROM HESSE     STATUS=OK           345 CALLS     1545 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.328        12.165        .31157E-03   -1.5644    
   2  Prefactor     2.7543        5.6514        .61352E-03   -1.5675    
   3  norm          1.4840        2.3816        .88254E-03   -1.5684    
   4  Prefactor      .0000        5.6495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.4453        3.4089        .54482E-03   -1.5671    
   6  norm          1.0687        2.4145        .43214E-02   -1.5687    
   7  Prefactor     11.976        10.572        .28828E-03   -1.5639    
   8  norm          22.968        8.7539        .20895E-03   -1.5612    
   9  norm          .37435        4.1919        .93837E-02   -1.5696    
  10  Prefactor     4.6541        9.3674        .46743E-03   -1.5665    
  11  Prefactor     8.6406        4.7877        .34090E-03   -1.5649    
  12  Prefactor     4.0977        2.2795        .49804E-03   -1.5667    
  13  Prefactor     .55511E-10    .92419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.057        14.403        .21281E-03   -1.5614    
  15  Prefactor     .43465E-07    74.833        .13805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          33.400        3.1745        .17306E-03   -1.5592    
  17  Prefactor     3.5123        36.438        .72224E-03   -1.5670    
  18  Prefactor      .0000        20.838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .93621        .16470        .67906E-01   -.95199    
  20  Prefactor     .91113        .11665        .45152E-01   -.95753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84341e-08
Minuit parameter uncertainties:
  1  12.1652
  2  5.6514
  3  2.38161
  4  1.37956e-05
  5  3.40892
  6  2.41452
  7  10.5716
  8  8.75392
  9  2.50539
  10  9.36746
  11  4.78773
  12  2.27947
  13  1.63145e-05
  14  14.4027
  15  0.00360609
  16  3.17454
  17  22.6261
  18  4.63314e-05
  19  0.164786
  20  0.116686
Done.

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

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  1.198e+01  1.057e+01  0.000e+00  1.000e+06 ( 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:  9.111e-01  1.167e-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:  9.362e-01  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 6.197 3.832
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.23e-05

TS (Fixed Index): 1.79
Ra Dec: 6.197 3.832
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354597/likelihoodResults_695001601_695260801_4FGL_J0024.7+0349_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) = 9751.7567739
delta logL = 0.509467337599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9751.74109945
delta logL = 0.525141787837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1358       1.0000          .0000       .10000E+07
     2 'Index     '    3.0466       1.0000          .0000       10.000    
     3 'Normalizat'    .90257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92759       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9751.741     FROM MIGRAD    STATUS=FAILED        97 CALLS      303 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1358        20.396        .70893E-04   -.89736E-02
   2  Index         3.0466        1.8374        .53710E-02    .10135E-02
   3  Normalizat    .90258        .18746        .30525E-03   -.21229E-04
   4  Prefactor     .92759        .13784        .22481E-03   -.16284E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9751.741     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      384 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1358        20.396        .15778E-04   -1.5663    
   2  Index         3.0466        1.8374        .91435E-03   -.40137    
   3  Normalizat    .90258        .18746        .20438E-03   -.96370    
   4  Prefactor     .92759        .13784        .13453E-03   -.95184    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9751.741     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      415 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1360        8.1354        .28357E-05   -.40572E-02
   2  Index         3.0466        .74988        .10742E-02   -.88688E-04
   3  Normalizat    .90258        .18679        .12210E-04   -.93109E-05
   4  Prefactor     .92759        .13675        .89924E-05   -.70798E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.136
  Index      = 3.04659
  Normalizat = 0.902576
  Prefactor  = 0.927587
 **********
 **   18 **HESSE 
 **********

 FCN=   9751.741     FROM HESSE     STATUS=OK            23 CALLS      438 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1360        7.6540        .11343E-06   -1.5663    
   2  Index         3.0466        .70566        .42968E-04   -.40137    
   3  Normalizat    .90258        .18663        .24420E-05   -.96370    
   4  Prefactor     .92759        .13663        .17985E-05   -.95184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0807e-11
Minuit parameter uncertainties:
  1  7.65401
  2  0.708456
  3  0.186767
  4  0.136676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354597': 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) = 9751.74109945
delta logL = 0.525141789543

Extracting fit parameters...

4FGL J0024.7+0349
   Spectrum: PowerLaw
118    Prefactor:  5.136e+00  7.654e+00  0.000e+00  1.000e+06 ( 1.000e-13)
119        Index:  3.047e+00  7.085e-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:  9.276e-01  1.367e-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:  9.026e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.93
Ra Dec: 6.197 3.832
Photon Index (Free Index): 3.05 +/- 0.71
Photon Flux (Free Index): 6.70e-08 +/- 4.69e-08
Energy Flux (Free Index): 1.31e-05 +/- 9.16e-06

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/354597/cmap_HighResolution_695001601_695260801_4FGL_J0024.7+0349_daily_bin1758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.31e-05', photon_flux_error='3.71e-08', dlogl='5.25e-01', energy_flux='1.40e-05', photon_flux2='6.70e-08', job_status='DONE', time_completed='2023-01-13 00:16:48.962849', photon_index_error2='0.71', photon_index2='3.05', ts='1.79', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='9.16e-06', EG='0.94', time_epoch_completed='1673597808.96', return_code='0', job_id='354597', GAL2='0.93', EG2='0.90', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.69e-08', ts2='2.93', photon_index='2.39' WHERE bin_id='1758' AND source_name='4FGL J0024.7+0349' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 13 00:16:48 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 354597: <4FGL_J0024.7+0349_daily_bin1758> in cluster <slac> Done

Job <4FGL_J0024.7+0349_daily_bin1758> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Jan 13 00:04:35 2023
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 13 00:05:29 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:05:29 2023
Terminated at Fri Jan 13 00:16:49 2023
Results reported at Fri Jan 13 00:16:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0024.7+0349_daily_bin1758 6.1975 3.8321 695001601 695260801 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 :                                   593.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            734 sec.

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

