/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 6 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin92
RA = 185.378, Dec = 28.2382
tmin = 263174401, tmax = 263433601
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='524793', job_status='RUN', time_executed='2021-09-05 09:36:42.528569', time_epoch_executed='1630859802.53' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524793

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524793/ft1_4FGL_J1221.5+2814_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524793/ft2_4FGL_J1221.5+2814_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524793/ft1_4FGL_J1221.5+2814_daily_bin92.fits outfile=/scratch/kocevski/524793/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin92.fits ra=185.378 dec=28.2382 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.38
user 1.19
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524793/ft1_filtered_4FGL_J1221.5+2814_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/524793/ft2_4FGL_J1221.5+2814_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/524793/ltcube_263174401_263433601_4FGL_J1221.5+2814_daily_bin92.fits outfile=/scratch/kocevski/524793/expmap_263174401_263433601_4FGL_J1221.5+2814_daily_bin92.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/524793/ltcube_263174401_263433601_4FGL_J1221.5+2814_daily_bin92.fits
.....................!
real 189.81
user 185.21
sys 4.18

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

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524793/ft1_filtered_4FGL_J1221.5+2814_daily_bin92.fits scfile=/scratch/kocevski/524793/ft2_4FGL_J1221.5+2814_daily_bin92.fits outfile=/scratch/kocevski/524793/cmap_263174401_263433601_4FGL_J1221.5+2814_daily_bin92.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524793/ft1_filtered_4FGL_J1221.5+2814_daily_bin92.fits scfile=/scratch/kocevski/524793/ft2_4FGL_J1221.5+2814_daily_bin92.fits outfile=/scratch/kocevski/524793/cmap_HighResolution_263174401_263433601_4FGL_J1221.5+2814_daily_bin92.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.961       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8190       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4440       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2187       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14776E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5945       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3874       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9429       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5647       1.0000         .10000E-03   10000.    
    17 'norm      '    .93678       1.0000         .10000E-03   10000.    
    18 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7886       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.7157       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9628       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92021       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0142       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=   4618.534     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3924 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.959        23.651       -.25038E-06   -.68264E-05
   2  Prefactor     4.8179        10.237        .30122E-06   -.45097E-03
   3  Prefactor     .10000E-03    2.7909       -.34272E-07** at limit **
   4  Prefactor     .10000E-03    4.4328        .22356E-05** at limit **
   5  Prefactor     4.4439        2.1465       -.16179E-07   -.55217E-04
   6  Prefactor     .10000E-03    19.946        .58103E-06** at limit **
   7  norm          3.2186        1.5247       -.32499E-07   -.89874E-04
   8  Prefactor     4.0518        4.4541        .41299E-07   -.77651E-04
   9  Prefactor     .10000E-03    20.415       -.19922E-05** at limit **
  10  Prefactor     .10000E-03    1.7391        .35831E-07** at limit **
  11  Prefactor     .10000E-03    1.7679        .42979E-07** at limit **
  12  norm          3.5945        4.2718        .27914E-06   -.58298E-04
  13  Prefactor     3.7835        4.9821        .49779E-06   -.10677E-02
  14  Prefactor     2.3873        2.5206       -.17460E-06   -.56262E-04
  15  Prefactor     7.9429        3.5216        .73265E-07   -.20464E-03
  16  Prefactor     5.5660        5.8288       -.79977E-07   -.24892E-03
  17  norm          .93687        .34651       -.12174E-07   -.72872E-03
  18  norm          .10000E-03    4.5956        .97679E-06** at limit **
  19  Prefactor     .10000E-03    8.1641        .13817E-05** at limit **
  20  Prefactor     .10000E-03    8.8675       -.32339E-05** at limit **
  21  Prefactor     .10000E-03    27.780        .13541E-05** at limit **
  22  Prefactor     3.7885        8.9107        .64268E-07   -.48421E-04
  23  Prefactor     .10000E-03    4.2694       -.93904E-06** at limit **
  24  norm          .10000E-03    5.9604        .48252E-06** at limit **
  25  Prefactor     .10000E-03    104.98       -.13975E-06** at limit **
  26  norm          2.7150        3.5588       -.48847E-06   -.10419E-03
  27  norm          3.9565        4.2719       -.11448E-05   -.68309E-04
  28  norm          .10000E-03    4.8500       -.14015E-05** at limit **
  29  Normalizat    .92029        .19974        .31555E-06   -.11413E-03
  30  Prefactor     1.0141        .22731       -.19243E-06   -.78900E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9589
  Prefactor  = 4.81794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44391
  Prefactor  = 0.0001
  norm       = 3.21862
  Prefactor  = 4.05176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.59446
  Prefactor  = 3.78354
  Prefactor  = 2.38728
  Prefactor  = 7.94289
  Prefactor  = 5.566
  norm       = 0.936866
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78849
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.71501
  norm       = 3.95654
  norm       = 0.0001
  Normalizat = 0.920287
  Prefactor  = 1.01409
 **********
 **   18 **HESSE 
 **********

 FCN=   4618.534     FROM HESSE     STATUS=OK           592 CALLS     4516 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.959        23.795        .77154E-04   -1.4669    
   2  Prefactor     4.8179        11.198        .91629E-03   -1.5269    
   3  Prefactor     .10000E-03    2.8131        .11086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4725        .14034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4439        2.1466        .66806E-04   -1.5286    
   6  Prefactor     .10000E-03    20.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2186        1.5225        .55226E-04   -1.5349    
   8  Prefactor     4.0518        4.4491        .14307E-03   -1.5305    
   9  Prefactor     .10000E-03    20.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7903        .17471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0698        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5945        4.2447        .13520E-03   -1.5329    
  13  Prefactor     3.7835        8.1879        .10376E-02   -1.5319    
  14  Prefactor     2.3873        2.5156        .10131E-03   -1.5399    
  15  Prefactor     7.9429        3.5095        .77833E-04   -1.5144    
  16  Prefactor     5.5660        5.7776        .80098E-03   -1.5236    
  17  norm          .93687        .34570        .22828E-04   -1.5514    
  18  norm          .10000E-03    10.276        .27251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.2102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.7885        8.9047        .20739E-03   -1.5319    
  23  Prefactor     .10000E-03    4.2894        .13714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.1729        .32407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    106.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.7150        3.5501        .14124E-03   -1.5378    
  27  norm          3.9565        4.2501        .13919E-03   -1.5310    
  28  norm          .10000E-03    4.7701        .14430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .92029        .23478        .25052E-03   -.95751    
  30  Prefactor     1.0141        .26620        .27857E-03   -.92261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06108e-09
