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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin987
RA = 185.378, Dec = 28.2382
tmin = 495158401, tmax = 495417601
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='530583', job_status='RUN', time_executed='2021-09-05 09:55:53.227151', time_epoch_executed='1630860953.23' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='987'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530583/ft1_4FGL_J1221.5+2814_daily_bin987.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530583/ft2_4FGL_J1221.5+2814_daily_bin987.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530583/ft1_4FGL_J1221.5+2814_daily_bin987.fits outfile=/scratch/kocevski/530583/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin987.fits ra=185.378 dec=28.2382 rad=12.0 tmin=495158401.0 tmax=495417601.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.04
user 3.79
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530583/ft1_filtered_4FGL_J1221.5+2814_daily_bin987.fits evtable="EVENTS" scfile=/scratch/kocevski/530583/ft2_4FGL_J1221.5+2814_daily_bin987.fits sctable="SC_DATA" expcube=/scratch/kocevski/530583/ltcube_495158401_495417601_4FGL_J1221.5+2814_daily_bin987.fits outfile=/scratch/kocevski/530583/expmap_495158401_495417601_4FGL_J1221.5+2814_daily_bin987.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/530583/ltcube_495158401_495417601_4FGL_J1221.5+2814_daily_bin987.fits
.....................!
real 191.38
user 185.51
sys 4.95

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/530583/ft1_filtered_4FGL_J1221.5+2814_daily_bin987.fits scfile=/scratch/kocevski/530583/ft2_4FGL_J1221.5+2814_daily_bin987.fits outfile=/scratch/kocevski/530583/cmap_495158401_495417601_4FGL_J1221.5+2814_daily_bin987.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.990       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9684       1.0000         .10000E-03   10000.    
     7 'norm      '    .51840       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3254       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6103       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28408       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2989       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18398E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .36346       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11357E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    88.770       1.0000         .10000E-03   10000.    
    26 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0592       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6716.452     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     2716 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    9.8704       -.14187E-04** at limit **
   2  Prefactor     34.987        5.5759        .46100E-05    .15335E-02
   3  Prefactor     .10000E-03    2.8707       -.69954E-06** at limit **
   4  Prefactor     .10003E-03    9.5563        .13815E-04** at limit **
   5  Prefactor     .10000E-03    1.1154        .37558E-06** at limit **
   6  Prefactor     2.9331        21.146        .43503E-04   -.12121E-02
   7  norm          .51825        1.0454       -.66972E-07   -.78525E-04
   8  Prefactor     .10000E-03    3.7928       -.54643E-08** at limit **
   9  Prefactor     .10000E-03    16.169        .16119E-05** at limit **
  10  Prefactor     5.3251        3.0607        .22873E-06    .19766E-03
  11  Prefactor     .10000E-03    1.0983       -.38694E-06** at limit **
  12  norm          15.043        1.3992        .16298E-05    .11961E-01
  13  Prefactor     7.4925        1.0356        .26201E-06    .23756E-03
  14  Prefactor     .10000E-03    .81817       -.21052E-07** at limit **
  15  Prefactor     2.6101        1.9998       -.21768E-06   -.54384E-03
  16  Prefactor     .10000E-03    2.4442        .91168E-07** at limit **
  17  norm          .28409        .18589        .59886E-07   -.17339E-04
  18  norm          3.2986        1.1249        .16648E-05    .23073E-02
  19  Prefactor     .10000E-03    2.2562        .79556E-07** at limit **
  20  Prefactor     3.4766        11.078        .28695E-04    .51459E-03
  21  Prefactor     .10039E-03    271.91       -.45722E-04** at limit **
  22  Prefactor     .31466        53.777       -.17680E-04    .21726E-04
  23  Prefactor     .10000E-03    2.6094        .17862E-06** at limit **
  24  norm          .10000E-03    8.3364       -.12660E-05** at limit **
  25  Prefactor     88.738        5.9591       -.13558E-05    .74746E-03
  26  norm          .10006E-03    2.3962        .60787E-05** at limit **
  27  norm          .10006E-03    2.4644       -.61542E-05** at limit **
  28  norm          .10000E-03    2.9534        .55588E-06** at limit **
  29  Normalizat    1.0592        .21376       -.49183E-05   -.10730E-03
  30  Prefactor     1.2394        .24120       -.68063E-06   -.74515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Prefactor  = 34.9867
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 2.93311
  norm       = 0.518252
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32514
  Prefactor  = 0.0001
  norm       = 15.043
  Prefactor  = 7.49246
  Prefactor  = 0.0001
  Prefactor  = 2.61008
  Prefactor  = 0.0001
  norm       = 0.284088
  norm       = 3.29858
  Prefactor  = 0.0001
  Prefactor  = 3.47659
  Prefactor  = 0.000100387
  Prefactor  = 0.314662
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 88.7377
  norm       = 0.000100057
  norm       = 0.000100056
  norm       = 0.0001
  Normalizat = 1.0592
  Prefactor  = 1.23939
 **********
 **   18 **HESSE 
 **********

 FCN=   6716.452     FROM HESSE     STATUS=OK           666 CALLS     3382 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    10.302        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.987        18.092        .16937E-02   -1.4524    
   3  Prefactor     .10000E-03    2.8358        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    10.003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9331        42.645        .58918E-02   -1.5365    
   7  norm          .51825        1.0798        .11346E-01   -1.5564    
   8  Prefactor     .10000E-03    1.7145        .39640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.143        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3251        3.0845        .43539E-02   -1.5246    
  11  Prefactor     .10000E-03    1.0944        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.043        4.0948        .25817E-02   -1.4932    
  13  Prefactor     7.4925        6.4574        .36627E-02   -1.5160    
  14  Prefactor     .10000E-03    .81410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6101        2.0410        .63120E-02   -1.5385    
  16  Prefactor     .10000E-03    2.4374        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28409        .18803        .62336E-02   -1.5601    
  18  norm          3.2986        4.0005        .55726E-02   -1.5345    
  19  Prefactor     .10000E-03    2.2555        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4766        24.440        .54103E-02   -1.5335    
  21  Prefactor     .10039E-03    280.94        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .31466        7.1383        .72108E-01   -1.5596    
  23  Prefactor     .10000E-03    2.6073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.1709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     88.738        38.436        .10661E-02   -1.3821    
  26  norm          .10006E-03    2.1730        .44369E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10006E-03    4.1078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.9449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0592        .18515        .61054E-01   -.91073    
  30  Prefactor     1.2394        .20266        .64118E-01   -.85128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75859e-08
