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


Performing analysis on: 4FGL_J1220.1+7105_monthly_bin173
RA = 185.044, Dec = 71.092
tmin = 685411201, tmax = 688003201
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='483297', job_status='RUN', time_executed='2022-10-21 01:34:17.404880', time_epoch_executed='1666341257.4' WHERE source_name='4FGL J1220.1+7105' and cadence='monthly' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483297

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483297/ft1_4FGL_J1220.1+7105_monthly_bin173.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483297/ft1_4FGL_J1220.1+7105_monthly_bin173.fits outfile=/scratch/kocevski/483297/ft1_filteredMKT_4FGL_J1220.1+7105_monthly_bin173.fits ra=185.044 dec=71.092 rad=12.0 tmin=685411201.0 tmax=688003201.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 34.26
user 33.21
sys 0.77

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.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/483297/ft1_filteredMKT_4FGL_J1220.1+7105_monthly_bin173.fits evtable="EVENTS" outfile="/scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.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.85
user 0.65
sys 0.19

Number of photons that the gtmktime cut: 9249

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/483297/ltcube_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.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/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits
.....................!
real 112.98
user 111.85
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/483297/ltcube_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.fits outfile=/scratch/kocevski/483297/expmap_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.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/483297/ltcube_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.fits
.....................!
real 193.00
user 186.74
sys 5.05

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

