/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1078
RA = 185.378, Dec = 28.2382
tmin = 518745601, tmax = 519004801
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='531942', job_status='RUN', time_executed='2021-09-05 10:02:09.960011', time_epoch_executed='1630861329.96' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1078'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531942/ft1_4FGL_J1221.5+2814_daily_bin1078.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531942/ft2_4FGL_J1221.5+2814_daily_bin1078.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531942/ft1_4FGL_J1221.5+2814_daily_bin1078.fits outfile=/scratch/kocevski/531942/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1078.fits ra=185.378 dec=28.2382 rad=12.0 tmin=518745601.0 tmax=519004801.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.37
user 4.10
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531942/ft1_filtered_4FGL_J1221.5+2814_daily_bin1078.fits evtable="EVENTS" scfile=/scratch/kocevski/531942/ft2_4FGL_J1221.5+2814_daily_bin1078.fits sctable="SC_DATA" expcube=/scratch/kocevski/531942/ltcube_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.fits outfile=/scratch/kocevski/531942/expmap_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.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/531942/ltcube_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.fits
.....................!
real 191.03
user 185.85
sys 4.68

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/531942/ft1_filtered_4FGL_J1221.5+2814_daily_bin1078.fits scfile=/scratch/kocevski/531942/ft2_4FGL_J1221.5+2814_daily_bin1078.fits outfile=/scratch/kocevski/531942/cmap_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531942/ft1_filtered_4FGL_J1221.5+2814_daily_bin1078.fits scfile=/scratch/kocevski/531942/ft2_4FGL_J1221.5+2814_daily_bin1078.fits outfile=/scratch/kocevski/531942/cmap_HighResolution_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531942/ft1_filtered_4FGL_J1221.5+2814_daily_bin1078.fits', '/scratch/kocevski/531942/ft2_4FGL_J1221.5+2814_daily_bin1078.fits', expMap='/scratch/kocevski/531942/expmap_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.fits', expCube='/scratch/kocevski/531942/ltcube_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531942/Model_4FGL_J1221.5+2814_daily_bin1078.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/531942/ft1_filtered_4FGL_J1221.5+2814_daily_bin1078.fits
Spacecraft file(s): /scratch/kocevski/531942/ft2_4FGL_J1221.5+2814_daily_bin1078.fits
Exposure map: /scratch/kocevski/531942/expmap_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.fits
Exposure cube: /scratch/kocevski/531942/ltcube_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531942/Model_4FGL_J1221.5+2814_daily_bin1078.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) = 6379.38046348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.387       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16324E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.688       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.7169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5276       1.0000         .10000E-03   10000.    
    12 'norm      '    9.6225       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4114       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7410       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3752       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .42357       1.0000         .10000E-03   10000.    
    18 'norm      '    9.7828       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29926E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.312       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12252E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.5427       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91165       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98566       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.

 FCN=   6379.379     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     4031 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1147        .49219E-06** at limit **
   2  Prefactor     20.183        15.838       -.11780E-05   -.64195E-04
   3  Prefactor     .10001E-03    4.3133       -.60809E-06** at limit **
   4  Prefactor     16.364        23.098       -.50740E-05   -.51237E-03
   5  Prefactor     .11034E-03    .88124        .12762E-05** at limit **
   6  Prefactor     51.701        34.090        .74767E-05    .22060E-04
   7  norm          3.3337        1.5360       -.79815E-07   -.75183E-03
   8  Prefactor     .10000E-03    2.1669       -.20496E-07** at limit **
   9  Prefactor     14.110        26.067       -.20943E-05   -.17842E-04
  10  Prefactor     4.7173        3.7787       -.58099E-06   -.40606E-03
  11  Prefactor     4.5281        4.5104       -.44754E-06   -.39649E-03
  12  norm          9.6230        3.9159        .23501E-06   -.92062E-04
  13  Prefactor     6.4137        7.2607       -.22353E-06   -.88164E-04
  14  Prefactor     2.7410        2.2806       -.14009E-06   -.17541E-04
  15  Prefactor     4.3757        2.4401       -.84069E-07   -.16750E-03
  16  Prefactor     .10000E-03    1.9128       -.35601E-07** at limit **
  17  norm          .42360        .22007        .23057E-07   -.39277E-03
  18  norm          9.7831        4.5955        .40962E-06   -.96076E-05
  19  Prefactor     13.925        9.7227        .25853E-06   -.82822E-05
  20  Prefactor     .10000E-03    9.1056       -.70748E-06** at limit **
  21  Prefactor     .10000E-03    27.203       -.33275E-05** at limit **
  22  Prefactor     .10000E-03    4.8493       -.24750E-08** at limit **
  23  Prefactor     .10000E-03    2.7166        .13717E-07** at limit **
  24  norm          10.306        5.6745        .10530E-05    .53658E-03
  25  Prefactor     .10000E-03    82.625       -.22449E-04** at limit **
  26  norm          1.5428        2.3672       -.13412E-06   -.29823E-03
  27  norm          .10000E-03    1.4053        .48759E-07** at limit **
  28  norm          .10000E-03    2.3091       -.55717E-07** at limit **
  29  Normalizat    .91124        .19584       -.19454E-05   -.18711E-03
  30  Prefactor     .98591        .20323        .13412E-05   -.26978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.1825
  Prefactor  = 0.000100006
  Prefactor  = 16.3636
  Prefactor  = 0.000110341
  Prefactor  = 51.7009
  norm       = 3.33374
  Prefactor  = 0.0001
  Prefactor  = 14.1096
  Prefactor  = 4.7173
  Prefactor  = 4.52814
  norm       = 9.62299
  Prefactor  = 6.41372
  Prefactor  = 2.74103
  Prefactor  = 4.37567
  Prefactor  = 0.0001
  norm       = 0.423604
  norm       = 9.78314
  Prefactor  = 13.9253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3063
  Prefactor  = 0.0001
  norm       = 1.54281
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.911236
  Prefactor  = 0.985913
 **********
 **   18 **HESSE 
 **********

 FCN=   6379.379     FROM HESSE     STATUS=OK           602 CALLS     4633 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.183        15.796        .89163E-04   -1.4809    
   3  Prefactor     .10001E-03    11.706        .31633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.364        24.111        .98940E-04   -1.4899    
   5  Prefactor     .11034E-03    2.8403        .24052E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.701        33.811        .55784E-04   -1.4269    
   7  norm          3.3337        1.5317        .62281E-04   -1.5343    
   8  Prefactor     .10000E-03    2.1870        .11470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.110        26.032        .10664E-03   -1.4957    
  10  Prefactor     4.7173        3.7604        .12218E-03   -1.5274    
  11  Prefactor     4.5281        4.4930        .15001E-03   -1.5282    
  12  norm          9.6230        3.9128        .90782E-04   -1.5087    
  13  Prefactor     6.4137        7.2634        .15851E-03   -1.5201    
  14  Prefactor     2.7410        2.2824        .10048E-03   -1.5377    
  15  Prefactor     4.3757        2.4380        .87535E-04   -1.5290    
  16  Prefactor     .10000E-03    1.9180        .10785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .42360        .21972        .25743E-04   -1.5578    
  18  norm          9.7831        4.5923        .11297E-03   -1.5082    
  19  Prefactor     13.925        9.7193        .10734E-03   -1.4961    
  20  Prefactor     .10000E-03    9.1230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.473        .33865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.7288        .12855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.306        5.6986        .12478E-03   -1.5066    
  25  Prefactor     .10000E-03    83.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5428        2.3375        .14772E-03   -1.5460    
  27  norm          .10000E-03    1.4139        .92434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.3153        .11853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91124        .22600        .26664E-03   -.96066    
  30  Prefactor     .98591        .23356        .28627E-03   -.93201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26914e-09
