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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin55
RA = 185.345, Dec = 30.1677
tmin = 253584001, tmax = 253843201
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='511169', job_status='RUN', time_executed='2021-09-05 08:55:59.939494', time_epoch_executed='1630857359.94' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511169/ft1_4FGL_J1221.3+3010_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511169/ft2_4FGL_J1221.3+3010_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511169/ft1_4FGL_J1221.3+3010_daily_bin55.fits outfile=/scratch/kocevski/511169/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin55.fits ra=185.345 dec=30.1677 rad=12.0 tmin=253584001.0 tmax=253843201.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.50
user 1.29
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511169/ft2_4FGL_J1221.3+3010_daily_bin55.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/511169/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin55.fits evtable="EVENTS" outfile="/scratch/kocevski/511169/ft1_filtered_4FGL_J1221.3+3010_daily_bin55.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.70
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511169/ft1_filtered_4FGL_J1221.3+3010_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/511169/ft2_4FGL_J1221.3+3010_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/511169/ltcube_253584001_253843201_4FGL_J1221.3+3010_daily_bin55.fits outfile=/scratch/kocevski/511169/expmap_253584001_253843201_4FGL_J1221.3+3010_daily_bin55.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/511169/ltcube_253584001_253843201_4FGL_J1221.3+3010_daily_bin55.fits
.....................!
real 191.68
user 185.51
sys 4.27

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/511169/ft1_filtered_4FGL_J1221.3+3010_daily_bin55.fits scfile=/scratch/kocevski/511169/ft2_4FGL_J1221.3+3010_daily_bin55.fits outfile=/scratch/kocevski/511169/cmap_253584001_253843201_4FGL_J1221.3+3010_daily_bin55.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.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6680       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0307       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5129       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.0249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3548       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5060       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .27910       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0291       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.061       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2173       1.0000         .10000E-03   10000.    
    23 'norm      '    2.0906       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.799       1.0000         .10000E-03   10000.    
    25 'norm      '    .15052E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.4790       1.0000         .10000E-03   10000.    
    29 'norm      '    .28696E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0275       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89007       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=   5223.248     FROM MIGRAD    STATUS=CONVERGED    815 CALLS     4790 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.444       -.67523E-06** at limit **
   2  Prefactor     5.6659        9.9392       -.55378E-07    .21173E-04
   3  Prefactor     1.0307        3.6256        .58063E-06    .32926E-05
   4  Prefactor     .10000E-03    3.7426       -.34738E-07** at limit **
   5  Prefactor     2.5130        1.6796        .10813E-07   -.64083E-04
   6  Prefactor     .10000E-03    22.746       -.13727E-05** at limit **
   7  Prefactor     .10000E-03    36.065        .21662E-05** at limit **
   8  norm          5.3190        1.6087       -.40440E-07   -.21276E-03
   9  Prefactor     1.0049        2.3063       -.56674E-06   -.38949E-04
  10  Prefactor     .10000E-03    8.9738       -.53244E-07** at limit **
  11  norm          6.0250        3.1000       -.19577E-07   -.67665E-04
  12  Prefactor     .10000E-03    2.9612        .98367E-07** at limit **
  13  Prefactor     3.3548        2.0690       -.38199E-07   -.55728E-04
  14  Prefactor     1.5061        2.3122        .50912E-07   -.87628E-04
  15  Prefactor     .10000E-03    2.8991       -.16255E-06** at limit **
  16  norm          .27910        .21207        .25300E-07   -.55137E-04
  17  norm          5.0293        4.9890       -.11784E-06   -.71365E-04
  18  Prefactor     22.062        12.507       -.18335E-06   -.84505E-04
  19  Prefactor     .10000E-03    13.620        .28296E-06** at limit **
  20  Prefactor     5.1733        413.13        .78275E-07    .16004E-04
  21  Prefactor     .10000E-03    2.5212       -.11280E-07** at limit **
  22  Prefactor     4.2173        4.1444       -.44479E-07   -.24862E-04
  23  norm          2.0907        4.8536        .12534E-05   -.25695E-04
  24  Prefactor     43.804        30.656       -.12506E-05   -.11884E-03
  25  norm          .10000E-03    89.795       -.61787E-05** at limit **
  26  Prefactor     .10000E-03    4.3045        .67474E-07** at limit **
  27  norm          .10000E-03    1.4424        .26033E-07** at limit **
  28  norm          3.4824        4.0934       -.39398E-06   -.54260E-03
  29  norm          .10001E-03    6.9213        .12869E-05** at limit **
  30  Normalizat    1.0273        .21251        .57596E-05   -.18614E-03
  31  Prefactor     .89022        .23408       -.72788E-05   -.11333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.66593
  Prefactor  = 1.03073
  Prefactor  = 0.0001
  Prefactor  = 2.51296
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.31899
  Prefactor  = 1.00489
  Prefactor  = 0.0001
  norm       = 6.02499
  Prefactor  = 0.0001
  Prefactor  = 3.35485
  Prefactor  = 1.50606
  Prefactor  = 0.0001
  norm       = 0.279098
  norm       = 5.02927
  Prefactor  = 22.0617
  Prefactor  = 0.0001
  Prefactor  = 5.17326
  Prefactor  = 0.0001
  Prefactor  = 4.21735
  norm       = 2.09075
  Prefactor  = 43.8042
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.48239
  norm       = 0.000100006
  Normalizat = 1.02733
  Prefactor  = 0.890219
 **********
 **   18 **HESSE 
 **********

 FCN=   5223.248     FROM HESSE     STATUS=OK           636 CALLS     5426 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6659        9.8387        .16873E-03   -1.5232    
   3  Prefactor     1.0307        3.5693        .24854E-03   -1.5505    
   4  Prefactor     .10000E-03    3.7445        .13655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5130        1.6799        .73913E-04   -1.5391    
   6  Prefactor     .10000E-03    22.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3190        1.6082        .24086E-03   -1.5247    
   9  Prefactor     1.0049        2.2049        .18025E-02   -1.5507    
  10  Prefactor     .10000E-03    8.9780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.0250        3.0951        .86377E-04   -1.5217    
  12  Prefactor     .10000E-03    2.9734        .12147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3548        2.0703        .78138E-04   -1.5342    
  14  Prefactor     1.5061        2.2757        .12593E-03   -1.5463    
  15  Prefactor     .10000E-03    2.9090        .12014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .27910        .20581        .27682E-03   -1.5602    
  17  norm          5.0293        4.9728        .15262E-03   -1.5259    
  18  Prefactor     22.062        12.482        .42639E-03   -1.4768    
  19  Prefactor     .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1733        407.60        .17805E-03   -1.5253    
  21  Prefactor     .10000E-03    2.5339        .11207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2173        4.1486        .14202E-03   -1.5297    
  23  norm          2.0907        4.8359        .21288E-03   -1.5419    
  24  Prefactor     43.804        30.550        .60577E-04   -1.4383    
  25  norm          .10000E-03    3.3513        .36617E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.3058        .14644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.4430        .84767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.4824        3.7371        .13696E-03   -1.5335    
  29  norm          .10001E-03    20.094        .32142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0273        .21222        .23496E-03   -.92120    
  31  Prefactor     .89022        .23454        .29049E-03   -.96484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57563e-09
