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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1201
RA = 185.345, Dec = 30.1677
tmin = 550627201, tmax = 550886401
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='521655', job_status='RUN', time_executed='2021-09-05 09:29:33.786235', time_epoch_executed='1630859373.79' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521655

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521655/ft1_4FGL_J1221.3+3010_daily_bin1201.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521655/ft2_4FGL_J1221.3+3010_daily_bin1201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521655/ft1_4FGL_J1221.3+3010_daily_bin1201.fits outfile=/scratch/kocevski/521655/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1201.fits ra=185.345 dec=30.1677 rad=12.0 tmin=550627201.0 tmax=550886401.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.99
user 3.73
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521655/ft2_4FGL_J1221.3+3010_daily_bin1201.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/521655/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1201.fits evtable="EVENTS" outfile="/scratch/kocevski/521655/ft1_filtered_4FGL_J1221.3+3010_daily_bin1201.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521655/ft1_filtered_4FGL_J1221.3+3010_daily_bin1201.fits" evtable="EVENTS" scfile=/scratch/kocevski/521655/ft2_4FGL_J1221.3+3010_daily_bin1201.fits sctable="SC_DATA" outfile=/scratch/kocevski/521655/ltcube_550627201_550886401_4FGL_J1221.3+3010_daily_bin1201.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/521655/ft2_4FGL_J1221.3+3010_daily_bin1201.fits
.....................!
real 11.69
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521655/ft1_filtered_4FGL_J1221.3+3010_daily_bin1201.fits evtable="EVENTS" scfile=/scratch/kocevski/521655/ft2_4FGL_J1221.3+3010_daily_bin1201.fits sctable="SC_DATA" expcube=/scratch/kocevski/521655/ltcube_550627201_550886401_4FGL_J1221.3+3010_daily_bin1201.fits outfile=/scratch/kocevski/521655/expmap_550627201_550886401_4FGL_J1221.3+3010_daily_bin1201.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/521655/ltcube_550627201_550886401_4FGL_J1221.3+3010_daily_bin1201.fits
.....................!
real 188.92
user 184.09
sys 4.47

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/521655/ft1_filtered_4FGL_J1221.3+3010_daily_bin1201.fits scfile=/scratch/kocevski/521655/ft2_4FGL_J1221.3+3010_daily_bin1201.fits outfile=/scratch/kocevski/521655/cmap_550627201_550886401_4FGL_J1221.3+3010_daily_bin1201.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521655/ft1_filtered_4FGL_J1221.3+3010_daily_bin1201.fits scfile=/scratch/kocevski/521655/ft2_4FGL_J1221.3+3010_daily_bin1201.fits outfile=/scratch/kocevski/521655/cmap_HighResolution_550627201_550886401_4FGL_J1221.3+3010_daily_bin1201.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.791       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.863       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    677.20       1.0000         .10000E-03   10000.    
     8 'norm      '    8.1741       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3712       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0450       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2277       1.0000         .10000E-03   10000.    
    17 'norm      '    3.7346       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14533E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33748E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.063       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.2578       1.0000         .10000E-03   10000.    
    26 'Prefactor '    124.21       1.0000         .10000E-03   10000.    
    27 'norm      '    .18906E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .60467       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1171       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=   3322.871     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4171 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.211        22.093        .27550E-06    .67118E-05
   2  Prefactor     .10000E-03    6.4283        .10421E-05** at limit **
   3  Prefactor     20.788        14.128       -.82283E-06    .15684E-03
   4  Prefactor     67.834        40.727       -.12623E-04    .69672E-04
   5  Prefactor     .10000E-03    .70764        .18812E-06** at limit **
   6  Prefactor     .10000E-03    41.498       -.11289E-04** at limit **
   7  Prefactor     677.23        408.05        .12969E-04    .11394E-04
   8  norm          8.1732        2.7994        .52125E-06    .94968E-03
   9  Prefactor     4.3703        5.6118        .48988E-06   -.23226E-03
  10  Prefactor     .10000E-03    178.91       -.12304E-03** at limit **
  11  norm          2.0452        4.2729        .16138E-06   -.20411E-03
  12  Prefactor     .10000E-03    7.8641       -.16064E-05** at limit **
  13  Prefactor     7.5418        4.3287       -.46753E-06    .23732E-03
  14  Prefactor     .10000E-03    3.5267       -.56908E-06** at limit **
  15  Prefactor     .10000E-03    8.8073        .10310E-05** at limit **
  16  norm          1.2277        .36375       -.15935E-06   -.44583E-03
  17  norm          3.7388        8.0312        .89154E-05   -.28499E-03
  18  Prefactor     10.284        14.675       -.20974E-06   -.19672E-04
  19  Prefactor     .10000E-03    108.85        .89361E-04** at limit **
  20  Prefactor     .10000E-03    46.761       -.35986E-04** at limit **
  21  Prefactor     .10000E-03    2.4030       -.52612E-07** at limit **
  22  Prefactor     .10002E-03    54.300        .41185E-05** at limit **
  23  norm          12.060        12.412        .15053E-05   -.19322E-03
  24  Prefactor     .10000E-03    65.685        .12762E-04** at limit **
  25  norm          4.2579        3.9648       -.35776E-06    .37822E-04
  26  Prefactor     124.17        123.71       -.35098E-04   -.25207E-03
  27  norm          .10002E-03    37.310        .27946E-04** at limit **
  28  norm          .10000E-03    4.6270        .90644E-07** at limit **
  29  norm          .10000E-03    5.8667       -.31198E-06** at limit **
  30  Normalizat    .60531        .30376        .87375E-05   -.16784E-04
  31  Prefactor     1.1164        .28249       -.36806E-05    .13933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2109
  Prefactor  = 0.0001
  Prefactor  = 20.788
  Prefactor  = 67.8343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 677.232
  norm       = 8.17325
  Prefactor  = 4.37031
  Prefactor  = 0.000100001
  norm       = 2.04519
  Prefactor  = 0.0001
  Prefactor  = 7.54184
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 1.2277
  norm       = 3.73885
  Prefactor  = 10.2844
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 12.0604
  Prefactor  = 0.000100001
  norm       = 4.25785
  Prefactor  = 124.171
  norm       = 0.000100017
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.605309
  Prefactor  = 1.11636
 **********
 **   18 **HESSE 
 **********

 FCN=   3322.871     FROM HESSE     STATUS=OK           610 CALLS     4781 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.211        22.093        .11966E-03   -1.5038    
   2  Prefactor     .10000E-03    6.4307        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.788        14.126        .87841E-04   -1.4796    
   4  Prefactor     67.834        41.100        .48723E-04   -1.4059    
   5  Prefactor     .10000E-03    .70978        .47305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     677.23        408.05        .79597E-04   -1.0443    
   8  norm          8.1732        2.7997        .51984E-04   -1.5136    
   9  Prefactor     4.3703        5.6033        .13994E-03   -1.5290    
  10  Prefactor     .10000E-03    178.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0452        4.2457        .15592E-03   -1.5422    
  12  Prefactor     .10000E-03    7.8725        .15788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.5418        4.3370        .82754E-04   -1.5159    
  14  Prefactor     .10000E-03    3.6000        .21052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8730        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2277        .36431        .17524E-04   -1.5486    
  17  norm          3.7388        7.9416        .20894E-03   -1.5321    
  18  Prefactor     10.284        14.653        .12493E-03   -1.5066    
  19  Prefactor     .10000E-03    109.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4041        .87269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    54.745        .21339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.060        12.405        .11534E-03   -1.5013    
  24  Prefactor     .10000E-03    65.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.2579        3.9691        .10764E-03   -1.5295    
  26  Prefactor     124.17        124.52        .18058E-03   -1.3475    
  27  norm          .10002E-03    37.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.6349        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    5.8673        .13637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .60531        .34482        .34992E-03   -1.0776    
  31  Prefactor     1.1164        .32522        .27912E-03   -.88945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90857e-09
