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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1774
RA = 186.228, Dec = 21.3814
tmin = 699148801, tmax = 699408001
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='681435', job_status='RUN', time_executed='2023-03-02 00:41:19.828583', time_epoch_executed='1677746479.83' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681435/ft1_4FGL_J1224.9+2122_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681435/ft1_4FGL_J1224.9+2122_daily_bin1774.fits outfile=/scratch/kocevski/681435/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1774.fits ra=186.228 dec=21.3814 rad=12.0 tmin=699148801.0 tmax=699408001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.78
user 2.55
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.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/681435/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.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.31
sys 0.17

Number of photons that the gtmktime cut: 137

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681435/ltcube_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.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/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits
.....................!
real 12.56
user 12.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681435/ltcube_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.fits outfile=/scratch/kocevski/681435/expmap_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.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/681435/ltcube_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.fits
.....................!
real 190.87
user 185.17
sys 5.34

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

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits scfile=/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits outfile=/scratch/kocevski/681435/cmap_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.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=186.228 yref=21.3814 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits scfile=/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits outfile=/scratch/kocevski/681435/cmap_HighResolution_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.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=186.228 yref=21.3814 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681435/Model_4FGL_J1224.9+2122_daily_bin1774.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/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits.......................!
real 25.33
user 24.07
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits', '/scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits', expMap='/scratch/kocevski/681435/expmap_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.fits', expCube='/scratch/kocevski/681435/ltcube_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681435/Model_4FGL_J1224.9+2122_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681435/ft1_filtered_4FGL_J1224.9+2122_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/681435/ft2_4FGL_J1224.9+2122_daily_bin1774.fits
Exposure map: /scratch/kocevski/681435/expmap_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.fits
Exposure cube: /scratch/kocevski/681435/ltcube_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681435/Model_4FGL_J1224.9+2122_daily_bin1774.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) = 1626.85565338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16628E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .26559E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12150E-04   1.0000          .0000       .10000E+07
     4 'norm      '    38.511       1.0000          .0000       .10000E+07
     5 'Prefactor '    .39162E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .72164E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10786       1.0000          .0000       .10000E+07
     8 'Prefactor '    .88734E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    8.7796       1.0000          .0000       .10000E+07
    10 'norm      '    .41744E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.4591       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.5684       1.0000          .0000       .10000E+07
    13 'Prefactor '    .61500E-03   1.0000          .0000       .10000E+07
    14 'norm      '    2.7226       1.0000          .0000       .10000E+07
    15 'norm      '    .11635E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.608       1.0000          .0000       .10000E+07
    17 'Prefactor '    16.638       1.0000          .0000       .10000E+07
    18 'Prefactor '    31.130       1.0000          .0000       .10000E+07
    19 'Prefactor '    18.404       1.0000          .0000       .10000E+07
    20 'norm      '    3.0338       1.0000          .0000       .10000E+07
    21 'norm      '    .22632E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    .44185       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1626.657     FROM MIGRAD    STATUS=CONVERGED    161 CALLS     1816 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41922E-06    26.073        .58787E-06** at limit **
   2  Prefactor     .44409E-09    31.936        .41712E-06** at limit **
   3  Prefactor     .55511E-10    3.3347        .40782E-07** at limit **
   4  norm          38.685        10.601       -.36635E-07   -.17307E-02
   5  Prefactor     .24980E-08    123.41        .14951E-05** at limit **
   6  Prefactor     .13056E-06    6.9334        .56857E-08** at limit **
   7  Prefactor     .19403E-05    68.184        .81871E-06** at limit **
   8  Prefactor     .11102E-09    15.580       -.25722E-06** at limit **
   9  Prefactor     8.8486        11.588       -.72405E-07   -.34046E-01
  10  norm          .25557E-06    6.0189       -.10085E-07** at limit **
  11  Prefactor     7.4961        7.0531        .16007E-06    .85102E-04
  12  Prefactor     7.4505        7.7157       -.33469E-06    .17293E-02
  13  Prefactor     .54956E-08    6.9376        .73237E-08** at limit **
  14  norm          2.7232        1.1494       -.56927E-07    .27049E-02
  15  norm          .55511E-10    4.7905        .21599E-06** at limit **
  16  Prefactor     12.859        2.6596        .46362E-08    .84015E-03
  17  Prefactor     17.026        3.3522       -.19934E-07   -.13999E-01
  18  Prefactor     31.869        16.668       -.13274E-06    .47689E-03
  19  Prefactor     18.611        2.2179        .24655E-08   -.21345E-02
  20  norm          2.9626        6.1267        .66212E-06   -.14658E-02
  21  norm          .26079E-06    24.775        .54594E-06** at limit **
  22  Normalizat    .44029        .46542        .14515E-04    .12753E-04
  23  Prefactor     1.2299        .46929       -.17630E-04    .33228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1922e-07
  Prefactor  = 4.44089e-10
  Prefactor  = 5.55112e-11
  norm       = 38.6846
  Prefactor  = 2.498e-09
  Prefactor  = 1.30562e-07
  Prefactor  = 1.94028e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 8.84855
  norm       = 2.55573e-07
  Prefactor  = 7.49605
  Prefactor  = 7.45053
  Prefactor  = 5.4956e-09
  norm       = 2.72319
  norm       = 5.55112e-11
  Prefactor  = 12.8585
  Prefactor  = 17.0257
  Prefactor  = 31.8694
  Prefactor  = 18.6109
  norm       = 2.96257
  norm       = 2.60791e-07
  Normalizat = 0.440287
  Prefactor  = 1.22994
 **********
 **   18 **HESSE 
 **********

 FCN=   1626.657     FROM HESSE     STATUS=OK           416 CALLS     2232 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41922E-06    51.141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44409E-09    32.285        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    3.3312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          38.685        10.664        .16116E-03   -1.5584    
   5  Prefactor     .24980E-08    123.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13056E-06    8.7249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19403E-05    218.73        .13723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11102E-09    15.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.8486        14.469        .33804E-03   -1.5648    
  10  norm          .25557E-06    9.5381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4961        7.0852        .36698E-03   -1.5653    
  12  Prefactor     7.4505        8.2571        .36430E-03   -1.5653    
  13  Prefactor     .54956E-08    7.0236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7232        1.1585        .59290E-03   -1.5675    
  15  norm          .55511E-10    4.7974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.859        26.861        .28186E-03   -1.5636    
  17  Prefactor     17.026        28.445        .24527E-03   -1.5625    
  18  Prefactor     31.869        21.270        .17926E-03   -1.5595    
  19  Prefactor     18.611        34.252        .23319E-03   -1.5622    
  20  norm          2.9626        6.2030        .58232E-03   -1.5674    
  21  norm          .26079E-06    50.626        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .44029        .44214        .97968E-01   -1.1527    
  23  Prefactor     1.2299        .43036        .61589E-01   -.85415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12282e-07