Minuit parameter uncertainties:
  1  23.8033
  2  11.2031
  3  7.96838e-07
  4  2.29909e-05
  5  2.14663
  6  7.11035e-06
  7  1.52255
  8  4.44948
  9  4.92479e-05
  10  9.97188e-07
  11  9.48308e-06
  12  4.2451
  13  8.19031
  14  2.51572
  15  3.50963
  16  5.77813
  17  0.345698
  18  0.00045015
  19  1.11286e-05
  20  4.67399e-05
  21  4.06865e-05
  22  8.90784
  23  6.42368e-06
  24  3.45915e-05
  25  0.000699099
  26  3.55034
  27  4.25044
  28  3.0921e-05
  29  0.235039
  30  0.266546
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  7.943e+00  3.510e+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.014e+00  2.665e-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.203e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.17
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 5.13e-08
Energy Flux (Fixed Index): 5.71e-05 +/- 2.52e-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) = 4618.43431398
delta logL = 0.0999773120539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4618.42534735
delta logL = 0.108943940138

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4618.425     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      266 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8889        3.9748        .69686E-04   -.42384E-03
   2  Index         2.3333        .40966        .39772E-02   -.54470E-04
   3  Normalizat    .89839        .23277        .25307E-03    .24932E-04
   4  Prefactor     1.0304        .26617        .27658E-03    .64122E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.88894
  Index      = 2.33334
  Normalizat = 0.898391
  Prefactor  = 1.03036
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8889        3.8367        .27875E-05   -1.5183    
   2  Index         2.3333        .39507        .15909E-03   -.56254    
   3  Normalizat    .89839        .23272        .10123E-04   -.96517    
   4  Prefactor     1.0304        .26623        .11063E-04   -.91724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27032e-11
Minuit parameter uncertainties:
  1  3.83681
  2  0.39565
  3  0.232981
  4  0.266572
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524793': 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) = 4618.42534735
delta logL = 0.108943940322

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.889e+00  3.837e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.333e+00  3.956e-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.030e+00  2.666e-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:  8.984e-01  2.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.42
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.33 +/- 0.40
Photon Flux (Free Index): 1.34e-07 +/- 6.59e-08
Energy Flux (Free Index): 4.82e-05 +/- 2.50e-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/524793/cmap_HighResolution_263174401_263433601_4FGL_J1221.5+2814_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='4.82e-05', photon_flux_error='5.13e-08', dlogl='1.09e-01', energy_flux='5.71e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-05 09:47:43.540654', photon_index_error2='0.40', photon_index2='2.33', ts='14.17', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.50e-05', EG='0.92', time_epoch_completed='1630860463.54', return_code='0', job_id='524793', GAL2='1.03', EG2='0.90', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='6.59e-08', ts2='14.42', photon_index='2.15' WHERE bin_id='92' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:47:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 524793: <4FGL_J1221.5+2814_daily_bin92> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin92> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:26 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:28 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:36:28 2021
Terminated at Sun Sep  5 09:47:44 2021
Results reported at Sun Sep  5 09:47:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin92 185.378 28.2382 263174401 263433601 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 :                                   657.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            678 sec.

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

