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 25 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1220.1+7105_weekly_bin715
RA = 185.044, Dec = 71.092
tmin = 671414401, tmax = 672019201
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='934694', job_status='RUN', time_executed='2022-04-19 02:29:06.371606', time_epoch_executed='1650360546.37' WHERE source_name='4FGL J1220.1+7105' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934694

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934694/ft1_4FGL_J1220.1+7105_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934694/ft1_4FGL_J1220.1+7105_weekly_bin715.fits outfile=/scratch/kocevski/934694/ft1_filteredMKT_4FGL_J1220.1+7105_weekly_bin715.fits ra=185.044 dec=71.092 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.60
user 7.27
sys 0.32

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.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/934694/ft1_filteredMKT_4FGL_J1220.1+7105_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934694/ft1_filtered_4FGL_J1220.1+7105_weekly_bin715.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.56
user 0.37
sys 0.18

Number of photons that the gtmktime cut: 1566

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934694/ft1_filtered_4FGL_J1220.1+7105_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934694/ltcube_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.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/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits
.....................!
real 28.44
user 27.96
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934694/ft1_filtered_4FGL_J1220.1+7105_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934694/ltcube_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.fits outfile=/scratch/kocevski/934694/expmap_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.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/934694/ltcube_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.fits
.....................!
real 194.24
user 188.26
sys 5.57

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/934694/ft1_filtered_4FGL_J1220.1+7105_weekly_bin715.fits scfile=/scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits outfile=/scratch/kocevski/934694/cmap_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.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.59
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934694/ft1_filtered_4FGL_J1220.1+7105_weekly_bin715.fits scfile=/scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits outfile=/scratch/kocevski/934694/cmap_HighResolution_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.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.64
user 0.44
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934694/ft1_filtered_4FGL_J1220.1+7105_weekly_bin715.fits', '/scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits', expMap='/scratch/kocevski/934694/expmap_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.fits', expCube='/scratch/kocevski/934694/ltcube_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934694/Model_4FGL_J1220.1+7105_weekly_bin715.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  1.000e-04  1.000e+04 ( 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  0.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/934694/ft1_filtered_4FGL_J1220.1+7105_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934694/ft2_4FGL_J1220.1+7105_weekly_bin715.fits
Exposure map: /scratch/kocevski/934694/expmap_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934694/ltcube_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934694/Model_4FGL_J1220.1+7105_weekly_bin715.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 16742.3462627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .40402       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .39198       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3620       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0421       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.197       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3830       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33282       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9901       1.0000         .10000E-03   10000.    
    15 'norm      '    .10262E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3847       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.566       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.520       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .89043       1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.609       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.548       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3897       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.4372       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.3454       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .47567       1.0000         .10000E-03   10000.    
    32 'Prefactor '    4.4819       1.0000         .10000E-03   10000.    
    33 'Prefactor '    22.229       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.2251       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .83948       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16742.00     FROM MIGRAD    STATUS=CONVERGED   1005 CALLS     4471 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5993       -.23235E-07** at limit **
   2  Prefactor     .10000E-03    4.4978       -.20394E-06** at limit **
   3  Prefactor     .10000E-03    17.068        .28345E-05** at limit **
   4  norm          .39920        1.2278        .93958E-07   -.46990E-04
   5  Prefactor     .10000E-03    114.29       -.32258E-05** at limit **
   6  Prefactor     .39193        1.9052        .60796E-07   -.64257E-03
   7  norm          1.3619        .47505        .99345E-09   -.17585E-03
   8  norm          2.0420        2.4675       -.93565E-07   -.24675E-03
   9  Prefactor     .10000E-03    5.3082       -.20422E-05** at limit **
  10  Prefactor     11.196        6.3172        .14539E-06   -.11332E-02
  11  Prefactor     6.3840        8.8524       -.12078E-06   -.19827E-04
  12  Prefactor     .31786        1.0792       -.86922E-07   -.70927E-05
  13  norm          2.6541        3.5119        .45962E-07   -.14683E-02
  14  Prefactor     6.9902        5.5796        .94182E-07   -.59658E-03
  15  norm          .10000E-03    1.7476        .50854E-06** at limit **
  16  Prefactor     7.3794        5.5351       -.60049E-07   -.96720E-03
  17  Prefactor     .10000E-03    16.755        .29764E-05** at limit **
  18  Prefactor     18.553        28.076       -.48370E-05   -.14534E-03
  19  Prefactor     15.513        14.721        .16620E-05    .73761E-04
  20  Prefactor     .10000E-03    22.094       -.12339E-04** at limit **
  21  norm          .10000E-03    1.0667        .55849E-07** at limit **
  22  norm          .88986        1.6212       -.86000E-08   -.31350E-03
  23  Prefactor     35.607        21.122        .77312E-07    .12496E-05
  24  Prefactor     .10000E-03    7.0612        .58003E-06** at limit **
  25  Prefactor     19.543        19.876        .15985E-05   -.38293E-05
  26  Prefactor     6.3885        14.167        .59596E-07   -.32490E-04
  27  Prefactor     .10000E-03    1.0099        .62436E-08** at limit **
  28  Prefactor     4.4346        9.8313       -.21040E-06   -.11876E-03
  29  Prefactor     1.3453        2.8086        .24398E-07   -.20545E-03
  30  Prefactor     .10016E-03    2.0367        .62525E-06** at limit **
  31  Prefactor     .50027        3.2815        .17948E-05   -.13446E-02
  32  Prefactor     4.4804        22.187        .43383E-07   -.11035E-04
  33  Prefactor     22.228        21.970       -.72429E-08   -.36907E-04
  34  Normalizat    1.2251        .10523       -.38038E-06   -.57001E-03
  35  Prefactor     .83940        .10145        .95403E-07   -.49749E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.399198
  Prefactor  = 0.0001
  Prefactor  = 0.391931
  norm       = 1.36193
  norm       = 2.04204
  Prefactor  = 0.0001
  Prefactor  = 11.1963
  Prefactor  = 6.38395
  Prefactor  = 0.317855
  norm       = 2.65408
  Prefactor  = 6.99022
  norm       = 0.000100003
  Prefactor  = 7.37939
  Prefactor  = 0.0001
  Prefactor  = 18.5529
  Prefactor  = 15.5126
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 0.889858
  Prefactor  = 35.6071
  Prefactor  = 0.0001
  Prefactor  = 19.5428
  Prefactor  = 6.38848
  Prefactor  = 0.0001
  Prefactor  = 4.43461
  Prefactor  = 1.34529
  Prefactor  = 0.000100161
  Prefactor  = 0.500274
  Prefactor  = 4.48045
  Prefactor  = 22.2276
  Normalizat = 1.22515
  Prefactor  = 0.839401
 **********
 **   18 **HESSE 
 **********

 FCN=   16742.00     FROM HESSE     STATUS=OK           796 CALLS     5267 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .39920        3.3005        .23352E-02   -1.5582    
   5  Prefactor     .10000E-03    114.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .39193        1.9849        .32664E-03   -1.5583    
   7  norm          1.3619        .46622        .44806E-04   -1.5475    
   8  norm          2.0420        2.4130        .13335E-03   -1.5422    
   9  Prefactor     .10000E-03    5.3875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.196        6.4096        .59864E-03   -1.5039    
  11  Prefactor     6.3840        8.8396        .15887E-03   -1.5203    
  12  Prefactor     .31786        3.5253        .23631E-02   -1.5595    
  13  norm          2.6541        5.5952        .12510E-02   -1.5382    
  14  Prefactor     6.9902        5.4586        .75869E-03   -1.5179    
  15  norm          .10000E-03    5.1600        .31277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3794        5.4018        .73796E-03   -1.5165    
  17  Prefactor     .10000E-03    16.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.553        28.167        .92954E-04   -1.4846    
  19  Prefactor     15.513        14.773        .10167E-03   -1.4920    
  20  Prefactor     .10000E-03    22.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3168        .25881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .88986        1.5300        .19766E-03   -1.5519    
  23  Prefactor     35.607        21.133        .67158E-04   -1.4514    
  24  Prefactor     .10000E-03    7.0638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.543        19.857        .90589E-04   -1.4824    
  26  Prefactor     6.3885        14.073        .15878E-03   -1.5202    
  27  Prefactor     .10000E-03    1.0254        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.4346        9.7851        .19117E-03   -1.5287    
  29  Prefactor     1.3453        2.7588        .30322E-03   -1.5476    
  30  Prefactor     .10016E-03    2.3666        .56984E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .50027        17.200        .42038E-02   -1.5567    
  32  Prefactor     4.4804        22.143        .19019E-03   -1.5285    
  33  Prefactor     22.228        21.969        .84956E-04   -1.4765    
  34  Normalizat    1.2251        .12198        .22504E-03   -.85829    
  35  Prefactor     .83940        .11724        .26218E-03   -.98292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2791e-07
Minuit parameter uncertainties:
  1  7.77857e-07
  2  3.8127e-06
  3  0.000132269
  4  2.29557
  5  0.00036582
  6  1.76391
  7  0.466225
  8  2.41309
  9  4.13637e-05
  10  6.41002
  11  8.84142
  12  2.11694
  13  5.59626
  14  5.45898
  15  0.000248864
  16  5.40212
  17  0.000108625
  18  28.1873
  19  14.7765
  20  0.000654707
  21  4.74917e-06
  22  1.53011
  23  21.1373
  24  1.76714e-05
  25  19.8637
  26  14.0806
  27  8.33457e-07
  28  9.78859
  29  2.75909
  30  0.00123294
  31  5.86803
  32  19.9324
  33  21.9773
  34  0.122005
  35  0.117275
Done.

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

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  1.000e-04  4.749e-06  1.000e-04  1.000e+04 ( 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  0.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:  8.394e-01  1.173e-01  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.225e+00  1.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.044 71.092
Photon Flux Upper Limit: 2.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934694/likelihoodResults_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.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): 102
logL (Free Index) = 16742.0052605
delta logL = -0.00205241138246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16742.0030937
delta logL = 0.000114387810754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7066       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83938       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   16741.98     FROM MIGRAD    STATUS=FAILED       127 CALLS      337 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98936E-01    78.076        .11471E-02    .20152E-01
   2  alpha         3.9201        4.0391        .12332        .51905E-03
   3  Normalizat    1.2183        .51518E-01    .22559E-03   -.66521E-05
   4  Prefactor     .84299        .49019E-01    .26168E-03    .33018E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   16741.98     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      434 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98936E-01    78.076        .86411E-04    .20152E-01
   2  alpha         3.9201        4.0391        .53425E-02    .51905E-03
   3  Normalizat    1.2183        .51518E-01    .52478E-04   -.66521E-05
   4  Prefactor     .84299        .49019E-01    .28935E-04    .33018E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16741.98     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      466 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98924E-01    2.5457        .22942E-03   -.11346E-02
   2  alpha         3.9201        4.3952        .24664E-01   -.13998E-04
   3  Normalizat    1.2183        .11780        .90237E-05   -.51403E-04
   4  Prefactor     .84299        .11354        .10467E-04    .30846E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.098924
  alpha      = 3.92013
  Normalizat = 1.21831
  Prefactor  = 0.84299
 **********
 **   18 **HESSE 
 **********

 FCN=   16741.98     FROM HESSE     STATUS=OK            25 CALLS      491 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98924E-01    1.0544        .91769E-05   -1.5645    
   2  alpha         3.9201        4.2645        .98655E-03    .60414    
   3  Normalizat    1.2183        .11759        .18047E-05   -.86039    
   4  Prefactor     .84299        .11344        .20934E-05   -.98163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49243e-10
Minuit parameter uncertainties:
  1  0.645616
  2  3.30841
  3  0.117612
  4  0.113473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934694': 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) = 16741.9783768
delta logL = 0.0248313472002

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  9.892e-02  6.456e-01  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  3.920e+00  3.308e+00  0.000e+00  5.000e+00 ( 1.000e+00)
403         beta:  1.310e-01  0.000e+00  0.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:  8.430e-01  1.135e-01  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.218e+00  1.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.044 71.092

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/934694/cmap_HighResolution_671414401_672019201_4FGL_J1220.1+7105_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-05', job_status='DONE', photon_flux_upper_limit='2.58e-08', time_completed='2022-04-19 03:14:52.996232', job_id='934694', GAL2='0.84', fit_tolerance='1e-08', EG2='1.22', EG='1.23', time_epoch_completed='1650363293.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.48e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='715' AND source_name='4FGL J1220.1+7105' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:14:53 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 930959: <4FGL_J1220.1+7105_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1220.1+7105_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:48 2022
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:15:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:15:03 2022
Terminated at Tue Apr 19 03:02:49 2022
Results reported at Tue Apr 19 03:02:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+7105_weekly_bin715 185.044 71.092 671414401 672019201 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 :                                   2761.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             329.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2866 sec.
    Turnaround time :                            10561 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 934694: <4FGL_J1220.1+7105_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1220.1+7105_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:58 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:28:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:28:33 2022
Terminated at Tue Apr 19 03:14:53 2022
Results reported at Tue Apr 19 03:14:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+7105_weekly_bin715 185.044 71.092 671414401 672019201 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 :                                   2745.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             348.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2780 sec.
    Turnaround time :                            10615 sec.

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

