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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1010
RA = 185.378, Dec = 28.2382
tmin = 501120001, tmax = 501379201
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='530618', job_status='RUN', time_executed='2021-09-05 09:57:59.674188', time_epoch_executed='1630861079.67' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530618

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530618/ft1_4FGL_J1221.5+2814_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530618/ft1_4FGL_J1221.5+2814_daily_bin1010.fits outfile=/scratch/kocevski/530618/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1010.fits ra=185.378 dec=28.2382 rad=12.0 tmin=501120001.0 tmax=501379201.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.48
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.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/530618/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/530618/ft1_filtered_4FGL_J1221.5+2814_daily_bin1010.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.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530618/ft1_filtered_4FGL_J1221.5+2814_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/530618/ltcube_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.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/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits
.....................!
real 11.62
user 11.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530618/ft1_filtered_4FGL_J1221.5+2814_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/530618/ltcube_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.fits outfile=/scratch/kocevski/530618/expmap_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.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/530618/ltcube_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.fits
.....................!
real 189.28
user 183.97
sys 4.96

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/530618/ft1_filtered_4FGL_J1221.5+2814_daily_bin1010.fits scfile=/scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits outfile=/scratch/kocevski/530618/cmap_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.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.64
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530618/ft1_filtered_4FGL_J1221.5+2814_daily_bin1010.fits scfile=/scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits outfile=/scratch/kocevski/530618/cmap_HighResolution_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530618/ft1_filtered_4FGL_J1221.5+2814_daily_bin1010.fits', '/scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits', expMap='/scratch/kocevski/530618/expmap_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.fits', expCube='/scratch/kocevski/530618/ltcube_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530618/Model_4FGL_J1221.5+2814_daily_bin1010.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/530618/ft1_filtered_4FGL_J1221.5+2814_daily_bin1010.fits
Spacecraft file(s): /scratch/kocevski/530618/ft2_4FGL_J1221.5+2814_daily_bin1010.fits
Exposure map: /scratch/kocevski/530618/expmap_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.fits
Exposure cube: /scratch/kocevski/530618/ltcube_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530618/Model_4FGL_J1221.5+2814_daily_bin1010.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) = 6881.46615952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12320E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10759E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.1455       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2063       1.0000         .10000E-03   10000.    
    12 'norm      '    9.8959       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57464E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45634       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .27777       1.0000         .10000E-03   10000.    
    18 'norm      '    .10988E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.719       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .37908       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.0374       1.0000         .10000E-03   10000.    
    27 'norm      '    4.1284       1.0000         .10000E-03   10000.    
    28 'norm      '    1.4747       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0854       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0610       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=   6881.444     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3976 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.001        17.586        .49316E-06    .63386E-04
   2  Prefactor     .10000E-03    30.161        .72224E-06** at limit **
   3  Prefactor     .10003E-03    4.5624       -.22352E-06** at limit **
   4  Prefactor     .10000E-03    12.746        .14092E-06** at limit **
   5  Prefactor     .10000E-03    .98436        .28922E-07** at limit **
   6  Prefactor     .10000E-03    6.4979       -.26561E-06** at limit **
   7  norm          6.1455        1.5370       -.86152E-08   -.31249E-03
   8  Prefactor     2.3617        3.0549        .30217E-06    .11964E-03
   9  Prefactor     .10000E-03    16.737       -.42750E-06** at limit **
  10  Prefactor     .10000E-03    1.3628       -.78092E-07** at limit **
  11  Prefactor     1.2065        2.7664        .59741E-06   -.10095E-03
  12  norm          9.8962        3.3089        .18794E-06    .11687E-02
  13  Prefactor     .10000E-03    4.7547        .59104E-06** at limit **
  14  Prefactor     .45621        1.3760        .37199E-06   -.25856E-03
  15  Prefactor     1.8418        1.3699       -.67036E-07   -.41225E-03
  16  Prefactor     .10000E-03    1.8710       -.27367E-07** at limit **
  17  norm          .27771        .22200        .30517E-07   -.97774E-03
  18  norm          .10000E-03    3.2187        .14571E-05** at limit **
  19  Prefactor     .10000E-03    4.3207       -.35870E-08** at limit **
  20  Prefactor     .10000E-03    5.2678       -.10096E-05** at limit **
  21  Prefactor     39.713        55.129       -.24611E-05   -.18445E-03
  22  Prefactor     .10000E-03    1.9820        .45368E-07** at limit **
  23  Prefactor     .10000E-03    1.8503        .13209E-07** at limit **
  24  norm          .37986        3.3116        .58239E-06   -.27571E-03
  25  Prefactor     .10000E-03    12.812        .64585E-07** at limit **
  26  norm          2.0371        2.8859        .27908E-06    .79694E-04
  27  norm          4.1364        6.1669       -.61453E-06   -.13033E-03
  28  norm          1.4678        9.0201        .18117E-05   -.15929E-03
  29  Normalizat    1.0855        .16592       -.52955E-06   -.39740E-03
  30  Prefactor     1.0610        .18520       -.14640E-06   -.29490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0009
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.14549
  Prefactor  = 2.36171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.20646
  norm       = 9.89617
  Prefactor  = 0.000100003
  Prefactor  = 0.456214
  Prefactor  = 1.84178
  Prefactor  = 0.0001
  norm       = 0.277711
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 39.7132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.379856
  Prefactor  = 0.0001
  norm       = 2.03714
  norm       = 4.13637
  norm       = 1.4678
  Normalizat = 1.08548
  Prefactor  = 1.06096
 **********
 **   18 **HESSE 
 **********

 FCN=   6881.444     FROM HESSE     STATUS=OK           598 CALLS     4574 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.001        17.483        .11101E-03   -1.4987    
   2  Prefactor     .10000E-03    30.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    5.3011        .49384E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2975        .15894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.1455        1.5378        .49103E-04   -1.5212    
   8  Prefactor     2.3617        3.0510        .15874E-03   -1.5401    
   9  Prefactor     .10000E-03    16.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3872        .94362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2065        2.7868        .20337E-03   -1.5488    
  12  norm          9.8962        3.4244        .82374E-04   -1.5079    
  13  Prefactor     .10000E-03    19.099        .34428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .45621        1.4135        .15857E-03   -1.5573    
  15  Prefactor     1.8418        1.3745        .80953E-04   -1.5437    
  16  Prefactor     .10000E-03    1.8760        .11079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .27771        .21277        .32908E-03   -1.5603    
  18  norm          .10000E-03    5.5702        .25076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.3377        .16837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.713        56.382        .63600E-04   -1.4447    
  22  Prefactor     .10000E-03    1.9864        .11406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8560        .11020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .37986        7.4678        .27515E-02   -1.5585    
  25  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.0371        2.8783        .16281E-03   -1.5423    
  27  norm          4.1364        6.6272        .15233E-03   -1.5301    
  28  norm          1.4678        10.730        .31690E-03   -1.5466    
  29  Normalizat    1.0855        .19208        .23908E-03   -.90220    
  30  Prefactor     1.0610        .21466        .27924E-03   -.90724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57368e-08
