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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1407
RA = 185.378, Dec = 28.2382
tmin = 604022401, tmax = 604281601
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='532487', job_status='RUN', time_executed='2021-09-05 10:01:22.396897', time_epoch_executed='1630861282.4' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532487/ft1_4FGL_J1221.5+2814_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532487/ft2_4FGL_J1221.5+2814_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532487/ft1_4FGL_J1221.5+2814_daily_bin1407.fits outfile=/scratch/kocevski/532487/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1407.fits ra=185.378 dec=28.2382 rad=12.0 tmin=604022401.0 tmax=604281601.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.20
user 3.94
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532487/ft1_filtered_4FGL_J1221.5+2814_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/532487/ft2_4FGL_J1221.5+2814_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/532487/ltcube_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.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/532487/ft2_4FGL_J1221.5+2814_daily_bin1407.fits
.....................!
real 12.19
user 11.09
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532487/ft1_filtered_4FGL_J1221.5+2814_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/532487/ft2_4FGL_J1221.5+2814_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/532487/ltcube_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.fits outfile=/scratch/kocevski/532487/expmap_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.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/532487/ltcube_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.fits
.....................!
real 192.99
user 187.81
sys 4.39

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/532487/ft1_filtered_4FGL_J1221.5+2814_daily_bin1407.fits scfile=/scratch/kocevski/532487/ft2_4FGL_J1221.5+2814_daily_bin1407.fits outfile=/scratch/kocevski/532487/cmap_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532487/ft1_filtered_4FGL_J1221.5+2814_daily_bin1407.fits scfile=/scratch/kocevski/532487/ft2_4FGL_J1221.5+2814_daily_bin1407.fits outfile=/scratch/kocevski/532487/cmap_HighResolution_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.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.60
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7690       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12451E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7356       1.0000         .10000E-03   10000.    
    12 'norm      '    7.2760       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1611       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9597       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0415       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    119.07       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.2831       1.0000         .10000E-03   10000.    
    27 'norm      '    20.757       1.0000         .10000E-03   10000.    
    28 'norm      '    22.912       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0190       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=   6104.003     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     4508 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.562       -.62068E-06** at limit **
   2  Prefactor     .10000E-03    13.211       -.41757E-07** at limit **
   3  Prefactor     11.900        6.7436        .30420E-07    .17628E-04
   4  Prefactor     10.980        23.229       -.61343E-05   -.31182E-03
   5  Prefactor     1.7683        1.8943        .32085E-06    .52515E-04
   6  Prefactor     .10000E-03    12.678        .98698E-06** at limit **
   7  norm          .10000E-03    .55815        .78641E-07** at limit **
   8  Prefactor     .10000E-03    .97590       -.45503E-09** at limit **
   9  Prefactor     .10000E-03    177.51       -.46539E-05** at limit **
  10  Prefactor     .10000E-03    .87857       -.27795E-07** at limit **
  11  Prefactor     1.7342        4.2224       -.20160E-06   -.36276E-03
  12  norm          7.2765        3.6637       -.20220E-06   -.16850E-03
  13  Prefactor     .10000E-03    2.1119        .49520E-08** at limit **
  14  Prefactor     3.1611        2.7553        .19313E-06    .19665E-04
  15  Prefactor     2.9596        2.1978       -.29125E-07   -.68594E-04
  16  Prefactor     3.0402        3.2160        .16475E-05   -.27333E-02
  17  norm          .10000E-03    .74217E-01   -.32514E-07** at limit **
  18  norm          .10000E-03    1.4937       -.92611E-07** at limit **
  19  Prefactor     .10000E-03    4.7454        .19247E-07** at limit **
  20  Prefactor     2.7208        22.991        .89770E-05    .20308E-03
  21  Prefactor     119.06        77.869       -.27810E-05   -.12160E-03
  22  Prefactor     .10000E-03    8.5543        .18670E-06** at limit **
  23  Prefactor     .10000E-03    3.9182       -.54964E-08** at limit **
  24  norm          .10000E-03    1.4922        .14789E-08** at limit **
  25  Prefactor     .10000E-03    10.311       -.52907E-06** at limit **
  26  norm          4.2831        3.8084       -.14615E-06   -.20527E-03
  27  norm          20.758        10.176       -.68144E-06   -.32199E-04
  28  norm          22.909        17.348        .12965E-05    .16003E-03
  29  Normalizat    1.0456        .18278        .18225E-05   -.71520E-04
  30  Prefactor     1.0193        .19587       -.13977E-05    .12708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8999
  Prefactor  = 10.9795
  Prefactor  = 1.76831
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.73421
  norm       = 7.27649
  Prefactor  = 0.0001
  Prefactor  = 3.16106
  Prefactor  = 2.95961
  Prefactor  = 3.04016
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.7208
  Prefactor  = 119.063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.28313
  norm       = 20.7581
  norm       = 22.9089
  Normalizat = 1.0456
  Prefactor  = 1.01933
 **********
 **   18 **HESSE 
 **********

 FCN=   6104.003     FROM HESSE     STATUS=OK           588 CALLS     5096 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.900        6.7491        .11614E-03   -1.5018    
   4  Prefactor     10.980        23.815        .12098E-03   -1.5045    
   5  Prefactor     1.7683        1.8733        .10309E-03   -1.5442    
   6  Prefactor     .10000E-03    12.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .99559        .11239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .97743        .75365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    185.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .88039        .71430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7342        4.2365        .23796E-03   -1.5445    
  12  norm          7.2765        3.6962        .91179E-04   -1.5168    
  13  Prefactor     .10000E-03    2.1165        .11088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1611        2.7719        .10450E-03   -1.5352    
  15  Prefactor     2.9596        2.1899        .94385E-04   -1.5364    
  16  Prefactor     3.0402        4.2957        .93375E-03   -1.5359    
  17  norm          .10000E-03    .80595E-01    .41284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5089        .93250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7666        .16619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7208        23.531        .24665E-03   -1.5378    
  21  Prefactor     119.06        78.258        .36877E-04   -1.3521    
  22  Prefactor     .10000E-03    8.7083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.9395        .15100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4980        .93164E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.2831        3.8083        .13880E-03   -1.5294    
  27  norm          20.758        10.368        .87915E-04   -1.4796    
  28  norm          22.909        17.658        .83682E-04   -1.4750    
  29  Normalizat    1.0456        .21198        .24586E-03   -.91518    
  30  Prefactor     1.0193        .22813        .28047E-03   -.92088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07664e-09
