/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 200 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 = 7446
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin3
RA = 185.345, Dec = 30.1677
tmin = 240105601, tmax = 240364801
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='511081', job_status='RUN', time_executed='2021-09-05 08:59:05.842169', time_epoch_executed='1630857545.84' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511081/ft1_4FGL_J1221.3+3010_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511081/ft2_4FGL_J1221.3+3010_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511081/ft1_4FGL_J1221.3+3010_daily_bin3.fits outfile=/scratch/kocevski/511081/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin3.fits ra=185.345 dec=30.1677 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.43
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511081/ft1_filtered_4FGL_J1221.3+3010_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/511081/ft2_4FGL_J1221.3+3010_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/511081/ltcube_240105601_240364801_4FGL_J1221.3+3010_daily_bin3.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/511081/ft2_4FGL_J1221.3+3010_daily_bin3.fits
.....................!
real 12.89
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511081/ft1_filtered_4FGL_J1221.3+3010_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/511081/ft2_4FGL_J1221.3+3010_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/511081/ltcube_240105601_240364801_4FGL_J1221.3+3010_daily_bin3.fits outfile=/scratch/kocevski/511081/expmap_240105601_240364801_4FGL_J1221.3+3010_daily_bin3.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/511081/ltcube_240105601_240364801_4FGL_J1221.3+3010_daily_bin3.fits
.....................!
real 191.37
user 186.37
sys 4.48

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/511081/ft1_filtered_4FGL_J1221.3+3010_daily_bin3.fits scfile=/scratch/kocevski/511081/ft2_4FGL_J1221.3+3010_daily_bin3.fits outfile=/scratch/kocevski/511081/cmap_240105601_240364801_4FGL_J1221.3+3010_daily_bin3.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/511081/ft1_filtered_4FGL_J1221.3+3010_daily_bin3.fits scfile=/scratch/kocevski/511081/ft2_4FGL_J1221.3+3010_daily_bin3.fits outfile=/scratch/kocevski/511081/cmap_HighResolution_240105601_240364801_4FGL_J1221.3+3010_daily_bin3.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .83295       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0386       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1726       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21056E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.6184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1479       1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.707       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0199       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3259       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6336       1.0000         .10000E-03   10000.    
    16 'norm      '    .23198       1.0000         .10000E-03   10000.    
    17 'norm      '    7.3511       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.826       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3850       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .42761E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.226       1.0000         .10000E-03   10000.    
    25 'norm      '    2.2459       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.0351       1.0000         .10000E-03   10000.    
    28 'norm      '    16.518       1.0000         .10000E-03   10000.    
    29 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .40085       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2781       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=   4472.418     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     4245 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.629       -.16241E-06** at limit **
   2  Prefactor     2.8027        10.308        .32101E-06   -.14048E-04
   3  Prefactor     .83352        7.6850        .24197E-05   -.29076E-04
   4  Prefactor     7.0407        16.245        .35402E-06   -.10581E-04
   5  Prefactor     1.1727        1.1567       -.20713E-06    .81269E-04
   6  Prefactor     .10000E-03    162.75       -.80968E-05** at limit **
   7  Prefactor     .10000E-03    32.094        .23902E-07** at limit **
   8  norm          7.6193        2.2379       -.32747E-07   -.30516E-04
   9  Prefactor     2.1498        5.1427        .94917E-06    .24565E-07
  10  Prefactor     51.693        43.578       -.17779E-05   -.41984E-04
  11  norm          1.0155        2.6248        .71329E-06    .42685E-03
  12  Prefactor     .10000E-03    6.6832       -.24391E-07** at limit **
  13  Prefactor     3.3272        2.5978       -.76864E-07    .14446E-03
  14  Prefactor     13.877        3.9122       -.14674E-08   -.13394E-03
  15  Prefactor     9.6346        6.9197        .41950E-07   -.53195E-04
  16  norm          .23201        .18877        .11852E-07   -.15602E-03
  17  norm          7.3516        5.2648        .42736E-07   -.12476E-03
  18  Prefactor     .10000E-03    19.190        .31540E-06** at limit **
  19  Prefactor     39.839        29.140        .48472E-06    .72580E-04
  20  Prefactor     .10000E-03    95.475        .11010E-05** at limit **
  21  Prefactor     3.3876        6.8192        .62038E-06   -.24261E-04
  22  Prefactor     .10000E-03    9.7664        .30977E-06** at limit **
  23  norm          .10010E-03    3.4140       -.90298E-06** at limit **
  24  Prefactor     18.185        29.799        .19465E-05    .25629E-04
  25  norm          2.2462        2.7374        .54724E-07   -.22374E-05
  26  Prefactor     .10000E-03    19.997       -.35388E-07** at limit **
  27  norm          9.0366        7.6295        .11107E-06    .65263E-04
  28  norm          16.524        5.9850        .15802E-06    .30326E-03
  29  norm          .10000E-03    14.038        .68761E-06** at limit **
  30  Normalizat    .40101        .22317       -.68363E-06    .14422E-04
  31  Prefactor     1.2778        .24493       -.75730E-06    .43765E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.80268
  Prefactor  = 0.83352
  Prefactor  = 7.04075
  Prefactor  = 1.17266
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 7.61928
  Prefactor  = 2.14978
  Prefactor  = 51.6926
  norm       = 1.01555
  Prefactor  = 0.0001
  Prefactor  = 3.32723
  Prefactor  = 13.8767
  Prefactor  = 9.63463
  norm       = 0.232012
  norm       = 7.35159
  Prefactor  = 0.0001
  Prefactor  = 39.8389
  Prefactor  = 0.000100002
  Prefactor  = 3.38762
  Prefactor  = 0.0001
  norm       = 0.000100105
  Prefactor  = 18.1847
  norm       = 2.24618
  Prefactor  = 0.0001
  norm       = 9.03657
  norm       = 16.5237
  norm       = 0.0001
  Normalizat = 0.401009
  Prefactor  = 1.27775
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.418     FROM HESSE     STATUS=OK           630 CALLS     4875 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.8027        10.269        .24317E-03   -1.5373    
   3  Prefactor     .83352        7.8955        .34963E-03   -1.5525    
   4  Prefactor     7.0407        16.213        .15121E-03   -1.5177    
   5  Prefactor     1.1727        1.1546        .21173E-03   -1.5491    
   6  Prefactor     .10000E-03    162.01        .40364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.6193        2.2320        .50360E-04   -1.5156    
   9  Prefactor     2.1498        5.1139        .21805E-03   -1.5415    
  10  Prefactor     51.693        43.023        .55774E-04   -1.4269    
  11  norm          1.0155        2.3488        .16264E-02   -1.5506    
  12  Prefactor     .10000E-03    6.7433        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3272        2.6083        .86576E-04   -1.5343    
  14  Prefactor     13.877        3.8807        .65397E-04   -1.4963    
  15  Prefactor     9.6346        6.9159        .12911E-03   -1.5087    
  16  norm          .23201        .19108        .25020E-04   -1.5612    
  17  norm          7.3516        5.2620        .12248E-03   -1.5166    
  18  Prefactor     .10000E-03    19.985        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.839        29.081        .63515E-04   -1.4445    
  20  Prefactor     .10000E-03    96.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3876        6.8131        .21992E-03   -1.5340    
  22  Prefactor     .10000E-03    9.9190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10010E-03    34.619        .21827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.185        29.005        .93816E-04   -1.4855    
  25  norm          2.2462        2.7291        .11839E-03   -1.5408    
  26  Prefactor     .10000E-03    20.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.0366        7.6143        .13334E-03   -1.5107    
  28  norm          16.524        5.9243        .90744E-04   -1.4895    
  29  norm          .10000E-03    14.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .40101        .24571        .34855E-03   -1.1725    
  31  Prefactor     1.2778        .27711        .24377E-03   -.83971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10022e-09