Minuit parameter uncertainties:
  1  17.4899
  2  0.000121828
  3  0.000804948
  4  2.84585e-05
  5  3.58419e-06
  6  3.52533e-05
  7  1.5378
  8  3.05117
  9  9.53864e-05
  10  5.13818e-06
  11  2.78707
  12  3.42445
  13  0.00051082
  14  1.41363
  15  1.37449
  16  5.07309e-06
  17  0.212768
  18  0.000245946
  19  6.19044e-07
  20  0.000125404
  21  56.4578
  22  3.35647e-06
  23  1.61197e-06
  24  3.36853
  25  2.55597e-05
  26  2.87851
  27  6.62838
  28  7.93894
  29  0.192203
  30  0.214829
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.842e+00  1.374e+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:  1.061e+00  2.148e-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.085e+00  1.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.81
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 9.89e-06

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) = 6880.60251367
delta logL = 0.841429890223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6880.58988566
delta logL = 0.854057897634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6542       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4378       1.0000          .0000       10.000    
     3 'Normalizat'    1.1015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0523       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.

 FCN=   6880.590     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6542        1.2429        .82044E-02    .96346E-03
   2  Index         1.4378        .38253        .22338       -.68111E-04
   3  Normalizat    1.1015        .15850        .37939E-01    .29687E-05
   4  Prefactor     1.0523        .18387        .63369E-01   -.30558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6542
  Index      = 1.43783
  Normalizat = 1.10154
  Prefactor  = 1.05226
 **********
 **   18 **HESSE 
 **********

 FCN=   6880.590     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6542        1.4249        .78234E-04   -1.5451    
   2  Index         1.4378        .48648        .88315E-02   -.79296    
   3  Normalizat    1.1015        .18304        .23759E-03   -.89703    
   4  Prefactor     1.0523        .21228        .28028E-03   -.91007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71966e-10
Minuit parameter uncertainties:
  1  1.42496
  2  0.488055
  3  0.183141
  4  0.21245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530618': 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) = 6880.58988566
delta logL = 0.85405789838

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.654e+00  1.425e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.438e+00  4.881e-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:  1.052e+00  2.125e-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.102e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.53
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.44 +/- 0.49
Photon Flux (Free Index): 1.10e-08 +/- 1.09e-08
Energy Flux (Free Index): 4.30e-05 +/- 5.39e-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/530618/cmap_HighResolution_501120001_501379201_4FGL_J1221.5+2814_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='4.30e-05', photon_flux_error='2.01e-08', dlogl='8.54e-01', energy_flux='1.32e-05', photon_flux2='1.10e-08', job_status='DONE', time_completed='2021-09-05 10:12:06.981722', photon_index_error2='0.49', photon_index2='1.44', ts='7.81', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.39e-05', EG='1.09', time_epoch_completed='1630861926.98', return_code='0', job_id='530618', GAL2='1.05', EG2='1.10', return_code2='0', energy_flux_error='9.89e-06', photon_flux_error2='1.09e-08', ts2='9.53', photon_index='2.15' WHERE bin_id='1010' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 530618: <4FGL_J1221.5+2814_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1010 185.378 28.2382 501120001 501379201 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 :                                   841.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            987 sec.

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

