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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin804
RA = 185.378, Dec = 28.2382
tmin = 447724801, tmax = 447984001
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='530318', job_status='RUN', time_executed='2021-09-05 09:55:36.788967', time_epoch_executed='1630860936.79' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530318

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530318/ft1_4FGL_J1221.5+2814_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530318/ft1_4FGL_J1221.5+2814_daily_bin804.fits outfile=/scratch/kocevski/530318/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin804.fits ra=185.378 dec=28.2382 rad=12.0 tmin=447724801.0 tmax=447984001.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.37
user 3.15
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.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/530318/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin804.fits evtable="EVENTS" outfile="/scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits" evtable="EVENTS" scfile=/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits sctable="SC_DATA" outfile=/scratch/kocevski/530318/ltcube_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.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/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits
.....................!
real 12.39
user 12.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/530318/ltcube_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.fits outfile=/scratch/kocevski/530318/expmap_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.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/530318/ltcube_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.fits
.....................!
real 192.14
user 186.59
sys 5.18

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits scfile=/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits outfile=/scratch/kocevski/530318/cmap_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.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.378 yref=28.2382 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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits scfile=/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits outfile=/scratch/kocevski/530318/cmap_HighResolution_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.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.378 yref=28.2382 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530318/Model_4FGL_J1221.5+2814_daily_bin804.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/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits.....................!
real 52.65
user 51.17
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits', '/scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits', expMap='/scratch/kocevski/530318/expmap_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.fits', expCube='/scratch/kocevski/530318/ltcube_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530318/Model_4FGL_J1221.5+2814_daily_bin804.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/530318/ft1_filtered_4FGL_J1221.5+2814_daily_bin804.fits
Spacecraft file(s): /scratch/kocevski/530318/ft2_4FGL_J1221.5+2814_daily_bin804.fits
Exposure map: /scratch/kocevski/530318/expmap_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.fits
Exposure cube: /scratch/kocevski/530318/ltcube_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530318/Model_4FGL_J1221.5+2814_daily_bin804.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) = 5697.39010541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6026       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.250       1.0000         .10000E-03   10000.    
     7 'norm      '    2.1453       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8691       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1232       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3722       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1084       1.0000         .10000E-03   10000.    
    18 'norm      '    18.091       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18577E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7757       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1441       1.0000         .10000E-03   10000.    
    24 'norm      '    .51020       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.1526       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4613       1.0000         .10000E-03   10000.    
    27 'norm      '    2.7977       1.0000         .10000E-03   10000.    
    28 'norm      '    .12608E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1485       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5697.357     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3888 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6416        .16509E-07** at limit **
   2  Prefactor     .10000E-03    7.1265        .13305E-06** at limit **
   3  Prefactor     .10000E-03    2.7764        .38628E-07** at limit **
   4  Prefactor     .10000E-03    10.787        .12175E-06** at limit **
   5  Prefactor     1.6028        1.3675       -.20412E-07    .42742E-04
   6  Prefactor     20.246        22.783       -.25933E-06    .10411E-03
   7  norm          2.1455        1.4961       -.35184E-07    .10889E-03
   8  Prefactor     .10000E-03    2.0752        .74520E-08** at limit **
   9  Prefactor     .10000E-03    7.2138        .12202E-06** at limit **
  10  Prefactor     1.8696        2.5316       -.74713E-07    .67974E-04
  11  Prefactor     .10000E-03    1.3617       -.13075E-07** at limit **
  12  norm          7.1222        3.3086        .11894E-07   -.11008E-03
  13  Prefactor     .10000E-03    2.8539        .82639E-07** at limit **
  14  Prefactor     .10000E-03    .82996       -.26399E-07** at limit **
  15  Prefactor     3.3715        2.0627        .40670E-08    .32806E-04
  16  Prefactor     .10000E-03    1.7860        .12612E-07** at limit **
  17  norm          1.1083        .31126       -.43099E-08    .17252E-03
  18  norm          18.089        6.0535        .12224E-08   -.48661E-05
  19  Prefactor     .10000E-03    8.8381        .42961E-07** at limit **
  20  Prefactor     .10000E-03    5.2864       -.38691E-07** at limit **
  21  Prefactor     .10000E-03    29.378        .70058E-06** at limit **
  22  Prefactor     5.7753        5.1577        .99380E-08    .19943E-05
  23  Prefactor     6.1437        6.4874       -.99088E-07    .79901E-04
  24  norm          .50937        3.4395       -.13425E-05    .23753E-03
  25  Prefactor     5.1624        29.217        .72934E-06    .13927E-04
  26  norm          1.4615        3.6467       -.29138E-06    .96832E-04
  27  norm          2.7926        3.0697        .63716E-06    .85665E-03
  28  norm          .10000E-03    32.601       -.48306E-05** at limit **
  29  Normalizat    1.1486        .18503        .29111E-06    .74073E-04
  30  Prefactor     .72573        .20391       -.16702E-06    .83092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.60278
  Prefactor  = 20.2461
  norm       = 2.14554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86959
  Prefactor  = 0.0001
  norm       = 7.12223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37147
  Prefactor  = 0.0001
  norm       = 1.10834
  norm       = 18.089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 5.77532
  Prefactor  = 6.14372
  norm       = 0.509366
  Prefactor  = 5.16238
  norm       = 1.46145
  norm       = 2.79261
  norm       = 0.0001
  Normalizat = 1.14862
  Prefactor  = 0.725725
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.357     FROM HESSE     STATUS=OK           592 CALLS     4480 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8260        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6028        1.3584        .78845E-04   -1.5455    
   6  Prefactor     20.246        22.861        .89006E-04   -1.4808    
   7  norm          2.1455        1.4886        .71607E-04   -1.5415    
   8  Prefactor     .10000E-03    2.1728        .21216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8696        2.5094        .13354E-03   -1.5434    
  11  Prefactor     .10000E-03    1.3716        .85848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1222        3.3017        .88639E-04   -1.5174    
  13  Prefactor     .10000E-03    2.8666        .12458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .83465        .67024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3715        2.0594        .80479E-04   -1.5341    
  16  Prefactor     .10000E-03    1.7888        .98491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1083        .31074        .21196E-04   -1.5497    
  18  norm          18.089        6.0534        .94166E-04   -1.4857    
  19  Prefactor     .10000E-03    9.1849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2878        .16951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7753        5.1584        .15701E-03   -1.5227    
  23  Prefactor     6.1437        6.4776        .16196E-03   -1.5212    
  24  norm          .50937        3.4693        .26177E-03   -1.5565    
  25  Prefactor     5.1624        29.441        .17711E-03   -1.5254    
  26  norm          1.4615        3.6242        .21689E-03   -1.5466    
  27  norm          2.7926        3.1490        .13187E-03   -1.5374    
  28  norm          .10000E-03    32.465        .31126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1486        .21481        .22119E-03   -.88206    
  30  Prefactor     .72573        .23535        .31223E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18166e-10
