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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin791
RA = 185.345, Dec = 30.1677
tmin = 444355201, tmax = 444614401
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='519744', job_status='RUN', time_executed='2021-09-05 09:20:57.157777', time_epoch_executed='1630858857.16' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/519744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/519744/ft1_4FGL_J1221.3+3010_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/519744/ft1_4FGL_J1221.3+3010_daily_bin791.fits outfile=/scratch/kocevski/519744/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin791.fits ra=185.345 dec=30.1677 rad=12.0 tmin=444355201.0 tmax=444614401.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 6.60
user 6.34
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.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/519744/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin791.fits evtable="EVENTS" outfile="/scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.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.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits" evtable="EVENTS" scfile=/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits sctable="SC_DATA" outfile=/scratch/kocevski/519744/ltcube_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.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/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits
.....................!
real 11.40
user 11.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/519744/ltcube_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.fits outfile=/scratch/kocevski/519744/expmap_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.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/519744/ltcube_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.fits
.....................!
real 192.26
user 187.14
sys 4.63

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits scfile=/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits outfile=/scratch/kocevski/519744/cmap_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.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.345 yref=30.1677 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits scfile=/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits outfile=/scratch/kocevski/519744/cmap_HighResolution_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.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.345 yref=30.1677 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/519744/Model_4FGL_J1221.3+3010_daily_bin791.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/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits.....................!
real 45.88
user 44.56
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits', '/scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits', expMap='/scratch/kocevski/519744/expmap_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.fits', expCube='/scratch/kocevski/519744/ltcube_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/519744/Model_4FGL_J1221.3+3010_daily_bin791.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/519744/ft1_filtered_4FGL_J1221.3+3010_daily_bin791.fits
Spacecraft file(s): /scratch/kocevski/519744/ft2_4FGL_J1221.3+3010_daily_bin791.fits
Exposure map: /scratch/kocevski/519744/expmap_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.fits
Exposure cube: /scratch/kocevski/519744/ltcube_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/519744/Model_4FGL_J1221.3+3010_daily_bin791.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) = 5056.92164644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2860       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1515       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2834       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.063       1.0000         .10000E-03   10000.    
     8 'norm      '    8.2881       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.205       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4594       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25592E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .93865       1.0000         .10000E-03   10000.    
    17 'norm      '    15.986       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.769       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7511       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .21123E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    57.655       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.690       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4006       1.0000         .10000E-03   10000.    
    28 'norm      '    2.9145       1.0000         .10000E-03   10000.    
    29 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85301       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1871       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5056.867     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4341 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2855        22.800       -.25588E-06   -.80255E-04
   2  Prefactor     .10000E-03    15.101        .39712E-06** at limit **
   3  Prefactor     4.2474        7.7454       -.89765E-06    .22543E-03
   4  Prefactor     1.1555        77.598       -.85058E-06    .47436E-06
   5  Prefactor     4.2835        2.7476       -.31215E-07   -.26438E-04
   6  Prefactor     37.709        38.301        .27686E-06    .92020E-04
   7  Prefactor     25.065        37.070        .99127E-07    .14574E-04
   8  norm          8.2881        2.3652       -.46228E-08    .25068E-03
   9  Prefactor     .10000E-03    3.8230        .14524E-07** at limit **
  10  Prefactor     .10000E-03    78.367       -.16268E-05** at limit **
  11  norm          16.206        5.5171       -.29520E-08    .38534E-03
  12  Prefactor     .10000E-03    9.8663        .15996E-06** at limit **
  13  Prefactor     .10000E-03    3.2635       -.19846E-06** at limit **
  14  Prefactor     4.4597        3.3034        .13020E-07    .63097E-05
  15  Prefactor     .10000E-03    6.4112       -.21013E-06** at limit **
  16  norm          .93868        .33402       -.11493E-07   -.30578E-03
  17  norm          15.989        6.7816        .27191E-08   -.14227E-03
  18  Prefactor     2.3959        16.971       -.27633E-05    .16519E-03
  19  Prefactor     .10000E-03    31.255       -.97031E-06** at limit **
  20  Prefactor     66.777        104.31        .29102E-05    .57617E-04
  21  Prefactor     9.7513        6.9966        .81441E-08   -.77562E-04
  22  Prefactor     .10000E-03    4.2759       -.24254E-07** at limit **
  23  norm          .10001E-03    45.024        .52067E-05** at limit **
  24  Prefactor     57.652        37.950        .19030E-05    .25049E-03
  25  norm          .10000E-03    4.2477        .45573E-07** at limit **
  26  Prefactor     40.686        28.045       -.99662E-07    .11475E-03
  27  norm          1.4005        4.5706       -.15968E-06    .69652E-04
  28  norm          2.9174        4.5998        .32409E-06    .85359E-03
  29  norm          .10000E-03    11.950        .52263E-06** at limit **
  30  Normalizat    .85317        .22557        .28220E-06    .18888E-03
  31  Prefactor     1.1869        .24865        .57148E-06    .16678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.28546
  Prefactor  = 0.0001
  Prefactor  = 4.24741
  Prefactor  = 1.1555
  Prefactor  = 4.28354
  Prefactor  = 37.7086
  Prefactor  = 25.0652
  norm       = 8.28805
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 16.2061
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.45968
  Prefactor  = 0.0001
  norm       = 0.938678
  norm       = 15.9886
  Prefactor  = 2.39588
  Prefactor  = 0.0001
  Prefactor  = 66.7774
  Prefactor  = 9.75129
  Prefactor  = 0.0001
  norm       = 0.000100013
  Prefactor  = 57.6518
  norm       = 0.0001
  Prefactor  = 40.6858
  norm       = 1.40053
  norm       = 2.91744
  norm       = 0.000100001
  Normalizat = 0.853174
  Prefactor  = 1.18692
 **********
 **   18 **HESSE 
 **********

 FCN=   5056.867     FROM HESSE     STATUS=OK           620 CALLS     4961 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2855        22.808        .13927E-03   -1.5132    
   2  Prefactor     .10000E-03    15.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2474        7.7696        .97753E-03   -1.5296    
   4  Prefactor     1.1555        78.298        .43108E-03   -1.5493    
   5  Prefactor     4.2835        2.7283        .88688E-04   -1.5294    
   6  Prefactor     37.709        38.492        .65268E-04   -1.4479    
   7  Prefactor     25.065        37.072        .80016E-04   -1.4706    
   8  norm          8.2881        2.3599        .54823E-04   -1.5132    
   9  Prefactor     .10000E-03    3.8775        .13573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    79.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.206        5.5151        .90347E-04   -1.4903    
  12  Prefactor     .10000E-03    9.9869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4097        .25073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4597        3.3004        .10135E-03   -1.5286    
  15  Prefactor     .10000E-03    28.008        .33238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .93868        .33323        .23379E-04   -1.5514    
  17  norm          15.989        6.5066        .10017E-03   -1.4908    
  18  Prefactor     2.3959        17.211        .13230E-02   -1.5398    
  19  Prefactor     .10000E-03    31.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     66.777        104.35        .49118E-04   -1.4072    
  21  Prefactor     9.7513        6.9989        .64164E-03   -1.5083    
  22  Prefactor     .10000E-03    4.2867        .14345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    45.389        .34236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     57.652        37.874        .52834E-04   -1.4188    
  25  norm          .10000E-03    4.3221        .14303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     40.686        27.943        .62840E-04   -1.4431    
  27  norm          1.4005        4.4941        .25887E-03   -1.5471    
  28  norm          2.9174        4.5594        .17945E-03   -1.5366    
  29  norm          .10000E-03    11.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .85317        .26770        .30322E-03   -.98126    
  31  Prefactor     1.1869        .29503        .30054E-03   -.86735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57497e-09