Minuit parameter uncertainties:
  1  7.49048e-06
  2  15.7996
  3  0.000538819
  4  24.1252
  5  0.0108396
  6  33.823
  7  1.53176
  8  8.88318e-06
  9  26.053
  10  3.76057
  11  4.49333
  12  3.91288
  13  7.2644
  14  2.28248
  15  2.43802
  16  1.4398e-06
  17  0.219721
  18  4.59247
  19  9.7204
  20  1.41174e-06
  21  1.58074e-05
  22  6.62076e-05
  23  1.20068e-06
  24  5.69895
  25  0.00018749
  26  2.33763
  27  7.82559e-07
  28  1.02574e-06
  29  0.226232
  30  0.233803
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.376e+00  2.438e+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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.859e-01  2.338e-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:  9.112e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.41
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.75e-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) = 6379.31421013
delta logL = 0.0647183736992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6379.31102511
delta logL = 0.0679034018876

Fit tolerance = 1e-08

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

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

 FCN=   6379.311     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      232 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1078        40.249        .49726E-02    .23899E-03
   2  Index         2.3562        6.1714        .12313        .11660E-03
   3  Normalizat    .89056        .13737        .44781E-01    .16537E-04
   4  Prefactor     .99928        .87628E-01    .46258E-01    .11368E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10781
  Index      = 2.35618
  Normalizat = 0.890563
  Prefactor  = 0.999278
 **********
 **   18 **HESSE 
 **********

 FCN=   6379.311     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1078        2.4704        .79018E-04   -1.5303    
   2  Index         2.3562        .55963        .66634E-02   -.55714    
   3  Normalizat    .89056        .21516        .26919E-03   -.96793    
   4  Prefactor     .99928        .23301        .28449E-03   -.92754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72458e-09
Minuit parameter uncertainties:
  1  2.47042
  2  0.561261
  3  0.215369
  4  0.233247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531942': 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) = 6379.3110251
delta logL = 0.0679034027562

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.108e+00  2.470e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.356e+00  5.613e-01  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:  9.993e-01  2.332e-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:  8.906e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.62
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.36 +/- 0.56
Photon Flux (Free Index): 8.30e-08 +/- 6.57e-08
Energy Flux (Free Index): 2.89e-05 +/- 1.58e-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/531942/cmap_HighResolution_518745601_519004801_4FGL_J1221.5+2814_daily_bin1078.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='2.89e-05', photon_flux_error='3.57e-08', dlogl='6.79e-02', energy_flux='3.15e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-09-05 10:15:54.514488', photon_index_error2='0.56', photon_index2='2.36', ts='10.41', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.91', time_epoch_completed='1630862154.51', return_code='0', job_id='531942', GAL2='1.00', EG2='0.89', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='6.57e-08', ts2='10.62', photon_index='2.15' WHERE bin_id='1078' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 531942: <4FGL_J1221.5+2814_daily_bin1078> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1078> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:23 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:25 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:25 2021
Terminated at Sun Sep  5 10:15:55 2021
Results reported at Sun Sep  5 10:15:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1078 185.378 28.2382 518745601 519004801 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 :                                   807.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

