/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 215 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin974
RA = 185.345, Dec = 30.1677
tmin = 491788801, tmax = 492048001
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='521281', job_status='RUN', time_executed='2021-09-05 09:29:19.536905', time_epoch_executed='1630859359.54' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521281/ft1_4FGL_J1221.3+3010_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521281/ft2_4FGL_J1221.3+3010_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521281/ft1_4FGL_J1221.3+3010_daily_bin974.fits outfile=/scratch/kocevski/521281/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin974.fits ra=185.345 dec=30.1677 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.27
user 4.01
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521281/ft1_filtered_4FGL_J1221.3+3010_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/521281/ft2_4FGL_J1221.3+3010_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/521281/ltcube_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.fits outfile=/scratch/kocevski/521281/expmap_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.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/521281/ltcube_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.fits
.....................!
real 192.53
user 186.69
sys 5.30

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/521281/ft1_filtered_4FGL_J1221.3+3010_daily_bin974.fits scfile=/scratch/kocevski/521281/ft2_4FGL_J1221.3+3010_daily_bin974.fits outfile=/scratch/kocevski/521281/cmap_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521281/ft1_filtered_4FGL_J1221.3+3010_daily_bin974.fits scfile=/scratch/kocevski/521281/ft2_4FGL_J1221.3+3010_daily_bin974.fits outfile=/scratch/kocevski/521281/cmap_HighResolution_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.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.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/521281/ft1_filtered_4FGL_J1221.3+3010_daily_bin974.fits', '/scratch/kocevski/521281/ft2_4FGL_J1221.3+3010_daily_bin974.fits', expMap='/scratch/kocevski/521281/expmap_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.fits', expCube='/scratch/kocevski/521281/ltcube_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/521281/Model_4FGL_J1221.3+3010_daily_bin974.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/521281/ft1_filtered_4FGL_J1221.3+3010_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/521281/ft2_4FGL_J1221.3+3010_daily_bin974.fits
Exposure map: /scratch/kocevski/521281/expmap_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.fits
Exposure cube: /scratch/kocevski/521281/ltcube_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/521281/Model_4FGL_J1221.3+3010_daily_bin974.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) = 1181.33539298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    123.88       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    69.257       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.812       1.0000         .10000E-03   10000.    
     8 'norm      '    .40160E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .87055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    120.79       1.0000         .10000E-03   10000.    
    11 'norm      '    7.7917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.848       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10614E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .87615       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2789       1.0000         .10000E-03   10000.    
    17 'norm      '    9.8588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12136E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.468       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.2170       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    28.601       1.0000         .10000E-03   10000.    
    28 'norm      '    28.500       1.0000         .10000E-03   10000.    
    29 'norm      '    .12682E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .80526       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .87084       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=   1181.288     FROM MIGRAD    STATUS=CONVERGED    801 CALLS     4203 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.046       -.62298E-07** at limit **
   2  Prefactor     .10000E-03    12.991       -.24993E-07** at limit **
   3  Prefactor     13.865        20.921       -.49156E-07    .15920E-05
   4  Prefactor     123.86        84.729        .83335E-07   -.97530E-05
   5  Prefactor     .10000E-03    2.0918       -.63205E-07** at limit **
   6  Prefactor     69.245        115.09        .40264E-06   -.25415E-04
   7  Prefactor     31.765        310.72       -.11430E-05   -.57994E-05
   8  norm          .51003E-01    3.3300        .32237E-06   -.39046E-03
   9  Prefactor     .87192        10.843        .99734E-06   -.40476E-04
  10  Prefactor     120.70        165.01        .45887E-07   -.27855E-04
  11  norm          7.7780        12.583        .34982E-05    .34838E-03
  12  Prefactor     18.854        26.366        .54831E-07    .38588E-04
  13  Prefactor     .10000E-03    12.425       -.10408E-05** at limit **
  14  Prefactor     .86916        24.510       -.40882E-05    .22671E-03
  15  Prefactor     .10000E-03    58.770       -.89438E-07** at limit **
  16  norm          1.2790        .71468       -.59984E-07    .64091E-03
  17  norm          9.8597        14.290       -.34839E-06    .21401E-03
  18  Prefactor     .10000E-03    170.50       -.40435E-05** at limit **
  19  Prefactor     65.492        97.571        .36975E-06    .23231E-04
  20  Prefactor     .10000E-03    126.56        .62975E-06** at limit **
  21  Prefactor     .10000E-03    9.7818        .46572E-07** at limit **
  22  Prefactor     .10000E-03    21.432        .86160E-06** at limit **
  23  norm          .10000E-03    6.3841        .73239E-07** at limit **
  24  Prefactor     .10000E-03    43.744        .19654E-06** at limit **
  25  norm          9.2207        17.549       -.10923E-06    .26797E-04
  26  Prefactor     .10000E-03    73.774        .97033E-06** at limit **
  27  norm          28.606        25.485        .14019E-06   -.10484E-04
  28  norm          28.510        16.697       -.26469E-06    .64469E-04
  29  norm          .10000E-03    60.475       -.60522E-07** at limit **
  30  Normalizat    .80501        .49603        .13626E-05    .12018E-03
  31  Prefactor     .87076        .52106       -.87641E-06    .98303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8654
  Prefactor  = 123.864
  Prefactor  = 0.0001
  Prefactor  = 69.2451
  Prefactor  = 31.7646
  norm       = 0.0510028
  Prefactor  = 0.871916
  Prefactor  = 120.704
  norm       = 7.77802
  Prefactor  = 18.8538
  Prefactor  = 0.000100002
  Prefactor  = 0.869161
  Prefactor  = 0.0001
  norm       = 1.27895
  norm       = 9.85971
  Prefactor  = 0.000100002
  Prefactor  = 65.4919
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.22069
  Prefactor  = 0.0001
  norm       = 28.6063
  norm       = 28.5099
  norm       = 0.0001
  Normalizat = 0.805006
  Prefactor  = 0.870765
 **********
 **   18 **HESSE 
 **********

 FCN=   1181.288     FROM HESSE     STATUS=OK           616 CALLS     4819 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.047        .15036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.992        .12103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.865        21.024        .10758E-03   -1.4963    
   4  Prefactor     123.86        84.966        .36163E-04   -1.3477    
   5  Prefactor     .10000E-03    2.0957        .48512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     69.245        115.40        .48234E-04   -1.4042    
   7  Prefactor     31.765        312.03        .71042E-04   -1.4580    
   8  norm          .51003E-01    49.274        .11569E-02   -1.5663    
   9  Prefactor     .87192        10.830        .20819E-03   -1.5521    
  10  Prefactor     120.70        165.50        .18309E-03   -1.3506    
  11  norm          7.7780        12.939        .13278E-03   -1.5150    
  12  Prefactor     18.854        26.388        .92254E-04   -1.4839    
  13  Prefactor     .10000E-03    98.866        .19787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .86916        28.265        .22349E-02   -1.5522    
  15  Prefactor     .10000E-03    60.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2790        .71688        .20367E-04   -1.5482    
  17  norm          9.8597        14.102        .12762E-03   -1.5080    
  18  Prefactor     .10000E-03    168.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.492        98.113        .49600E-04   -1.4088    
  20  Prefactor     .10000E-03    126.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7832        .10501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.368        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.3855        .84824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    43.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.2207        17.594        .13201E-03   -1.5101    
  26  Prefactor     .10000E-03    73.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          28.606        25.471        .74913E-04   -1.4638    
  28  norm          28.510        16.640        .75046E-04   -1.4640    
  29  norm          .10000E-03    60.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .80501        .58340        .30337E-03   -.99883    
  31  Prefactor     .87076        .61835        .32237E-03   -.97170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79606e-09
