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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin729
RA = 185.345, Dec = 30.1677
tmin = 428284801, tmax = 428544001
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='519649', job_status='RUN', time_executed='2021-09-05 09:20:52.424180', time_epoch_executed='1630858852.42' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519649/ft1_4FGL_J1221.3+3010_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519649/ft2_4FGL_J1221.3+3010_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519649/ft1_4FGL_J1221.3+3010_daily_bin729.fits outfile=/scratch/kocevski/519649/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin729.fits ra=185.345 dec=30.1677 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.08
user 5.84
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519649/ft2_4FGL_J1221.3+3010_daily_bin729.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/519649/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin729.fits evtable="EVENTS" outfile="/scratch/kocevski/519649/ft1_filtered_4FGL_J1221.3+3010_daily_bin729.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519649/ft1_filtered_4FGL_J1221.3+3010_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/519649/ft2_4FGL_J1221.3+3010_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/519649/ltcube_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.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/519649/ft2_4FGL_J1221.3+3010_daily_bin729.fits
.....................!
real 15.51
user 15.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519649/ft1_filtered_4FGL_J1221.3+3010_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/519649/ft2_4FGL_J1221.3+3010_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/519649/ltcube_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.fits outfile=/scratch/kocevski/519649/expmap_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.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/519649/ltcube_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.fits
.....................!
real 192.19
user 187.62
sys 4.20

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/519649/ft1_filtered_4FGL_J1221.3+3010_daily_bin729.fits scfile=/scratch/kocevski/519649/ft2_4FGL_J1221.3+3010_daily_bin729.fits outfile=/scratch/kocevski/519649/cmap_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519649/ft1_filtered_4FGL_J1221.3+3010_daily_bin729.fits scfile=/scratch/kocevski/519649/ft2_4FGL_J1221.3+3010_daily_bin729.fits outfile=/scratch/kocevski/519649/cmap_HighResolution_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    14.301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9582       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.217       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6687       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3534       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.760       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0903       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18692E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    5.6795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.882       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4088       1.0000         .10000E-03   10000.    
    17 'norm      '    5.4313       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.184       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3287       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4112       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.125       1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .87462       1.0000         .10000E-03   10000.    
    29 'norm      '    49.921       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .74627       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1667       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=   4745.728     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     4181 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0662        .27922E-07** at limit **
   2  Prefactor     14.302        11.640        .19433E-06    .28513E-04
   3  Prefactor     7.9596        6.1200        .54603E-06    .18518E-03
   4  Prefactor     11.227        27.134        .17310E-05    .15881E-04
   5  Prefactor     2.6683        2.6525        .37331E-07   -.56150E-04
   6  Prefactor     1.3383        71.474       -.10943E-04   -.85121E-04
   7  Prefactor     74.689        92.316        .84307E-05   -.11402E-06
   8  norm          2.0901        1.3293        .48110E-07   -.21198E-04
   9  Prefactor     .10000E-03    2.3062        .28175E-07** at limit **
  10  Prefactor     .10000E-03    26.134        .39438E-06** at limit **
  11  norm          5.6805        3.3118        .72968E-08    .61553E-04
  12  Prefactor     2.0839        7.6099        .81476E-05   -.14702E-03
  13  Prefactor     .10000E-03    1.3713       -.35283E-07** at limit **
  14  Prefactor     .10000E-03    2.0585       -.33812E-06** at limit **
  15  Prefactor     14.883        9.1839        .75056E-07    .46602E-04
  16  norm          1.4089        .41837        .34697E-07   -.57337E-04
  17  norm          5.4320        5.4824        .26077E-07    .37355E-04
  18  Prefactor     23.192        14.551        .84986E-06    .10224E-03
  19  Prefactor     .10000E-03    8.3035       -.29285E-07** at limit **
  20  Prefactor     .10000E-03    25.587        .26765E-06** at limit **
  21  Prefactor     .10000E-03    10.884        .26451E-06** at limit **
  22  Prefactor     1.3286        5.5233        .86927E-06    .35839E-04
  23  norm          2.4113        3.7065        .30621E-06    .67507E-04
  24  Prefactor     .10000E-03    14.369       -.22158E-06** at limit **
  25  norm          .10000E-03    2.3998        .46819E-07** at limit **
  26  Prefactor     34.118        24.072       -.35225E-06   -.16399E-04
  27  norm          .10000E-03    3.1087        .63386E-07** at limit **
  28  norm          .87525        16.794        .10776E-05   -.65811E-04
  29  norm          49.918        21.038       -.11364E-06    .19887E-03
  30  Normalizat    .74607        .21840       -.95616E-06   -.86270E-05
  31  Prefactor     1.1669        .23690       -.16569E-05   -.46664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.3017
  Prefactor  = 7.95961
  Prefactor  = 11.227
  Prefactor  = 2.6683
  Prefactor  = 1.33829
  Prefactor  = 74.6892
  norm       = 2.09015
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.68053
  Prefactor  = 2.08391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8832
  norm       = 1.40886
  norm       = 5.43199
  Prefactor  = 23.1919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.32863
  norm       = 2.41129
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.1177
  norm       = 0.0001
  norm       = 0.875251
  norm       = 49.9184
  Normalizat = 0.746065
  Prefactor  = 1.16688
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.728     FROM HESSE     STATUS=OK           636 CALLS     4817 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0721        .17883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.302        11.639        .10591E-03   -1.4951    
   3  Prefactor     7.9596        6.1159        .14053E-03   -1.5144    
   4  Prefactor     11.227        27.170        .11962E-03   -1.5038    
   5  Prefactor     2.6683        2.6223        .98820E-04   -1.5381    
   6  Prefactor     1.3383        71.561        .37588E-03   -1.5477    
   7  Prefactor     74.689        91.603        .23219E-03   -1.3977    
   8  norm          2.0901        1.3231        .59761E-04   -1.5419    
   9  Prefactor     .10000E-03    2.3227        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    187.58        .65332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.6805        3.2650        .91011E-04   -1.5231    
  12  Prefactor     2.0839        7.6173        .14295E-02   -1.5419    
  13  Prefactor     .10000E-03    1.3878        .78392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2356        .18564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.883        9.1810        .10383E-03   -1.4936    
  16  norm          1.4089        .41904        .22835E-04   -1.5471    
  17  norm          5.4320        5.4723        .15171E-03   -1.5242    
  18  Prefactor     23.192        14.422        .83191E-04   -1.4744    
  19  Prefactor     .10000E-03    8.3075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3286        5.2981        .29498E-03   -1.5477    
  23  norm          2.4113        3.6739        .15742E-03   -1.5397    
  24  Prefactor     .10000E-03    14.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.4881        .20841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.118        23.718        .68598E-04   -1.4539    
  27  norm          .10000E-03    3.1216        .11859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .87525        14.183        .35647E-02   -1.5521    
  29  norm          49.918        18.973        .56758E-04   -1.4294    
  30  Normalizat    .74607        .25963        .28090E-03   -1.0210    
  31  Prefactor     1.1669        .28419        .27498E-03   -.87357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07462e-08
