/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7626
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1211
RA = 185.378, Dec = 28.2382
tmin = 553219201, tmax = 553478401
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='532213', job_status='RUN', time_executed='2021-09-05 10:00:58.343729', time_epoch_executed='1630861258.34' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532213

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532213/ft1_4FGL_J1221.5+2814_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532213/ft2_4FGL_J1221.5+2814_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532213/ft1_4FGL_J1221.5+2814_daily_bin1211.fits outfile=/scratch/kocevski/532213/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1211.fits ra=185.378 dec=28.2382 rad=12.0 tmin=553219201.0 tmax=553478401.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 2.99
user 2.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532213/ft2_4FGL_J1221.5+2814_daily_bin1211.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/532213/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/532213/ft1_filtered_4FGL_J1221.5+2814_daily_bin1211.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.72
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532213/ft1_filtered_4FGL_J1221.5+2814_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/532213/ft2_4FGL_J1221.5+2814_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/532213/ltcube_553219201_553478401_4FGL_J1221.5+2814_daily_bin1211.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/532213/ft2_4FGL_J1221.5+2814_daily_bin1211.fits
.....................!
real 12.82
user 12.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532213/ft1_filtered_4FGL_J1221.5+2814_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/532213/ft2_4FGL_J1221.5+2814_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/532213/ltcube_553219201_553478401_4FGL_J1221.5+2814_daily_bin1211.fits outfile=/scratch/kocevski/532213/expmap_553219201_553478401_4FGL_J1221.5+2814_daily_bin1211.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/532213/ltcube_553219201_553478401_4FGL_J1221.5+2814_daily_bin1211.fits
.....................!
real 194.69
user 186.61
sys 5.01

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/532213/ft1_filtered_4FGL_J1221.5+2814_daily_bin1211.fits scfile=/scratch/kocevski/532213/ft2_4FGL_J1221.5+2814_daily_bin1211.fits outfile=/scratch/kocevski/532213/cmap_553219201_553478401_4FGL_J1221.5+2814_daily_bin1211.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.86
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63265       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3652       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.5174       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6081       1.0000         .10000E-03   10000.    
    12 'norm      '    9.6890       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4260       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5419       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5495       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6031       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5281       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19562E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    9.8388       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.4458       1.0000         .10000E-03   10000.    
    27 'norm      '    2.2294       1.0000         .10000E-03   10000.    
    28 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97644       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0255       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=   9347.908     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     3369 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6309       -.30915E-05** at limit **
   2  Prefactor     .10000E-03    3.8193        .80857E-06** at limit **
   3  Prefactor     7.9004        4.4809        .97032E-07    .44196E-04
   4  Prefactor     .61265        92.950        .39196E-04   -.37260E-04
   5  Prefactor     1.3645        1.3433        .41009E-06    .93275E-03
   6  Prefactor     .10000E-03    8.1369        .35412E-07** at limit **
   7  norm          3.5172        1.1348        .92526E-07    .73346E-03
   8  Prefactor     .10000E-03    1.1959       -.97526E-07** at limit **
   9  Prefactor     .10000E-03    8.0702        .30345E-05** at limit **
  10  Prefactor     .10000E-03    .98678       -.20077E-06** at limit **
  11  Prefactor     1.6079        1.5829        .24223E-07    .24381E-03
  12  norm          9.6894        2.9999        .31541E-07    .50888E-03
  13  Prefactor     .10000E-03    3.8001       -.29417E-06** at limit **
  14  Prefactor     .10000E-03    .81935       -.19737E-06** at limit **
  15  Prefactor     6.4260        2.1717        .68818E-08    .39707E-03
  16  Prefactor     3.5419        3.3682        .15644E-06   -.10210E-03
  17  norm          1.5495        .27286        .37183E-08    .18754E-02
  18  norm          4.6032        3.4887        .26817E-08   -.51326E-05
  19  Prefactor     .10000E-03    3.6507       -.83053E-06** at limit **
  20  Prefactor     2.5277        2.0716       -.13979E-05   -.13224E-02
  21  Prefactor     .10000E-03    29.277        .23891E-05** at limit **
  22  Prefactor     .10015E-03    3.9677       -.24715E-05** at limit **
  23  Prefactor     .10000E-03    1.9224       -.50567E-07** at limit **
  24  norm          9.8388        3.8471       -.32858E-07    .68969E-04
  25  Prefactor     .10000E-03    6.3312       -.52647E-06** at limit **
  26  norm          2.4458        2.0295       -.25009E-07    .12396E-03
  27  norm          2.2301        2.2917       -.41139E-07   -.13236E-03
  28  norm          .10000E-03    2.8276        .56563E-07** at limit **
  29  Normalizat    .97645        .14575       -.55725E-06    .71337E-03
  30  Prefactor     1.0255        .16429        .15096E-05    .84871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.90035
  Prefactor  = 0.612647
  Prefactor  = 1.3645
  Prefactor  = 0.0001
  norm       = 3.51724
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.60792
  norm       = 9.68941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.42603
  Prefactor  = 3.54187
  norm       = 1.54949
  norm       = 4.60315
  Prefactor  = 0.0001
  Prefactor  = 2.52767
  Prefactor  = 0.000100001
  Prefactor  = 0.000100152
  Prefactor  = 0.0001
  norm       = 9.83884
  Prefactor  = 0.0001
  norm       = 2.44583
  norm       = 2.23011
  norm       = 0.0001
  Normalizat = 0.976452
  Prefactor  = 1.02551
 **********
 **   18 **HESSE 
 **********

 FCN=   9347.908     FROM HESSE     STATUS=OK           596 CALLS     3965 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9004        4.4811        .14266E-03   -1.5146    
   4  Prefactor     .61265        95.425        .54080E-02   -1.5551    
   5  Prefactor     1.3645        1.3259        .10512E-03   -1.5474    
   6  Prefactor     .10000E-03    8.1554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.5172        1.1332        .55634E-04   -1.5333    
   8  Prefactor     .10000E-03    1.2107        .10323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0109        .18519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6079        1.5789        .11675E-03   -1.5454    
  12  norm          9.6894        2.9116        .86183E-04   -1.5085    
  13  Prefactor     .10000E-03    3.8592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2612        .16491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4260        2.1690        .78239E-04   -1.5201    
  16  Prefactor     3.5419        3.3604        .16494E-03   -1.5332    
  17  norm          1.5495        .27308        .20216E-04   -1.5459    
  18  norm          4.6032        3.4842        .14864E-03   -1.5279    
  19  Prefactor     .10000E-03    3.6922        .18037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5277        8.8525        .12845E-02   -1.5390    
  21  Prefactor     .10000E-03    29.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10015E-03    4.9138        .54629E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9333        .13091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          9.8388        3.8459        .11369E-03   -1.5081    
  25  Prefactor     .10000E-03    6.3401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4458        2.0246        .12178E-03   -1.5395    
  27  norm          2.2301        2.2627        .14185E-03   -1.5409    
  28  norm          .10000E-03    2.8506        .15755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .97645        .16969        .25250E-03   -.93824    
  30  Prefactor     1.0255        .19354        .28822E-03   -.91884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57018e-08