Minuit parameter uncertainties:
  1  2.21869e-05
  2  1.15456e-06
  3  21.0353
  4  85.0498
  5  4.44267e-07
  6  115.771
  7  200.489
  8  3.17005
  9  6.14683
  10  166.144
  11  12.9434
  12  26.4044
  13  0.00091762
  14  9.91746
  15  0.000236875
  16  0.716882
  17  14.1069
  18  0.00109241
  19  98.357
  20  0.000617318
  21  1.94155e-06
  22  4.55378e-05
  23  1.50725e-06
  24  1.97426e-05
  25  17.6036
  26  0.000117499
  27  25.4805
  28  16.6423
  29  2.3589e-05
  30  0.588028
  31  0.623412
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  9.176e-04  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:  8.708e-01  6.234e-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:  8.050e-01  5.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/521281/likelihoodResults_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.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) = 1181.28854457
delta logL = -4.79695102058e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1180.35368322
delta logL = 0.934813377796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11020       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4325       1.0000          .0000       10.000    
     3 'Normalizat'    .60684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99056       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=   1180.354     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      394 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11019        2.9084        .21770E-02   -.33060E-03
   2  Index         3.4325        2.7280        .40858E-01    .13375E-03
   3  Normalizat    .60703        .16550        .77339E-01   -.13916E-04
   4  Prefactor     .99045        .18143        .68408E-01   -.20210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.110192
  Index      = 3.43246
  Normalizat = 0.607032
  Prefactor  = 0.990452
 **********
 **   18 **HESSE 
 **********

 FCN=   1180.354     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      427 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11019        4.3150        .97085E-05   -1.5642    
   2  Index         3.4325        3.3840        .17403E-02   -.31889    
   3  Normalizat    .60703        .50700        .34246E-03   -1.0769    
   4  Prefactor     .99045        .55971        .30259E-03   -.93048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.99169e-09
Minuit parameter uncertainties:
  1  1.37858
  2  3.76697
  3  0.510953
  4  0.563034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521281': 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): 102
logL (Free Index) = 1180.35368308
delta logL = 0.934813519585

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.102e-01  1.379e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  3.432e+00  3.767e+00  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:  9.905e-01  5.630e-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:  6.070e-01  5.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 185.345 30.168
Photon Index (Free Index): 3.43 +/- 3.77
Photon Flux (Free Index): 2.15e-07 +/- 2.02e-07
Energy Flux (Free Index): 3.64e-05 +/- 4.27e-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/521281/cmap_HighResolution_491788801_492048001_4FGL_J1221.3+3010_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', energy_flux2='3.64e-05', dlogl='9.35e-01', photon_flux2='2.15e-07', job_status='DONE', time_completed='2021-09-05 09:36:55.323461', photon_index_error2='3.77', photon_index2='3.43', ts='-0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='2.45e-07', energy_flux_error2='4.27e-05', EG='0.81', time_epoch_completed='1630859815.32', return_code='0', job_id='521281', GAL2='0.99', EG2='0.61', return_code2='102', photon_flux_error2='2.02e-07', ts2='2.00', photon_index='1.71' WHERE bin_id='974' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:36:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 521281: <4FGL_J1221.3+3010_daily_bin974> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin974> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:25:33 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:25:34 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:25:34 2021
Terminated at Sun Sep  5 09:36:56 2021
Results reported at Sun Sep  5 09:36:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin974 185.345 30.1677 491788801 492048001 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 :                                   448.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             196.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

