/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 4 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 = 7418
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin328
RA = 185.378, Dec = 28.2382
tmin = 324345601, tmax = 324604801
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='526255', job_status='RUN', time_executed='2021-09-05 09:41:11.813097', time_epoch_executed='1630860071.81' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526255/ft1_4FGL_J1221.5+2814_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526255/ft2_4FGL_J1221.5+2814_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526255/ft1_4FGL_J1221.5+2814_daily_bin328.fits outfile=/scratch/kocevski/526255/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin328.fits ra=185.378 dec=28.2382 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.18
user 13.71
sys 0.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526255/ft2_4FGL_J1221.5+2814_daily_bin328.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/526255/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin328.fits evtable="EVENTS" outfile="/scratch/kocevski/526255/ft1_filtered_4FGL_J1221.5+2814_daily_bin328.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526255/ft1_filtered_4FGL_J1221.5+2814_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/526255/ft2_4FGL_J1221.5+2814_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/526255/ltcube_324345601_324604801_4FGL_J1221.5+2814_daily_bin328.fits outfile=/scratch/kocevski/526255/expmap_324345601_324604801_4FGL_J1221.5+2814_daily_bin328.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/526255/ltcube_324345601_324604801_4FGL_J1221.5+2814_daily_bin328.fits
.....................!
real 190.90
user 185.11
sys 5.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/526255/ft1_filtered_4FGL_J1221.5+2814_daily_bin328.fits scfile=/scratch/kocevski/526255/ft2_4FGL_J1221.5+2814_daily_bin328.fits outfile=/scratch/kocevski/526255/cmap_324345601_324604801_4FGL_J1221.5+2814_daily_bin328.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526255/ft1_filtered_4FGL_J1221.5+2814_daily_bin328.fits scfile=/scratch/kocevski/526255/ft2_4FGL_J1221.5+2814_daily_bin328.fits outfile=/scratch/kocevski/526255/cmap_HighResolution_324345601_324604801_4FGL_J1221.5+2814_daily_bin328.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.6181       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.8503       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    91.414       1.0000         .10000E-03   10000.    
     7 'norm      '    .87808       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.2051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6340       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4963       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.143       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    56.374       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11316E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .28985E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97129       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82186       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=   3740.818     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3931 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5163       -.64018E-07** at limit **
   2  Prefactor     5.6190        9.9028       -.28483E-07   -.10520E-04
   3  Prefactor     .10000E-03    4.0411        .41902E-06** at limit **
   4  Prefactor     9.8556        16.541        .12597E-06    .33545E-04
   5  Prefactor     4.0945        2.5421       -.74872E-07   -.97388E-04
   6  Prefactor     91.435        42.706        .18957E-05    .32118E-03
   7  norm          .87692        1.7452        .47936E-06    .12905E-03
   8  Prefactor     4.0820        4.7595        .22647E-05    .18609E-03
   9  Prefactor     .10000E-03    17.679        .97374E-06** at limit **
  10  Prefactor     .10001E-03    3.9525        .95713E-06** at limit **
  11  Prefactor     .10000E-03    3.3698       -.26469E-06** at limit **
  12  norm          9.2057        4.5981       -.71279E-07    .30354E-04
  13  Prefactor     .10000E-03    4.0523        .91922E-07** at limit **
  14  Prefactor     5.6339        3.7755        .24688E-07    .65981E-04
  15  Prefactor     .10001E-03    1.7396       -.21986E-06** at limit **
  16  Prefactor     .10000E-03    9.4069        .39295E-07** at limit **
  17  norm          1.4963        .52663        .19284E-08   -.55093E-03
  18  norm          .10000E-03    2.2332       -.13877E-08** at limit **
  19  Prefactor     .10000E-03    10.420       -.39888E-06** at limit **
  20  Prefactor     .10000E-03    14.893        .77718E-07** at limit **
  21  Prefactor     43.132        66.624       -.14475E-05   -.52993E-04
  22  Prefactor     .10000E-03    10.017       -.21911E-06** at limit **
  23  Prefactor     .10000E-03    3.4966        .98285E-07** at limit **
  24  norm          .10000E-03    2.5970       -.85911E-06** at limit **
  25  Prefactor     56.353        36.993       -.85077E-06   -.16079E-03
  26  norm          .10000E-03    1.5420       -.23368E-07** at limit **
  27  norm          .10001E-03    4.6824       -.13002E-05** at limit **
  28  norm          .10002E-03    7.7518        .17344E-06** at limit **
  29  Normalizat    .97106        .23840       -.17102E-05    .73351E-04
  30  Prefactor     .82208        .24693        .10720E-05   -.13470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.61898
  Prefactor  = 0.0001
  Prefactor  = 9.85564
  Prefactor  = 4.09446
  Prefactor  = 91.4354
  norm       = 0.876919
  Prefactor  = 4.082
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 9.20566
  Prefactor  = 0.0001
  Prefactor  = 5.63393
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 1.49631
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.3531
  norm       = 0.0001
  norm       = 0.000100013
  norm       = 0.000100015
  Normalizat = 0.971065
  Prefactor  = 0.822081
 **********
 **   18 **HESSE 
 **********

 FCN=   3740.818     FROM HESSE     STATUS=OK           584 CALLS     4515 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5186        .15250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6190        9.8954        .16949E-03   -1.5234    
   3  Prefactor     .10000E-03    4.0974        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8556        16.512        .12768E-03   -1.5080    
   5  Prefactor     4.0945        2.5398        .73075E-04   -1.5303    
   6  Prefactor     91.435        43.576        .42030E-04   -1.3793    
   7  norm          .87692        1.7050        .10302E-03   -1.5521    
   8  Prefactor     4.0820        4.8655        .70935E-03   -1.5304    
   9  Prefactor     .10000E-03    17.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    8.2444        .22445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4009        .10964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.2057        4.6018        .83322E-04   -1.5101    
  13  Prefactor     .10000E-03    4.0710        .12023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6339        3.7668        .87454E-04   -1.5233    
  15  Prefactor     .10001E-03    19.965        .15087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4963        .52551        .24554E-04   -1.5463    
  18  norm          .10000E-03    2.2372        .89245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.132        66.770        .61034E-04   -1.4394    
  22  Prefactor     .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5125        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5958        .95984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     56.353        37.308        .53428E-04   -1.4205    
  26  norm          .10000E-03    1.5430        .74174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    9.8449        .23001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10002E-03    27.149        .31316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97106        .27906        .24626E-03   -.94006    
  30  Prefactor     .82208        .28989        .29546E-03   -.98919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.64202e-09
