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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1115
RA = 185.378, Dec = 28.2382
tmin = 528336001, tmax = 528595201
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='532023', job_status='RUN', time_executed='2021-09-05 10:03:49.547953', time_epoch_executed='1630861429.55' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532023/ft1_4FGL_J1221.5+2814_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532023/ft2_4FGL_J1221.5+2814_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532023/ft1_4FGL_J1221.5+2814_daily_bin1115.fits outfile=/scratch/kocevski/532023/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1115.fits ra=185.378 dec=28.2382 rad=12.0 tmin=528336001.0 tmax=528595201.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.43
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532023/ft1_filtered_4FGL_J1221.5+2814_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/532023/ft2_4FGL_J1221.5+2814_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/532023/ltcube_528336001_528595201_4FGL_J1221.5+2814_daily_bin1115.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/532023/ft2_4FGL_J1221.5+2814_daily_bin1115.fits
.....................!
real 11.65
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532023/ft1_filtered_4FGL_J1221.5+2814_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/532023/ft2_4FGL_J1221.5+2814_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/532023/ltcube_528336001_528595201_4FGL_J1221.5+2814_daily_bin1115.fits outfile=/scratch/kocevski/532023/expmap_528336001_528595201_4FGL_J1221.5+2814_daily_bin1115.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/532023/ltcube_528336001_528595201_4FGL_J1221.5+2814_daily_bin1115.fits
.....................!
real 189.82
user 185.46
sys 3.86

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/532023/ft1_filtered_4FGL_J1221.5+2814_daily_bin1115.fits scfile=/scratch/kocevski/532023/ft2_4FGL_J1221.5+2814_daily_bin1115.fits outfile=/scratch/kocevski/532023/cmap_528336001_528595201_4FGL_J1221.5+2814_daily_bin1115.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532023/ft1_filtered_4FGL_J1221.5+2814_daily_bin1115.fits scfile=/scratch/kocevski/532023/ft2_4FGL_J1221.5+2814_daily_bin1115.fits outfile=/scratch/kocevski/532023/cmap_HighResolution_528336001_528595201_4FGL_J1221.5+2814_daily_bin1115.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.827       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .40229E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.647       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15162E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.552       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11316E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7303       1.0000         .10000E-03   10000.    
    12 'norm      '    8.1067       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1413       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6616       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .32957       1.0000         .10000E-03   10000.    
    18 'norm      '    .58364       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10986E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.850       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1058       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4099       1.0000         .10000E-03   10000.    
    24 'norm      '    2.7680       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .79774       1.0000         .10000E-03   10000.    
    27 'norm      '    3.2937       1.0000         .10000E-03   10000.    
    28 'norm      '    .85075       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2704       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .63507       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=   5572.946     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     3982 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5848       -.19052E-06** at limit **
   2  Prefactor     15.827        11.265       -.78591E-08    .48898E-04
   3  Prefactor     .10002E-03    3.4981       -.43910E-06** at limit **
   4  Prefactor     .10000E-03    11.118        .48122E-06** at limit **
   5  Prefactor     .10000E-03    .84856        .57790E-07** at limit **
   6  Prefactor     .10000E-03    36.376       -.18088E-05** at limit **
   7  norm          11.647        2.2267        .11991E-07    .27317E-03
   8  Prefactor     .10023E-03    2.3642       -.11378E-05** at limit **
   9  Prefactor     38.536        41.161       -.28294E-05   -.20330E-03
  10  Prefactor     .10000E-03    2.0538        .20623E-06** at limit **
  11  Prefactor     5.7329        4.7231       -.10989E-07    .16742E-03
  12  norm          8.1063        3.2753        .10308E-06    .30682E-03
  13  Prefactor     8.1431        7.0868        .11274E-06    .24583E-04
  14  Prefactor     .10000E-03    1.4199        .39606E-07** at limit **
  15  Prefactor     1.6614        1.5879       -.27326E-07    .65091E-04
  16  Prefactor     .10000E-03    5.0256       -.37935E-07** at limit **
  17  norm          .32976        .32690        .18625E-07    .51731E-03
  18  norm          .58431        3.1774       -.52869E-07   -.96486E-05
  19  Prefactor     .10000E-03    31.365        .14279E-05** at limit **
  20  Prefactor     .10000E-03    5.7476        .18146E-06** at limit **
  21  Prefactor     32.834        46.206       -.31505E-05   -.19235E-03
  22  Prefactor     5.1080        6.7135        .13322E-07   -.64748E-04
  23  Prefactor     2.4100        4.4156        .20309E-06   -.78312E-04
  24  norm          2.7675        2.7639        .38369E-07    .10854E-04
  25  Prefactor     .10000E-03    25.084        .63288E-06** at limit **
  26  norm          .79589        2.1502        .76224E-06    .33339E-03
  27  norm          3.2906        5.2677       -.16940E-05   -.44888E-03
  28  norm          .85377        12.115        .57046E-05   -.10648E-03
  29  Normalizat    1.2700        .19319        .10483E-05    .14957E-03
  30  Prefactor     .63532        .20340       -.15630E-05    .19428E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.827
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.6468
  Prefactor  = 0.000100226
  Prefactor  = 38.5362
  Prefactor  = 0.0001
  Prefactor  = 5.73292
  norm       = 8.10629
  Prefactor  = 8.14314
  Prefactor  = 0.0001
  Prefactor  = 1.66136
  Prefactor  = 0.0001
  norm       = 0.329759
  norm       = 0.584313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.8337
  Prefactor  = 5.10801
  Prefactor  = 2.40996
  norm       = 2.76748
  Prefactor  = 0.0001
  norm       = 0.795891
  norm       = 3.2906
  norm       = 0.853765
  Normalizat = 1.26998
  Prefactor  = 0.635317
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.946     FROM HESSE     STATUS=OK           598 CALLS     4580 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.827        11.249        .10067E-03   -1.4912    
   3  Prefactor     .10002E-03    17.832        .26644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .86928        .13419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.647        2.2304        .46197E-04   -1.5025    
   8  Prefactor     .10023E-03    18.524        .20497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.536        42.073        .64552E-04   -1.4466    
  10  Prefactor     .10000E-03    3.5363        .19782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7329        4.5375        .13475E-03   -1.5229    
  12  norm          8.1063        3.2749        .82955E-04   -1.5138    
  13  Prefactor     8.1431        7.0892        .14051E-03   -1.5137    
  14  Prefactor     .10000E-03    1.4719        .17347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6614        1.5972        .88459E-04   -1.5450    
  16  Prefactor     .10000E-03    5.0717        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .32976        .31072        .38206E-03   -1.5593    
  18  norm          .58431        9.9264        .24734E-02   -1.5555    
  19  Prefactor     .10000E-03    32.561        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7508        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.834        47.386        .69913E-04   -1.4561    
  22  Prefactor     5.1080        6.7012        .17793E-03   -1.5256    
  23  Prefactor     2.4100        4.3973        .20646E-03   -1.5397    
  24  norm          2.7675        2.7692        .12000E-03   -1.5375    
  25  Prefactor     .10000E-03    25.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .79589        1.8331        .18046E-02   -1.5530    
  27  norm          3.2906        5.1435        .15680E-03   -1.5345    
  28  norm          .85377        12.197        .38921E-03   -1.5523    
  29  Normalizat    1.2700        .22218        .22486E-03   -.84467    
  30  Prefactor     .63532        .23449        .33728E-03   -1.0612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8506e-08
