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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin453
RA = 185.378, Dec = 28.2382
tmin = 356745601, tmax = 357004801
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='526422', job_status='RUN', time_executed='2021-09-05 09:41:26.438016', time_epoch_executed='1630860086.44' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526422

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526422/ft1_4FGL_J1221.5+2814_daily_bin453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526422/ft2_4FGL_J1221.5+2814_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526422/ft1_4FGL_J1221.5+2814_daily_bin453.fits outfile=/scratch/kocevski/526422/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin453.fits ra=185.378 dec=28.2382 rad=12.0 tmin=356745601.0 tmax=357004801.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.45
user 3.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526422/ft1_filtered_4FGL_J1221.5+2814_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/526422/ft2_4FGL_J1221.5+2814_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/526422/ltcube_356745601_357004801_4FGL_J1221.5+2814_daily_bin453.fits outfile=/scratch/kocevski/526422/expmap_356745601_357004801_4FGL_J1221.5+2814_daily_bin453.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/526422/ltcube_356745601_357004801_4FGL_J1221.5+2814_daily_bin453.fits
.....................!
real 190.34
user 184.68
sys 5.28

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/526422/ft1_filtered_4FGL_J1221.5+2814_daily_bin453.fits scfile=/scratch/kocevski/526422/ft2_4FGL_J1221.5+2814_daily_bin453.fits outfile=/scratch/kocevski/526422/cmap_356745601_357004801_4FGL_J1221.5+2814_daily_bin453.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526422/ft1_filtered_4FGL_J1221.5+2814_daily_bin453.fits scfile=/scratch/kocevski/526422/ft2_4FGL_J1221.5+2814_daily_bin453.fits outfile=/scratch/kocevski/526422/cmap_HighResolution_356745601_357004801_4FGL_J1221.5+2814_daily_bin453.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.117       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.100       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43561       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.577       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9769       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.4998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4809       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1585       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.8374       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0407       1.0000         .10000E-03   10000.    
    21 'Prefactor '    108.52       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0970       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.9278       1.0000         .10000E-03   10000.    
    24 'norm      '    2.5294       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.895       1.0000         .10000E-03   10000.    
    26 'norm      '    .13313E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.3307       1.0000         .10000E-03   10000.    
    28 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0773       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0005       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=   6017.348     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3929 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.113        30.718       -.81565E-06   -.23072E-04
   2  Prefactor     19.094        18.635        .94745E-06    .45664E-04
   3  Prefactor     .10000E-03    7.6462       -.48450E-06** at limit **
   4  Prefactor     .10000E-03    43.400       -.42529E-06** at limit **
   5  Prefactor     .43406        1.1332        .25776E-06    .11466E-03
   6  Prefactor     14.575        27.303       -.11945E-05   -.63082E-04
   7  norm          1.9761        1.3264        .62005E-07   -.19479E-03
   8  Prefactor     .10000E-03    1.1275        .35531E-08** at limit **
   9  Prefactor     .10000E-03    11.457        .28307E-06** at limit **
  10  Prefactor     .10000E-03    2.7031        .15623E-05** at limit **
  11  Prefactor     .10000E-03    2.6879       -.15059E-05** at limit **
  12  norm          8.5007        3.7240       -.84315E-07   -.11754E-02
  13  Prefactor     .10000E-03    2.3147        .11289E-06** at limit **
  14  Prefactor     .10000E-03    2.0521        .72365E-06** at limit **
  15  Prefactor     3.4809        2.2813        .50905E-07   -.34986E-03
  16  Prefactor     .10000E-03    1.2457        .58337E-08** at limit **
  17  norm          1.1585        .33763        .16996E-07   -.51223E-03
  18  norm          .10000E-03    .94572       -.26710E-07** at limit **
  19  Prefactor     7.8379        8.7803       -.29639E-07   -.76582E-04
  20  Prefactor     6.0422        19.845        .81731E-06    .91193E-05
  21  Prefactor     108.53        77.198        .37313E-05    .12274E-03
  22  Prefactor     6.0988        6.4531        .10335E-06   -.35846E-04
  23  Prefactor     5.9274        8.0441       -.34739E-06   -.50361E-04
  24  norm          2.5283        2.9558        .11850E-05   -.13889E-02
  25  Prefactor     18.905        30.475        .49506E-05    .21305E-03
  26  norm          .10000E-03    2.3145        .31027E-06** at limit **
  27  norm          1.3309        3.3742       -.67377E-06   -.18388E-03
  28  norm          .10000E-03    4.5436       -.15581E-05** at limit **
  29  Normalizat    1.0773        .19069       -.14520E-05   -.79256E-04
  30  Prefactor     1.0004        .20565        .41538E-06   -.16481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1133
  Prefactor  = 19.0945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.434055
  Prefactor  = 14.5745
  norm       = 1.97609
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.50071
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.48092
  Prefactor  = 0.0001
  norm       = 1.15847
  norm       = 0.0001
  Prefactor  = 7.83794
  Prefactor  = 6.04221
  Prefactor  = 108.529
  Prefactor  = 6.09885
  Prefactor  = 5.92738
  norm       = 2.52829
  Prefactor  = 18.9051
  norm       = 0.0001
  norm       = 1.33087
  norm       = 0.0001
  Normalizat = 1.07733
  Prefactor  = 1.00045
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.348     FROM HESSE     STATUS=OK           592 CALLS     4521 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.113        30.725        .83310E-04   -1.4746    
   2  Prefactor     19.094        18.628        .91646E-04   -1.4834    
   3  Prefactor     .10000E-03    7.8995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .43406        .97206        .12949E-02   -1.5576    
   6  Prefactor     14.575        27.392        .10491E-03   -1.4944    
   7  norm          1.9761        1.3170        .69467E-04   -1.5427    
   8  Prefactor     .10000E-03    1.1323        .80426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8397        .24949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7649        .24823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.5007        3.4525        .87286E-04   -1.5125    
  13  Prefactor     .10000E-03    2.3182        .11526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9370        .19622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4809        2.2742        .89563E-04   -1.5335    
  16  Prefactor     .10000E-03    1.2463        .84551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1585        .33734        .23005E-04   -1.5493    
  18  norm          .10000E-03    .94686        .73668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8379        8.7720        .14323E-03   -1.5148    
  20  Prefactor     6.0422        19.795        .16336E-03   -1.5216    
  21  Prefactor     108.53        78.264        .19304E-03   -1.3621    
  22  Prefactor     6.0988        6.4432        .16260E-03   -1.5214    
  23  Prefactor     5.9274        8.0218        .16493E-03   -1.5221    
  24  norm          2.5283        3.9941        .89239E-03   -1.5390    
  25  Prefactor     18.905        32.693        .92141E-04   -1.4838    
  26  norm          .10000E-03    4.8387        .22808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.3309        3.2968        .20803E-03   -1.5477    
  28  norm          .10000E-03    4.5450        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0773        .22824        .25252E-03   -.90483    
  30  Prefactor     1.0004        .24634        .29386E-03   -.92715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85566e-09
