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 51 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_J1220.1+3432_daily_bin1774
RA = 185.046, Dec = 34.5383
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='681419', job_status='RUN', time_executed='2023-03-02 00:41:22.182838', time_epoch_executed='1677746482.18' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681419

Creating custom pfile directory:
/scratch/kocevski/681419/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/681419/ft1_4FGL_J1220.1+3432_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/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681419/ft1_4FGL_J1220.1+3432_daily_bin1774.fits outfile=/scratch/kocevski/681419/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1774.fits ra=185.046 dec=34.5383 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.80
user 2.60
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_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/681419/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_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.48
user 0.35
sys 0.12

Number of photons that the gtmktime cut: 177

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681419/ltcube_699148801_699408001_4FGL_J1220.1+3432_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/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits
.....................!
real 12.29
user 11.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681419/ltcube_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.fits outfile=/scratch/kocevski/681419/expmap_699148801_699408001_4FGL_J1220.1+3432_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/681419/ltcube_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.fits
.....................!
real 189.34
user 185.21
sys 3.81

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

Setting source of interest to:
4FGL J1220.1+3432 @ 185.046 34.5383

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits scfile=/scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits outfile=/scratch/kocevski/681419/cmap_699148801_699408001_4FGL_J1220.1+3432_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=185.046 yref=34.5383 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits scfile=/scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits outfile=/scratch/kocevski/681419/cmap_HighResolution_699148801_699408001_4FGL_J1220.1+3432_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=185.046 yref=34.5383 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681419/Model_4FGL_J1220.1+3432_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/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits.......................!
real 27.32
user 26.15
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits', '/scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits', expMap='/scratch/kocevski/681419/expmap_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.fits', expCube='/scratch/kocevski/681419/ltcube_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681419/Model_4FGL_J1220.1+3432_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+3432'

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.941e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681419/ft1_filtered_4FGL_J1220.1+3432_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/681419/ft2_4FGL_J1220.1+3432_daily_bin1774.fits
Exposure map: /scratch/kocevski/681419/expmap_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.fits
Exposure cube: /scratch/kocevski/681419/ltcube_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681419/Model_4FGL_J1220.1+3432_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) = 2056.79730869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.005       1.0000          .0000       .10000E+07
     2 'Prefactor '    .44666E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .48068       1.0000          .0000       .10000E+07
     4 'norm      '    9.3141       1.0000          .0000       .10000E+07
     5 'Prefactor '    .66109E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .37252E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .81966       1.0000          .0000       .10000E+07
     8 'norm      '    .97755E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .38939       1.0000          .0000       .10000E+07
    10 'norm      '    .51460E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.2620       1.0000          .0000       .10000E+07
    12 'norm      '    42.697       1.0000          .0000       .10000E+07
    13 'norm      '     .0000       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.005       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.2549       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.8248       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11188E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .24817E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    16.642       1.0000          .0000       .10000E+07
    20 'Prefactor '    40.140       1.0000          .0000       .10000E+07
    21 'Prefactor '    5.0322       1.0000          .0000       .10000E+07
    22 'norm      '    .71791E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .26117E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    8.2287       1.0000          .0000       .10000E+07
    25 'norm      '    .90384E-03   1.0000          .0000       .10000E+07
    26 'norm      '    13.062       1.0000          .0000       .10000E+07
    27 'norm      '    11.264       1.0000          .0000       .10000E+07
    28 'Prefactor '    .78228E-05   1.0000          .0000       .10000E+07
    29 'Normalizat'    .94988       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94077       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2056.746     FROM MIGRAD    STATUS=CONVERGED    226 CALLS     2820 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.145        6.7634        .19335E-06    .25157E-01
   2  Prefactor     .83572E-04    88.425        .27299E-05** at limit **
   3  Prefactor     .15760E-06    124.55        .13598E-05** at limit **
   4  norm          9.2970        15.731        .27700E-05    .11852E-02
   5  Prefactor     .29379E-04    93.054        .64398E-05** at limit **
   6  Prefactor     .33862E-08    20.690       -.35253E-05** at limit **
   7  Prefactor     .39156E-04    433.56       -.34692E-04** at limit **
   8  norm           .0000        2.9777       -.34135E-06** at limit **
   9  Prefactor     .21094E-06    97.227        .79978E-05** at limit **
  10  norm           .0000        12.621        .42979E-06** at limit **
  11  Prefactor     .49678E-04    123.26        .81052E-05** at limit **
  12  norm          42.752        11.186        .26749E-06    .41449E-03
  13  norm           .0000        8.4519        .14875E-05** at limit **
  14  Prefactor     12.648        31.217       -.33330E-05   -.22456E-02
  15  Prefactor     7.3295        7.0291       -.17441E-06    .17147E-03
  16  Prefactor     6.8612        7.4878       -.94935E-07    .16746E-03
  17  Prefactor      .0000        7.2306        .84156E-06** at limit **
  18  norm           .0000        4.8262       -.80109E-06** at limit **
  19  Prefactor     16.700        1.7887       -.38181E-07   -.44045E-03
  20  Prefactor     41.266        43.798        .28043E-05    .31839E-01
  21  Prefactor     4.8185        10.607        .86239E-06    .18522E-02
  22  norm           .0000        2.5707        .80783E-06** at limit **
  23  Prefactor      .0000        10.525        .48559E-06** at limit **
  24  Prefactor     8.6143        14.012       -.18301E-05   -.14190E-01
  25  norm           .0000        2.3642        .10910E-05** at limit **
  26  norm          13.052        6.1404       -.17311E-06    .12548E-02
  27  norm          11.236        3.9076        .36602E-06   -.22351E-02
  28  Prefactor      .0000        1.7518       -.13382E-06** at limit **
  29  Normalizat    .94740        .45074        .29240E-04    .58810E-04
  30  Prefactor     .94080        .50782       -.36992E-04    .37918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.1453
  Prefactor  = 8.35715e-05
  Prefactor  = 1.57596e-07
  norm       = 9.29699
  Prefactor  = 2.93788e-05
  Prefactor  = 3.38618e-09
  Prefactor  = 3.91556e-05
  norm       = 0
  Prefactor  = 2.10942e-07
  norm       = 0
  Prefactor  = 4.96781e-05
  norm       = 42.7522
  norm       = 0
  Prefactor  = 12.6484
  Prefactor  = 7.32954
  Prefactor  = 6.86117
  Prefactor  = 0
  norm       = 0
  Prefactor  = 16.7001
  Prefactor  = 41.2665
  Prefactor  = 4.81847
  norm       = 0
  Prefactor  = 0
  Prefactor  = 8.61427
  norm       = 0
  norm       = 13.0524
  norm       = 11.236
  Prefactor  = 0
  Normalizat = 0.947404
  Prefactor  = 0.940801
 **********
 **   18 **HESSE 
 **********

 FCN=   2056.746     FROM HESSE     STATUS=OK           642 CALLS     3462 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.145        36.222        .13019E-03   -1.5554    
   2  Prefactor     .83572E-04    189.67        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15760E-06    126.94        .80677E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.2970        16.745        .32814E-03   -1.5647    
   5  Prefactor     .29379E-04    160.35        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33862E-08    20.708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .39156E-04    479.74        .51481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        2.9642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .21094E-06    98.780        .90726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        12.627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .49678E-04    920.29        .99212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          42.752        11.240        .15305E-03   -1.5577    
  13  norm           .0000        8.4329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.648        33.796        .28887E-03   -1.5637    
  15  Prefactor     7.3295        7.0708        .37215E-03   -1.5654    
  16  Prefactor     6.8612        8.0000        .38382E-03   -1.5656    
  17  Prefactor      .0000        7.2367        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        4.8266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.700        27.852        .24524E-03   -1.5626    
  20  Prefactor     41.266        45.856        .15785E-03   -1.5579    
  21  Prefactor     4.8185        12.510        .44802E-03   -1.5664    
  22  norm           .0000        2.5709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor      .0000        10.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.6143        29.703        .34926E-03   -1.5649    
  25  norm           .0000        2.3649        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.052        11.401        .27690E-03   -1.5636    
  27  norm          11.236        19.597        .29825E-03   -1.5641    
  28  Prefactor      .0000        1.7505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .94740        .36374        .65653E-01   -.94814    
  30  Prefactor     .94080        .41402        .77217E-01   -.94730    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4877e-07
