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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1019
RA = 185.378, Dec = 28.2382
tmin = 503452801, tmax = 503712001
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='530632', job_status='RUN', time_executed='2021-09-05 09:59:36.701539', time_epoch_executed='1630861176.7' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530632

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530632/ft1_4FGL_J1221.5+2814_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530632/ft2_4FGL_J1221.5+2814_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530632/ft1_4FGL_J1221.5+2814_daily_bin1019.fits outfile=/scratch/kocevski/530632/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1019.fits ra=185.378 dec=28.2382 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.67
user 7.37
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530632/ft2_4FGL_J1221.5+2814_daily_bin1019.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/530632/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/530632/ft1_filtered_4FGL_J1221.5+2814_daily_bin1019.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/530632/ft1_filtered_4FGL_J1221.5+2814_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/530632/ft2_4FGL_J1221.5+2814_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/530632/ltcube_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.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/530632/ft2_4FGL_J1221.5+2814_daily_bin1019.fits
.....................!
real 11.76
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530632/ft1_filtered_4FGL_J1221.5+2814_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/530632/ft2_4FGL_J1221.5+2814_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/530632/ltcube_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.fits outfile=/scratch/kocevski/530632/expmap_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.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/530632/ltcube_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.fits
.....................!
real 192.03
user 185.73
sys 5.03

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/530632/ft1_filtered_4FGL_J1221.5+2814_daily_bin1019.fits scfile=/scratch/kocevski/530632/ft2_4FGL_J1221.5+2814_daily_bin1019.fits outfile=/scratch/kocevski/530632/cmap_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.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/530632/ft1_filtered_4FGL_J1221.5+2814_daily_bin1019.fits scfile=/scratch/kocevski/530632/ft2_4FGL_J1221.5+2814_daily_bin1019.fits outfile=/scratch/kocevski/530632/cmap_HighResolution_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6629       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4057       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35336E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0474       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12783E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.7701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5077       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .23359       1.0000         .10000E-03   10000.    
    18 'norm      '    11.956       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5208       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2118       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8992       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2821       1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90434       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98575       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=   4448.106     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3358 TOTAL
                     EDM=   .93E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.746        .82400E-06** at limit **
   2  Prefactor     1.6611        51.605        .11602E-04   -.37966E-04
   3  Prefactor     1.4052        5.1629       -.13779E-06   -.15977E-04
   4  Prefactor     .10000E-03    76.052        .83390E-05** at limit **
   5  Prefactor     1.0509        2.3391       -.42370E-06   -.45808E-03
   6  Prefactor     .10000E-03    41.010       -.66777E-06** at limit **
   7  norm          5.7707        1.9783       -.49085E-07   -.41680E-03
   8  Prefactor     8.9057        7.0642        .84460E-07   -.39268E-04
   9  Prefactor     .10000E-03    8.5083        .23349E-07** at limit **
  10  Prefactor     12.005        5.5992        .53610E-07   -.48194E-06
  11  Prefactor     .10000E-03    4.5279        .11125E-09** at limit **
  12  norm          14.587        5.0866       -.15270E-07   -.25756E-04
  13  Prefactor     .10000E-03    1.8420       -.10322E-07** at limit **
  14  Prefactor     .10000E-03    1.1855        .26223E-07** at limit **
  15  Prefactor     3.5074        2.9798        .65375E-07   -.25320E-04
  16  Prefactor     .10000E-03    6.7156       -.10511E-06** at limit **
  17  norm          .23364        .30946        .19548E-07   -.14823E-03
  18  norm          11.957        6.9050        .20007E-06    .87615E-05
  19  Prefactor     6.5193        10.114        .80595E-07    .11013E-05
  20  Prefactor     5.2052        15.372        .27906E-06   -.55137E-05
  21  Prefactor     .10000E-03    107.61       -.93606E-05** at limit **
  22  Prefactor     .10000E-03    13.403       -.32001E-06** at limit **
  23  Prefactor     .10000E-03    2.4140       -.13460E-06** at limit **
  24  norm          5.9020        6.8275       -.71058E-06   -.59080E-04
  25  Prefactor     4.1041        79.271        .11172E-04    .10465E-04
  26  norm          .10000E-03    1.7718       -.22565E-07** at limit **
  27  norm          .10000E-03    1.8010       -.29232E-06** at limit **
  28  norm          .10000E-03    3.3375       -.22168E-06** at limit **
  29  Normalizat    .90489        .21433       -.98376E-06   -.75001E-04
  30  Prefactor     .98522        .23264       -.59917E-06   -.83193E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.66113
  Prefactor  = 1.40522
  Prefactor  = 0.0001
  Prefactor  = 1.05087
  Prefactor  = 0.0001
  norm       = 5.77074
  Prefactor  = 8.90567
  Prefactor  = 0.0001
  Prefactor  = 12.005
  Prefactor  = 0.0001
  norm       = 14.5875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.50744
  Prefactor  = 0.0001
  norm       = 0.233642
  norm       = 11.9574
  Prefactor  = 6.51935
  Prefactor  = 5.20522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.90199
  Prefactor  = 4.10407
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.904894
  Prefactor  = 0.985219
 **********
 **   18 **HESSE 
 **********

 FCN=   4448.106     FROM HESSE     STATUS=OK           590 CALLS     3948 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6611        52.127        .16355E-02   -1.5450    
   3  Prefactor     1.4052        5.1289        .27494E-03   -1.5471    
   4  Prefactor     .10000E-03    77.052        .39288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0509        2.2948        .14277E-03   -1.5503    
   6  Prefactor     .10000E-03    41.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7707        1.9783        .51878E-04   -1.5227    
   8  Prefactor     8.9057        7.0432        .13430E-03   -1.5111    
   9  Prefactor     .10000E-03    8.5104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.005        5.5681        .98933E-04   -1.5015    
  11  Prefactor     .10000E-03    4.6118        .13819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.587        5.0739        .82924E-04   -1.4944    
  13  Prefactor     .10000E-03    1.8428        .88401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1873        .70777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5074        2.9717        .98032E-04   -1.5333    
  16  Prefactor     .10000E-03    6.7656        .16843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23364        .29016        .39589E-03   -1.5611    
  18  norm          11.957        6.8752        .11586E-03   -1.5016    
  19  Prefactor     6.5193        10.096        .15716E-03   -1.5197    
  20  Prefactor     5.2052        15.364        .17608E-03   -1.5252    
  21  Prefactor     .10000E-03    107.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4161        .10121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.9020        6.7387        .15655E-03   -1.5222    
  25  Prefactor     4.1041        78.541        .19469E-03   -1.5303    
  26  norm          .10000E-03    1.7819        .86691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.8193        .87434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.3620        .11900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .90489        .24407        .25621E-03   -.96288    
  30  Prefactor     .98522        .26573        .28139E-03   -.93224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15609e-09
