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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1746
RA = 185.378, Dec = 28.2382
tmin = 691891201, tmax = 692150401
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='724707', job_status='RUN', time_executed='2022-12-08 00:51:41.168663', time_epoch_executed='1670489501.17' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/724707

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/724707/ft1_4FGL_J1221.5+2814_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/724707/ft2_4FGL_J1221.5+2814_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/724707/ft1_4FGL_J1221.5+2814_daily_bin1746.fits outfile=/scratch/kocevski/724707/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1746.fits ra=185.378 dec=28.2382 rad=12.0 tmin=691891201.0 tmax=692150401.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.72
user 4.47
sys 0.22

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

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

Number of photons that the gtmktime cut: 716

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/724707/ft1_filtered_4FGL_J1221.5+2814_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/724707/ft2_4FGL_J1221.5+2814_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/724707/ltcube_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.fits outfile=/scratch/kocevski/724707/expmap_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.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/724707/ltcube_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.fits
.....................!
real 190.93
user 185.77
sys 4.82

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/724707/ft1_filtered_4FGL_J1221.5+2814_daily_bin1746.fits scfile=/scratch/kocevski/724707/ft2_4FGL_J1221.5+2814_daily_bin1746.fits outfile=/scratch/kocevski/724707/cmap_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/724707/ft1_filtered_4FGL_J1221.5+2814_daily_bin1746.fits scfile=/scratch/kocevski/724707/ft2_4FGL_J1221.5+2814_daily_bin1746.fits outfile=/scratch/kocevski/724707/cmap_HighResolution_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/724707/ft1_filtered_4FGL_J1221.5+2814_daily_bin1746.fits', '/scratch/kocevski/724707/ft2_4FGL_J1221.5+2814_daily_bin1746.fits', expMap='/scratch/kocevski/724707/expmap_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.fits', expCube='/scratch/kocevski/724707/ltcube_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/724707/Model_4FGL_J1221.5+2814_daily_bin1746.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/724707/ft1_filtered_4FGL_J1221.5+2814_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/724707/ft2_4FGL_J1221.5+2814_daily_bin1746.fits
Exposure map: /scratch/kocevski/724707/expmap_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.fits
Exposure cube: /scratch/kocevski/724707/ltcube_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/724707/Model_4FGL_J1221.5+2814_daily_bin1746.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) = 7729.63487047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47033E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .29094E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.6027       1.0000          .0000       .10000E+07
     4 'Prefactor '    16.537       1.0000          .0000       .10000E+07
     5 'Prefactor '    .31142E-06   1.0000          .0000       .10000E+07
     6 'norm      '    22.059       1.0000          .0000       .10000E+07
     7 'Prefactor '    .79441E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.0237       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.6984       1.0000          .0000       .10000E+07
    10 'norm      '    5.2201       1.0000          .0000       .10000E+07
    11 'Prefactor '    .46226       1.0000          .0000       .10000E+07
    12 'Prefactor '    .12101E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.4867       1.0000          .0000       .10000E+07
    14 'Prefactor '    .47331E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .21419       1.0000          .0000       .10000E+07
    16 'norm      '    5.9954       1.0000          .0000       .10000E+07
    17 'Prefactor '    .55191E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .55335E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.9615       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.9607       1.0000          .0000       .10000E+07
    21 'norm      '    3.8395       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20196E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .17202E-05   1.0000          .0000       .10000E+07
    24 'norm      '    30.471       1.0000          .0000       .10000E+07
    25 'norm      '    12.849       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0461       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94781       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=   7729.623     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2336 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33917E-07    2.3033        .51747E-06** at limit **
   2  Prefactor      .0000        3.2827        .15639E-06** at limit **
   3  Prefactor     1.6370        4.0706       -.25694E-06    .24820E-03
   4  Prefactor     16.802        20.904        .71431E-06   -.14980E-01
   5  Prefactor      .0000        1.0507       -.10210E-06** at limit **
   6  norm          22.053        2.6992       -.45358E-07   -.16235E-02
   7  Prefactor     .74163E-07    2.7860       -.23512E-06** at limit **
   8  Prefactor     1.0280        1.7123        .72814E-07    .47659E-03
   9  Prefactor     1.6819        2.6808        .61955E-07    .31569E-03
  10  norm          5.2171        2.8357        .36605E-08    .19092E-04
  11  Prefactor     .47832        2.5583        .46971E-06   -.51996E-02
  12  Prefactor      .0000        .72958        .18595E-06** at limit **
  13  Prefactor     4.4875        2.8364        .18912E-07   -.57782E-04
  14  Prefactor     .91038E-08    1.8622        .46434E-06** at limit **
  15  norm          .21447        .19756        .14192E-07** at limit **
  16  norm          6.0078        3.9606       -.20663E-07    .16108E-03
  17  Prefactor     .55511E-09    2.7383        .37921E-06** at limit **
  18  Prefactor     .28255E-07    2.8842       -.69551E-06** at limit **
  19  Prefactor     7.9451        6.1798       -.39722E-06   -.23023E-01
  20  Prefactor     3.9533        4.8457       -.12563E-07   -.56762E-03
  21  norm          3.8436        3.2243        .15259E-06    .11740E-02
  22  Prefactor     .25424E-07    4.1327       -.13948E-06** at limit **
  23  norm          .13101E-07    1.1311       -.26179E-06** at limit **
  24  norm          30.666        7.8172       -.36743E-06    .12680E-01
  25  norm          12.545        9.6687        .44996E-06   -.54114E-01
  26  Normalizat    1.0453        .20179       -.17397E-05    .36831E-04
  27  Prefactor     .94816        .21771        .31608E-05    .38460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39173e-08
  Prefactor  = 0
  Prefactor  = 1.637
  Prefactor  = 16.8015
  Prefactor  = 0
  norm       = 22.0527
  Prefactor  = 7.41629e-08
  Prefactor  = 1.02796
  Prefactor  = 1.68188
  norm       = 5.21711
  Prefactor  = 0.478324
  Prefactor  = 0
  Prefactor  = 4.48751
  Prefactor  = 9.10383e-09
  norm       = 0.214469
  norm       = 6.00782
  Prefactor  = 5.55112e-10
  Prefactor  = 2.82552e-08
  Prefactor  = 7.94511
  Prefactor  = 3.95327
  norm       = 3.84364
  Prefactor  = 2.54241e-08
  norm       = 1.31006e-08
  norm       = 30.6663
  norm       = 12.545
  Normalizat = 1.04533
  Prefactor  = 0.948162
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.623     FROM HESSE     STATUS=OK           552 CALLS     2888 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33917E-07    4.6731        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        3.3196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6370        4.0974        .83695E-03   -1.5682    
   4  Prefactor     16.802        21.516        .24602E-03   -1.5626    
   5  Prefactor      .0000        1.0411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.053        2.6994        .21297E-03   -1.5614    
   7  Prefactor     .74163E-07    5.9658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0280        2.0988        .33255E-02   -1.5688    
   9  Prefactor     1.6819        2.7683        .80699E-03   -1.5682    
  10  norm          5.2171        2.8381        .43972E-03   -1.5662    
  11  Prefactor     .47832        9.7611        .82601E-03   -1.5694    
  12  Prefactor      .0000        .72898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.4875        2.8440        .47510E-03   -1.5666    
  14  Prefactor     .91038E-08    4.9084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .21447        .21203        .80714E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0078        3.9657        .40984E-03   -1.5659    
  17  Prefactor     .55511E-09    2.7704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .28255E-07    5.7863        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.9451        7.0358        .35511E-03   -1.5652    
  20  Prefactor     3.9533        4.8539        .50659E-03   -1.5668    
  21  norm          3.8436        3.2236        .51481E-03   -1.5669    
  22  Prefactor     .25424E-07    6.2210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .13101E-07    6.2880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          30.666        9.2528        .18119E-03   -1.5597    
  25  norm          12.545        14.379        .27919E-03   -1.5637    
  26  Normalizat    1.0453        .17049        .61092E-01   -.91527    
  27  Prefactor     .94816        .18463        .70987E-01   -.94478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9218e-06