Minuit parameter uncertainties:
  1  0.000140832
  2  4.27283e-05
  3  4.48134
  4  15.3157
  5  1.32592
  6  6.38414e-05
  7  1.13318
  8  1.31332e-05
  9  0.000203349
  10  1.24963e-05
  11  1.57894
  12  2.91166
  13  3.3143e-05
  14  1.76562e-05
  15  2.16904
  16  3.36062
  17  0.273081
  18  3.48438
  19  1.52513e-05
  20  8.85705
  21  0.000313908
  22  0.00172791
  23  8.59268e-06
  24  3.84603
  25  6.58842e-06
  26  2.02468
  27  2.26281
  28  9.50719e-07
  29  0.169786
  30  0.193672
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.426e+00  2.169e+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.026e+00  1.937e-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:  9.765e-01  1.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.02
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.41e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 4.62e-05 +/- 1.56e-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) = 9347.34371177
delta logL = 0.563960869355

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9347.34271625
delta logL = 0.564956391177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5624       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8582       1.0000          .0000       10.000    
     3 'Normalizat'    .99518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0138       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=   9347.343     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      240 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.5624        46.094        .36458E-02    .19925E-03
   2  Index         1.8582        2.9487        .14021        .42903E-04
   3  Normalizat    .99518        .19162        .46106E-01   -.34289E-04
   4  Prefactor     1.0138        .17742        .65513E-01   -.91128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.56243
  Index      = 1.85821
  Normalizat = 0.995176
  Prefactor  = 1.01376
 **********
 **   18 **HESSE 
 **********

 FCN=   9347.343     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.5624        2.6067        .87542E-04   -1.5158    
   2  Index         1.8582        .26275        .54795E-02   -.67944    
   3  Normalizat    .99518        .16508        .25052E-03   -.93192    
   4  Prefactor     1.0138        .19221        .28977E-03   -.92272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47992e-11
Minuit parameter uncertainties:
  1  2.6067
  2  0.262948
  3  0.165167
  4  0.192336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532213': 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) = 9347.34271625
delta logL = 0.564956391208

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  7.562e+00  2.607e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.858e+00  2.629e-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.014e+00  1.923e-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:  9.952e-01  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.26
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.86 +/- 0.26
Photon Flux (Free Index): 7.35e-08 +/- 3.20e-08
Energy Flux (Free Index): 7.41e-05 +/- 4.37e-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/532213/cmap_HighResolution_553219201_553478401_4FGL_J1221.5+2814_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.41e-08', energy_flux2='7.41e-05', photon_flux_error='3.17e-08', dlogl='5.65e-01', energy_flux='4.62e-05', photon_flux2='7.35e-08', job_status='DONE', time_completed='2021-09-05 10:17:14.951080', photon_index_error2='0.26', photon_index2='1.86', ts='22.02', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.37e-05', EG='0.98', time_epoch_completed='1630862234.95', return_code='0', job_id='532213', GAL2='1.01', EG2='1.00', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='3.20e-08', ts2='23.26', photon_index='2.15' WHERE bin_id='1211' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 532213: <4FGL_J1221.5+2814_daily_bin1211> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1211> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:40 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:00:42 2021
Terminated at Sun Sep  5 10:17:15 2021
Results reported at Sun Sep  5 10:17:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1211 185.378 28.2382 553219201 553478401 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 :                                   965.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            995 sec.

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

