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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin91
RA = 185.345, Dec = 30.1677
tmin = 262915201, tmax = 263174401
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='513139', job_status='RUN', time_executed='2021-09-05 09:00:53.261326', time_epoch_executed='1630857653.26' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513139

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513139/ft1_4FGL_J1221.3+3010_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513139/ft2_4FGL_J1221.3+3010_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513139/ft1_4FGL_J1221.3+3010_daily_bin91.fits outfile=/scratch/kocevski/513139/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin91.fits ra=185.345 dec=30.1677 rad=12.0 tmin=262915201.0 tmax=263174401.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.32
user 1.13
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513139/ft2_4FGL_J1221.3+3010_daily_bin91.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/513139/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/513139/ft1_filtered_4FGL_J1221.3+3010_daily_bin91.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513139/ft1_filtered_4FGL_J1221.3+3010_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/513139/ft2_4FGL_J1221.3+3010_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/513139/ltcube_262915201_263174401_4FGL_J1221.3+3010_daily_bin91.fits outfile=/scratch/kocevski/513139/expmap_262915201_263174401_4FGL_J1221.3+3010_daily_bin91.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/513139/ltcube_262915201_263174401_4FGL_J1221.3+3010_daily_bin91.fits
.....................!
real 190.48
user 185.27
sys 4.82

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/513139/ft1_filtered_4FGL_J1221.3+3010_daily_bin91.fits scfile=/scratch/kocevski/513139/ft2_4FGL_J1221.3+3010_daily_bin91.fits outfile=/scratch/kocevski/513139/cmap_262915201_263174401_4FGL_J1221.3+3010_daily_bin91.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513139/ft1_filtered_4FGL_J1221.3+3010_daily_bin91.fits scfile=/scratch/kocevski/513139/ft2_4FGL_J1221.3+3010_daily_bin91.fits outfile=/scratch/kocevski/513139/cmap_HighResolution_262915201_263174401_4FGL_J1221.3+3010_daily_bin91.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/513139/ft1_filtered_4FGL_J1221.3+3010_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/513139/ft2_4FGL_J1221.3+3010_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/513139/Model_4FGL_J1221.3+3010_daily_bin91.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/513139/ft1_filtered_4FGL_J1221.3+3010_daily_bin91.fits.....................!
real 43.02
user 41.56
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23932E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5416       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3802       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1906       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.585       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11270E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.925       1.0000         .10000E-03   10000.    
    25 'norm      '    15.029       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.113       1.0000         .10000E-03   10000.    
    28 'norm      '    10.618       1.0000         .10000E-03   10000.    
    29 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2010       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .67227       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=   4352.114     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4215 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.167        .13159E-05** at limit **
   2  Prefactor     10.922        12.112        .16135E-06   -.28775E-04
   3  Prefactor     .10000E-03    2.8164        .20409E-06** at limit **
   4  Prefactor     57.991        30.475       -.11325E-05   -.31316E-03
   5  Prefactor     .10000E-03    1.6287        .12341E-05** at limit **
   6  Prefactor     .10000E-03    12.478        .11513E-06** at limit **
   7  Prefactor     .10000E-03    316.11        .40704E-05** at limit **
   8  norm          3.7380        1.7316       -.20467E-08   -.23818E-03
   9  Prefactor     1.5412        2.6369        .14436E-06   -.58467E-04
  10  Prefactor     .10000E-03    42.507       -.48248E-06** at limit **
  11  norm          .10000E-03    .98442       -.10357E-07** at limit **
  12  Prefactor     1.4552        25.676        .25588E-05   -.24988E-05
  13  Prefactor     1.3808        1.8207       -.32032E-07   -.28596E-04
  14  Prefactor     6.4230        2.7649       -.36718E-07   -.47392E-04
  15  Prefactor     .10000E-03    2.2184        .61764E-07** at limit **
  16  norm          1.1907        .36263       -.44882E-08   -.21280E-03
  17  norm          .10000E-03    2.2258        .10652E-06** at limit **
  18  Prefactor     16.997        12.090        .73842E-08    .48321E-06
  19  Prefactor     .10000E-03    14.499        .75822E-07** at limit **
  20  Prefactor     43.408        78.665       -.99306E-07   -.17061E-04
  21  Prefactor     .10000E-03    3.0987        .61853E-07** at limit **
  22  Prefactor     .10000E-03    3.1331        .51688E-07** at limit **
  23  norm          .10000E-03    7.8665       -.20516E-05** at limit **
  24  Prefactor     27.917        29.456        .12991E-06    .50960E-04
  25  norm          15.029        6.1040        .13148E-07    .64728E-05
  26  Prefactor     .10000E-03    15.924        .16992E-06** at limit **
  27  norm          16.111        9.5775        .46292E-07    .18257E-04
  28  norm          10.624        6.0619        .16378E-06    .40620E-04
  29  norm          .10000E-03    11.478        .81019E-06** at limit **
  30  Normalizat    1.2008        .22577        .10720E-05   -.27912E-03
  31  Prefactor     .67258        .23710       -.28310E-05   -.10696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.9216
  Prefactor  = 0.0001
  Prefactor  = 57.9911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.73804
  Prefactor  = 1.54117
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.45517
  Prefactor  = 1.38082
  Prefactor  = 6.42304
  Prefactor  = 0.0001
  norm       = 1.19066
  norm       = 0.0001
  Prefactor  = 16.9974
  Prefactor  = 0.0001
  Prefactor  = 43.4078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.9169
  norm       = 15.0289
  Prefactor  = 0.0001
  norm       = 16.1109
  norm       = 10.6237
  norm       = 0.0001
  Normalizat = 1.2008
  Prefactor  = 0.672575
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.114     FROM HESSE     STATUS=OK           620 CALLS     4835 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.922        12.113        .12127E-03   -1.5047    
   3  Prefactor     .10000E-03    2.8493        .10815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.991        31.176        .52670E-04   -1.4183    
   5  Prefactor     .10000E-03    2.1709        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    323.94        .20061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7380        1.7321        .55665E-04   -1.5321    
   9  Prefactor     1.5412        2.6011        .13609E-03   -1.5460    
  10  Prefactor     .10000E-03    42.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .98680        .63894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.4552        26.579        .35358E-03   -1.5467    
  13  Prefactor     1.3808        1.7974        .99012E-04   -1.5473    
  14  Prefactor     6.4230        2.7658        .69032E-04   -1.5201    
  15  Prefactor     .10000E-03    2.2261        .95964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1907        .36309        .20937E-04   -1.5490    
  17  norm          .10000E-03    2.2469        .96128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.997        12.087        .97151E-04   -1.4883    
  19  Prefactor     .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.408        78.762        .30363E-03   -1.4389    
  21  Prefactor     .10000E-03    3.1037        .11342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1374        .11403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.9424        .35520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.917        29.514        .75813E-04   -1.4651    
  25  norm          15.029        6.1058        .10086E-03   -1.4932    
  26  Prefactor     .10000E-03    15.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.111        9.5751        .99776E-04   -1.4905    
  28  norm          10.624        6.0368        .11482E-03   -1.5056    
  29  norm          .10000E-03    11.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2008        .26367        .23491E-03   -.86578    
  31  Prefactor     .67258        .27140        .33956E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97383e-10
