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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1157
RA = 185.378, Dec = 28.2382
tmin = 539222401, tmax = 539481601
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='532116', job_status='RUN', time_executed='2021-09-05 10:00:53.257976', time_epoch_executed='1630861253.26' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532116

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532116/ft1_4FGL_J1221.5+2814_daily_bin1157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532116/ft1_4FGL_J1221.5+2814_daily_bin1157.fits outfile=/scratch/kocevski/532116/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1157.fits ra=185.378 dec=28.2382 rad=12.0 tmin=539222401.0 tmax=539481601.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 5.57
user 5.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.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/532116/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1157.fits evtable="EVENTS" outfile="/scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits" evtable="EVENTS" scfile=/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits sctable="SC_DATA" outfile=/scratch/kocevski/532116/ltcube_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.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/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits
.....................!
real 12.41
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits sctable="SC_DATA" expcube=/scratch/kocevski/532116/ltcube_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.fits outfile=/scratch/kocevski/532116/expmap_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.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/532116/ltcube_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.fits
.....................!
real 190.50
user 185.64
sys 4.24

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

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits scfile=/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits outfile=/scratch/kocevski/532116/cmap_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.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.378 yref=28.2382 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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits scfile=/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits outfile=/scratch/kocevski/532116/cmap_HighResolution_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.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.378 yref=28.2382 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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits evtable="EVENTS" scfile=/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/532116/Model_4FGL_J1221.5+2814_daily_bin1157.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/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits.....................!
real 22.37
user 20.42
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits', '/scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits', expMap='/scratch/kocevski/532116/expmap_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.fits', expCube='/scratch/kocevski/532116/ltcube_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532116/Model_4FGL_J1221.5+2814_daily_bin1157.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/532116/ft1_filtered_4FGL_J1221.5+2814_daily_bin1157.fits
Spacecraft file(s): /scratch/kocevski/532116/ft2_4FGL_J1221.5+2814_daily_bin1157.fits
Exposure map: /scratch/kocevski/532116/expmap_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.fits
Exposure cube: /scratch/kocevski/532116/ltcube_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532116/Model_4FGL_J1221.5+2814_daily_bin1157.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) = 1161.40548955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.225       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    382.15       1.0000         .10000E-03   10000.    
     7 'norm      '    1.3180       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14440E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.933       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2866       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.476       1.0000         .10000E-03   10000.    
    17 'norm      '    .37660       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    211.11       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.521       1.0000         .10000E-03   10000.    
    26 'norm      '    18.314       1.0000         .10000E-03   10000.    
    27 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .58567       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1161.390     FROM MIGRAD    STATUS=CONVERGED     86 CALLS     3251 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.957        1.2055        .59021E-06   -.21522E-02
   2  Prefactor     .10020E-03    8.9876       -.23849E-04** at limit **
   3  Prefactor     20.229        1.1323        .68655E-06   -.57437E-03
   4  Prefactor     .10041E-03    18.601       -.45847E-05** at limit **
   5  Prefactor     7.3428        1.0068       -.94724E-07   -.44168E-04
   6  Prefactor     382.16        2.2080        .66412E-06   -.17489E-01
   7  norm          1.2993        4.2185       -.49692E-06    .51260E-05
   8  Prefactor     .10000E-03    3.5377       -.69680E-05** at limit **
   9  Prefactor     .10154E-03    36.358       -.46532E-04** at limit **
  10  Prefactor     .10000E-03    2.3899       -.34273E-06** at limit **
  11  Prefactor     .10006E-03    4.2421       -.11331E-04** at limit **
  12  norm          .10000E-03    4.8328        .24688E-05** at limit **
  13  Prefactor     30.927        1.5493       -.13352E-05    .24079E-02
  14  Prefactor     4.2849        1.0128        .56076E-07   -.63079E-04
  15  Prefactor     .10000E-03    2.4906        .11461E-06** at limit **
  16  Prefactor     12.487        1.3320        .11148E-05   -.31359E-03
  17  norm          .37654        .55493       -.16398E-07   -.15151E-03
  18  norm          .10016E-03    8.5209        .22280E-05** at limit **
  19  Prefactor     .10037E-03    8.5518        .98727E-05** at limit **
  20  Prefactor     .10083E-03    24.310        .46939E-04** at limit **
  21  Prefactor     211.11        1.0216       -.93860E-07    .13714E-02
  22  Prefactor     .10008E-03    6.9107       -.33878E-05** at limit **
  23  Prefactor     .10027E-03    4.8553        .11419E-04** at limit **
  24  norm          .10000E-03    4.8717        .68120E-05** at limit **
  25  Prefactor     30.512        2.6611       -.28811E-05    .60976E-02
  26  norm          18.314        1.0026        .66699E-07    .55333E-05
  27  norm          .10009E-03    3.0672        .91046E-05** at limit **
  28  norm          .10006E-03    3.7688       -.11453E-04** at limit **
  29  Normalizat    .58715        .55709        .45999E-05   -.93003E-05
  30  Prefactor     1.4868        .63924       -.15959E-05    .65106E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.9572
  Prefactor  = 0.0001002
  Prefactor  = 20.2291
  Prefactor  = 0.000100414
  Prefactor  = 7.34279
  Prefactor  = 382.159
  norm       = 1.29927
  Prefactor  = 0.0001
  Prefactor  = 0.000101544
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  norm       = 0.000100002
  Prefactor  = 30.9273
  Prefactor  = 4.28492
  Prefactor  = 0.0001
  Prefactor  = 12.4869
  norm       = 0.376536
  norm       = 0.000100163
  Prefactor  = 0.000100371
  Prefactor  = 0.00010083
  Prefactor  = 211.114
  Prefactor  = 0.000100075
  Prefactor  = 0.000100268
  norm       = 0.000100005
  Prefactor  = 30.5118
  norm       = 18.3143
  norm       = 0.000100086
  norm       = 0.000100064
  Normalizat = 0.587151
  Prefactor  = 1.48676
 **********
 **   18 **HESSE 
 **********

 FCN=   1161.390     FROM HESSE     STATUS=OK           640 CALLS     3891 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.957        56.587        .13651E-02   -1.4238    
   2  Prefactor     .10020E-03    18.157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.229        22.088        .22265E-02   -1.4808    
   4  Prefactor     .10041E-03    50.642        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3428        7.6758        .37003E-02   -1.5166    
   6  Prefactor     382.16        173.53        .52161E-03   -1.1773    
   7  norm          1.2993        4.4727        .95867E-02   -1.5480    
   8  Prefactor     .10000E-03    8.1034        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10154E-03    60.195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10006E-03    5.2817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.8503        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     30.927        30.379        .18010E-02   -1.4595    
  14  Prefactor     4.2849        6.0603        .48647E-02   -1.5294    
  15  Prefactor     .10000E-03    2.4882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.487        17.765        .28353E-02   -1.5001    
  17  norm          .37654        .58031        .66726E-02   -1.5585    
  18  norm          .10016E-03    11.397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10037E-03    21.357        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10083E-03    39.615        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     211.11        223.77        .69563E-03   -1.2792    
  22  Prefactor     .10008E-03    20.116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10027E-03    9.4118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.4224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     30.512        70.134        .18131E-02   -1.4603    
  26  norm          18.314        16.303        .23398E-02   -1.4852    
  27  norm          .10009E-03    5.6680        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10006E-03    7.7352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .58715        .51193        .81130E-01   -1.0853    
  30  Prefactor     1.4868        .54870        .61231E-01   -.77911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19971e-06
