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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1525
RA = 185.378, Dec = 28.2382
tmin = 634608001, tmax = 634867201
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='533987', job_status='RUN', time_executed='2021-09-05 10:08:42.385092', time_epoch_executed='1630861722.39' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/533987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/533987/ft1_4FGL_J1221.5+2814_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/533987/ft2_4FGL_J1221.5+2814_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/533987/ft1_4FGL_J1221.5+2814_daily_bin1525.fits outfile=/scratch/kocevski/533987/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1525.fits ra=185.378 dec=28.2382 rad=12.0 tmin=634608001.0 tmax=634867201.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 3.11
user 2.88
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/533987/ft1_filtered_4FGL_J1221.5+2814_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/533987/ft2_4FGL_J1221.5+2814_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/533987/ltcube_634608001_634867201_4FGL_J1221.5+2814_daily_bin1525.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/533987/ft2_4FGL_J1221.5+2814_daily_bin1525.fits
.....................!
real 12.35
user 11.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/533987/ft1_filtered_4FGL_J1221.5+2814_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/533987/ft2_4FGL_J1221.5+2814_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/533987/ltcube_634608001_634867201_4FGL_J1221.5+2814_daily_bin1525.fits outfile=/scratch/kocevski/533987/expmap_634608001_634867201_4FGL_J1221.5+2814_daily_bin1525.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/533987/ltcube_634608001_634867201_4FGL_J1221.5+2814_daily_bin1525.fits
.....................!
real 190.03
user 185.46
sys 4.22

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/533987/ft1_filtered_4FGL_J1221.5+2814_daily_bin1525.fits scfile=/scratch/kocevski/533987/ft2_4FGL_J1221.5+2814_daily_bin1525.fits outfile=/scratch/kocevski/533987/cmap_634608001_634867201_4FGL_J1221.5+2814_daily_bin1525.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/533987/ft1_filtered_4FGL_J1221.5+2814_daily_bin1525.fits scfile=/scratch/kocevski/533987/ft2_4FGL_J1221.5+2814_daily_bin1525.fits outfile=/scratch/kocevski/533987/cmap_HighResolution_634608001_634867201_4FGL_J1221.5+2814_daily_bin1525.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.363       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19510E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4738       1.0000         .10000E-03   10000.    
     6 'Prefactor '    309.42       1.0000         .10000E-03   10000.    
     7 'norm      '    5.8639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.851       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .84160       1.0000         .10000E-03   10000.    
    18 'norm      '    19.133       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.407       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .19948E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    62.673       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5964       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70226       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=   2401.655     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3926 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    94.612        .40077E-05** at limit **
   2  Prefactor     .10000E-03    46.096       -.50562E-05** at limit **
   3  Prefactor     49.342        84.086       -.28798E-04    .78529E-04
   4  Prefactor     .10003E-03    664.71       -.53102E-03** at limit **
   5  Prefactor     6.4791        8.7355       -.43817E-06   -.45540E-03
   6  Prefactor     309.56        206.72        .78316E-04    .15229E-03
   7  norm          5.8644        4.1845       -.37111E-06    .16283E-02
   8  Prefactor     .10000E-03    4.8269       -.10676E-05** at limit **
   9  Prefactor     .10000E-03    53.890        .18083E-04** at limit **
  10  Prefactor     .10000E-03    2.1084        .74801E-08** at limit **
  11  Prefactor     .10000E-03    4.9256        .73229E-06** at limit **
  12  norm          .10000E-03    2.8945       -.59532E-07** at limit **
  13  Prefactor     .10000E-03    13.775        .66567E-05** at limit **
  14  Prefactor     .10000E-03    1.9955       -.13825E-07** at limit **
  15  Prefactor     11.850        6.0589       -.53744E-06    .22067E-03
  16  Prefactor     .10000E-03    9.2299       -.24546E-06** at limit **
  17  norm          .84151        .53665        .90224E-07    .25512E-03
  18  norm          19.133        12.059        .25179E-06    .36048E-05
  19  Prefactor     .10000E-03    21.974        .94879E-05** at limit **
  20  Prefactor     .10000E-03    92.527        .86726E-05** at limit **
  21  Prefactor     .10000E-03    40.174       -.19409E-04** at limit **
  22  Prefactor     .10000E-03    3.2447        .22746E-07** at limit **
  23  Prefactor     .10000E-03    15.246       -.10937E-04** at limit **
  24  norm          .10000E-03    4.6184        .33362E-06** at limit **
  25  Prefactor     17.418        47.039        .10247E-04   -.13965E-03
  26  norm          .10000E-03    1.5143        .57521E-08** at limit **
  27  norm          .10004E-03    10.880        .19393E-05** at limit **
  28  norm          62.700        23.037       -.18533E-05   -.10377E-02
  29  Normalizat    1.5966        .37015       -.62582E-05    .38498E-03
  30  Prefactor     .70220        .38853        .20724E-05    .61214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.3425
  Prefactor  = 0.000100032
  Prefactor  = 6.47912
  Prefactor  = 309.562
  norm       = 5.8644
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8496
  Prefactor  = 0.0001
  norm       = 0.841513
  norm       = 19.1332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4176
  norm       = 0.0001
  norm       = 0.00010004
  norm       = 62.6996
  Normalizat = 1.59665
  Prefactor  = 0.702202
 **********
 **   18 **HESSE 
 **********

 FCN=   2401.655     FROM HESSE     STATUS=OK           566 CALLS     4492 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.342        84.032        .57076E-04   -1.4302    
   4  Prefactor     .10003E-03    661.44        .20251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4791        8.6988        .78868E-03   -1.5199    
   6  Prefactor     309.56        207.57        .11550E-03   -1.2171    
   7  norm          5.8644        4.1822        .80967E-04   -1.5224    
   8  Prefactor     .10000E-03    4.8321        .10516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1095        .69499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9926        .10621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9098        .81400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.801        .17763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0003        .67599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.850        6.0551        .82714E-04   -1.5019    
  16  Prefactor     .10000E-03    9.3047        .14534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .84151        .53567        .27322E-04   -1.5525    
  18  norm          19.133        12.055        .91567E-04   -1.4833    
  19  Prefactor     .10000E-03    22.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    93.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    40.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2463        .86216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.6449        .10272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.418        45.747        .95997E-04   -1.4873    
  26  norm          .10000E-03    1.5155        .58894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10004E-03    64.090        .23565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          62.700        18.965        .50687E-04   -1.4123    
  29  Normalizat    1.5966        .43318        .26318E-03   -.75098    
  30  Prefactor     .70220        .44972        .41001E-03   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03642e-09