Minuit parameter uncertainties:
  1  30.7457
  2  18.6333
  3  1.93689e-05
  4  8.80406e-06
  5  0.972096
  6  27.4152
  7  1.31698
  8  5.07349e-07
  9  2.46039e-05
  10  3.96981e-05
  11  3.2387e-05
  12  3.45256
  13  3.63379e-06
  14  0.00022367
  15  2.27423
  16  3.25995e-07
  17  0.337344
  18  1.91549e-07
  19  8.77343
  20  19.8165
  21  78.3383
  22  6.44392
  23  8.02326
  24  3.99451
  25  32.7236
  26  4.40867e-05
  27  3.29729
  28  3.49566e-05
  29  0.228445
  30  0.246615
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.481e+00  2.274e+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.000e+00  2.466e-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.077e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.64e-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) = 6017.34239937
delta logL = 0.00530512217847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6017.34021547
delta logL = 0.00748901430143

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3169       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2125       1.0000          .0000       10.000    
     3 'Normalizat'    1.0745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0028       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=   6017.340     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3163        49.885        .55568E-02    .32559E-03
   2  Index         2.2128        6.1056        .16585        .92611E-04
   3  Normalizat    1.0745        .87006E-01    .57170E-01   -.19067E-05
   4  Prefactor     1.0028        .85278E-01    .66370E-01    .65804E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.31632
  Index      = 2.21277
  Normalizat = 1.07446
  Prefactor  = 1.00281
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.340     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3163        2.6396        .87159E-04   -1.5344    
   2  Index         2.2128        .50823        .61741E-02   -.59131    
   3  Normalizat    1.0745        .21600        .25281E-03   -.90576    
   4  Prefactor     1.0028        .24333        .29356E-03   -.92636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37518e-11
Minuit parameter uncertainties:
  1  2.63974
  2  0.509504
  3  0.216179
  4  0.243594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526422': 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) = 6017.34021523
delta logL = 0.00748925558491

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.316e+00  2.640e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.213e+00  5.095e-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.003e+00  2.436e-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.074e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.37
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.21 +/- 0.51
Photon Flux (Free Index): 5.32e-08 +/- 3.79e-08
Energy Flux (Free Index): 2.33e-05 +/- 2.05e-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/526422/cmap_HighResolution_356745601_357004801_4FGL_J1221.5+2814_daily_bin453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='2.33e-05', photon_flux_error='3.33e-08', dlogl='7.49e-03', energy_flux='2.50e-05', photon_flux2='5.32e-08', job_status='DONE', time_completed='2021-09-05 09:54:13.539382', photon_index_error2='0.51', photon_index2='2.21', ts='4.34', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.08', time_epoch_completed='1630860853.54', return_code='0', job_id='526422', GAL2='1.00', EG2='1.07', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='3.79e-08', ts2='4.37', photon_index='2.15' WHERE bin_id='453' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:54:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 526422: <4FGL_J1221.5+2814_daily_bin453> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin453> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 09:41:11 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:41:12 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:41:12 2021
Terminated at Sun Sep  5 09:54:14 2021
Results reported at Sun Sep  5 09:54:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin453 185.378 28.2382 356745601 357004801 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 :                                   762.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