Minuit parameter uncertainties:
  1  56.6438
  2  0.00381652
  3  22.0969
  4  0.00916803
  5  7.67684
  6  173.77
  7  4.47381
  8  2.15535e-05
  9  0.0193022
  10  5.86497e-07
  11  0.0010984
  12  0.000181563
  13  30.3937
  14  6.0612
  15  1.02662e-06
  16  17.7723
  17  0.580322
  18  0.00272872
  19  0.0056337
  20  0.0114743
  21  224.679
  22  0.00246434
  23  0.0031767
  24  0.000352371
  25  70.3241
  26  16.307
  27  0.00139468
  28  0.00140975
  29  0.516136
  30  0.550901
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.027e-06  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.487e+00  5.509e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  5.872e-01  5.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532116/likelihoodResults_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.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) = 1161.390341
delta logL = -0.000804661921848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1161.38953604
delta logL = 2.95893869406e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1354       1.0000          .0000       10.000    
     3 'Normalizat'    .58697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4870       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+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=   1161.390     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      255 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.204        .53600E-02** at limit **
   2  Index         1.6569        8.7422        .50000        .61825E-06
   3  Normalizat    .58714        .30612E-01    .35931E-03   -.61790E-03
   4  Prefactor     1.4867        .35284E-01    .27076E-03   -.81684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65694
  Normalizat = 0.587144
  Prefactor  = 1.48674
 **********
 **   18 **HESSE 
 **********

 FCN=   1161.390     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    192.39        .60449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6569        8.3537        .50000       -.73234    
   3  Normalizat    .58714        .92044E-01    .71863E-04   -1.0853    
   4  Prefactor     1.4867        .10610        .54152E-04   -.77912    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29147e-08
Minuit parameter uncertainties:
  1  1.33351e-05
  2  642.456
  3  0.0920681
  4  0.106119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532116': 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) = 1161.38953142
delta logL = 4.91614810016e-06

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.334e-05  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.657e+00  6.425e+02  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.487e+00  1.061e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  5.871e-01  9.207e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.378 28.238

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/532116/cmap_HighResolution_539222401_539481601_4FGL_J1221.5+2814_daily_bin1157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', job_status='DONE', photon_flux_upper_limit='1.97e-07', time_completed='2021-09-05 10:08:17.203033', job_id='532116', GAL2='1.49', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630861697.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='4.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1157' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:08:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 532116: <4FGL_J1221.5+2814_daily_bin1157> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1157> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:33 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:00:35 2021
Terminated at Sun Sep  5 10:08:17 2021
Results reported at Sun Sep  5 10:08:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1157 185.378 28.2382 539222401 539481601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   432.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   462 sec.
    Turnaround time :                            464 sec.

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

