/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 159 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin39
RA = 185.345, Dec = 30.1677
tmin = 249436801, tmax = 249696001
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='511144', job_status='RUN', time_executed='2021-09-05 08:58:29.919240', time_epoch_executed='1630857509.92' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511144/ft1_4FGL_J1221.3+3010_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511144/ft1_4FGL_J1221.3+3010_daily_bin39.fits outfile=/scratch/kocevski/511144/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin39.fits ra=185.345 dec=30.1677 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.46
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.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/511144/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/511144/ft1_filtered_4FGL_J1221.3+3010_daily_bin39.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511144/ft1_filtered_4FGL_J1221.3+3010_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/511144/ltcube_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.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/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits
.....................!
real 13.09
user 12.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511144/ft1_filtered_4FGL_J1221.3+3010_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/511144/ltcube_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.fits outfile=/scratch/kocevski/511144/expmap_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.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/511144/ltcube_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.fits
.....................!
real 191.06
user 186.11
sys 4.53

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/511144/ft1_filtered_4FGL_J1221.3+3010_daily_bin39.fits scfile=/scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits outfile=/scratch/kocevski/511144/cmap_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511144/ft1_filtered_4FGL_J1221.3+3010_daily_bin39.fits scfile=/scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits outfile=/scratch/kocevski/511144/cmap_HighResolution_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511144/ft1_filtered_4FGL_J1221.3+3010_daily_bin39.fits', '/scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits', expMap='/scratch/kocevski/511144/expmap_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.fits', expCube='/scratch/kocevski/511144/ltcube_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511144/Model_4FGL_J1221.3+3010_daily_bin39.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/511144/ft1_filtered_4FGL_J1221.3+3010_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/511144/ft2_4FGL_J1221.3+3010_daily_bin39.fits
Exposure map: /scratch/kocevski/511144/expmap_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.fits
Exposure cube: /scratch/kocevski/511144/ltcube_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511144/Model_4FGL_J1221.3+3010_daily_bin39.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) = 5373.6642021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14477E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .69264       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.854       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1210       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82381       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4442       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9358       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3036       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .84790       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9524       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9624       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16387E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9376       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.8079       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.366       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96605       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99466       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=   5373.542     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     4142 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.631        20.182       -.49462E-06   -.10118E-03
   2  Prefactor     .10000E-03    3.9748       -.49757E-06** at limit **
   3  Prefactor     .10000E-03    4.9171        .25651E-05** at limit **
   4  Prefactor     11.028        21.229        .48628E-05    .24195E-03
   5  Prefactor     .68997        2.4180       -.40221E-06   -.69340E-03
   6  Prefactor     .10000E-03    6.6876       -.54669E-06** at limit **
   7  Prefactor     41.851        41.903       -.15935E-05   -.63261E-04
   8  norm          4.1207        1.5263       -.87954E-07   -.51825E-04
   9  Prefactor     .82551        2.9960        .38175E-06   -.25022E-03
  10  Prefactor     .10000E-03    17.565       -.40988E-06** at limit **
  11  norm          1.4446        3.3252        .17483E-06   -.24472E-03
  12  Prefactor     4.9346        6.6104        .20634E-05   -.12118E-02
  13  Prefactor     5.3034        2.8679       -.81256E-07   -.43193E-04
  14  Prefactor     7.2080        2.9452        .99359E-07    .97786E-04
  15  Prefactor     .10000E-03    2.7863       -.26046E-07** at limit **
  16  norm          .84789        .30562        .11428E-07   -.30459E-03
  17  norm          1.9524        3.7449        .26472E-06   -.12318E-03
  18  Prefactor     9.9626        10.373        .10697E-06   -.71399E-05
  19  Prefactor     .10000E-03    6.7503        .10486E-05** at limit **
  20  Prefactor     .10000E-03    27.635        .20340E-05** at limit **
  21  Prefactor     .10000E-03    6.3389        .36821E-06** at limit **
  22  Prefactor     .10000E-03    1.8301        .12999E-07** at limit **
  23  norm          2.9376        4.1756        .91982E-07   -.57974E-04
  24  Prefactor     .10000E-03    26.817       -.13746E-05** at limit **
  25  norm          6.8073        4.3291        .46243E-07   -.62235E-04
  26  Prefactor     .10000E-03    5.3671       -.25806E-05** at limit **
  27  norm          .10000E-03    2.2005        .12123E-07** at limit **
  28  norm          11.366        5.1792        .96939E-07    .14946E-06
  29  norm          .10000E-03    3.4590        .21066E-06** at limit **
  30  Normalizat    .96622        .19877       -.13968E-05   -.25112E-04
  31  Prefactor     .99445        .22412        .10622E-06   -.84576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0278
  Prefactor  = 0.689967
  Prefactor  = 0.0001
  Prefactor  = 41.8505
  norm       = 4.12071
  Prefactor  = 0.825512
  Prefactor  = 0.0001
  norm       = 1.44457
  Prefactor  = 4.93461
  Prefactor  = 5.30341
  Prefactor  = 7.20804
  Prefactor  = 0.0001
  norm       = 0.847891
  norm       = 1.95237
  Prefactor  = 9.9626
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 2.93765
  Prefactor  = 0.0001
  norm       = 6.80726
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.3658
  norm       = 0.0001
  Normalizat = 0.966215
  Prefactor  = 0.994446
 **********
 **   18 **HESSE 
 **********

 FCN=   5373.542     FROM HESSE     STATUS=OK           626 CALLS     4768 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.631        20.234        .66213E-04   -1.4497    
   2  Prefactor     .10000E-03    3.9777        .14270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1117        .31708E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.028        21.537        .12079E-03   -1.5044    
   5  Prefactor     .68997        2.4490        .18556E-03   -1.5542    
   6  Prefactor     .10000E-03    6.6938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.851        41.972        .61963E-04   -1.4413    
   8  norm          4.1207        1.5283        .52177E-04   -1.5302    
   9  Prefactor     .82551        2.9561        .23409E-03   -1.5526    
  10  Prefactor     .10000E-03    17.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4446        3.2930        .17906E-03   -1.5468    
  12  Prefactor     4.9346        8.5628        .90516E-03   -1.5264    
  13  Prefactor     5.3034        2.8541        .82185E-04   -1.5247    
  14  Prefactor     7.2080        2.9360        .74635E-04   -1.5171    
  15  Prefactor     .10000E-03    2.8089        .11944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .84789        .30446        .23106E-04   -1.5524    
  17  norm          1.9524        3.7243        .18912E-03   -1.5429    
  18  Prefactor     9.9626        10.366        .12695E-03   -1.5077    
  19  Prefactor     .10000E-03    6.7640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    61.835        .35431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8325        .96844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9376        4.1581        .16920E-03   -1.5365    
  24  Prefactor     .10000E-03    26.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.8073        4.3219        .11738E-03   -1.5186    
  26  Prefactor     .10000E-03    5.4216        .16661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2100        .10619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.366        5.1735        .10573E-03   -1.5034    
  29  norm          .10000E-03    3.4669        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96622        .23105        .25116E-03   -.94171    
  31  Prefactor     .99445        .25939        .29010E-03   -.92915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47662e-09