Minuit parameter uncertainties:
  1  5.57182e-05
  2  3.92609e-05
  3  84.2352
  4  0.00923811
  5  8.70054
  6  208.071
  7  4.18242
  8  1.23729e-05
  9  0.000415308
  10  2.53266e-06
  11  8.16503e-06
  12  7.71623e-06
  13  7.73248e-05
  14  3.28108e-06
  15  6.05545
  16  1.31685e-05
  17  0.535669
  18  12.0569
  19  9.12613e-06
  20  0.000280892
  21  6.50054e-06
  22  4.56207e-06
  23  2.96736e-05
  24  2.33265e-05
  25  45.8391
  26  2.91715e-06
  27  0.00319303
  28  18.9668
  29  0.434206
  30  0.452072
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.185e+01  6.055e+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:  7.022e-01  4.521e-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:  1.597e+00  4.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.42
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.73e-07 +/- 8.86e-08
Energy Flux (Fixed Index): 8.52e-05 +/- 4.36e-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) = 2401.53954506
delta logL = 0.114972989636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2401.51246081
delta logL = 0.142057244377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.408       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9386       1.0000          .0000       10.000    
     3 'Normalizat'    1.6230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68271       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=   2401.512     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.409        6.9945        .21444E-05   -.19771E-02
   2  Index         1.9386        .35092       -.76681E-05   -.55768E-03
   3  Normalizat    1.6231        .35672        .77097E-06    .65203E-04
   4  Prefactor     .68263        .38684       -.15757E-05    .34518E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.409
  Index      = 1.93857
  Normalizat = 1.62306
  Prefactor  = 0.682632
 **********
 **   18 **HESSE 
 **********

 FCN=   2401.512     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.409        7.2298        .89607E-04   -1.4975    
   2  Index         1.9386        .38945        .42687E-02   -.65895    
   3  Normalizat    1.6231        .41265        .26161E-03   -.74377    
   4  Prefactor     .68263        .44549        .41547E-03   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39887e-09
Minuit parameter uncertainties:
  1  7.23024
  2  0.390086
  3  0.413524
  4  0.447843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/533987': 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) = 2401.51246078
delta logL = 0.142057266864

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.341e+01  7.230e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.939e+00  3.901e-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:  6.826e-01  4.478e-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:  1.623e+00  4.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.70
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.94 +/- 0.39
Photon Flux (Free Index): 1.44e-07 +/- 9.13e-08
Energy Flux (Free Index): 1.17e-04 +/- 9.85e-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/533987/cmap_HighResolution_634608001_634867201_4FGL_J1221.5+2814_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-07', energy_flux2='1.17e-04', photon_flux_error='8.86e-08', dlogl='1.42e-01', energy_flux='8.52e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-05 10:17:02.287894', photon_index_error2='0.39', photon_index2='1.94', ts='13.42', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='9.85e-05', EG='1.60', time_epoch_completed='1630862222.29', return_code='0', job_id='533987', GAL2='0.68', EG2='1.62', return_code2='0', energy_flux_error='4.36e-05', photon_flux_error2='9.13e-08', ts2='13.70', photon_index='2.15' WHERE bin_id='1525' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:17:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 533987: <4FGL_J1221.5+2814_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1525> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 10:05:45 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:05:47 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:05:47 2021
Terminated at Sun Sep  5 10:17:02 2021
Results reported at Sun Sep  5 10:17:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1525 185.378 28.2382 634608001 634867201 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 :                                   495.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             253.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            677 sec.

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

