/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7368
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin506
RA = 185.345, Dec = 30.1677
tmin = 370483201, tmax = 370742401
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='516636', job_status='RUN', time_executed='2021-09-05 09:11:40.226308', time_epoch_executed='1630858300.23' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516636/ft1_4FGL_J1221.3+3010_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516636/ft1_4FGL_J1221.3+3010_daily_bin506.fits outfile=/scratch/kocevski/516636/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin506.fits ra=185.345 dec=30.1677 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.48
user 18.94
sys 0.50

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.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/516636/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin506.fits evtable="EVENTS" outfile="/scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/516636/ltcube_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.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/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits
.....................!
real 10.11
user 9.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/516636/ltcube_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.fits outfile=/scratch/kocevski/516636/expmap_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.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/516636/ltcube_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.fits
.....................!
real 191.71
user 186.52
sys 4.78

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

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits scfile=/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits outfile=/scratch/kocevski/516636/cmap_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.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.345 yref=30.1677 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits scfile=/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits outfile=/scratch/kocevski/516636/cmap_HighResolution_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.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.345 yref=30.1677 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/516636/Model_4FGL_J1221.3+3010_daily_bin506.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/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits....................!
real 28.76
user 27.43
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits', '/scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits', expMap='/scratch/kocevski/516636/expmap_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.fits', expCube='/scratch/kocevski/516636/ltcube_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516636/Model_4FGL_J1221.3+3010_daily_bin506.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/516636/ft1_filtered_4FGL_J1221.3+3010_daily_bin506.fits
Spacecraft file(s): /scratch/kocevski/516636/ft2_4FGL_J1221.3+3010_daily_bin506.fits
Exposure map: /scratch/kocevski/516636/expmap_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.fits
Exposure cube: /scratch/kocevski/516636/ltcube_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516636/Model_4FGL_J1221.3+3010_daily_bin506.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) = 2239.51776476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .61213       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49997E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.212       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5391       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.942       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2340       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .58222E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5270       1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.256       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3657       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.0890       1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.341       1.0000         .10000E-03   10000.    
    27 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    18.681       1.0000         .10000E-03   10000.    
    29 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0722       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .46919       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2239.479     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4220 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.203       -.21626E-06** at limit **
   2  Prefactor     .10000E-03    7.2981        .11733E-06** at limit **
   3  Prefactor     .67022        14.409        .66742E-05    .52786E-03
   4  Prefactor     .10070E-03    317.13        .18019E-04** at limit **
   5  Prefactor     6.5130        4.8914        .44768E-06    .27747E-03
   6  Prefactor     10.169        43.626        .13666E-05    .16621E-03
   7  Prefactor     .10000E-03    25.856       -.73577E-06** at limit **
   8  norm          2.5389        2.2393       -.53193E-07   -.60600E-03
   9  Prefactor     .63872        9.6154        .17239E-05    .15088E-04
  10  Prefactor     .10000E-03    18.449        .47874E-06** at limit **
  11  norm          11.936        8.8965       -.80245E-06   -.85588E-03
  12  Prefactor     .10000E-03    11.771        .49460E-06** at limit **
  13  Prefactor     5.2329        6.9562       -.44928E-06   -.65018E-03
  14  Prefactor     .39762E-01    92.818        .17990E-04   -.20099E-03
  15  Prefactor     .10000E-03    7.6291        .59880E-07** at limit **
  16  norm          2.5273        .90741       -.66294E-07   -.11731E-02
  17  norm          .10000E-03    13.383        .13186E-06** at limit **
  18  Prefactor     56.226        31.615       -.59787E-06    .84395E-04
  19  Prefactor     .10000E-03    16.231        .43211E-06** at limit **
  20  Prefactor     .10000E-03    43.530        .12048E-05** at limit **
  21  Prefactor     1.3764        59.062        .18678E-05    .88144E-04
  22  Prefactor     .10000E-03    7.5291        .80342E-06** at limit **
  23  norm          .10000E-03    2.9251        .20025E-06** at limit **
  24  Prefactor     .10000E-03    169.54       -.11814E-05** at limit **
  25  norm          3.0904        7.3047        .47218E-06    .20466E-03
  26  Prefactor     47.369        36.468        .27885E-06    .11562E-03
  27  norm          .10000E-03    7.2535        .48001E-06** at limit **
  28  norm          18.696        10.348        .28721E-06    .48448E-03
  29  norm          .10000E-03    11.059        .90892E-06** at limit **
  30  Normalizat    1.0713        .34721        .28148E-05    .21663E-04
  31  Prefactor     .46926        .34862       -.65362E-05    .51926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.670218
  Prefactor  = 0.000100702
  Prefactor  = 6.51304
  Prefactor  = 10.1694
  Prefactor  = 0.0001
  norm       = 2.53889
  Prefactor  = 0.638722
  Prefactor  = 0.0001
  norm       = 11.9358
  Prefactor  = 0.0001
  Prefactor  = 5.23293
  Prefactor  = 0.0397618
  Prefactor  = 0.0001
  norm       = 2.52728
  norm       = 0.0001
  Prefactor  = 56.2262
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.37644
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09039
  Prefactor  = 47.3685
  norm       = 0.0001
  norm       = 18.696
  norm       = 0.000100001
  Normalizat = 1.07132
  Prefactor  = 0.469262
 **********
 **   18 **HESSE 
 **********

 FCN=   2239.479     FROM HESSE     STATUS=OK           622 CALLS     4842 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.210        .14767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.3020        .12486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .67022        26.123        .23715E-02   -1.5544    
   4  Prefactor     .10070E-03    378.78        .63634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5130        4.8205        .41648E-03   -1.5197    
   6  Prefactor     10.169        42.765        .12539E-03   -1.5070    
   7  Prefactor     .10000E-03    25.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5389        2.2156        .61802E-04   -1.5389    
   9  Prefactor     .63872        32.809        .27126E-02   -1.5548    
  10  Prefactor     .10000E-03    18.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.936        9.0271        .92237E-04   -1.5017    
  12  Prefactor     .10000E-03    11.866        .15868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2329        7.0248        .11009E-03   -1.5250    
  14  Prefactor     .39762E-01    106.96        .16299E-02   -1.5668    
  15  Prefactor     .10000E-03    7.6396        .12766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5273        .90594        .25387E-04   -1.5390    
  17  norm          .10000E-03    13.577        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     56.226        32.073        .26742E-03   -1.4207    
  19  Prefactor     .10000E-03    16.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3764        59.781        .37339E-03   -1.5473    
  22  Prefactor     .10000E-03    7.5824        .12706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9277        .79056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    169.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.0904        7.2488        .18688E-03   -1.5356    
  26  Prefactor     47.369        36.397        .58277E-04   -1.4330    
  27  norm          .10000E-03    7.2650        .12445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          18.696        10.378        .92667E-04   -1.4843    
  29  norm          .10000E-03    11.107        .15380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0713        .35289        .22914E-03   -.90678    
  31  Prefactor     .46926        .35274        .36600E-03   -1.1341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43887e-09