Minuit parameter uncertainties:
  1  3.48856e-05
  2  10.2758
  3  5.1313
  4  16.2231
  5  1.15461
  6  0.00131164
  7  1.01288e-06
  8  2.23202
  9  5.11491
  10  43.0491
  11  2.34906
  12  1.63851e-05
  13  2.60843
  14  3.88072
  15  6.91643
  16  0.191084
  17  5.26234
  18  2.41798e-05
  19  29.0911
  20  0.000913028
  21  6.81468
  22  4.15925e-06
  23  0.00380733
  24  29.027
  25  2.72923
  26  9.04107e-06
  27  7.61513
  28  5.92446
  29  4.93825e-05
  30  0.246371
  31  0.277429
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.327e+00  2.608e+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:  1.278e+00  2.774e-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:  4.010e-01  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.39
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 4.95e-05 +/- 3.88e-05

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) = 4472.27338007
delta logL = 0.144543259667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4472.2677191
delta logL = 0.150204221857

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7648       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4099       1.0000          .0000       10.000    
     3 'Normalizat'    .40827       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2773       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=   4472.268     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      248 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7656        125.42        .52018E-02   -.27131E-04
   2  Index         1.4100        5.9802        .14918        .34306E-04
   3  Normalizat    .40837        .24407        .78064E-01    .29758E-04
   4  Prefactor     1.2772        .15954        .55200E-01   -.10433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.76558
  Index      = 1.40997
  Normalizat = 0.408365
  Prefactor  = 1.27718
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.268     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7656        3.0219        .10146E-03   -1.5320    
   2  Index         1.4100        .56182        .89367E-02   -.80093    
   3  Normalizat    .40837        .22393        .34573E-03   -1.1687    
   4  Prefactor     1.2772        .27080        .24406E-03   -.83988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31671e-12
Minuit parameter uncertainties:
  1  3.02198
  2  0.564287
  3  0.224423
  4  0.271102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511081': 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) = 4472.26771892
delta logL = 0.150204403368

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.766e+00  3.022e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.410e+00  5.643e-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:  1.277e+00  2.711e-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:  4.084e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.70
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.41 +/- 0.56
Photon Flux (Free Index): 1.85e-08 +/- 2.40e-08
Energy Flux (Free Index): 7.92e-05 +/- 9.30e-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/511081/cmap_HighResolution_240105601_240364801_4FGL_J1221.3+3010_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='7.92e-05', photon_flux_error='2.43e-08', dlogl='1.50e-01', energy_flux='4.95e-05', photon_flux2='1.85e-08', job_status='DONE', time_completed='2021-09-05 09:10:15.357887', photon_index_error2='0.56', photon_index2='1.41', ts='13.39', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='9.30e-05', EG='0.40', time_epoch_completed='1630858215.36', return_code='0', job_id='511081', GAL2='1.28', EG2='0.41', return_code2='0', energy_flux_error='3.88e-05', photon_flux_error2='2.40e-08', ts2='13.70', photon_index='1.71' WHERE bin_id='3' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:10:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 511081: <4FGL_J1221.3+3010_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin3 185.345 30.1677 240105601 240364801 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 :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            882 sec.

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