Minuit parameter uncertainties:
  1  36.2219
  2  0.251808
  3  0.00894602
  4  16.7454
  5  0.137277
  6  0.000527963
  7  0.274136
  8  2.10554e-06
  9  0.00912917
  10  2.20649e-05
  11  0.427703
  12  11.2397
  13  1.27205e-05
  14  33.7964
  15  7.07081
  16  8.00003
  17  1.01176e-05
  18  2.57747e-06
  19  27.8527
  20  45.8568
  21  12.5101
  22  2.29463e-06
  23  8.35634e-06
  24  29.7038
  25  3.76776e-07
  26  11.4005
  27  19.5967
  28  2.3759e-07
  29  0.364691
  30  0.415416
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.265e+01  3.380e+01  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.408e-01  4.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.474e-01  3.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/681419/likelihoodResults_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.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) = 2053.90462813
delta logL = 2.84149348323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2053.86361239
delta logL = 2.88250921641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83455       1.0000          .0000       .10000E+07
     2 'Index     '    4.3338       1.0000          .0000       10.000    
     3 'Normalizat'    .53542       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2614       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2053.864     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      314 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83456        7.2840        .42930E-03    .30774E-01
   2  Index         4.3339        2.2365        .38043E-01    .59315E-04
   3  Normalizat    .53568        .15109        .83651E-01    .13936E-04
   4  Prefactor     1.2614        .17847        .67401E-01    .84656E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.834561
  Index      = 4.33392
  Normalizat = 0.535678
  Prefactor  = 1.26141
 **********
 **   18 **HESSE 
 **********

 FCN=   2053.864     FROM HESSE     STATUS=OK            31 CALLS      345 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83456        3.0614        .19068E-05   -1.5690    
   2  Index         4.3339        1.4566        .16527E-03   -.13361    
   3  Normalizat    .53568        .45263        .37062E-03   -1.1079    
   4  Prefactor     1.2614        .52817        .29813E-03   -.84462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04787e-08
