/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 9 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 = 7444
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin376
RA = 185.345, Dec = 30.1677
tmin = 336787201, tmax = 337046401
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='516431', job_status='RUN', time_executed='2021-09-05 09:11:14.488961', time_epoch_executed='1630858274.49' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516431

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516431/ft1_4FGL_J1221.3+3010_daily_bin376.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516431/ft2_4FGL_J1221.3+3010_daily_bin376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516431/ft1_4FGL_J1221.3+3010_daily_bin376.fits outfile=/scratch/kocevski/516431/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin376.fits ra=185.345 dec=30.1677 rad=12.0 tmin=336787201.0 tmax=337046401.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.73
user 6.42
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516431/ft1_filtered_4FGL_J1221.3+3010_daily_bin376.fits evtable="EVENTS" scfile=/scratch/kocevski/516431/ft2_4FGL_J1221.3+3010_daily_bin376.fits sctable="SC_DATA" expcube=/scratch/kocevski/516431/ltcube_336787201_337046401_4FGL_J1221.3+3010_daily_bin376.fits outfile=/scratch/kocevski/516431/expmap_336787201_337046401_4FGL_J1221.3+3010_daily_bin376.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/516431/ltcube_336787201_337046401_4FGL_J1221.3+3010_daily_bin376.fits
.....................!
real 189.83
user 184.76
sys 4.75

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/516431/ft1_filtered_4FGL_J1221.3+3010_daily_bin376.fits scfile=/scratch/kocevski/516431/ft2_4FGL_J1221.3+3010_daily_bin376.fits outfile=/scratch/kocevski/516431/cmap_336787201_337046401_4FGL_J1221.3+3010_daily_bin376.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516431/ft1_filtered_4FGL_J1221.3+3010_daily_bin376.fits scfile=/scratch/kocevski/516431/ft2_4FGL_J1221.3+3010_daily_bin376.fits outfile=/scratch/kocevski/516431/cmap_HighResolution_336787201_337046401_4FGL_J1221.3+3010_daily_bin376.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.273       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13973E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8396       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.193       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5988       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0666       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9247       1.0000         .10000E-03   10000.    
    16 'norm      '    .46668       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.677       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.0364       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22011       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2132       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .44067       1.0000         .10000E-03   10000.    
    29 'norm      '    .70935       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1255       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .78731       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4498.461     FROM MIGRAD    STATUS=CONVERGED   1443 CALLS     4846 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5761        .16792E-02** at limit **
   2  Prefactor     .10000E-03    4.8629        .14433E-02** at limit **
   3  Prefactor     11.272        7.4955        .11932E-03   -.22295E-04
   4  Prefactor     .10002E-03    56.457        .45142E-02** at limit **
   5  Prefactor     .24016        2.1281        .14540E-02    .45776E-03
   6  Prefactor     13.342        23.575        .10965E-03   -.18040E-04
   7  Prefactor     .10000E-03    58.957        .18142E-02** at limit **
   8  norm          2.5804        1.4602        .58108E-04   -.31949E-03
   9  Prefactor     4.8395        4.6564        .13643E-03    .12749E-04
  10  Prefactor     11.190        28.021        .11975E-03   -.17754E-04
  11  norm          3.5987        3.8423        .11942E-03   -.91013E-04
  12  Prefactor     .10000E-03    12.120        .36285E-03** at limit **
  13  Prefactor     3.8609        2.7490        .83852E-04   -.84331E-04
  14  Prefactor     2.0665        2.0709        .91660E-04   -.97736E-04
  15  Prefactor     4.9243        5.4044        .15760E-03    .50496E-06
  16  norm          .46666        .24931        .23361E-04   -.18006E-04
  17  norm          .10000E-03    1.8541        .89028E-03** at limit **
  18  Prefactor     .10000E-03    3.7481        .12671E-02** at limit **
  19  Prefactor     .10000E-03    6.0660        .16133E-02** at limit **
  20  Prefactor     27.659        51.871        .76151E-04    .52700E-04
  21  Prefactor     2.0359        8.3125        .14492E-02    .22551E-03
  22  Prefactor     .20684        21.028        .23872E-02   -.63299E-03
  23  norm          .10000E-03    1.7792        .87117E-03** at limit **
  24  Prefactor     9.2180        19.537        .13204E-03    .72325E-05
  25  norm          .10000E-03    1.2343        .72653E-03** at limit **
  26  Prefactor     .10000E-03    7.7713        .18142E-02** at limit **
  27  norm          .10000E-03    1.4309        .78343E-03** at limit **
  28  norm          .43505        12.060        .20437E-02    .14750E-02
  29  norm          .72277        12.982        .52081E-01    .15445E-02
  30  Normalizat    1.1256        .21966        .21601E-03   -.13504E-03
  31  Prefactor     .78725        .25440        .29752E-03   -.23806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2721
  Prefactor  = 0.000100016
  Prefactor  = 0.240163
  Prefactor  = 13.3424
  Prefactor  = 0.0001
  norm       = 2.5804
  Prefactor  = 4.83951
  Prefactor  = 11.19
  norm       = 3.59868
  Prefactor  = 0.0001
  Prefactor  = 3.86086
  Prefactor  = 2.06655
  Prefactor  = 4.92426
  norm       = 0.466662
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6586
  Prefactor  = 2.03589
  Prefactor  = 0.206844
  norm       = 0.0001
  Prefactor  = 9.21796
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.435045
  norm       = 0.72277
  Normalizat = 1.12563
  Prefactor  = 0.787251
 **********
 **   18 **HESSE 
 **********

 FCN=   4498.461     FROM HESSE     STATUS=OK           602 CALLS     5448 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5762        .33583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8631        .28867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.272        7.4942        .47729E-05   -1.5036    
   4  Prefactor     .10002E-03    57.174        .90285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .24016        2.1213        .58160E-04   -1.5610    
   6  Prefactor     13.342        23.576        .43861E-05   -1.4977    
   7  Prefactor     .10000E-03    58.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5804        1.4601        .23243E-05   -1.5387    
   9  Prefactor     4.8395        4.6561        .54573E-05   -1.5268    
  10  Prefactor     11.190        28.018        .47898E-05   -1.5039    
  11  norm          3.5987        3.8420        .47767E-05   -1.5329    
  12  Prefactor     .10000E-03    12.121        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8609        2.7490        .33541E-05   -1.5315    
  14  Prefactor     2.0665        2.0707        .36664E-05   -1.5420    
  15  Prefactor     4.9243        5.4040        .63039E-05   -1.5264    
  16  norm          .46666        .24929        .93446E-06   -1.5571    
  17  norm          .10000E-03    1.8542        .17806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7482        .25343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0661        .32266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.659        51.903        .15230E-04   -1.4656    
  21  Prefactor     2.0359        8.2954        .57967E-04   -1.5423    
  22  Prefactor     .20684        21.163        .95486E-04   -1.5617    
  23  norm          .10000E-03    1.7793        .17423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.2180        19.598        .52815E-05   -1.5101    
  25  norm          .10000E-03    1.2343        .14531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.7720        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.4309        .15669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .43505        49.226        .81749E-04   -1.5576    
  29  norm          .72277        102.39        .28344E-02   -1.5538    
  30  Normalizat    1.1256        .22389        .43202E-04   -.88933    
  31  Prefactor     .78725        .25855        .11901E-04   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95034e-09