Setting source of interest to:
4FGL J1220.1+7105 @ 185.044 71.092

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits scfile=/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits outfile=/scratch/kocevski/483297/cmap_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.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.044 yref=71.092 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.80
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits scfile=/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits outfile=/scratch/kocevski/483297/cmap_HighResolution_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.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.044 yref=71.092 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.82
user 0.62
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483297/Model_4FGL_J1220.1+7105_monthly_bin173.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/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits.....................!
real 906.56
user 899.59
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits', '/scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits', expMap='/scratch/kocevski/483297/expmap_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.fits', expCube='/scratch/kocevski/483297/ltcube_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/483297/Model_4FGL_J1220.1+7105_monthly_bin173.xml', optimizer='MINUIT')

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

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  6.062e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/483297/ft1_filtered_4FGL_J1220.1+7105_monthly_bin173.fits
Spacecraft file(s): /scratch/kocevski/483297/ft2_4FGL_J1220.1+7105_monthly_bin173.fits
Exposure map: /scratch/kocevski/483297/expmap_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.fits
Exposure cube: /scratch/kocevski/483297/ltcube_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/483297/Model_4FGL_J1220.1+7105_monthly_bin173.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) = 98775.7861533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21368E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    9.4245       1.0000          .0000       .10000E+07
     3 'norm      '    4.1416       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.3291       1.0000          .0000       .10000E+07
     5 'Prefactor '    .45519E-08   1.0000          .0000       .10000E+07
     6 'norm      '    3.3579       1.0000          .0000       .10000E+07
     7 'norm      '    1.6097       1.0000          .0000       .10000E+07
     8 'Prefactor '    .22147       1.0000          .0000       .10000E+07
     9 'Prefactor '    .71235       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.1570       1.0000          .0000       .10000E+07
    11 'norm      '    .31364E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.9746       1.0000          .0000       .10000E+07
    13 'norm      '    .41352       1.0000          .0000       .10000E+07
    14 'Prefactor '    5.2019       1.0000          .0000       .10000E+07
    15 'Prefactor '    .26779       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.5519       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.1373       1.0000          .0000       .10000E+07
    18 'norm      '    1.2158       1.0000          .0000       .10000E+07
    19 'norm      '    2.7966       1.0000          .0000       .10000E+07
    20 'Prefactor '    5.0510       1.0000          .0000       .10000E+07
    21 'Prefactor '    .13467E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.757       1.0000          .0000       .10000E+07
    23 'Prefactor '    10.749       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.6742       1.0000          .0000       .10000E+07
    25 'Prefactor '    .13262E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .74847E-05   1.0000          .0000       .10000E+07
    27 'Prefactor '    .27857E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .29268E-03   1.0000          .0000       .10000E+07
    29 'Normalizat'    1.0697       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96074       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98775.70     FROM MIGRAD    STATUS=CONVERGED    868 CALLS     2993 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .96528         .0000    ** at limit **
   2  Prefactor     9.4208        6.5007         .0000        .40528E-02
   3  norm          4.1478        1.4599         .0000        .52921E-01
   4  Prefactor     .74940E-08    8.3822         .0000    ** at limit **
   5  Prefactor      .0000        .26919         .0000    ** at limit **
   6  norm          3.3578        .24247         .0000       -.18222E-02
   7  norm          1.6116        .61775         .0000        .11312    
   8  Prefactor     .20295        .89154         .0000    ** at limit **
   9  Prefactor     .70975        2.5378         .0000        .38205    
  10  Prefactor     2.1568        .74573         .0000        .13700E-01
  11  norm           .0000        .49314         .0000    ** at limit **
  12  Prefactor     1.9759        2.7627         .0000        .49786E-01
  13  norm          .41312        .90055         .0000        5.2585    
  14  Prefactor     5.2015        1.8117         .0000        .20476    
  15  Prefactor     .26658        1.0811         .0000        .52659E-01
  16  Prefactor     1.5340        9.6881         .0000        .26225E-01
  17  Prefactor     2.1336        3.4409         .0000        .19832E-01
  18  norm          1.2156        .80672         .0000        .10035    
  19  norm          2.7960        .83341         .0000        .47345E-01
  20  Prefactor     5.0437        5.1761         .0000        .12490E-01
  21  Prefactor      .0000        33.854         .0000    ** at limit **
  22  Prefactor     13.755        7.1115         .0000       -.24102E-01
  23  Prefactor     10.720        6.0263         .0000        .56437E-02
  24  Prefactor     1.6734        .90624         .0000        .98318E-01
  25  Prefactor      .0000        1.8036         .0000    ** at limit **
  26  Prefactor     .44409E-09    2.3430         .0000    ** at limit **
  27  Prefactor     .16653E-09    1.9397         .0000    ** at limit **
  28  Prefactor      .0000        3.9139         .0000    ** at limit **
  29  Normalizat    1.0697        .42301E-01     .0000        .25675E-03
  30  Prefactor     .96087        .42405E-01     .0000        .30202E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 9.42079
  norm       = 4.14782
  Prefactor  = 7.49401e-09
  Prefactor  = 0
  norm       = 3.3578
  norm       = 1.61156
  Prefactor  = 0.202954
  Prefactor  = 0.709751
  Prefactor  = 2.1568
  norm       = 0
  Prefactor  = 1.9759
  norm       = 0.413116
  Prefactor  = 5.20145
  Prefactor  = 0.266578
  Prefactor  = 1.53402
  Prefactor  = 2.13355
  norm       = 1.21556
  norm       = 2.79596
  Prefactor  = 5.04366
  Prefactor  = 0
  Prefactor  = 13.7553
  Prefactor  = 10.7198
  Prefactor  = 1.67342
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Normalizat = 1.06973
  Prefactor  = 0.960865
 **********
 **   18 **HESSE 
 **********

 FCN=   98775.70     FROM HESSE     STATUS=OK           620 CALLS     3613 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .87992        .70696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.4208        6.4304        .13048E-04   -1.5647    
   3  norm          4.1478        1.7597        .16734E-04   -1.5667    
   4  Prefactor     .74940E-08    7.3489        .30709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .27073        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3578        .24073        .37055E-05   -1.5671    
   7  norm          1.6116        .60892        .13589E-04   -1.5683    
   8  Prefactor     .20295        12.394        .42527E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .70975        2.5402        .11942E-03   -1.5691    
  10  Prefactor     2.1568        .74485        .15482E-04   -1.5679    
  11  norm           .0000        .49400        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9759        2.6617        .29500E-04   -1.5680    
  13  norm          .41312        .87570        .17587E-03   -1.5695    
  14  Prefactor     5.2015        1.7840        .88102E-04   -1.5662    
  15  Prefactor     .26658        8.2565        .60057E-03   -1.5698    
  16  Prefactor     1.5340        9.7151        .34183E-04   -1.5683    
  17  Prefactor     2.1336        3.4288        .28192E-04   -1.5679    
  18  norm          1.2156        .79153        .22217E-04   -1.5686    
  19  norm          2.7960        .81737        .13896E-04   -1.5675    
  20  Prefactor     5.0437        5.1760        .17887E-04   -1.5663    
  21  Prefactor      .0000        34.721        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.755        7.1113        .10792E-04   -1.5634    
  23  Prefactor     10.720        6.0236        .12214E-04   -1.5642    
  24  Prefactor     1.6734        .90255        .20944E-04   -1.5682    
  25  Prefactor      .0000        1.8224        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .44409E-09    2.3799        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .16653E-09    1.9415        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor      .0000        3.9165        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0697        .48014E-01    .23297E-03   -.90730    
  30  Prefactor     .96087        .48495E-01    .24900E-03   -.94046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83362e-06