Minuit parameter uncertainties:
  1  1.0047e-05
  2  9.89831
  3  3.94821e-06
  4  16.5193
  5  2.53991
  6  43.5911
  7  1.7051
  8  4.86598
  9  6.1152e-05
  10  0.000480509
  11  2.52657e-05
  12  4.60201
  13  3.21031e-06
  14  3.76693
  15  0.00098445
  16  5.4993e-06
  17  0.525511
  18  8.94478e-07
  19  2.57722e-05
  20  2.37375e-05
  21  66.8857
  22  1.52484e-05
  23  1.81482e-05
  24  3.15863e-06
  25  37.3231
  26  2.07826e-07
  27  0.000718666
  28  0.00128737
  29  0.27948
  30  0.290431
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  9.844e-04  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:  8.221e-01  2.904e-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.711e-01  2.795e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/526255/likelihoodResults_324345601_324604801_4FGL_J1221.5+2814_daily_bin328.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) = 3740.81797797
delta logL = -0.000241106429712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3740.15661461
delta logL = 0.661122245677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16281       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1597       1.0000          .0000       10.000    
     3 'Normalizat'    .84990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90287       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=   3740.157     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      259 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16390        2.3345        .47766E-02    .13772E-02
   2  Index         4.1562        2.7306        .11705        .91543E-04
   3  Normalizat    .84994        .50896E-01    .44258E-01    .60924E-05
   4  Prefactor     .90299        .56752E-01    .45042E-01    .64455E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.1639
  Index      = 4.15623
  Normalizat = 0.849937
  Prefactor  = 0.902986
 **********
 **   18 **HESSE 
 **********

 FCN=   3740.157     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16390        6.1404        .21466E-04   -1.5627    
   2  Index         4.1562        7.0418        .41238E-02   -.16957    
   3  Normalizat    .84994        .25273        .26087E-03   -.98242    
   4  Prefactor     .90299        .27483        .28277E-03   -.96037    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20167e-07
Minuit parameter uncertainties:
  1  2.00601
  2  6.06499
  3  0.253084
  4  0.275257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526255': 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) = 3740.15661216
delta logL = 0.661124702717

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.639e-01  2.006e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  4.156e+00  6.065e+00  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.030e-01  2.753e-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.499e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 185.378 28.238
Photon Index (Free Index): 4.16 +/- 6.06
Photon Flux (Free Index): 1.04e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.52e-05 +/- 1.65e-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/526255/cmap_HighResolution_324345601_324604801_4FGL_J1221.5+2814_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='6.61e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-05 09:53:21.522501', photon_index_error2='6.06', photon_index2='4.16', ts='-0.00', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.65e-05', EG='0.97', time_epoch_completed='1630860801.52', return_code='0', job_id='526255', GAL2='0.90', EG2='0.85', return_code2='102', photon_flux_error2='1.02e-07', ts2='1.47', photon_index='2.15' WHERE bin_id='328' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:53:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 526255: <4FGL_J1221.5+2814_daily_bin328> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin328> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 09:40:57 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:40:58 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:40:58 2021
Terminated at Sun Sep  5 09:53:22 2021
Results reported at Sun Sep  5 09:53:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin328 185.378 28.2382 324345601 324604801 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 :                                   720.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            745 sec.

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