Minuit parameter uncertainties:
  1  9.66534e-05
  2  9.84154
  3  3.57004
  4  2.39037e-06
  5  1.67998
  6  0.000179164
  7  0.000374103
  8  1.60818
  9  2.20506
  10  5.00376e-06
  11  3.0952
  12  6.59633e-06
  13  2.07031
  14  2.27586
  15  7.43539e-06
  16  0.205813
  17  4.97317
  18  12.484
  19  3.76893e-05
  20  92.4993
  21  2.31485e-06
  22  4.14887
  23  4.83684
  24  30.5608
  25  5.41092e-05
  26  1.80514e-06
  27  1.67857e-08
  28  3.7373
  29  0.000721522
  30  0.212391
  31  0.23481
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.355e+00  2.070e+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.902e-01  2.348e-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.027e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.05
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 4.99e-05 +/- 3.08e-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) = 5222.60044423
delta logL = 0.647865151475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5222.60041834
delta logL = 0.647891042473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5935       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2607       1.0000          .0000       10.000    
     3 'Normalizat'    1.0352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88873       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=   5222.600     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      264 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5989        97.787        .46952E-02   -.14215E-03
   2  Index         1.2615        5.1300        .18364        .25522E-04
   3  Normalizat    1.0352        .20379        .41676E-01    .73710E-05
   4  Prefactor     .88867        .17505        .65762E-01    .12676E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59894
  Index      = 1.26149
  Normalizat = 1.03525
  Prefactor  = 0.888672
 **********
 **   18 **HESSE 
 **********

 FCN=   5222.600     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5989        2.8006        .91790E-04   -1.5279    
   2  Index         1.2615        .38401        .70276E-02   -.84459    
   3  Normalizat    1.0352        .20095        .23425E-03   -.91859    
   4  Prefactor     .88867        .23382        .29088E-03   -.96538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43402e-10
Minuit parameter uncertainties:
  1  2.80065
  2  0.384876
  3  0.201101
  4  0.234087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511169': 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) = 5222.60041377
delta logL = 0.647895614128

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  4.599e+00  2.801e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.261e+00  3.849e-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:  8.887e-01  2.341e-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.035e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.38
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.26 +/- 0.38
Photon Flux (Free Index): 1.79e-08 +/- 1.37e-08
Energy Flux (Free Index): 1.24e-04 +/- 1.18e-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/511169/cmap_HighResolution_253584001_253843201_4FGL_J1221.3+3010_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='1.24e-04', photon_flux_error='1.93e-08', dlogl='6.48e-01', energy_flux='4.99e-05', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-05 09:09:15.145290', photon_index_error2='0.38', photon_index2='1.26', ts='15.05', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.18e-04', EG='1.03', time_epoch_completed='1630858155.15', return_code='0', job_id='511169', GAL2='0.89', EG2='1.04', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='1.37e-08', ts2='16.38', photon_index='1.71' WHERE bin_id='55' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 511169: <4FGL_J1221.3+3010_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin55 185.345 30.1677 253584001 253843201 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 :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            816 sec.

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

