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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin522
RA = 185.378, Dec = 28.2382
tmin = 374630401, tmax = 374889601
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='527605', job_status='RUN', time_executed='2021-09-05 09:45:55.327373', time_epoch_executed='1630860355.33' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527605

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527605/ft1_4FGL_J1221.5+2814_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527605/ft2_4FGL_J1221.5+2814_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527605/ft1_4FGL_J1221.5+2814_daily_bin522.fits outfile=/scratch/kocevski/527605/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin522.fits ra=185.378 dec=28.2382 rad=12.0 tmin=374630401.0 tmax=374889601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.58
user 4.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/527605/ft2_4FGL_J1221.5+2814_daily_bin522.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/527605/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin522.fits evtable="EVENTS" outfile="/scratch/kocevski/527605/ft1_filtered_4FGL_J1221.5+2814_daily_bin522.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527605/ft1_filtered_4FGL_J1221.5+2814_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/527605/ft2_4FGL_J1221.5+2814_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/527605/ltcube_374630401_374889601_4FGL_J1221.5+2814_daily_bin522.fits outfile=/scratch/kocevski/527605/expmap_374630401_374889601_4FGL_J1221.5+2814_daily_bin522.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/527605/ltcube_374630401_374889601_4FGL_J1221.5+2814_daily_bin522.fits
.....................!
real 189.98
user 185.13
sys 4.46

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/527605/ft1_filtered_4FGL_J1221.5+2814_daily_bin522.fits scfile=/scratch/kocevski/527605/ft2_4FGL_J1221.5+2814_daily_bin522.fits outfile=/scratch/kocevski/527605/cmap_374630401_374889601_4FGL_J1221.5+2814_daily_bin522.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/527605/ft1_filtered_4FGL_J1221.5+2814_daily_bin522.fits scfile=/scratch/kocevski/527605/ft2_4FGL_J1221.5+2814_daily_bin522.fits outfile=/scratch/kocevski/527605/cmap_HighResolution_374630401_374889601_4FGL_J1221.5+2814_daily_bin522.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/527605/ft1_filtered_4FGL_J1221.5+2814_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/527605/ft2_4FGL_J1221.5+2814_daily_bin522.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/527605/Model_4FGL_J1221.5+2814_daily_bin522.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/527605/ft1_filtered_4FGL_J1221.5+2814_daily_bin522.fits.....................!
real 55.56
user 54.09
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79297       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .69529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.922       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2734       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4438       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2874       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3576       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.639       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.5274       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4214       1.0000         .10000E-03   10000.    
    27 'norm      '    7.1985       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1628       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82558       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=   6152.807     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3998 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.681        .15451E-05** at limit **
   2  Prefactor     13.657        11.528        .20355E-06    .57244E-04
   3  Prefactor     3.7298        4.7171        .28702E-06   -.43283E-04
   4  Prefactor     .10003E-03    45.536       -.10783E-04** at limit **
   5  Prefactor     .79270        1.2873       -.46450E-07    .13849E-03
   6  Prefactor     .10000E-03    13.045       -.20913E-05** at limit **
   7  norm          .69473        .83826        .26925E-08    .39373E-03
   8  Prefactor     1.3327        3.6915        .77293E-06   -.19097E-03
   9  Prefactor     32.909        34.624       -.23334E-05   -.28770E-03
  10  Prefactor     .10000E-03    1.2388        .93507E-08** at limit **
  11  Prefactor     6.2735        3.4611       -.57098E-08   -.56062E-04
  12  norm          .10000E-03    .84078        .26791E-07** at limit **
  13  Prefactor     .10000E-03    2.1585       -.29082E-07** at limit **
  14  Prefactor     1.5308        1.4704       -.18782E-07    .50180E-04
  15  Prefactor     7.4435        3.1160        .60187E-07    .44708E-03
  16  Prefactor     4.2874        5.8929        .44959E-05   -.12525E-02
  17  norm          1.3575        .36508       -.60774E-07   -.10659E-03
  18  norm          .10000E-03    1.2857       -.14101E-06** at limit **
  19  Prefactor     .10000E-03    5.8654       -.45049E-07** at limit **
  20  Prefactor     23.644        18.984        .51617E-06    .83071E-04
  21  Prefactor     .10004E-03    37.351        .93619E-05** at limit **
  22  Prefactor     .10000E-03    5.6269       -.30708E-06** at limit **
  23  Prefactor     .10000E-03    5.0723        .49885E-06** at limit **
  24  norm          .10000E-03    2.4736        .20187E-07** at limit **
  25  Prefactor     1.5195        40.729        .20379E-05   -.36915E-04
  26  norm          1.4217        2.5697        .28412E-06   -.95863E-04
  27  norm          7.1999        4.1489       -.63132E-07   -.16546E-03
  28  norm          .10000E-03    3.2355       -.59938E-07** at limit **
  29  Normalizat    1.1629        .18248       -.27378E-08    .37226E-04
  30  Prefactor     .82541        .20076       -.15261E-05    .75351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 13.6573
  Prefactor  = 3.72981
  Prefactor  = 0.000100035
  Prefactor  = 0.792696
  Prefactor  = 0.000100001
  norm       = 0.694734
  Prefactor  = 1.33266
  Prefactor  = 32.9094
  Prefactor  = 0.0001
  Prefactor  = 6.2735
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.53083
  Prefactor  = 7.44348
  Prefactor  = 4.28739
  norm       = 1.35755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6437
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.5195
  norm       = 1.42168
  norm       = 7.19987
  norm       = 0.0001
  Normalizat = 1.1629
  Prefactor  = 0.825411
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.807     FROM HESSE     STATUS=OK           590 CALLS     4588 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.657        11.526        .10837E-03   -1.4969    
   3  Prefactor     3.7298        4.7090        .18451E-03   -1.5322    
   4  Prefactor     .10003E-03    49.058        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .79270        1.0570        .10880E-02   -1.5530    
   6  Prefactor     .10000E-03    13.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .69473        .80465        .75519E-03   -1.5541    
   8  Prefactor     1.3327        3.6762        .23800E-03   -1.5477    
   9  Prefactor     32.909        35.219        .69837E-04   -1.4560    
  10  Prefactor     .10000E-03    1.2658        .85147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2735        3.4577        .10485E-03   -1.5207    
  12  norm          .10000E-03    .84338        .70178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1626        .11253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5308        1.4879        .89379E-04   -1.5461    
  15  Prefactor     7.4435        3.1173        .83238E-04   -1.5162    
  16  Prefactor     4.2874        6.2085        .97285E-03   -1.5294    
  17  norm          1.3575        .36545        .22955E-04   -1.5475    
  18  norm          .10000E-03    1.2899        .86884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.644        18.962        .82387E-04   -1.4735    
  21  Prefactor     .10004E-03    39.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.6854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.1621        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.5348        .24041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.5195        40.637        .34546E-03   -1.5461    
  26  norm          1.4217        2.5331        .16393E-03   -1.5469    
  27  norm          7.1999        4.1221        .11419E-03   -1.5171    
  28  norm          .10000E-03    3.2395        .13755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1629        .21995        .23201E-03   -.87757    
  30  Prefactor     .82541        .23993        .30834E-03   -.98798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86733e-09