Minuit parameter uncertainties:
  1  3.2129e-06
  2  18.6279
  3  5.13046
  4  0.000265206
  5  2.29503
  6  3.78387e-05
  7  1.97833
  8  7.04385
  9  6.60947e-07
  10  5.56834
  11  2.60355e-06
  12  5.0741
  13  2.2545e-08
  14  1.15602e-06
  15  2.97183
  16  5.17588e-06
  17  0.290164
  18  6.87562
  19  10.0982
  20  15.3755
  21  0.000108542
  22  8.22108e-06
  23  6.81274e-06
  24  6.73953
  25  35.9617
  26  1.82276e-07
  27  1.31102e-05
  28  1.31178e-05
  29  0.244367
  30  0.266082
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.507e+00  2.972e+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.852e-01  2.661e-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.049e-01  2.444e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.55
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.13e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 2.14e-05

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

Saving results to:
/scratch/kocevski/530632/likelihoodResults_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.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): 0
logL (Free Index) = 4447.93801746
delta logL = 0.168274761872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4447.93438205
delta logL = 0.171910175337

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8038       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5136       1.0000          .0000       10.000    
     3 'Normalizat'    .88442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99790       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=   4447.934     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      282 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8040        2.8921        .78957E-04   -.24521E-03
   2  Index         2.5138        .66168        .54244E-02   -.41252E-04
   3  Normalizat    .88437        .23378        .25860E-03    .11272E-03
   4  Prefactor     .99793        .26442        .27966E-03    .12078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.804
  Index      = 2.51376
  Normalizat = 0.884369
  Prefactor  = 0.997926
 **********
 **   18 **HESSE 
 **********

 FCN=   4447.934     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8040        2.7508        .31583E-05   -1.5373    
   2  Index         2.5138        .62899        .21698E-03   -.52042    
   3  Normalizat    .88437        .23383        .10344E-04   -.97012    
   4  Prefactor     .99793        .26453        .11187E-04   -.92799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08585e-11
Minuit parameter uncertainties:
  1  2.75089
  2  0.631213
  3  0.234095
  4  0.264875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530632': 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) = 4447.93438199
delta logL = 0.171910235679

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.804e+00  2.751e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.514e+00  6.312e-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.979e-01  2.649e-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.844e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.51 +/- 0.63
Photon Flux (Free Index): 7.39e-08 +/- 6.37e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.64e-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/530632/cmap_HighResolution_503452801_503712001_4FGL_J1221.5+2814_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.13e-08', energy_flux2='2.11e-05', photon_flux_error='4.35e-08', dlogl='1.72e-01', energy_flux='2.52e-05', photon_flux2='7.39e-08', job_status='DONE', time_completed='2021-09-05 10:11:38.515406', photon_index_error2='0.63', photon_index2='2.51', ts='3.55', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.64e-05', EG='0.90', time_epoch_completed='1630861898.52', return_code='0', job_id='530632', GAL2='1.00', EG2='0.88', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='6.37e-08', ts2='3.92', photon_index='2.15' WHERE bin_id='1019' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 530632: <4FGL_J1221.5+2814_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1019> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:55:41 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:55:42 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:55:42 2021
Terminated at Sun Sep  5 10:11:39 2021
Results reported at Sun Sep  5 10:11:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1019 185.378 28.2382 503452801 503712001 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 :                                   717.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