Minuit parameter uncertainties:
  1  0.000795975
  2  7.74681e-06
  3  4.09738
  4  21.5162
  5  3.68132e-06
  6  2.69944
  7  0.00133028
  8  2.09879
  9  2.76826
  10  2.83813
  11  4.32157
  12  1.0657e-06
  13  2.84396
  14  0.000422711
  15  0.212031
  16  3.96573
  17  8.03231e-05
  18  0.000808677
  19  7.03583
  20  4.8539
  21  3.22362
  22  0.00079558
  23  0.000574348
  24  9.25278
  25  14.3792
  26  0.170578
  27  0.184755
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.488e+00  2.844e+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:  9.482e-01  1.848e-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.045e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.81
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.57e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 3.23e-05 +/- 2.05e-05

TS (Fixed Index): 3.81
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/724707/likelihoodResults_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.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) = 7728.63537221
delta logL = 0.988100587263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7728.6291114
delta logL = 0.994361394225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0905       1.0000          .0000       .10000E+07
     2 'Index     '    3.0021       1.0000          .0000       10.000    
     3 'Normalizat'    .96759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0055       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.

 FCN=   7728.629     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      248 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0905        13.034        .71371E-03   -.10117E-02
   2  Index         3.0021        2.3194        .11348        .90041E-04
   3  Normalizat    .96759        .60014E-01    .45760E-01    .49475E-04
   4  Prefactor     1.0055        .61823E-01    .69160E-01    .24467E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09053
  Index      = 3.00212
  Normalizat = 0.967591
  Prefactor  = 1.00551
 **********
 **   18 **HESSE 
 **********

 FCN=   7728.629     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0905        3.9042        .57814E-05   -1.5679    
   2  Index         3.0021        1.0957        .42386E-02   -.41105    
   3  Normalizat    .96759        .20903        .27864E-03   -.94124    
   4  Prefactor     1.0055        .22732        .30593E-03   -.92546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72839e-11
