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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin270
RA = 185.345, Dec = 30.1677
tmin = 309312001, tmax = 309571201
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='514726', job_status='RUN', time_executed='2021-09-05 09:05:50.374548', time_epoch_executed='1630857950.37' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514726/ft1_4FGL_J1221.3+3010_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514726/ft2_4FGL_J1221.3+3010_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514726/ft1_4FGL_J1221.3+3010_daily_bin270.fits outfile=/scratch/kocevski/514726/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin270.fits ra=185.345 dec=30.1677 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.00
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514726/ft1_filtered_4FGL_J1221.3+3010_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/514726/ft2_4FGL_J1221.3+3010_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/514726/ltcube_309312001_309571201_4FGL_J1221.3+3010_daily_bin270.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/514726/ft2_4FGL_J1221.3+3010_daily_bin270.fits
.....................!
real 12.47
user 12.02
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514726/ft1_filtered_4FGL_J1221.3+3010_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/514726/ft2_4FGL_J1221.3+3010_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/514726/ltcube_309312001_309571201_4FGL_J1221.3+3010_daily_bin270.fits outfile=/scratch/kocevski/514726/expmap_309312001_309571201_4FGL_J1221.3+3010_daily_bin270.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/514726/ltcube_309312001_309571201_4FGL_J1221.3+3010_daily_bin270.fits
.....................!
real 190.96
user 185.34
sys 5.19

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/514726/ft1_filtered_4FGL_J1221.3+3010_daily_bin270.fits scfile=/scratch/kocevski/514726/ft2_4FGL_J1221.3+3010_daily_bin270.fits outfile=/scratch/kocevski/514726/cmap_309312001_309571201_4FGL_J1221.3+3010_daily_bin270.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514726/ft1_filtered_4FGL_J1221.3+3010_daily_bin270.fits scfile=/scratch/kocevski/514726/ft2_4FGL_J1221.3+3010_daily_bin270.fits outfile=/scratch/kocevski/514726/cmap_HighResolution_309312001_309571201_4FGL_J1221.3+3010_daily_bin270.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.345 yref=30.1677 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12634E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8821       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.7726       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4798       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1785       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0001       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.286       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4860       1.0000         .10000E-03   10000.    
    17 'norm      '    .49112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4177       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8815       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.2827       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1138       1.0000         .10000E-03   10000.    
    25 'norm      '    .10923E-03   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      '    1.0698       1.0000         .10000E-03   10000.    
    29 'norm      '    .16110E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .76306       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1230       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=   6678.890     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     3595 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0819        .14193E-06** at limit **
   2  Prefactor     .10000E-03    11.040        .25574E-05** at limit **
   3  Prefactor     .10000E-03    2.1411       -.24972E-07** at limit **
   4  Prefactor     .10004E-03    55.772        .17307E-04** at limit **
   5  Prefactor     .10000E-03    .81806        .11507E-06** at limit **
   6  Prefactor     2.8547        44.257       -.37418E-05    .68294E-05
   7  Prefactor     .10000E-03    28.908        .92312E-05** at limit **
   8  norm          7.7730        1.8110        .20881E-06    .92813E-03
   9  Prefactor     1.1765        3.4873        .84700E-06    .74384E-03
  10  Prefactor     .10000E-03    10.453       -.23691E-05** at limit **
  11  norm          7.4797        3.7097        .20700E-06    .18010E-03
  12  Prefactor     3.1779        7.3914        .34549E-06    .24348E-03
  13  Prefactor     2.9967        2.5677       -.17205E-06    .23906E-04
  14  Prefactor     8.0001        3.2705       -.57512E-07    .12378E-03
  15  Prefactor     17.289        9.5963       -.10340E-07   -.73746E-04
  16  norm          4.4860        .52106       -.83853E-08    .11908E-04
  17  norm          .48982        3.3011       -.90152E-07   -.18089E-03
  18  Prefactor     7.4178        7.8822        .95208E-06    .86665E-03
  19  Prefactor     8.8817        12.462        .69415E-06    .32906E-03
  20  Prefactor     .10000E-03    115.40        .11205E-04** at limit **
  21  Prefactor     .10000E-03    5.3584       -.13199E-06** at limit **
  22  Prefactor     .10000E-03    1.2825       -.15801E-07** at limit **
  23  norm          5.2807        4.7974       -.29528E-06   -.65168E-04
  24  Prefactor     4.1146        22.610        .12158E-05    .29872E-04
  25  norm          .10000E-03    2.0205       -.23105E-06** at limit **
  26  Prefactor     .10000E-03    3.0910       -.30608E-08** at limit **
  27  norm          .10000E-03    1.2822        .22407E-07** at limit **
  28  norm          1.0658        3.6289       -.67420E-06    .21452E-03
  29  norm          .10000E-03    5.7316        .29308E-05** at limit **
  30  Normalizat    .76321        .18162        .12232E-05   -.13096E-04
  31  Prefactor     1.1228        .19872       -.37229E-07    .12942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 2.85471
  Prefactor  = 0.000100003
  norm       = 7.77297
  Prefactor  = 1.17652
  Prefactor  = 0.0001
  norm       = 7.4797
  Prefactor  = 3.17788
  Prefactor  = 2.99675
  Prefactor  = 8.00007
  Prefactor  = 17.2895
  norm       = 4.48598
  norm       = 0.489816
  Prefactor  = 7.41776
  Prefactor  = 8.88173
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.28067
  Prefactor  = 4.11462
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.06584
  norm       = 0.000100003
  Normalizat = 0.763214
  Prefactor  = 1.12282
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.890     FROM HESSE     STATUS=OK           630 CALLS     4225 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1658        .11674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    63.393        .53967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .83319        .71993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8547        44.080        .23940E-03   -1.5370    
   7  Prefactor     .10000E-03    29.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.7730        1.7990        .49896E-04   -1.5150    
   9  Prefactor     1.1765        3.5414        .25639E-03   -1.5491    
  10  Prefactor     .10000E-03    10.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4797        3.7218        .99030E-04   -1.5161    
  12  Prefactor     3.1779        7.4089        .22731E-03   -1.5351    
  13  Prefactor     2.9967        2.5758        .10902E-03   -1.5362    
  14  Prefactor     8.0001        3.2609        .86792E-04   -1.5142    
  15  Prefactor     17.289        9.8736        .96333E-04   -1.4876    
  16  norm          4.4860        .52138        .18980E-04   -1.5284    
  17  norm          .48982        13.531        .25619E-02   -1.5568    
  18  Prefactor     7.4178        8.0457        .73630E-03   -1.5163    
  19  Prefactor     8.8817        12.539        .67247E-03   -1.5112    
  20  Prefactor     .10000E-03    115.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.2829        .90384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.2807        4.7721        .15490E-03   -1.5248    
  24  Prefactor     4.1146        22.152        .19875E-03   -1.5302    
  25  norm          .10000E-03    4.0809        .22530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.0914        .14032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2830        .90371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.0658        3.6962        .26570E-03   -1.5501    
  29  norm          .10000E-03    21.690        .32134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .76321        .21193        .29009E-03   -1.0145    
  31  Prefactor     1.1228        .23589        .28981E-03   -.88740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87613e-09