Minuit parameter uncertainties:
  1  22.8321
  2  8.27446e-05
  3  7.77142
  4  19.0487
  5  2.72842
  6  38.5171
  7  37.1063
  8  2.35997
  9  4.34199e-06
  10  0.000685585
  11  5.51532
  12  9.82569e-06
  13  9.28838e-05
  14  3.30049
  15  0.000132078
  16  0.333229
  17  6.5069
  18  12.848
  19  1.28665e-05
  20  104.641
  21  6.9995
  22  1.83503e-05
  23  0.00155289
  24  37.8901
  25  3.69283e-06
  26  27.9516
  27  4.4952
  28  4.5599
  29  0.000234746
  30  0.26812
  31  0.295437
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  9.288e-05  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.187e+00  2.954e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.532e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/519744/likelihoodResults_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.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) = 5056.86824889
delta logL = -0.00139400286753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5056.86685532
delta logL = -4.30244654126e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11347E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7554       1.0000          .0000       10.000    
     3 'Normalizat'    .85324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5056.867     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      222 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .17312        .35153E-01** at limit **
   2  Index         1.8122        1.0915        .50000       -.11878E-03
   3  Normalizat    .85317        .15554E-02    .68534E-01    .10299E-03
   4  Prefactor     1.1869        .17954E-02    .67937E-01    .61635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.81217
  Normalizat = 0.853173
  Prefactor  = 1.18692
 **********
 **   18 **HESSE 
 **********

 FCN=   5056.867     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      257 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.874        .20124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8122        7.4709        .50000       -.69133    
   3  Normalizat    .85317        .15297E-01    .30322E-03   -.98126    
   4  Prefactor     1.1869        .17668E-01    .30054E-03   -.86735    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.91804e-08
Minuit parameter uncertainties:
  1  0.000782307
  2  10.819
  3  0.0152972
  4  0.0176684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/519744': 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) = 5056.86685179
delta logL = 3.1014869819e-06

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  7.823e-04  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.812e+00  1.082e+01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.187e+00  1.767e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.532e-01  1.530e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.345 30.168

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/519744/cmap_HighResolution_444355201_444614401_4FGL_J1221.3+3010_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-09-05 09:35:10.048910', job_id='519744', GAL2='1.19', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630859710.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='791' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:35:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 519744: <4FGL_J1221.3+3010_daily_bin791> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin791> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:20:39 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:20:41 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:20:41 2021
Terminated at Sun Sep  5 09:35:10 2021
Results reported at Sun Sep  5 09:35:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin791 185.345 30.1677 444355201 444614401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   848.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

