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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1771
RA = 185.046, Dec = 34.5383
tmin = 698371201, tmax = 698630401
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='547556', job_status='RUN', time_executed='2023-02-21 00:51:20.482341', time_epoch_executed='1676969480.48' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/547556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/547556/ft1_4FGL_J1220.1+3432_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/547556/ft1_4FGL_J1220.1+3432_daily_bin1771.fits outfile=/scratch/kocevski/547556/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1771.fits ra=185.046 dec=34.5383 rad=12.0 tmin=698371201.0 tmax=698630401.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.08
user 2.85
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.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/547556/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.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.57
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 102

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/547556/ltcube_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.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/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits
.....................!
real 12.75
user 12.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/547556/ltcube_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.fits outfile=/scratch/kocevski/547556/expmap_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.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/547556/ltcube_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.fits
.....................!
real 190.28
user 185.24
sys 4.50

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/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits scfile=/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits outfile=/scratch/kocevski/547556/cmap_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits scfile=/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits outfile=/scratch/kocevski/547556/cmap_HighResolution_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/547556/Model_4FGL_J1220.1+3432_daily_bin1771.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/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits.....................!
real 21.15
user 19.81
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits', '/scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits', expMap='/scratch/kocevski/547556/expmap_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.fits', expCube='/scratch/kocevski/547556/ltcube_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/547556/Model_4FGL_J1220.1+3432_daily_bin1771.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/547556/ft1_filtered_4FGL_J1220.1+3432_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/547556/ft2_4FGL_J1220.1+3432_daily_bin1771.fits
Exposure map: /scratch/kocevski/547556/expmap_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.fits
Exposure cube: /scratch/kocevski/547556/ltcube_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/547556/Model_4FGL_J1220.1+3432_daily_bin1771.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) = 1176.93165786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6360.2       1.0000          .0000       .10000E+07
     2 'Prefactor '    90.424       1.0000          .0000       .10000E+07
     3 'Prefactor '    .88473       1.0000          .0000       .10000E+07
     4 'norm      '    .14125       1.0000          .0000       .10000E+07
     5 'Prefactor '    .81896       1.0000          .0000       .10000E+07
     6 'Prefactor '    .78554E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .81583       1.0000          .0000       .10000E+07
     8 'norm      '    .18467E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    206.52       1.0000          .0000       .10000E+07
    10 'norm      '    .19696E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .86103       1.0000          .0000       .10000E+07
    12 'norm      '    54.655       1.0000          .0000       .10000E+07
    13 'norm      '    14.651       1.0000          .0000       .10000E+07
    14 'Prefactor '    22.536       1.0000          .0000       .10000E+07
    15 'Prefactor '    .15886E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .24787E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16946E-04   1.0000          .0000       .10000E+07
    18 'norm      '    26.566       1.0000          .0000       .10000E+07
    19 'Prefactor '    .69077E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    75.520       1.0000          .0000       .10000E+07
    21 'Prefactor '    .58657E-03   1.0000          .0000       .10000E+07
    22 'norm      '    6.4737       1.0000          .0000       .10000E+07
    23 'Prefactor '    .13363E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .58619E-02   1.0000          .0000       .10000E+07
    25 'norm      '    .45131E-07   1.0000          .0000       .10000E+07
    26 'norm      '    43.568       1.0000          .0000       .10000E+07
    27 'norm      '    .24238E-02   1.0000          .0000       .10000E+07
    28 'Prefactor '    .11519E-02   1.0000          .0000       .10000E+07
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.8245       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=   1176.903     FROM MIGRAD    STATUS=CONVERGED    305 CALLS     2959 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6363.7        73.495        .12351E-06   -1.1314    
   2  Prefactor     81.184        185.00       -.27432E-05    .35027    
   3  Prefactor     .28202E-03    646.66        .14675E-05** at limit **
   4  norm           .0000        399.93        .70532E-07** at limit **
   5  Prefactor     .46809E-05    321.21       -.16749E-05** at limit **
   6  Prefactor     .55511E-10    249.43        .24281E-06** at limit **
   7  Prefactor     .46026E-01    2426.5        .89079E-05** at limit **
   8  norm           .0000        18.132        .25662E-07** at limit **
   9  Prefactor     229.84        371.72        .28118E-05    .28419    
  10  norm           .0000        131.76        .24482E-06** at limit **
  11  Prefactor     .84168E-04    476.86       -.16354E-05** at limit **
  12  norm          54.107        20.618       -.48771E-07   -.18942E-02
  13  norm          14.840        15.477        .10283E-08    .11076E-03
  14  Prefactor     19.439        42.449        .75793E-06    .52677E-03
  15  Prefactor      .0000        7.2439       -.26682E-07** at limit **
  16  Prefactor      .0000        4.6864       -.70008E-08** at limit **
  17  Prefactor      .0000        13.018       -.26602E-07** at limit **
  18  norm          26.554        22.267       -.34925E-07   -.69539E-03
  19  Prefactor      .0000        22.616        .14840E-06** at limit **
  20  Prefactor     73.549        72.737        .10529E-05   -.49002E-01
  21  Prefactor      .0000        5.7413       -.12043E-07** at limit **
  22  norm          6.4644        11.034       -.41477E-08    .17153E-03
  23  Prefactor      .0000        29.531        .36969E-07** at limit **
  24  Prefactor      .0000        10.028        .21134E-07** at limit **
  25  norm           .0000        2.8853        .41508E-09** at limit **
  26  norm          43.503        12.642        .54843E-07    .88598E-03
  27  norm          .55511E-10    19.538        .30178E-06** at limit **
  28  Prefactor      .0000        6.3845        .36245E-07** at limit **
  29  Normalizat    .10000E-01    .28744        .85568E-05** at limit **
  30  Prefactor     1.8311        .38852       -.14280E-05    .26415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6363.71
  Prefactor  = 81.1836
  Prefactor  = 0.000282019
  norm       = 0
  Prefactor  = 4.68087e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 0.0460261
  norm       = 0
  Prefactor  = 229.836
  norm       = 0
  Prefactor  = 8.41681e-05
  norm       = 54.1073
  norm       = 14.8404
  Prefactor  = 19.4394
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 26.5542
  Prefactor  = 0
  Prefactor  = 73.5489
  Prefactor  = 0
  norm       = 6.46437
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 43.5031
  norm       = 5.55112e-11
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 1.83109
 **********
 **   18 **HESSE 
 **********

 FCN=   1176.903     FROM HESSE     STATUS=OK           632 CALLS     3591 TOTAL
                     EDM=   .11E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6363.7        4842.5        .12579E-04   -1.4111    
   2  Prefactor     81.184        12805.        .10517E-03   -1.5528    
   3  Prefactor     .28202E-03    646.19        .46822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        399.95        .12932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .46809E-05    320.80        .51532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    249.40        .14545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .46026E-01    2429.8        .51762E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        18.141        .17140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     229.84        372.09        .69592E-04   -1.5405    
  10  norm           .0000        131.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .84168E-04    476.53        .48492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          54.107        20.768        .13527E-03   -1.5561    
  13  norm          14.840        15.474        .26141E-03   -1.5631    
  14  Prefactor     19.439        42.547        .21071E-03   -1.5620    
  15  Prefactor      .0000        7.2504        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        4.6840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        13.014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          26.554        22.285        .19405E-03   -1.5605    
  19  Prefactor      .0000        22.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     73.549        72.676        .11508E-03   -1.5536    
  21  Prefactor      .0000        5.7513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.4644        11.042        .39421E-03   -1.5657    
  23  Prefactor      .0000        29.539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        10.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        2.8860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          43.503        12.667        .15151E-03   -1.5576    
  27  norm          .55511E-10    19.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        6.3630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .24922        .25725       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.8311        .41589        .65877E-01   -.68643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0113917
