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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1107
RA = 185.378, Dec = 28.2382
tmin = 526262401, tmax = 526521601
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='532006', job_status='RUN', time_executed='2021-09-05 10:00:50.565033', time_epoch_executed='1630861250.57' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532006

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532006/ft1_4FGL_J1221.5+2814_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532006/ft2_4FGL_J1221.5+2814_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532006/ft1_4FGL_J1221.5+2814_daily_bin1107.fits outfile=/scratch/kocevski/532006/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1107.fits ra=185.378 dec=28.2382 rad=12.0 tmin=526262401.0 tmax=526521601.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.13
user 3.75
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/532006/ft2_4FGL_J1221.5+2814_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/532006/ltcube_526262401_526521601_4FGL_J1221.5+2814_daily_bin1107.fits outfile=/scratch/kocevski/532006/expmap_526262401_526521601_4FGL_J1221.5+2814_daily_bin1107.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/532006/ltcube_526262401_526521601_4FGL_J1221.5+2814_daily_bin1107.fits
.....................!
real 194.41
user 185.51
sys 5.79

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/532006/ft1_filtered_4FGL_J1221.5+2814_daily_bin1107.fits scfile=/scratch/kocevski/532006/ft2_4FGL_J1221.5+2814_daily_bin1107.fits outfile=/scratch/kocevski/532006/cmap_526262401_526521601_4FGL_J1221.5+2814_daily_bin1107.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.56
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.732       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6226       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.634       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7727       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10972E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0180       1.0000         .10000E-03   10000.    
    12 'norm      '    18.752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1544       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14081E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33462       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8549       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.379       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18363E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.2643       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4369       1.0000         .10000E-03   10000.    
    26 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.5149       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93313       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=   4853.177     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     3946 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.388        .12112E-05** at limit **
   2  Prefactor     16.731        14.276       -.26315E-07   -.26143E-04
   3  Prefactor     5.6220        5.2959        .14752E-07   -.50612E-04
   4  Prefactor     .10000E-03    14.555        .20680E-05** at limit **
   5  Prefactor     3.5639        2.2991       -.51792E-07   -.44059E-04
   6  Prefactor     17.595        34.688       -.52476E-05   -.20429E-03
   7  norm          4.7724        1.7680        .18136E-07    .27205E-04
   8  Prefactor     4.1211        5.3646       -.15921E-06   -.13082E-03
   9  Prefactor     .10000E-03    46.924        .84897E-07** at limit **
  10  Prefactor     .10000E-03    2.7786       -.40761E-07** at limit **
  11  Prefactor     6.0164        4.7190       -.80404E-07   -.26327E-04
  12  norm          18.751        5.7123       -.32631E-07    .68676E-04
  13  Prefactor     9.7272        11.653       -.14403E-05   -.28924E-03
  14  Prefactor     1.1554        2.9270        .18687E-06   -.21337E-03
  15  Prefactor     .10000E-03    .92950        .26218E-08** at limit **
  16  Prefactor     .10000E-03    3.0352        .63923E-07** at limit **
  17  norm          .33462        .27437       -.21022E-07   -.27175E-03
  18  norm          3.8561        3.5494       -.30494E-06    .67393E-03
  19  Prefactor     .10000E-03    15.625       -.11693E-05** at limit **
  20  Prefactor     24.391        22.836       -.32742E-05   -.36980E-03
  21  Prefactor     .10000E-03    205.37        .19893E-06** at limit **
  22  Prefactor     .10000E-03    3.5291        .30390E-08** at limit **
  23  Prefactor     .10000E-03    11.714       -.20849E-05** at limit **
  24  norm          2.2610        3.9095       -.15768E-06   -.12300E-03
  25  Prefactor     2.4357        21.172       -.25582E-06   -.32468E-04
  26  norm          .10000E-03    1.9007        .78930E-08** at limit **
  27  norm          .10000E-03    2.4453       -.62416E-06** at limit **
  28  norm          2.5156        3.6011        .17184E-05   -.17222E-02
  29  Normalizat    1.1376        .21174        .15702E-05   -.18290E-04
  30  Prefactor     .93272        .23083       -.18313E-06    .35101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.7309
  Prefactor  = 5.62197
  Prefactor  = 0.000100001
  Prefactor  = 3.56386
  Prefactor  = 17.5954
  norm       = 4.77235
  Prefactor  = 4.12112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.01637
  norm       = 18.7513
  Prefactor  = 9.72717
  Prefactor  = 1.15543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.334623
  norm       = 3.85605
  Prefactor  = 0.0001
  Prefactor  = 24.3911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26105
  Prefactor  = 2.43572
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.5156
  Normalizat = 1.13764
  Prefactor  = 0.932719
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.177     FROM HESSE     STATUS=OK           594 CALLS     4540 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.731        14.272        .97914E-04   -1.4890    
   3  Prefactor     5.6220        5.2932        .14888E-03   -1.5234    
   4  Prefactor     .10000E-03    14.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5639        2.3002        .81586E-04   -1.5330    
   6  Prefactor     17.595        35.657        .95376E-04   -1.4869    
   7  norm          4.7724        1.7676        .53917E-04   -1.5271    
   8  Prefactor     4.1211        5.2977        .17275E-03   -1.5302    
   9  Prefactor     .10000E-03    47.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7625        .21568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0164        4.6021        .12557E-03   -1.5217    
  12  norm          18.751        5.6386        .79470E-04   -1.4842    
  13  Prefactor     9.7272        11.762        .12845E-03   -1.5084    
  14  Prefactor     1.1554        2.8549        .16529E-03   -1.5493    
  15  Prefactor     .10000E-03    .94487        .65545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3486        .23481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33462        .26602        .31301E-03   -1.5592    
  18  norm          3.8561        3.5608        .61238E-03   -1.5315    
  19  Prefactor     .10000E-03    15.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.391        23.297        .81128E-04   -1.4720    
  21  Prefactor     .10000E-03    206.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5420        .12780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2610        3.8706        .17083E-03   -1.5407    
  25  Prefactor     2.4357        20.915        .26211E-03   -1.5396    
  26  norm          .10000E-03    1.9145        .93782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.5431        .21409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.5156        4.5009        .96594E-03   -1.5391    
  29  Normalizat    1.1376        .25254        .24917E-03   -.88552    
  30  Prefactor     .93272        .27350        .15348E-02   -.95007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48725e-09
