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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1202
RA = 185.345, Dec = 30.1677
tmin = 550886401, tmax = 551145601
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='521656', job_status='RUN', time_executed='2021-09-05 09:28:49.274472', time_epoch_executed='1630859329.27' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521656

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521656/ft1_4FGL_J1221.3+3010_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521656/ft1_4FGL_J1221.3+3010_daily_bin1202.fits outfile=/scratch/kocevski/521656/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1202.fits ra=185.345 dec=30.1677 rad=12.0 tmin=550886401.0 tmax=551145601.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.79
user 3.56
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521656/ft1_filtered_4FGL_J1221.3+3010_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/521656/ltcube_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.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/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits
.....................!
real 11.67
user 11.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521656/ft1_filtered_4FGL_J1221.3+3010_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/521656/ltcube_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.fits outfile=/scratch/kocevski/521656/expmap_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.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/521656/ltcube_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.fits
.....................!
real 189.75
user 185.11
sys 4.26

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/521656/ft1_filtered_4FGL_J1221.3+3010_daily_bin1202.fits scfile=/scratch/kocevski/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits outfile=/scratch/kocevski/521656/cmap_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.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/521656/ft1_filtered_4FGL_J1221.3+3010_daily_bin1202.fits scfile=/scratch/kocevski/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits outfile=/scratch/kocevski/521656/cmap_HighResolution_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.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.65
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/521656/ft1_filtered_4FGL_J1221.3+3010_daily_bin1202.fits', '/scratch/kocevski/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits', expMap='/scratch/kocevski/521656/expmap_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.fits', expCube='/scratch/kocevski/521656/ltcube_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/521656/Model_4FGL_J1221.3+3010_daily_bin1202.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/521656/ft1_filtered_4FGL_J1221.3+3010_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/521656/ft2_4FGL_J1221.3+3010_daily_bin1202.fits
Exposure map: /scratch/kocevski/521656/expmap_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.fits
Exposure cube: /scratch/kocevski/521656/ltcube_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/521656/Model_4FGL_J1221.3+3010_daily_bin1202.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3248.9119449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.946       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    63.157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.7504       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.058       1.0000         .10000E-03   10000.    
    11 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8618       1.0000         .10000E-03   10000.    
    16 'norm      '    .37933       1.0000         .10000E-03   10000.    
    17 'norm      '    13.992       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.668       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.000       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .79482       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .32317E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.5422       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .58450E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    2.4613       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2910       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .84248       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=   3248.904     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4777 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.941        36.013       -.11468E-06   -.53279E-05
   2  Prefactor     .10000E-03    24.755        .29767E-06** at limit **
   3  Prefactor     .10000E-03    6.3557        .11700E-06** at limit **
   4  Prefactor     20.387        38.821       -.69416E-06   -.22035E-04
   5  Prefactor     1.7438        2.6444        .10276E-06    .30887E-03
   6  Prefactor     63.146        58.582       -.46381E-06   -.40689E-04
   7  Prefactor     .10000E-03    84.369        .28654E-06** at limit **
   8  norm          6.7499        2.8695       -.47373E-07   -.85677E-04
   9  Prefactor     4.7792        4.3689        .75222E-09    .15580E-03
  10  Prefactor     23.062        65.392       -.40073E-07    .13854E-04
  11  norm          .10000E-03    4.3759        .97518E-07** at limit **
  12  Prefactor     .10000E-03    5.7890        .77013E-07** at limit **
  13  Prefactor     4.9737        4.2219       -.11172E-06    .10318E-04
  14  Prefactor     2.2127        4.8796        .51373E-06    .49778E-03
  15  Prefactor     5.8620        8.9998        .24288E-07    .68243E-04
  16  norm          .37936        .28247       -.13016E-07    .26540E-03
  17  norm          13.991        8.1994       -.13842E-06   -.63471E-04
  18  Prefactor     18.664        24.222       -.22838E-06    .90650E-04
  19  Prefactor     .10000E-03    14.292        .56524E-07** at limit **
  20  Prefactor     30.809        129.05       -.23732E-05    .17409E-04
  21  Prefactor     .10000E-03    5.0265        .71513E-07** at limit **
  22  Prefactor     .10000E-03    5.4505        .28887E-07** at limit **
  23  norm          .80233        37.838        .13167E-04   -.11293E-03
  24  Prefactor     .10001E-03    94.774       -.16536E-05** at limit **
  25  norm          2.5430        6.2404        .42815E-06    .29342E-03
  26  Prefactor     .10000E-03    17.987        .10025E-06** at limit **
  27  norm          .10000E-03    4.7798        .37783E-07** at limit **
  28  norm          .10001E-03    11.352       -.11112E-05** at limit **
  29  norm          2.4470        8.7830       -.24800E-05   -.13816E-03
  30  Normalizat    1.2911        .29040        .73276E-06    .56794E-03
  31  Prefactor     .84226        .29806        .46284E-06    .42990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.9407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3871
  Prefactor  = 1.74385
  Prefactor  = 63.1458
  Prefactor  = 0.0001
  norm       = 6.74991
  Prefactor  = 4.77919
  Prefactor  = 23.0616
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.97371
  Prefactor  = 2.21273
  Prefactor  = 5.862
  norm       = 0.379357
  norm       = 13.9912
  Prefactor  = 18.6638
  Prefactor  = 0.0001
  Prefactor  = 30.8093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.802332
  Prefactor  = 0.000100013
  norm       = 2.54302
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100008
  norm       = 2.44705
  Normalizat = 1.2911
  Prefactor  = 0.842264
 **********
 **   18 **HESSE 
 **********

 FCN=   3248.904     FROM HESSE     STATUS=OK           634 CALLS     5411 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.941        36.041        .56744E-04   -1.4293    
   2  Prefactor     .10000E-03    24.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3872        .14031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.387        39.004        .88690E-04   -1.4805    
   5  Prefactor     1.7438        2.6040        .10386E-03   -1.5444    
   6  Prefactor     63.146        58.783        .50494E-04   -1.4117    
   7  Prefactor     .10000E-03    84.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.7499        2.8693        .58004E-04   -1.5188    
   9  Prefactor     4.7792        4.3679        .10962E-03   -1.5271    
  10  Prefactor     23.062        65.379        .83416E-04   -1.4747    
  11  norm          .10000E-03    4.4512        .23183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7926        .13394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9737        4.2017        .99981E-04   -1.5262    
  14  Prefactor     2.2127        4.8008        .15756E-03   -1.5410    
  15  Prefactor     5.8620        8.9942        .16587E-03   -1.5224    
  16  norm          .37936        .27929        .24830E-04   -1.5585    
  17  norm          13.991        8.2160        .10708E-03   -1.4960    
  18  Prefactor     18.664        24.030        .92698E-04   -1.4844    
  19  Prefactor     .10000E-03    14.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.809        131.87        .35982E-03   -1.4597    
  21  Prefactor     .10000E-03    5.0309        .12480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.4553        .12996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .80233        40.560        .31061E-02   -1.5529    
  24  Prefactor     .10001E-03    95.922        .21358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.5430        6.2243        .21398E-03   -1.5389    
  26  Prefactor     .10000E-03    18.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.7818        .12171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10001E-03    13.045        .49537E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.4470        12.600        .26069E-03   -1.5395    
  30  Normalizat    1.2911        .34585        .26468E-03   -.83832    
  31  Prefactor     .84226        .34798        .34064E-03   -.98189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8141e-09