Minuit parameter uncertainties:
  1  4.49108e-06
  2  3.67344e-05
  3  1.22487e-05
  4  4.34317e-05
  5  1.35842
  6  22.8707
  7  1.4886
  8  1.0214e-07
  9  3.1309e-05
  10  2.50957
  11  1.45484e-06
  12  3.30183
  13  1.90938e-05
  14  1.24096e-07
  15  2.05946
  16  2.1479e-06
  17  0.310744
  18  6.05365
  19  7.76512e-05
  20  1.14955e-05
  21  0.00059776
  22  5.15882
  23  6.47831
  24  2.65864
  25  24.6748
  26  3.62474
  27  3.1492
  28  0.000128325
  29  0.214979
  30  0.235674
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.371e+00  2.059e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.257e-01  2.357e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.149e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.77
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.48e-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) = 5697.31256098
delta logL = 0.0439407579479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5697.30520941
delta logL = 0.051292335952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6340       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0099       1.0000          .0000       10.000    
     3 'Normalizat'    1.1552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5697.305     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      234 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6340        2.3041        .84854E-04   -.42619E-03
   2  Index         2.0099        .44378        .65288E-02   -.74279E-04
   3  Normalizat    1.1552        .20117        .22068E-03    .75626E-04
   4  Prefactor     .72132        .23042        .31311E-03   -.84236E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.63401
  Index      = 2.00988
  Normalizat = 1.15519
  Prefactor  = 0.72132
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.305     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6340        2.2862        .33942E-05   -1.5327    
   2  Index         2.0099        .44024        .26115E-03   -.64103    
   3  Normalizat    1.1552        .20132        .88273E-05   -.87999    
   4  Prefactor     .72132        .23061        .12524E-04   -1.0270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21195e-10
Minuit parameter uncertainties:
  1  2.2863
  2  0.441135
  3  0.201454
  4  0.230917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530318': 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) = 5697.3052094
delta logL = 0.0512923411352

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.634e+00  2.286e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.010e+00  4.411e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  7.213e-01  2.309e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.155e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.90
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.01 +/- 0.44
Photon Flux (Free Index): 4.31e-08 +/- 3.28e-08
Energy Flux (Free Index): 2.91e-05 +/- 2.52e-05

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/530318/cmap_HighResolution_447724801_447984001_4FGL_J1221.5+2814_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='2.91e-05', photon_flux_error='3.01e-08', dlogl='5.13e-02', energy_flux='2.43e-05', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-09-05 10:08:19.215202', photon_index_error2='0.44', photon_index2='2.01', ts='7.77', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='1.15', time_epoch_completed='1630861699.22', return_code='0', job_id='530318', GAL2='0.72', EG2='1.16', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.28e-08', ts2='7.90', photon_index='2.15' WHERE bin_id='804' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:08:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 530318: <4FGL_J1221.5+2814_daily_bin804> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin804> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:55:19 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:55:20 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:55:20 2021
Terminated at Sun Sep  5 10:08:20 2021
Results reported at Sun Sep  5 10:08:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin804 185.378 28.2382 447724801 447984001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