Minuit parameter uncertainties:
  1  0.000969269
  2  18.0946
  3  3.59736e-05
  4  0.00101819
  5  1.72983e-06
  6  22.3869
  7  1.07983
  8  9.65889e-07
  9  8.70357e-05
  10  3.08463
  11  1.70807e-06
  12  4.09487
  13  6.45802
  14  1.16784e-06
  15  2.04108
  16  9.45422e-06
  17  0.188026
  18  4.00081
  19  3.12841e-06
  20  18.446
  21  0.0209632
  22  2.99736
  23  1.02115e-05
  24  9.47349e-05
  25  38.4467
  26  0.000705661
  27  0.000962874
  28  3.01718e-05
  29  0.18526
  30  0.202784
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.610e+00  2.041e+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.239e+00  2.028e-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.059e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/530583/likelihoodResults_495158401_495417601_4FGL_J1221.5+2814_daily_bin987.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) = 6716.42955262
delta logL = 0.0229233586497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6716.42698031
delta logL = 0.0254956695117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7505       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0329       1.0000          .0000       10.000    
     3 'Normalizat'    1.0635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2368       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=   6716.427     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7498        75.386        .61365E-02    .27107E-03
   2  Index         2.0323        5.6405        .17638        .51032E-04
   3  Normalizat    1.0635        .12600        .60948E-01    .10355E-04
   4  Prefactor     1.2367        .11154        .64178E-01    .12739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74975
  Index      = 2.03232
  Normalizat = 1.06354
  Prefactor  = 1.23674
 **********
 **   18 **HESSE 
 **********

 FCN=   6716.427     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7498        2.1872        .10236E-03   -1.5376    
   2  Index         2.0323        .53059        .87334E-02   -.63545    
   3  Normalizat    1.0635        .21093        .26956E-03   -.90931    
   4  Prefactor     1.2367        .23758        .28387E-03   -.85208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5413e-12
Minuit parameter uncertainties:
  1  2.18725
  2  0.532138
  3  0.211098
  4  0.237791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530583': 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) = 6716.42697948
delta logL = 0.0254964970964

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.750e+00  2.187e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.032e+00  5.321e-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.237e+00  2.378e-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.064e+00  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.03 +/- 0.53
Photon Flux (Free Index): 3.37e-08 +/- 3.26e-08
Energy Flux (Free Index): 2.15e-05 +/- 2.22e-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/530583/cmap_HighResolution_495158401_495417601_4FGL_J1221.5+2814_daily_bin987.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.10e-03', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='2.15e-05', photon_flux_error='2.99e-08', dlogl='2.55e-02', energy_flux='1.88e-05', photon_flux2='3.37e-08', job_status='DONE', time_completed='2021-09-05 10:09:58.868637', photon_index_error2='0.53', photon_index2='2.03', ts='2.96', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='2.22e-05', EG='1.06', time_epoch_completed='1630861798.87', return_code='0', job_id='530583', GAL2='1.24', EG2='1.06', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='3.26e-08', ts2='3.03', photon_index='2.15' WHERE bin_id='987' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 530583: <4FGL_J1221.5+2814_daily_bin987> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin987 185.378 28.2382 495158401 495417601 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 :                                   835.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