Minuit parameter uncertainties:
  1  0.000208374
  2  11.5274
  3  4.70942
  4  0.00261565
  5  1.05702
  6  0.000251631
  7  0.804664
  8  3.6768
  9  35.241
  10  8.00681e-07
  11  3.4578
  12  5.86016e-07
  13  4.93831e-06
  14  1.48796
  15  3.11738
  16  6.20939
  17  0.36545
  18  7.57579e-06
  19  1.56446e-05
  20  18.9672
  21  0.00249689
  22  3.62857e-05
  23  2.90142e-05
  24  7.0945e-08
  25  15.7274
  26  2.53334
  27  4.12231
  28  3.75738e-07
  29  0.220128
  30  0.240231
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  7.443e+00  3.117e+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:  8.254e-01  2.402e-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.163e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.21
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 4.56e-08
Energy Flux (Fixed Index): 5.35e-05 +/- 2.24e-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) = 6150.60342022
delta logL = 2.20382427619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6150.59256003
delta logL = 2.21468446856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1323       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9619       1.0000          .0000       10.000    
     3 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90953       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=   6150.593     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1323        13.904        .57266E-03    .16347E-02
   2  Index         2.9619        2.1588        .67322E-01    .16688E-03
   3  Normalizat    1.0568        .99254E-01    .40123E-01    .91079E-05
   4  Prefactor     .90952        .10526        .66714E-01    .15421E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13233
  Index      = 2.9619
  Normalizat = 1.05679
  Prefactor  = 0.909525
 **********
 **   18 **HESSE 
 **********

 FCN=   6150.593     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1323        2.9898        .11453E-03   -1.5354    
   2  Index         2.9619        .53671        .28490E-02   -.41985    
   3  Normalizat    1.0568        .21800        .24101E-03   -.91151    
   4  Prefactor     .90952        .24495        .29510E-03   -.95809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1883e-11
Minuit parameter uncertainties:
  1  2.98998
  2  0.537956
  3  0.218181
  4  0.245242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527605': 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) = 6150.59256003
delta logL = 2.21468447127

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.132e+00  2.990e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.962e+00  5.380e-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:  9.095e-01  2.452e-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.057e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.90
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.96 +/- 0.54
Photon Flux (Free Index): 1.85e-07 +/- 6.54e-08
Energy Flux (Free Index): 3.77e-05 +/- 1.41e-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/527605/cmap_HighResolution_374630401_374889601_4FGL_J1221.5+2814_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.77e-05', photon_flux_error='4.56e-08', dlogl='2.21e+00', energy_flux='5.35e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-09-05 09:59:29.505676', photon_index_error2='0.54', photon_index2='2.96', ts='11.21', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.16', time_epoch_completed='1630861169.51', return_code='0', job_id='527605', GAL2='0.91', EG2='1.06', return_code2='0', energy_flux_error='2.24e-05', photon_flux_error2='6.54e-08', ts2='15.90', photon_index='2.15' WHERE bin_id='522' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:59:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 527605: <4FGL_J1221.5+2814_daily_bin522> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin522> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:45:41 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:45: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 09:45:42 2021
Terminated at Sun Sep  5 09:59:30 2021
Results reported at Sun Sep  5 09:59:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin522 185.378 28.2382 374630401 374889601 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 :                                   807.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