Minuit parameter uncertainties:
  1  3.43832e-06
  2  1.89714e-06
  3  7.49482
  4  0.00192193
  5  1.4273
  6  23.5927
  7  0.000161631
  8  1.46012
  9  4.65641
  10  28.0512
  11  3.84226
  12  0.000145778
  13  2.74909
  14  2.07074
  15  5.40454
  16  0.249293
  17  1.24535e-06
  18  7.09856e-06
  19  1.02148e-05
  20  51.9881
  21  8.22089
  22  4.185
  23  1.62638e-05
  24  19.6115
  25  1.26931e-06
  26  8.85461e-06
  27  6.21902e-06
  28  9.26209
  29  17.2337
  30  0.224075
  31  0.258946
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.861e+00  2.749e+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:  7.873e-01  2.589e-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:  1.126e+00  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.40
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 3.60e-08 +/- 2.57e-08
Energy Flux (Fixed Index): 5.75e-05 +/- 4.09e-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) = 4498.4579031
delta logL = 0.00306563301729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4498.4566661
delta logL = 0.00430263684575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0019       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6671       1.0000          .0000       10.000    
     3 'Normalizat'    1.1273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78669       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4498.457     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0020        3.0899        .86392E-04   -.27977E-03
   2  Index         1.6670        .44731        .55564E-02    .33098E-03
   3  Normalizat    1.1272        .21246        .21590E-03   -.23643E-04
   4  Prefactor     .78686        .24909        .29763E-03   -.14668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00197
  Index      = 1.66699
  Normalizat = 1.12716
  Prefactor  = 0.786859
 **********
 **   18 **HESSE 
 **********

 FCN=   4498.457     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0020        3.0301        .34557E-05   -1.5308    
   2  Index         1.6670        .43865        .11113E-02   -.72964    
   3  Normalizat    1.1272        .21258        .86361E-05   -.88885    
   4  Prefactor     .78686        .24929        .11905E-04   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4896e-11
Minuit parameter uncertainties:
  1  3.03026
  2  0.439671
  3  0.212746
  4  0.249648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516431': 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) = 4498.45666582
delta logL = 0.00430292084002

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  4.002e+00  3.030e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.667e+00  4.397e-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:  7.869e-01  2.496e-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:  1.127e+00  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.44
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.67 +/- 0.44
Photon Flux (Free Index): 3.39e-08 +/- 3.21e-08
Energy Flux (Free Index): 6.15e-05 +/- 6.15e-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/516431/cmap_HighResolution_336787201_337046401_4FGL_J1221.3+3010_daily_bin376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.60e-08', energy_flux2='6.15e-05', photon_flux_error='2.57e-08', dlogl='4.30e-03', energy_flux='5.75e-05', photon_flux2='3.39e-08', job_status='DONE', time_completed='2021-09-05 09:23:49.359751', photon_index_error2='0.44', photon_index2='1.67', ts='14.40', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='6.15e-05', EG='1.13', time_epoch_completed='1630859029.36', return_code='0', job_id='516431', GAL2='0.79', EG2='1.13', return_code2='0', energy_flux_error='4.09e-05', photon_flux_error2='3.21e-08', ts2='14.44', photon_index='1.71' WHERE bin_id='376' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:23:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 516431: <4FGL_J1221.3+3010_daily_bin376> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin376 185.345 30.1677 336787201 337046401 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 :                                   747.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             363.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            789 sec.

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