Minuit parameter uncertainties:
  1  4845.48
  2  2043.66
  3  0.853876
  4  6.28359e-05
  5  0.0775054
  6  0.000219529
  7  21.159
  8  5.72919e-06
  9  372.124
  10  4.22411e-05
  11  0.400574
  12  20.7676
  13  15.4742
  14  42.5481
  15  3.40579e-06
  16  2.09473e-07
  17  3.21656e-06
  18  22.2855
  19  4.11886e-05
  20  72.677
  21  1.20591e-06
  22  11.0418
  23  1.46842e-05
  24  4.36156e-06
  25  2.56149e-07
  26  12.6674
  27  7.1136e-05
  28  5.04715e-06
  29  6.76082e-07
  30  0.416693
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.944e+01  4.255e+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:  1.831e+00  4.167e-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:  1.000e-02  6.761e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/547556/likelihoodResults_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.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) = 1176.88378316
delta logL = 0.0189270639071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1176.87917164
delta logL = 0.023538584722

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1176.879     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      265 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.711        39.931        .10100E-04    .14577E-03
   2  Index         2.3888        1.3040        .80563E-03   -.27941E-05
   3  Normalizat    .10000E-01    .28153        .92251E-02** at limit **
   4  Prefactor     1.8234        .34483        .29134E-03    .23520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7114
  Index      = 2.38881
  Normalizat = 0.01
  Prefactor  = 1.82343
 **********
 **   18 **HESSE 
 **********

 FCN=   1176.879     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.711        39.670        .40400E-06   -1.5629    
   2  Index         2.3888        1.2957        .32225E-04   -.54947    
   3  Normalizat    .10000E-01    .28157        .18450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8234        .34476        .11654E-04   -.68841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34885e-11
Minuit parameter uncertainties:
  1  39.6707
  2  1.31648
  3  1.31133e-06
  4  0.345222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/547556': 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) = 1176.87917087
delta logL = 0.0235393610196

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.571e+01  3.967e+01  0.000e+00  1.000e+06 ( 1.000e-13)
300        Index:  2.389e+00  1.316e+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.823e+00  3.452e-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:  1.000e-02  1.311e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
Ra Dec: 185.046 34.538

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/547556/cmap_HighResolution_698371201_698630401_4FGL_J1220.1+3432_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-02', job_status='DONE', photon_flux_upper_limit='5.13e-07', time_completed='2023-02-21 00:58:08.469219', job_id='547556', GAL2='1.82', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1676969888.47', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='1.83', dlogl='2.35e-02', ts2='0.35', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1771' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:58:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 547556: <4FGL_J1220.1+3432_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 00:50:18 2023
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:50:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:50:18 2023
Terminated at Tue Feb 21 00:58:09 2023
Results reported at Tue Feb 21 00:58:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1771 185.046 34.5383 698371201 698630401 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 :                                   410.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   470 sec.
    Turnaround time :                            471 sec.

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

