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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1751
RA = 185.378, Dec = 28.2382
tmin = 693187201, tmax = 693446401
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='77665', job_status='RUN', time_executed='2022-12-23 00:44:09.136072', time_epoch_executed='1671785049.14' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77665

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77665/ft1_4FGL_J1221.5+2814_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77665/ft1_4FGL_J1221.5+2814_daily_bin1751.fits outfile=/scratch/kocevski/77665/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1751.fits ra=185.378 dec=28.2382 rad=12.0 tmin=693187201.0 tmax=693446401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.61
user 3.39
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.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/77665/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.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.33
sys 0.15

Number of photons that the gtmktime cut: 762

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/77665/ltcube_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.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/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits
.....................!
real 12.01
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77665/ltcube_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.fits outfile=/scratch/kocevski/77665/expmap_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.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/77665/ltcube_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.fits
.....................!
real 191.16
user 185.99
sys 4.86

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

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits scfile=/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits outfile=/scratch/kocevski/77665/cmap_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.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=185.378 yref=28.2382 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits scfile=/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits outfile=/scratch/kocevski/77665/cmap_HighResolution_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.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=185.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77665/Model_4FGL_J1221.5+2814_daily_bin1751.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/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits.....................!
real 67.06
user 65.68
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits', '/scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits', expMap='/scratch/kocevski/77665/expmap_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.fits', expCube='/scratch/kocevski/77665/ltcube_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77665/Model_4FGL_J1221.5+2814_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77665/ft1_filtered_4FGL_J1221.5+2814_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/77665/ft2_4FGL_J1221.5+2814_daily_bin1751.fits
Exposure map: /scratch/kocevski/77665/expmap_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.fits
Exposure cube: /scratch/kocevski/77665/ltcube_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77665/Model_4FGL_J1221.5+2814_daily_bin1751.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) = 7881.17272256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80783E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    15.739       1.0000          .0000       .10000E+07
     3 'Prefactor '    23.118       1.0000          .0000       .10000E+07
     4 'Prefactor '    .40331E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .74385E-08   1.0000          .0000       .10000E+07
     6 'norm      '    25.115       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13072E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .99920E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .31974E-07   1.0000          .0000       .10000E+07
    10 'norm      '    4.2780       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.4902       1.0000          .0000       .10000E+07
    12 'Prefactor '    .92479       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.1422       1.0000          .0000       .10000E+07
    14 'Prefactor '    .86459       1.0000          .0000       .10000E+07
    15 'norm      '    .25766       1.0000          .0000       .10000E+07
    16 'norm      '    14.123       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.9396       1.0000          .0000       .10000E+07
    18 'Prefactor '    .31625E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .10205E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .16653E-09   1.0000          .0000       .10000E+07
    21 'norm      '    3.4798       1.0000          .0000       .10000E+07
    22 'Prefactor '    34.883       1.0000          .0000       .10000E+07
    23 'norm      '    1.4673       1.0000          .0000       .10000E+07
    24 'norm      '    36.166       1.0000          .0000       .10000E+07
    25 'norm      '    14.422       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0279       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87740       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7881.049     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     2391 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    4.3975        .13222E-07** at limit **
   2  Prefactor     15.737        4.0327       -.15005E-07   -.19038E-01
   3  Prefactor     23.126        5.4161        .18622E-07   -.26641E-01
   4  Prefactor      .0000        6.2749       -.10985E-06** at limit **
   5  Prefactor      .0000        .51755        .29690E-07** at limit **
   6  norm          25.113        2.6899        .68332E-09    .14063E-03
   7  Prefactor      .0000        1.8657       -.58176E-08** at limit **
   8  Prefactor      .0000        .92355        .45259E-07** at limit **
   9  Prefactor      .0000        1.0389        .17849E-07** at limit **
  10  norm          4.2763        2.8460        .44465E-08   -.38721E-05
  11  Prefactor     4.5012        6.3569        .37160E-07    .95488E-02
  12  Prefactor     .92555        1.5997        .48553E-08    .93912E-05
  13  Prefactor     2.1422        1.4346        .11373E-07    .36365E-03
  14  Prefactor     .85156        .68236        .66528E-09    .45963E-02
  15  norm          .25764        .18901        .25967E-08    .63417E-03
  16  norm          14.103        5.0713        .27712E-07   -.21286E-02
  17  Prefactor     8.9328        4.3518        .26726E-08    .88517E-02
  18  Prefactor      .0000        5.3639       -.66429E-08** at limit **
  19  Prefactor     .22204E-09    3.0622        .41051E-08** at limit **
  20  Prefactor      .0000        2.0910        .69371E-08** at limit **
  21  norm          3.5515        4.3343       -.52819E-08    .17026E-02
  22  Prefactor     33.812        28.275        .24071E-06   -.19379E-02
  23  norm          1.4669        2.2051        .15736E-07    .15812E-03
  24  norm          36.187        8.8958       -.56319E-08   -.37350E-01
  25  norm          14.530        14.248       -.25862E-07   -.67686E-02
  26  Normalizat    1.0286        .20224       -.11588E-05    .56631E-05
  27  Prefactor     .87699        .21585        .10653E-05    .90984E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Prefactor  = 15.7372
  Prefactor  = 23.1257
  Prefactor  = 0
  Prefactor  = 0
  norm       = 25.113
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.27627
  Prefactor  = 4.50119
  Prefactor  = 0.925549
  Prefactor  = 2.1422
  Prefactor  = 0.851555
  norm       = 0.257638
  norm       = 14.1033
  Prefactor  = 8.9328
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  norm       = 3.55153
  Prefactor  = 33.8118
  norm       = 1.46687
  norm       = 36.1871
  norm       = 14.53
  Normalizat = 1.02857
  Prefactor  = 0.876987
 **********
 **   18 **HESSE 
 **********

 FCN=   7881.049     FROM HESSE     STATUS=OK           550 CALLS     2941 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    7.3248        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.737        13.668        .25219E-03   -1.5629    
   3  Prefactor     23.126        7.9126        .20803E-03   -1.5612    
   4  Prefactor      .0000        6.4597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .51577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.113        2.6825        .19958E-03   -1.5608    
   7  Prefactor      .0000        1.8608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .92196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.0375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2763        2.8301        .48686E-03   -1.5667    
  11  Prefactor     4.5012        7.7999        .47491E-03   -1.5666    
  12  Prefactor     .92555        1.5973        .44061E-03   -1.5689    
  13  Prefactor     2.1422        1.4367        .70388E-03   -1.5679    
  14  Prefactor     .85156        6.0254        .48239E-03   -1.5690    
  15  norm          .25764        .19906        .71322E-03   -1.5698    
  16  norm          14.103        5.3409        .26627E-03   -1.5633    
  17  Prefactor     8.9328        7.2730        .33499E-03   -1.5648    
  18  Prefactor      .0000        5.3785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .22204E-09    7.5838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        2.0924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5515        4.3948        .54182E-03   -1.5670    
  22  Prefactor     33.812        28.312        .16933E-03   -1.5592    
  23  norm          1.4669        2.2376        .88718E-03   -1.5684    
  24  norm          36.187        10.246        .16630E-03   -1.5588    
  25  norm          14.530        14.608        .26349E-03   -1.5632    
  26  Normalizat    1.0286        .17053        .61574E-01   -.92079    
  27  Prefactor     .87699        .18237        .73627E-01   -.96950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26558e-08