Minuit parameter uncertainties:
  1  5.05625e-05
  2  1.44338e-05
  3  6.74953
  4  23.8353
  5  1.87336
  6  8.57571e-05
  7  2.36656e-05
  8  7.45552e-08
  9  0.00156699
  10  1.15517e-07
  11  4.23728
  12  3.69627
  13  1.4113e-06
  14  2.77203
  15  2.18997
  16  4.29617
  17  4.32815e-07
  18  4.00155e-06
  19  1.00367e-06
  20  16.0111
  21  78.326
  22  1.54777e-06
  23  3.37532e-05
  24  2.71324e-06
  25  4.07843e-05
  26  3.80856
  27  10.3686
  28  17.6616
  29  0.212155
  30  0.228348
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.960e+00  2.190e+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:  1.019e+00  2.283e-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.046e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 1.58e-05

TS (Fixed Index): 3.86
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532487/likelihoodResults_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.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) = 6103.89451259
delta logL = 0.10837222986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6103.88900796
delta logL = 0.113876861698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1852       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8916       1.0000          .0000       10.000    
     3 'Normalizat'    1.0574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0119       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=   6103.889     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      212 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1865        92.440        .56763E-02    .13351E-03
   2  Index         1.8914        5.2327        .17431        .38151E-05
   3  Normalizat    1.0574        .20799        .40085E-01    .11368E-04
   4  Prefactor     1.0119        .18039        .63623E-01    .70317E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18648
  Index      = 1.8914
  Normalizat = 1.05737
  Prefactor  = 1.01195
 **********
 **   18 **HESSE 
 **********

 FCN=   6103.889     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1865        2.3984        .10166E-03   -1.5351    
   2  Index         1.8914        .53514        .87562E-02   -.67094    
   3  Normalizat    1.0574        .19976        .24470E-03   -.91132    
   4  Prefactor     1.0119        .22500        .28138E-03   -.92332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63745e-12
Minuit parameter uncertainties:
  1  2.39845
  2  0.53682
  3  0.199902
  4  0.225211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532487': 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) = 6103.88900763
delta logL = 0.113877194173

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.186e+00  2.398e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.891e+00  5.368e-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:  1.012e+00  2.252e-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.057e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.89 +/- 0.54
Photon Flux (Free Index): 3.23e-08 +/- 3.31e-08
Energy Flux (Free Index): 2.97e-05 +/- 3.25e-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/532487/cmap_HighResolution_604022401_604281601_4FGL_J1221.5+2814_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.72e-03', comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='2.97e-05', photon_flux_error='3.20e-08', dlogl='1.14e-01', energy_flux='2.13e-05', photon_flux2='3.23e-08', job_status='DONE', time_completed='2021-09-05 10:17:02.900734', photon_index_error2='0.54', photon_index2='1.89', ts='3.86', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='3.25e-05', EG='1.05', time_epoch_completed='1630862222.9', return_code='0', job_id='532487', GAL2='1.01', EG2='1.06', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='3.31e-08', ts2='4.10', photon_index='2.15' WHERE bin_id='1407' 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@bullet0142>
Subject: Job 532487: <4FGL_J1221.5+2814_daily_bin1407> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1407> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:01:04 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:01:06 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:01:06 2021
Terminated at Sun Sep  5 10:17:03 2021
Results reported at Sun Sep  5 10:17:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1407 185.378 28.2382 604022401 604281601 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 :                                   935.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