Minuit parameter uncertainties:
  1  3.06142
  2  1.47847
  3  0.455798
  4  0.530422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681419': 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) = 2053.86361065
delta logL = 2.88251095903

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  8.346e-01  3.061e+00  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  4.334e+00  1.478e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.261e+00  5.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  5.357e-01  4.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.82
Ra Dec: 185.046 34.538
Photon Index (Free Index): 4.33 +/- 1.48
Photon Flux (Free Index): 5.05e-07 +/- 2.60e-07
Energy Flux (Free Index): 7.19e-05 +/- 3.73e-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/681419/cmap_HighResolution_699148801_699408001_4FGL_J1220.1+3432_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.24e-02', comment='SUCCESS', energy_flux2='7.19e-05', dlogl='2.88e+00', photon_flux2='5.05e-07', job_status='DONE', time_completed='2023-03-02 00:48:52.652531', photon_index_error2='1.48', photon_index2='4.33', ts='0.16', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='2.96e-07', energy_flux_error2='3.73e-05', EG='0.95', time_epoch_completed='1677746932.65', return_code='0', job_id='681419', GAL2='1.26', EG2='0.54', return_code2='0', photon_flux_error2='2.60e-07', ts2='6.82', photon_index='2.11' WHERE bin_id='1774' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:48:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0007>
Subject: Job 681419: <4FGL_J1220.1+3432_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:20 2023
Job was executed on host(s) <bullet0007>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:22 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:22 2023
Terminated at Thu Mar  2 00:48:52 2023
Results reported at Thu Mar  2 00:48:52 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1774 185.046 34.5383 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+3432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   452.44 sec.
    Max Memory :                                 642 MB
    Average Memory :                             296.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            512 sec.

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