Minuit parameter uncertainties:
  1  0.000117242
  2  14.2746
  3  5.29361
  4  0.000215288
  5  2.30029
  6  35.6997
  7  1.7676
  8  5.29827
  9  0.000245251
  10  1.21537e-05
  11  4.60241
  12  5.63881
  13  11.765
  14  2.85522
  15  1.09738e-06
  16  1.83343e-05
  17  0.266019
  18  3.56098
  19  0.000157702
  20  23.3055
  21  7.68974e-05
  22  4.20291e-06
  23  0.000108517
  24  3.87099
  25  14.2812
  26  3.17926e-06
  27  2.87854e-05
  28  4.50153
  29  0.252812
  30  0.273904
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.327e-01  2.739e-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.138e+00  2.528e-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: 6.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532006/likelihoodResults_526262401_526521601_4FGL_J1221.5+2814_daily_bin1107.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) = 4853.1820013
delta logL = -0.00482762963657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4853.17717375
delta logL = -8.03447619546e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1510       1.0000          .0000       10.000    
     3 'Normalizat'    1.1377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93275       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=   4853.177     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    43.329        .65565E-03** at limit **
   2  Index         2.1389        6.8671        .50000        .15894E-04
   3  Normalizat    1.1376        .36876E-01    .24917E-03    .36866E-04
   4  Prefactor     .93272        .41754E-01    .30696E-03    .38740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Index      = 2.13887
  Normalizat = 1.13764
  Prefactor  = 0.932719
 **********
 **   18 **HESSE 
 **********

 FCN=   4853.177     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    154.73        .13113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1389        6.8114        .50000       -.60922    
   3  Normalizat    1.1376        .89728E-01    .99668E-05   -.88552    
   4  Prefactor     .93272        .10127        .12278E-04   -.95007    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94913e-08
Minuit parameter uncertainties:
  1  0.00476318
  2  655.113
  3  0.0897397
  4  0.10129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532006': 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) = 4853.17717363
delta logL = 4.23506207881e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.327e-01  1.013e-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.138e+00  8.974e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/532006/cmap_HighResolution_526262401_526521601_4FGL_J1221.5+2814_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.07e-08', time_completed='2021-09-05 10:14:00.681976', job_id='532006', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630862040.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='4.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1107' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:14:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 532006: <4FGL_J1221.5+2814_daily_bin1107> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1107> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:27 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:29 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:29 2021
Terminated at Sun Sep  5 10:14:03 2021
Results reported at Sun Sep  5 10:14:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1107 185.378 28.2382 526262401 526521601 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            816 sec.

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