Minuit parameter uncertainties:
  1  7.80963e-06
  2  1.90333e-05
  3  1.37973e-06
  4  0.00333289
  5  4.3709e-06
  6  22.4545
  7  0.000573136
  8  1.79901
  9  3.54207
  10  9.23749e-05
  11  3.72191
  12  7.41102
  13  2.57594
  14  3.26097
  15  9.87455
  16  0.521379
  17  5.14966
  18  8.04686
  19  12.5432
  20  0.00124988
  21  1.52078e-05
  22  1.26055e-06
  23  4.77242
  24  19.105
  25  2.12166e-05
  26  1.27178e-06
  27  2.55327e-07
  28  3.69697
  29  0.000520112
  30  0.212156
  31  0.236109
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.997e+00  2.576e+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:  1.123e+00  2.361e-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:  7.632e-01  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.34
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.80e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 4.46e-05 +/- 3.83e-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) = 6678.74337019
delta logL = 0.146964303645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6678.73130176
delta logL = 0.159032735804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0459       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1346       1.0000          .0000       10.000    
     3 'Normalizat'    .73273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1395       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=   6678.731     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      256 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0456        18.386        .72266E-02    .31922E-03
   2  Index         2.1346        1.9790        .11817        .15153E-03
   3  Normalizat    .73275        .63111E-01    .66663E-01    .23829E-04
   4  Prefactor     1.1394        .60719E-01    .65006E-01    .60322E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.04563
  Index      = 2.13461
  Normalizat = 0.732754
  Prefactor  = 1.13943
 **********
 **   18 **HESSE 
 **********

 FCN=   6678.731     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0456        3.2442        .71016E-04   -1.5422    
   2  Index         2.1346        .89464        .41546E-02   -.61026    
   3  Normalizat    .73275        .21173        .29496E-03   -1.0261    
   4  Prefactor     1.1394        .23901        .28752E-03   -.88216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56501e-11
Minuit parameter uncertainties:
  1  3.24447
  2  0.901907
  3  0.211965
  4  0.239235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514726': 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) = 6678.73130174
delta logL = 0.159032756308

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.046e+00  3.244e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.135e+00  9.019e-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:  1.139e+00  2.392e-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:  7.328e-01  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.70
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.13 +/- 0.90
Photon Flux (Free Index): 6.10e-08 +/- 8.20e-08
Energy Flux (Free Index): 3.11e-05 +/- 2.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514726/cmap_HighResolution_309312001_309571201_4FGL_J1221.3+3010_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.80e-08', energy_flux2='3.11e-05', photon_flux_error='2.40e-08', dlogl='1.59e-01', energy_flux='4.46e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-05 09:19:46.738262', photon_index_error2='0.90', photon_index2='2.13', ts='6.34', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='2.85e-05', EG='0.76', time_epoch_completed='1630858786.74', return_code='0', job_id='514726', GAL2='1.14', EG2='0.73', return_code2='0', energy_flux_error='3.83e-05', photon_flux_error2='8.20e-08', ts2='6.70', photon_index='1.71' WHERE bin_id='270' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:19:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 514726: <4FGL_J1221.3+3010_daily_bin270> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin270> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:05:34 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:05: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:05:36 2021
Terminated at Sun Sep  5 09:19:47 2021
Results reported at Sun Sep  5 09:19:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin270 185.345 30.1677 309312001 309571201 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 :                                   828.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