Minuit parameter uncertainties:
  1  20.2383
  2  1.32411e-05
  3  7.0681e-05
  4  21.5525
  5  2.44932
  6  2.21005e-05
  7  42.0012
  8  1.52831
  9  2.95665
  10  2.39528e-05
  11  3.2934
  12  8.56494
  13  2.85421
  14  2.93603
  15  7.42187e-07
  16  0.304461
  17  3.72479
  18  10.3674
  19  4.38033e-05
  20  0.000171424
  21  0.000972722
  22  1.17469e-06
  23  4.15853
  24  9.05222e-05
  25  4.32208
  26  9.12671e-05
  27  1.74761e-06
  28  5.17366
  29  5.43854e-06
  30  0.231286
  31  0.259713
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  5.303e+00  2.854e+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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.944e-01  2.597e-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:  9.662e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 32.23
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.95e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 7.89e-05 +/- 4.25e-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) = 5372.21510211
delta logL = 1.32674360515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5372.15669353
delta logL = 1.38515218164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5321       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1385       1.0000          .0000       10.000    
     3 'Normalizat'    .98290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99212       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=   5372.157     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5329        3.9248        .39256E-02   -.51189E-04
   2  Index         1.1386        .35038        .17351        .56196E-06
   3  Normalizat    .98285        .18904        .45952E-01    .34215E-04
   4  Prefactor     .99219        .22193        .46169E-01    .14306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.53287
  Index      = 1.13863
  Normalizat = 0.982846
  Prefactor  = 0.99219
 **********
 **   18 **HESSE 
 **********

 FCN=   5372.157     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5329        3.6828        .98902E-04   -1.5197    
   2  Index         1.1386        .35523        .70726E-02   -.88241    
   3  Normalizat    .98285        .21861        .24954E-03   -.93607    
   4  Prefactor     .99219        .25720        .29082E-03   -.92990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08738e-12
Minuit parameter uncertainties:
  1  3.68291
  2  0.355975
  3  0.218813
  4  0.257517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511144': 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) = 5372.15669345
delta logL = 1.38515226306

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  6.533e+00  3.683e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.139e+00  3.560e-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:  9.922e-01  2.575e-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:  9.828e-01  2.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.03
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.14 +/- 0.36
Photon Flux (Free Index): 2.22e-08 +/- 1.60e-08
Energy Flux (Free Index): 2.22e-04 +/- 1.69e-04

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/511144/cmap_HighResolution_249436801_249696001_4FGL_J1221.3+3010_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.95e-08', energy_flux2='2.22e-04', photon_flux_error='2.66e-08', dlogl='1.39e+00', energy_flux='7.89e-05', photon_flux2='2.22e-08', job_status='DONE', time_completed='2021-09-05 09:10:59.991519', photon_index_error2='0.36', photon_index2='1.14', ts='32.23', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.69e-04', EG='0.97', time_epoch_completed='1630858259.99', return_code='0', job_id='511144', GAL2='0.99', EG2='0.98', return_code2='0', energy_flux_error='4.25e-05', photon_flux_error2='1.60e-08', ts2='35.03', photon_index='1.71' WHERE bin_id='39' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:11:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 511144: <4FGL_J1221.3+3010_daily_bin39> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin39> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:55:38 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:55:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 08:55:40 2021
Terminated at Sun Sep  5 09:11:00 2021
Results reported at Sun Sep  5 09:11:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin39 185.345 30.1677 249436801 249696001 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 :                                   748.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