Minuit parameter uncertainties:
  1  3.90418
  2  1.10644
  3  0.209206
  4  0.227539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/724707': 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) = 7728.6291114
delta logL = 0.994361394244

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.091e+00  3.904e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  3.002e+00  1.106e+00  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:  1.006e+00  2.275e-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:  9.676e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 185.378 28.238
Photon Index (Free Index): 3.00 +/- 1.11
Photon Flux (Free Index): 1.33e-07 +/- 7.48e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.47e-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/724707/cmap_HighResolution_691891201_692150401_4FGL_J1221.5+2814_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='6.57e-08', energy_flux2='2.66e-05', photon_flux_error='4.16e-08', dlogl='9.94e-01', energy_flux='3.23e-05', photon_flux2='1.33e-07', job_status='DONE', time_completed='2022-12-08 01:05:02.071481', photon_index_error2='1.11', photon_index2='3.00', ts='3.81', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.47e-05', EG='1.05', time_epoch_completed='1670490302.07', return_code='0', job_id='724707', GAL2='1.01', EG2='0.97', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='7.48e-08', ts2='6.00', photon_index='2.15' WHERE bin_id='1746' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:05:02 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 724707: <4FGL_J1221.5+2814_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 00:50:15 2022
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 00:50:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 00:50:16 2022
Terminated at Thu Dec  8 01:05:02 2022
Results reported at Thu Dec  8 01:05:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1746 185.378 28.2382 691891201 692150401 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 :                                   803.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