Minuit parameter uncertainties:
  1  0.000110539
  2  13.6685
  3  7.91265
  4  8.33602e-06
  5  6.7653e-07
  6  2.68253
  7  1.91371e-06
  8  1.34773e-06
  9  3.79443e-07
  10  2.83008
  11  7.79993
  12  1.59726
  13  1.43673
  14  4.53034
  15  0.19906
  16  5.3409
  17  7.27301
  18  1.29514e-05
  19  8.21443e-05
  20  3.36438e-06
  21  4.39485
  22  28.3125
  23  2.23762
  24  10.2463
  25  14.6078
  26  0.170624
  27  0.182495
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.142e+00  1.437e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.770e-01  1.825e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.029e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.77
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.03e-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) = 7880.81530584
delta logL = 0.233659583721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7880.80983509
delta logL = 0.239130332282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3891       1.0000          .0000       .10000E+07
     2 'Index     '    1.7945       1.0000          .0000       10.000    
     3 'Normalizat'    1.0379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+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=   7880.810     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      273 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3891        1.6331        .91222E-05   -.40828E-02
   2  Index         1.7946        .49142        .88640E-02   -.51011E-04
   3  Normalizat    1.0379        .19186        .27133E-03    .19944E-04
   4  Prefactor     .87147        .21421        .32678E-03    .13290E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38913
  Index      = 1.79458
  Normalizat = 1.03787
  Prefactor  = 0.871472
 **********
 **   18 **HESSE 
 **********

 FCN=   7880.810     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3891        1.6341        .36489E-06   -1.5677    
   2  Index         1.7946        .49177        .35456E-03   -.69591    
   3  Normalizat    1.0379        .19203        .10853E-04   -.91772    
   4  Prefactor     .87147        .21441        .13071E-04   -.97145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30126e-11
Minuit parameter uncertainties:
  1  1.63406
  2  0.493123
  3  0.192162
  4  0.214614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77665': 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) = 7880.80983508
delta logL = 0.239130345745

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.389e+00  1.634e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  1.795e+00  4.931e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  8.715e-01  2.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.038e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.25
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.79 +/- 0.49
Photon Flux (Free Index): 2.15e-08 +/- 1.95e-08
Energy Flux (Free Index): 2.62e-05 +/- 2.95e-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/77665/cmap_HighResolution_693187201_693446401_4FGL_J1221.5+2814_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='2.62e-05', photon_flux_error='2.10e-08', dlogl='2.39e-01', energy_flux='1.54e-05', photon_flux2='2.15e-08', job_status='DONE', time_completed='2022-12-23 00:56:29.090773', photon_index_error2='0.49', photon_index2='1.79', ts='7.77', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.95e-05', EG='1.03', time_epoch_completed='1671785789.09', return_code='0', job_id='77665', GAL2='0.87', EG2='1.04', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='1.95e-08', ts2='8.25', photon_index='2.15' WHERE bin_id='1751' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:56:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 77665: <4FGL_J1221.5+2814_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:13 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:15 2022
Terminated at Fri Dec 23 00:56:29 2022
Results reported at Fri Dec 23 00:56:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1751 185.378 28.2382 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

