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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin457
RA = 185.345, Dec = 30.1677
tmin = 357782401, tmax = 358041601
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='516557', job_status='RUN', time_executed='2021-09-05 09:11:30.876732', time_epoch_executed='1630858290.88' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='457'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516557

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516557/ft1_4FGL_J1221.3+3010_daily_bin457.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516557/ft2_4FGL_J1221.3+3010_daily_bin457.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516557/ft1_4FGL_J1221.3+3010_daily_bin457.fits outfile=/scratch/kocevski/516557/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin457.fits ra=185.345 dec=30.1677 rad=12.0 tmin=357782401.0 tmax=358041601.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 3.49
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516557/ft1_filtered_4FGL_J1221.3+3010_daily_bin457.fits" evtable="EVENTS" scfile=/scratch/kocevski/516557/ft2_4FGL_J1221.3+3010_daily_bin457.fits sctable="SC_DATA" outfile=/scratch/kocevski/516557/ltcube_357782401_358041601_4FGL_J1221.3+3010_daily_bin457.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/516557/ft2_4FGL_J1221.3+3010_daily_bin457.fits
.....................!
real 12.11
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516557/ft1_filtered_4FGL_J1221.3+3010_daily_bin457.fits evtable="EVENTS" scfile=/scratch/kocevski/516557/ft2_4FGL_J1221.3+3010_daily_bin457.fits sctable="SC_DATA" expcube=/scratch/kocevski/516557/ltcube_357782401_358041601_4FGL_J1221.3+3010_daily_bin457.fits outfile=/scratch/kocevski/516557/expmap_357782401_358041601_4FGL_J1221.3+3010_daily_bin457.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/516557/ltcube_357782401_358041601_4FGL_J1221.3+3010_daily_bin457.fits
.....................!
real 192.13
user 186.47
sys 5.18

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/516557/ft1_filtered_4FGL_J1221.3+3010_daily_bin457.fits scfile=/scratch/kocevski/516557/ft2_4FGL_J1221.3+3010_daily_bin457.fits outfile=/scratch/kocevski/516557/cmap_357782401_358041601_4FGL_J1221.3+3010_daily_bin457.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.59
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516557/ft1_filtered_4FGL_J1221.3+3010_daily_bin457.fits scfile=/scratch/kocevski/516557/ft2_4FGL_J1221.3+3010_daily_bin457.fits outfile=/scratch/kocevski/516557/cmap_HighResolution_357782401_358041601_4FGL_J1221.3+3010_daily_bin457.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5545       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.658       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7331       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.193       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.5944       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23468E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .17799E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4155       1.0000         .10000E-03   10000.    
    17 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.586       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9613       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.8509       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .87098E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .13856E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    .11927E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.6280       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4117       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63461       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=   6898.783     FROM MIGRAD    STATUS=CONVERGED   1502 CALLS     4943 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5608        34.781        .17047E-03    .24276E-04
   2  Prefactor     10.989        19.107        .12076E-03   -.80961E-05
   3  Prefactor     .10000E-03    3.7389        .15594E-02** at limit **
   4  Prefactor     22.661        27.547        .84149E-04    .31208E-04
   5  Prefactor     4.7331        2.3620        .83633E-04   -.11976E-03
   6  Prefactor     33.135        35.111        .69552E-04    .21122E-03
   7  Prefactor     .10000E-03    34.888        .18142E-02** at limit **
   8  norm          8.5934        2.0231        .53922E-04    .25153E-03
   9  Prefactor     .10000E-03    2.9552        .27510E-03** at limit **
  10  Prefactor     .10001E-03    233.25        .36559E-03** at limit **
  11  norm          .10005E-03    10.692        .17628E-02** at limit **
  12  Prefactor     2.5675        5.8360        .12730E-02   -.10614E-03
  13  Prefactor     2.8521        2.1420        .10164E-03   -.93740E-03
  14  Prefactor     .10000E-03    .75442        .70139E-03** at limit **
  15  Prefactor     .10000E-03    10.418        .36285E-03** at limit **
  16  norm          2.4154        .44044        .22236E-04   -.32566E-02
  17  norm          .10000E-03    7.2689        .28915E-02** at limit **
  18  Prefactor     16.984        11.017        .97180E-04   -.19158E-03
  19  Prefactor     .10000E-03    10.468        .18142E-02** at limit **
  20  Prefactor     5.8097        118.47        .16622E-03    .25716E-04
  21  Prefactor     11.587        8.3270        .11769E-03   -.52549E-04
  22  Prefactor     5.9670        5.9441        .16446E-03   -.24270E-03
  23  norm          .10000E-03    1.2232        .89611E-03** at limit **
  24  Prefactor     .10000E-03    7.1730        .18142E-02** at limit **
  25  norm          8.8512        4.6995        .12640E-03   -.15649E-03
  26  Prefactor     .25904E-01    12.967        .92186E-01    .98098E-04
  27  norm          .10168E-03    3.5143        .52721E-01** at limit **
  28  norm          .10000E-03    3.0922        .27844E-02** at limit **
  29  norm          3.6320        4.0188        .17057E-03   -.16156E-03
  30  Normalizat    1.4117        .23432        .25139E-03   -.41744E-03
  31  Prefactor     .63457        .24723        .39360E-03   -.27861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.56084
  Prefactor  = 10.9892
  Prefactor  = 0.0001
  Prefactor  = 22.6608
  Prefactor  = 4.7331
  Prefactor  = 33.1351
  Prefactor  = 0.0001
  norm       = 8.59336
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.000100045
  Prefactor  = 2.56749
  Prefactor  = 2.85207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.41545
  norm       = 0.0001
  Prefactor  = 16.9836
  Prefactor  = 0.0001
  Prefactor  = 5.80966
  Prefactor  = 11.5867
  Prefactor  = 5.96698
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.85124
  Prefactor  = 0.0259043
  norm       = 0.000101679
  norm       = 0.0001
  norm       = 3.63205
  Normalizat = 1.41171
  Prefactor  = 0.63457
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.783     FROM HESSE     STATUS=OK           612 CALLS     5555 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5608        34.696        .68187E-05   -1.5236    
   2  Prefactor     10.989        19.085        .48305E-05   -1.5045    
   3  Prefactor     .10000E-03    3.7400        .31187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.661        27.548        .33660E-05   -1.4756    
   5  Prefactor     4.7331        2.3619        .33453E-05   -1.5273    
   6  Prefactor     33.135        35.111        .13910E-04   -1.4556    
   7  Prefactor     .10000E-03    34.889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.5934        2.0231        .21569E-05   -1.5122    
   9  Prefactor     .10000E-03    2.9553        .55020E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    233.26        .73118E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10005E-03    10.988        .70514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5675        5.8337        .50921E-04   -1.5387    
  13  Prefactor     2.8521        2.1399        .20327E-04   -1.5370    
  14  Prefactor     .10000E-03    .75445        .14028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.418        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4154        .44043        .44471E-05   -1.5397    
  17  norm          .10000E-03    7.3068        .57831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.984        11.016        .19436E-04   -1.4884    
  19  Prefactor     .10000E-03    10.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8097        118.43        .66489E-05   -1.5226    
  21  Prefactor     11.587        8.3269        .47077E-05   -1.5027    
  22  Prefactor     5.9670        5.9439        .65785E-05   -1.5219    
  23  norm          .10000E-03    1.2232        .17922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.1732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.8512        4.6994        .50562E-05   -1.5113    
  26  Prefactor     .25904E-01    12.899        .92596E-01   -1.5676    
  27  norm          .10168E-03    3.5255        .52552E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.0943        .55688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.6320        4.0111        .68228E-05   -1.5327    
  30  Normalizat    1.4117        .23446        .50279E-04   -.80290    
  31  Prefactor     .63457        .24737        .15744E-04   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67742e-09