Minuit parameter uncertainties:
  1  1.4774e-05
  2  12.1162
  3  1.67558e-06
  4  31.1846
  5  4.98132e-05
  6  4.93423e-06
  7  0.000551305
  8  1.73208
  9  2.60134
  10  5.01321e-05
  11  1.75864e-07
  12  12.4441
  13  1.79745
  14  2.76583
  15  1.06262e-06
  16  0.363094
  17  1.62096e-06
  18  12.0884
  19  2.82073e-06
  20  78.9513
  21  9.46869e-07
  22  4.98976e-07
  23  3.79768e-05
  24  29.5298
  25  6.10605
  26  5.65139e-06
  27  9.57603
  28  6.03718
  29  1.76708e-05
  30  0.263958
  31  0.271934
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.381e+00  1.797e+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:  6.726e-01  2.719e-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.201e+00  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.68e-08
Energy Flux (Fixed Index): 2.06e-05 +/- 2.68e-05

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

Saving results to:
/scratch/kocevski/513139/likelihoodResults_262915201_263174401_4FGL_J1221.3+3010_daily_bin91.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) = 4351.91740816
delta logL = 0.196594326535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4351.91447773
delta logL = 0.199524752556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64388       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2803       1.0000          .0000       10.000    
     3 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67997       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=   4351.914     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      250 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64390        17.379        .11845E-01    .88138E-05
   2  Index         2.2803        3.1069        .95284E-01    .12370E-03
   3  Normalizat    1.1851        .58453E-01    .53404E-01    .32778E-05
   4  Prefactor     .67996        .61529E-01    .76262E-01    .17672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.6439
  Index      = 2.2803
  Normalizat = 1.18508
  Prefactor  = 0.679958
 **********
 **   18 **HESSE 
 **********

 FCN=   4351.914     FROM HESSE     STATUS=OK            35 CALLS      285 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64390        2.9604        .58561E-03   -1.5547    
   2  Index         2.2803        1.7976        .58470E-02   -.57512    
   3  Normalizat    1.1851        .24852        .23613E-03   -.87065    
   4  Prefactor     .67996        .27130        .33763E-03   -1.0432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46258e-10
Minuit parameter uncertainties:
  1  2.76131
  2  1.85767
  3  0.248767
  4  0.271832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513139': 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) = 4351.91447772
delta logL = 0.199524767893

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  6.439e-01  2.761e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.280e+00  1.858e+00  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:  6.800e-01  2.718e-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.185e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.28 +/- 1.86
Photon Flux (Free Index): 2.96e-08 +/- 5.46e-08
Energy Flux (Free Index): 1.16e-05 +/- 2.19e-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/513139/cmap_HighResolution_262915201_263174401_4FGL_J1221.3+3010_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='1.16e-05', photon_flux_error='1.68e-08', dlogl='2.00e-01', energy_flux='2.06e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-05 09:13:37.956901', photon_index_error2='1.86', photon_index2='2.28', ts='1.23', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='6.64e-08', energy_flux_error2='2.19e-05', EG='1.20', time_epoch_completed='1630858417.96', return_code='0', job_id='513139', GAL2='0.68', EG2='1.19', return_code2='0', energy_flux_error='2.68e-05', photon_flux_error2='5.46e-08', ts2='1.63', photon_index='1.71' WHERE bin_id='91' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:13:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 513139: <4FGL_J1221.3+3010_daily_bin91> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin91> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 09:00:35 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:00:36 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:00:36 2021
Terminated at Sun Sep  5 09:13:38 2021
Results reported at Sun Sep  5 09:13:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin91 185.345 30.1677 262915201 263174401 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 :                                   758.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