Minuit parameter uncertainties:
  1  2.84036e-06
  2  6.4304
  3  1.75968
  4  0.00047022
  5  4.60989e-07
  6  0.24073
  7  0.608925
  8  3.17201
  9  2.54016
  10  0.744847
  11  1.89588e-07
  12  2.66165
  13  0.875703
  14  1.78402
  15  2.96715
  16  7.72095
  17  3.42881
  18  0.791535
  19  0.817368
  20  5.17599
  21  5.09599e-05
  22  7.1113
  23  6.02357
  24  0.902548
  25  1.00854e-05
  26  6.38393e-05
  27  3.87581e-05
  28  8.83358e-06
  29  0.0480161
  30  0.0484976
Done.

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

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  1.216e+00  7.915e-01  0.000e+00  1.000e+06 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  9.609e-01  4.850e-02  0.000e+00  1.000e+01 ( 1.000e+00)
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.070e+00  4.802e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.42
Ra Dec: 185.044 71.092
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 6.04e-09 +/- 3.93e-09
Energy Flux (Fixed Index): 2.44e-06 +/- 1.59e-06

TS (Fixed Index): 3.42
Ra Dec: 185.044 71.092
Photon Flux Upper Limit: 1.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/483297/likelihoodResults_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.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) = 98775.6867094
delta logL = 0.0091825821728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 98775.6865202
delta logL = 0.00937178738241

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   98775.69     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2243        .80100        .21937E-04    .13599E-02
   2  alpha         2.2900        .74501        .64725E-01   -.12536E-03
   3  Normalizat    1.0687        .46939E-01    .23307E-03    .39023E-05
   4  Prefactor     .96141        .47472E-01    .24894E-03    .43842E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2243
  alpha      = 2.28995
  Normalizat = 1.06873
  Prefactor  = 0.961414
 **********
 **   18 **HESSE 
 **********

 FCN=   98775.69     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2243        .78669        .87747E-06   -1.5686    
   2  alpha         2.2900        .73600        .12945E-01   -.84117E-01
   3  Normalizat    1.0687        .46904E-01    .93226E-05   -.90762    
   4  Prefactor     .96141        .47466E-01    .99575E-05   -.94027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51708e-13
Minuit parameter uncertainties:
  1  0.786689
  2  0.747147
  3  0.046906
  4  0.0474679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483297': 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) = 98775.6865202
delta logL = 0.00937178931781

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  1.224e+00  7.867e-01  0.000e+00  1.000e+06 ( 1.000e-12)
402        alpha:  2.290e+00  7.471e-01  0.000e+00  5.000e+00 ( 1.000e+00)
403         beta:  1.310e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  9.614e-01  4.747e-02  0.000e+00  1.000e+01 ( 1.000e+00)
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.069e+00  4.691e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 185.044 71.092
Photon Index (Free Index): 2.29 +/- 0.75
Photon Flux (Free Index): 6.80e-09 +/- 6.99e-09
Energy Flux (Free Index): 2.45e-06 +/- 1.58e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/483297/cmap_HighResolution_685411201_688003201_4FGL_J1220.1+7105_monthly_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-06', comment='SUCCESS', photon_flux='6.04e-09', energy_flux2='2.45e-06', photon_flux_error='3.93e-09', dlogl='9.37e-03', energy_flux='2.44e-06', photon_flux2='6.80e-09', job_status='DONE', time_completed='2022-10-21 04:19:10.022915', photon_index_error2='0.75', photon_index2='2.29', ts='3.42', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.41e-08', energy_flux_error2='1.58e-06', EG='1.07', time_epoch_completed='1666351150.02', return_code='0', job_id='483297', GAL2='0.96', EG2='1.07', return_code2='0', energy_flux_error='1.59e-06', photon_flux_error2='6.99e-09', ts2='3.43', photon_index='2.19' WHERE bin_id='173' AND source_name='4FGL J1220.1+7105' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 21 04:19:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 483297: <4FGL_J1220.1+7105_monthly_bin173> in cluster <slac> Done

Job <4FGL_J1220.1+7105_monthly_bin173> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Oct 21 01:30:38 2022
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 21 01:30:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 21 01:30:40 2022
Terminated at Fri Oct 21 04:19:11 2022
Results reported at Fri Oct 21 04:19:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+7105_monthly_bin173 185.044 71.092 685411201 688003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+7105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9834.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             470.99 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10110 sec.
    Turnaround time :                            10113 sec.

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