Minuit parameter uncertainties:
  1  0.00926057
  2  0.000235698
  3  2.9251e-05
  4  10.6641
  5  0.00110713
  6  0.00213461
  7  0.0412027
  8  7.42481e-05
  9  14.469
  10  0.00312271
  11  7.08518
  12  8.25711
  13  0.000393566
  14  1.15851
  15  2.44956e-05
  16  26.8611
  17  28.4452
  18  21.2696
  19  34.2524
  20  6.20298
  21  0.00726734
  22  0.445714
  23  0.431597
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.723e+00  1.159e+00  0.000e+00  1.000e+06 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.230e+00  4.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  4.403e-01  4.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.29
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.60e-07 +/- 1.96e-07
Energy Flux (Fixed Index): 1.60e-04 +/- 6.80e-05

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) = 1626.59127679
delta logL = 0.0653760548053

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1626.57968331
delta logL = 0.07696953401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5662       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1074       1.0000          .0000       5.0000    
     3 'Normalizat'    .47735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2105       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1626.580     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      198 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5646        1.1301        .59763E-03    .10460E-02
   2  alpha         2.1063        .38389        .13838       -.11996E-04
   3  Normalizat    .47793        .41945        .94388E-01    .13614E-04
   4  Prefactor     1.2104        .41856        .62094E-01    .15223E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.56458
  alpha      = 2.10625
  Normalizat = 0.477928
  Prefactor  = 1.21036
 **********
 **   18 **HESSE 
 **********

 FCN=   1626.580     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5646        1.2448        .26449E-05   -1.5676    
   2  alpha         2.1063        .43178        .60058E-03   -.15816    
   3  Normalizat    .47793        .46997        .41842E-03   -1.1345    
   4  Prefactor     1.2104        .46776        .27459E-03   -.86013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35067e-13
Minuit parameter uncertainties:
  1  1.24477
  2  0.434014
  3  0.473941
  4  0.469377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681435': 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) = 1626.57967901
delta logL = 0.0769738393517

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.565e+00  1.245e+00  0.000e+00  1.000e+06 ( 1.000e-10)
313        alpha:  2.106e+00  4.340e-01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.210e+00  4.694e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  4.779e-01  4.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.97
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.11 +/- 0.43
Photon Flux (Free Index): 3.95e-07 +/- 2.41e-07
Energy Flux (Free Index): 1.75e-04 +/- 8.93e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/681435/cmap_HighResolution_699148801_699408001_4FGL_J1224.9+2122_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.60e-07', energy_flux2='1.75e-04', photon_flux_error='1.96e-07', dlogl='7.70e-02', energy_flux='1.60e-04', photon_flux2='3.95e-07', job_status='DONE', time_completed='2023-03-02 00:47:35.049575', photon_index_error2='0.43', photon_index2='2.11', ts='13.29', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='8.93e-05', EG='0.44', time_epoch_completed='1677746855.05', return_code='0', job_id='681435', GAL2='1.21', EG2='0.48', return_code2='0', energy_flux_error='6.80e-05', photon_flux_error2='2.41e-07', ts2='12.97', photon_index='2.28' WHERE bin_id='1774' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:47:35 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 681435: <4FGL_J1224.9+2122_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:22 2023
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:26 2023
Terminated at Thu Mar  2 00:47:35 2023
Results reported at Thu Mar  2 00:47:35 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1774 186.228 21.3814 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   377.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             251.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   429 sec.
    Turnaround time :                            433 sec.

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