Minuit parameter uncertainties:
  1  4.00625e-05
  2  9.95879e-06
  3  8.37187
  4  0.0328216
  5  4.82076
  6  41.7594
  7  0.000192011
  8  2.21572
  9  9.16009
  10  9.62373e-05
  11  9.02813
  12  9.6991e-05
  13  7.02587
  14  4.12667
  15  9.21321e-06
  16  0.905942
  17  3.55922e-05
  18  32.0829
  19  0.000106937
  20  0.000389096
  21  18.1609
  22  0.00015564
  23  1.79506e-05
  24  0.000249524
  25  7.25084
  26  36.4146
  27  0.000110316
  28  10.3795
  29  0.000164128
  30  0.353667
  31  0.354397
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  5.233e+00  7.026e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  4.693e-01  3.544e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.071e+00  3.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.36
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.88e-08 +/- 6.56e-08
Energy Flux (Fixed Index): 7.79e-05 +/- 1.05e-04

TS (Fixed Index): 1.36
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 1.72e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516636/likelihoodResults_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.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) = 2239.14814733
delta logL = 0.331119405667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2239.14539301
delta logL = 0.333873727976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4478       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2580       1.0000          .0000       10.000    
     3 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50022       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2239.145     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      267 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4427        48.242        .65368E-02    .89570E-04
   2  Index         2.2594        2.6877        .77598E-01    .61030E-04
   3  Normalizat    1.0178        .10909        .43541E-01   -.57832E-05
   4  Prefactor     .50111        .10142        .79950E-01    .73070E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44268
  Index      = 2.2594
  Normalizat = 1.01783
  Prefactor  = 0.501111
 **********
 **   18 **HESSE 
 **********

 FCN=   2239.145     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4427        5.7442        .58561E-04   -1.5395    
   2  Index         2.2594        .93254        .29273E-02   -.58012    
   3  Normalizat    1.0178        .33026        .23370E-03   -.92436    
   4  Prefactor     .50111        .35073        .35418E-03   -1.1193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66867e-09
Minuit parameter uncertainties:
  1  5.74551
  2  0.940445
  3  0.330927
  4  0.352257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516636': 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) = 2239.14538781
delta logL = 0.333878920749

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.443e+00  5.746e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.259e+00  9.404e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  5.011e-01  3.523e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.018e+00  3.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.26 +/- 0.94
Photon Flux (Free Index): 1.06e-07 +/- 1.10e-07
Energy Flux (Free Index): 4.27e-05 +/- 5.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/516636/cmap_HighResolution_370483201_370742401_4FGL_J1221.3+3010_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='4.88e-08', energy_flux2='4.27e-05', photon_flux_error='6.56e-08', dlogl='3.34e-01', energy_flux='7.79e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-05 09:22:26.481721', photon_index_error2='0.94', photon_index2='2.26', ts='1.36', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='5.38e-05', EG='1.07', time_epoch_completed='1630858946.48', return_code='0', job_id='516636', GAL2='0.50', EG2='1.02', return_code2='0', energy_flux_error='1.05e-04', photon_flux_error2='1.10e-07', ts2='2.04', photon_index='1.71' WHERE bin_id='506' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 516636: <4FGL_J1221.3+3010_daily_bin506> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin506> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:10:52 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:10:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:10:55 2021
Terminated at Sun Sep  5 09:22:27 2021
Results reported at Sun Sep  5 09:22:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin506 185.345 30.1677 370483201 370742401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   623.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            695 sec.

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