Minuit parameter uncertainties:
  1  36.0563
  2  0.000110368
  3  2.04443e-05
  4  39.0529
  5  2.60414
  6  58.837
  7  0.000213466
  8  2.86931
  9  4.36817
  10  65.5833
  11  1.03129e-05
  12  1.20124e-05
  13  4.202
  14  4.80168
  15  8.99631
  16  0.279291
  17  8.21663
  18  24.0428
  19  1.45013e-05
  20  127.963
  21  9.33918e-06
  22  2.03084e-06
  23  11.4167
  24  0.00227598
  25  6.22592
  26  1.7719e-05
  27  1.80396e-06
  28  0.000635053
  29  11.1091
  30  0.346471
  31  0.348899
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  4.974e+00  4.202e+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:  8.423e-01  3.489e-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.291e+00  3.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.68
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 3.92e-08
Energy Flux (Fixed Index): 7.40e-05 +/- 6.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) = 3248.75720857
delta logL = 0.146474323733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3248.73274067
delta logL = 0.170942222573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3931       1.0000         .10000E-03   10000.    
     2 'Index     '    .98164       1.0000          .0000       10.000    
     3 'Normalizat'    1.3050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85464       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=   3248.733     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      243 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3946        3.3676        .54911E-02   -.48669E-04
   2  Index         .98210        .70917        .28732       -.37407E-04
   3  Normalizat    1.3050        .27379        .59685E-01   -.76200E-05
   4  Prefactor     .85460        .29245        .76658E-01    .84070E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39456
  Index      = 0.982105
  Normalizat = 1.305
  Prefactor  = 0.854604
 **********
 **   18 **HESSE 
 **********

 FCN=   3248.733     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3946        5.1750        .10135E-03   -1.5339    
   2  Index         .98210        1.0224        .13125E-01   -.93328    
   3  Normalizat    1.3050        .31863        .26396E-03   -.83417    
   4  Prefactor     .85460        .34090        .33929E-03   -.97746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22948e-11
Minuit parameter uncertainties:
  1  5.17564
  2  1.04367
  3  0.319113
  4  0.341752
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521656': 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) = 3248.73274057
delta logL = 0.170942322177

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.395e+00  5.176e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  9.821e-01  1.044e+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:  8.546e-01  3.418e-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.305e+00  3.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.02
Ra Dec: 185.345 30.168
Photon Index (Free Index): 0.98 +/- 1.04
Photon Flux (Free Index): 1.05e-08 +/- 1.85e-08
Energy Flux (Free Index): 1.59e-04 +/- 2.30e-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/521656/cmap_HighResolution_550886401_551145601_4FGL_J1221.3+3010_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='1.59e-04', photon_flux_error='3.92e-08', dlogl='1.71e-01', energy_flux='7.40e-05', photon_flux2='1.05e-08', job_status='DONE', time_completed='2021-09-05 09:41:25.265455', photon_index_error2='1.04', photon_index2='0.98', ts='14.68', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.30e-04', EG='1.29', time_epoch_completed='1630860085.27', return_code='0', job_id='521656', GAL2='0.85', EG2='1.31', return_code2='0', energy_flux_error='6.25e-05', photon_flux_error2='1.85e-08', ts2='15.02', photon_index='1.71' WHERE bin_id='1202' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:41:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 521656: <4FGL_J1221.3+3010_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1202> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:25:54 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:25:55 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:25:55 2021
Terminated at Sun Sep  5 09:41:25 2021
Results reported at Sun Sep  5 09:41:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1202 185.345 30.1677 550886401 551145601 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 :                                   601.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