Minuit parameter uncertainties:
  1  1.93335e-05
  2  11.2502
  3  0.00104972
  4  5.37732e-05
  5  3.78278e-07
  6  0.000164373
  7  2.2304
  8  0.00409658
  9  42.105
  10  1.43308e-05
  11  4.5378
  12  3.27495
  13  7.08991
  14  1.42777e-06
  15  1.59728
  16  3.32962e-06
  17  0.310722
  18  4.81722
  19  0.000176049
  20  1.65955e-05
  21  47.4409
  22  6.70219
  23  4.39789
  24  2.76937
  25  0.000130143
  26  1.83321
  27  5.14419
  28  6.45504
  29  0.222349
  30  0.234854
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.661e+00  1.597e+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:  6.353e-01  2.349e-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.270e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.43e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.15e-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) = 5572.72770703
delta logL = 0.218507639704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5572.66176156
delta logL = 0.284453105593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0676       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4045       1.0000          .0000       10.000    
     3 'Normalizat'    1.2897       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62443       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=   5572.662     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0678        1.0600        .11780E-01   -.31705E-03
   2  Index         1.4040        .52221        .28433       -.57868E-04
   3  Normalizat    1.2897        .17990        .50539E-01    .17361E-05
   4  Prefactor     .62442        .19796        .76799E-01    .26777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06779
  Index      = 1.40397
  Normalizat = 1.2897
  Prefactor  = 0.624418
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.662     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0678        1.3835        .73566E-03   -1.5501    
   2  Index         1.4040        .75900        .10796E-01   -.80266    
   3  Normalizat    1.2897        .20770        .22344E-03   -.83874    
   4  Prefactor     .62442        .22826        .34005E-03   -1.0657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12603e-10
Minuit parameter uncertainties:
  1  1.38355
  2  0.765177
  3  0.207838
  4  0.228599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532023': 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) = 5572.66176088
delta logL = 0.284453790132

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.068e+00  1.384e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.404e+00  7.652e-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.244e-01  2.286e-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.290e+00  2.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.40 +/- 0.77
Photon Flux (Free Index): 7.03e-09 +/- 1.04e-08
Energy Flux (Free Index): 3.07e-05 +/- 5.46e-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/532023/cmap_HighResolution_528336001_528595201_4FGL_J1221.5+2814_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.43e-08', energy_flux2='3.07e-05', photon_flux_error='2.34e-08', dlogl='2.84e-01', energy_flux='1.20e-05', photon_flux2='7.03e-09', job_status='DONE', time_completed='2021-09-05 10:16:49.014809', photon_index_error2='0.77', photon_index2='1.40', ts='5.42', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='5.46e-05', EG='1.27', time_epoch_completed='1630862209.01', return_code='0', job_id='532023', GAL2='0.62', EG2='1.29', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='1.04e-08', ts2='5.99', photon_index='2.15' WHERE bin_id='1115' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:16:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 532023: <4FGL_J1221.5+2814_daily_bin1115> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1115> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:28 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:30 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:30 2021
Terminated at Sun Sep  5 10:16:49 2021
Results reported at Sun Sep  5 10:16:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1115 185.378 28.2382 528336001 528595201 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 :                                   741.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