Minuit parameter uncertainties:
  1  27.8041
  2  19.0955
  3  4.47363e-05
  4  27.563
  5  2.36194
  6  35.1331
  7  2.90165e-05
  8  2.02309
  9  2.92394e-05
  10  0.00274911
  11  0.00140907
  12  5.83502
  13  2.13991
  14  5.58892e-06
  15  7.92274e-05
  16  0.440429
  17  0.000120876
  18  11.0177
  19  3.63126e-05
  20  52.5806
  21  8.32776
  22  5.94454
  23  1.53911e-06
  24  8.42705e-07
  25  4.69964
  26  1.15412
  27  0.00486668
  28  2.18988e-05
  29  4.01144
  30  0.234637
  31  0.247799
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.852e+00  2.140e+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.346e-01  2.478e-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.412e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.95
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 4.25e-05 +/- 3.19e-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) = 6898.71584746
delta logL = 0.066833441907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6898.71219191
delta logL = 0.0704889981453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4478       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9171       1.0000          .0000       10.000    
     3 'Normalizat'    1.4014       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63680       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=   6898.712     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4472        28.743        .65367E-02    .59497E-03
   2  Index         1.9175        2.3794        .14729        .19228E-03
   3  Normalizat    1.4014        .76463E-01    .57006E-01   -.19913E-04
   4  Prefactor     .63684        .69522E-01    .88637E-01    .11733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.44725
  Index      = 1.91753
  Normalizat = 1.40137
  Prefactor  = 0.636835
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.712     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4472        2.2954        .84704E-04   -1.5395    
   2  Index         1.9175        .56137        .51020E-02   -.66428    
   3  Normalizat    1.4014        .22539        .25207E-03   -.80589    
   4  Prefactor     .63684        .24433        .39272E-03   -1.0606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01584e-10
Minuit parameter uncertainties:
  1  2.29546
  2  0.563288
  3  0.225552
  4  0.244741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516557': 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) = 6898.7121914
delta logL = 0.0704895026693

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.447e+00  2.295e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.918e+00  5.633e-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:  6.368e-01  2.447e-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.401e+00  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.08
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.92 +/- 0.56
Photon Flux (Free Index): 3.94e-08 +/- 4.39e-08
Energy Flux (Free Index): 3.37e-05 +/- 3.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/516557/cmap_HighResolution_357782401_358041601_4FGL_J1221.3+3010_daily_bin457.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='3.37e-05', photon_flux_error='2.00e-08', dlogl='7.05e-02', energy_flux='4.25e-05', photon_flux2='3.94e-08', job_status='DONE', time_completed='2021-09-05 09:27:15.818730', photon_index_error2='0.56', photon_index2='1.92', ts='9.95', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='3.13e-05', EG='1.41', time_epoch_completed='1630859235.82', return_code='0', job_id='516557', GAL2='0.64', EG2='1.40', return_code2='0', energy_flux_error='3.19e-05', photon_flux_error2='4.39e-08', ts2='10.08', photon_index='1.71' WHERE bin_id='457' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:27:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 516557: <4FGL_J1221.3+3010_daily_bin457> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin457 185.345 30.1677 357782401 358041601 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 :                                   937.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