Minuit parameter uncertainties:
  1  22.1086
  2  2.27201e-05
  3  14.1286
  4  41.1175
  5  1.45928e-05
  6  0.000108242
  7  409.863
  8  2.79973
  9  5.60393
  10  0.000608144
  11  4.24636
  12  6.16797e-06
  13  4.3372
  14  8.9988e-05
  15  0.000273943
  16  0.364314
  17  7.94387
  18  14.6578
  19  0.000954436
  20  1.06479e-05
  21  4.90103e-06
  22  0.00232113
  23  12.4076
  24  0.000399499
  25  3.96932
  26  124.783
  27  0.00159451
  28  1.32629e-05
  29  7.62e-06
  30  0.346051
  31  0.3258
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  7.542e+00  4.337e+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.116e+00  3.258e-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:  6.053e-01  3.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.36
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 7.04e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 1.12e-04 +/- 6.46e-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) = 3321.11569356
delta logL = 1.75564236949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3321.11121833
delta logL = 1.76011759093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6746       1.0000         .10000E-03   10000.    
     2 'Index     '    .94258       1.0000          .0000       10.000    
     3 'Normalizat'    .64048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1101       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=   3321.111     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      204 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6746        4.5152        .36188E-02   -.41725E-03
   2  Index         .94255        .35526        .15286       -.70481E-05
   3  Normalizat    .64043        .26095        .76994E-01    .16362E-04
   4  Prefactor     1.1102        .27757        .63378E-01    .36341E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.67457
  Index      = 0.942547
  Normalizat = 0.640426
  Prefactor  = 1.11016
 **********
 **   18 **HESSE 
 **********

 FCN=   3321.111     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6746        5.1983        .90068E-04   -1.5154    
   2  Index         .94255        .41008        .67211E-03   -.94670    
   3  Normalizat    .64043        .29907        .34091E-03   -1.0629    
   4  Prefactor     1.1102        .31886        .28030E-03   -.89142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81729e-11
Minuit parameter uncertainties:
  1  5.19862
  2  0.411438
  3  0.299832
  4  0.319409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521655': 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) = 3321.11121831
delta logL = 1.76011761035

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  7.675e+00  5.199e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  9.425e-01  4.114e-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.110e+00  3.194e-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:  6.404e-01  2.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.90
Ra Dec: 185.345 30.168
Photon Index (Free Index): 0.94 +/- 0.41
Photon Flux (Free Index): 2.35e-08 +/- 1.66e-08
Energy Flux (Free Index): 3.90e-04 +/- 3.07e-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/521655/cmap_HighResolution_550627201_550886401_4FGL_J1221.3+3010_daily_bin1201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.04e-08', energy_flux2='3.90e-04', photon_flux_error='4.05e-08', dlogl='1.76e+00', energy_flux='1.12e-04', photon_flux2='2.35e-08', job_status='DONE', time_completed='2021-09-05 09:41:22.080165', photon_index_error2='0.41', photon_index2='0.94', ts='22.36', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='3.07e-04', EG='0.61', time_epoch_completed='1630860082.08', return_code='0', job_id='521655', GAL2='1.11', EG2='0.64', return_code2='0', energy_flux_error='6.46e-05', photon_flux_error2='1.66e-08', ts2='25.90', photon_index='1.71' WHERE bin_id='1201' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 521655: <4FGL_J1221.3+3010_daily_bin1201> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1201> 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) <bullet0203>, 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:22 2021
Results reported at Sun Sep  5 09:41:22 2021

Your job looked like:

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

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