Minuit parameter uncertainties:
  1  2.17628e-06
  2  11.6404
  3  6.11641
  4  27.1999
  5  2.62238
  6  19.5963
  7  91.777
  8  1.32314
  9  3.0329e-06
  10  0.00107714
  11  3.26508
  12  7.62082
  13  1.4566e-06
  14  1.0107e-05
  15  9.18183
  16  0.419039
  17  5.4728
  18  14.4237
  19  3.3441e-06
  20  1.564e-06
  21  2.16843e-05
  22  5.29995
  23  3.67426
  24  3.61676e-06
  25  4.54697e-06
  26  23.725
  27  5.5048e-06
  28  7.04817
  29  18.9751
  30  0.260064
  31  0.284566
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  1.457e-06  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:  1.167e+00  2.846e-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:  7.461e-01  2.601e-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: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/519649/likelihoodResults_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.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) = 4745.73142253
delta logL = -0.00332019916823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4745.72810254
delta logL = -2.07543052966e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6875       1.0000          .0000       10.000    
     3 'Normalizat'    .74592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1671       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4745.728     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    13.815        .79646E-03** at limit **
   2  Index         1.6584        8.6142        .50000        .86615E-04
   3  Normalizat    .74607        .15215E-01    .28090E-03    .50672E-04
   4  Prefactor     1.1669        .18333E-01    .27498E-03    .10791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010032
  Index      = 1.65838
  Normalizat = 0.746066
  Prefactor  = 1.16688
 **********
 **   18 **HESSE 
 **********

 FCN=   4745.728     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10032E-03    66.285        .15929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6584        5.1213        .50000       -.73195    
   3  Normalizat    .74607        .34968E-01    .11236E-04   -1.0210    
   4  Prefactor     1.1669        .41995E-01    .10999E-04   -.87357    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75596e-08
Minuit parameter uncertainties:
  1  0.0092231
  2  140.466
  3  0.0349695
  4  0.0419963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519649': 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) = 4745.72810115
delta logL = 1.17324816529e-06

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.003e-04  9.223e-03  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.658e+00  1.405e+02  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:  1.167e+00  4.200e-02  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:  7.461e-01  3.497e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.345 30.168

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/519649/cmap_HighResolution_428284801_428544001_4FGL_J1221.3+3010_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-05 09:34:44.129003', job_id='519649', GAL2='1.17', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630859684.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='729' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:34:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 519649: <4FGL_J1221.3+3010_daily_bin729> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin729 185.345 30.1677 428284801 428544001 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 :                                   827.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            856 sec.

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

