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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1153
RA = 185.378, Dec = 28.2382
tmin = 538185601, tmax = 538444801
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='532107', job_status='RUN', time_executed='2021-09-05 10:00:52.814283', time_epoch_executed='1630861252.81' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532107

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532107/ft1_4FGL_J1221.5+2814_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532107/ft2_4FGL_J1221.5+2814_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532107/ft1_4FGL_J1221.5+2814_daily_bin1153.fits outfile=/scratch/kocevski/532107/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1153.fits ra=185.378 dec=28.2382 rad=12.0 tmin=538185601.0 tmax=538444801.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 5.52
user 5.08
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532107/ft1_filtered_4FGL_J1221.5+2814_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/532107/ft2_4FGL_J1221.5+2814_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/532107/ltcube_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.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/532107/ft2_4FGL_J1221.5+2814_daily_bin1153.fits
.....................!
real 11.91
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532107/ft1_filtered_4FGL_J1221.5+2814_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/532107/ft2_4FGL_J1221.5+2814_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/532107/ltcube_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.fits outfile=/scratch/kocevski/532107/expmap_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.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/532107/ltcube_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.fits
.....................!
real 192.15
user 186.09
sys 4.72

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/532107/ft1_filtered_4FGL_J1221.5+2814_daily_bin1153.fits scfile=/scratch/kocevski/532107/ft2_4FGL_J1221.5+2814_daily_bin1153.fits outfile=/scratch/kocevski/532107/cmap_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532107/ft1_filtered_4FGL_J1221.5+2814_daily_bin1153.fits scfile=/scratch/kocevski/532107/ft2_4FGL_J1221.5+2814_daily_bin1153.fits outfile=/scratch/kocevski/532107/cmap_HighResolution_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.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/532107/ft1_filtered_4FGL_J1221.5+2814_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/532107/ft2_4FGL_J1221.5+2814_daily_bin1153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/532107/Model_4FGL_J1221.5+2814_daily_bin1153.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/532107/ft1_filtered_4FGL_J1221.5+2814_daily_bin1153.fits.....................!
real 34.07
user 32.66
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49052E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8991       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.117       1.0000         .10000E-03   10000.    
     7 'norm      '    18.367       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4175       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38852E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7069       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9465       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .36019       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8647       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7614       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.981       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.9763       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3369       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70289       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=   2974.347     FROM MIGRAD    STATUS=CONVERGED   1378 CALLS     4550 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.927        19.491        .94593E-04   -.25467E-04
   2  Prefactor     .10000E-03    10.152        .16920E-02** at limit **
   3  Prefactor     1.3925        11.936        .34124E-03    .28769E-04
   4  Prefactor     .10002E-03    203.62        .38457E-03** at limit **
   5  Prefactor     2.9028        3.7036        .11055E-03   -.16499E-02
   6  Prefactor     35.113        53.955        .67625E-04   -.91622E-05
   7  norm          18.369        3.7123        .44129E-04   -.16244E-02
   8  Prefactor     1.4165        4.5906        .20169E-03    .10540E-04
   9  Prefactor     .10004E-03    70.011        .11727    ** at limit **
  10  Prefactor     .10000E-03    1.7731        .70255E-03** at limit **
  11  Prefactor     .10000E-03    1.2418        .59286E-03** at limit **
  12  norm          .10000E-03    3.1076        .93067E-03** at limit **
  13  Prefactor     3.7068        8.5036        .10488E-02    .55936E-03
  14  Prefactor     3.1639        4.6398        .12993E-03    .10820E-03
  15  Prefactor     4.9464        4.2349        .93595E-04    .76949E-04
  16  Prefactor     .10000E-03    4.9018        .11777E-02** at limit **
  17  norm          .36015        .33357        .29292E-04   -.60546E-04
  18  norm          .10000E-03    2.9280        .91042E-03** at limit **
  19  Prefactor     2.8635        31.791        .24018E-03    .21111E-04
  20  Prefactor     .10000E-03    19.863        .18142E-02** at limit **
  21  Prefactor     7.7712        437.69        .14394E-03    .41467E-05
  22  Prefactor     13.980        15.401        .10712E-03    .83099E-04
  23  Prefactor     .10000E-03    10.288        .16968E-02** at limit **
  24  norm          2.9713        8.8707        .23534E-03    .28620E-03
  25  Prefactor     .10001E-03    143.94        .18142E-02** at limit **
  26  norm          .10000E-03    4.6660        .11482E-02** at limit **
  27  norm          .10000E-03    4.9678        .11840E-02** at limit **
  28  norm          .10000E-03    5.0189        .11932E-02** at limit **
  29  Normalizat    1.3369        .33814        .24023E-03   -.20435E-03
  30  Prefactor     .70296        .33869        .34851E-03   -.10615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9268
  Prefactor  = 0.0001
  Prefactor  = 1.39247
  Prefactor  = 0.000100025
  Prefactor  = 2.90276
  Prefactor  = 35.113
  norm       = 18.3687
  Prefactor  = 1.41653
  Prefactor  = 0.000100043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.70684
  Prefactor  = 3.16386
  Prefactor  = 4.94637
  Prefactor  = 0.0001
  norm       = 0.360145
  norm       = 0.0001
  Prefactor  = 2.86346
  Prefactor  = 0.0001
  Prefactor  = 7.77122
  Prefactor  = 13.98
  Prefactor  = 0.0001
  norm       = 2.97127
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.33689
  Prefactor  = 0.702962
 **********
 **   18 **HESSE 
 **********

 FCN=   2974.347     FROM HESSE     STATUS=OK           566 CALLS     5116 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.927        19.490        .18919E-04   -1.4861    
   2  Prefactor     .10000E-03    10.153        .33841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3925        11.918        .13649E-04   -1.5472    
   4  Prefactor     .10002E-03    203.63        .76915E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9028        3.7032        .44222E-05   -1.5367    
   6  Prefactor     35.113        53.955        .27050E-05   -1.4522    
   7  norm          18.369        3.7124        .88257E-05   -1.4851    
   8  Prefactor     1.4165        4.5899        .80677E-05   -1.5470    
   9  Prefactor     .10004E-03    67.723        .12004       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7733        .14051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2418        .11857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1079        .18613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7068        8.5017        .41950E-04   -1.5323    
  14  Prefactor     3.1639        4.6391        .51970E-05   -1.5352    
  15  Prefactor     4.9464        4.2343        .37438E-05   -1.5263    
  16  Prefactor     .10000E-03    4.9020        .23555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .36015        .33356        .11717E-05   -1.5588    
  18  norm          .10000E-03    2.9280        .18208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8635        31.770        .96070E-05   -1.5370    
  20  Prefactor     .10000E-03    19.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.7712        436.73        .57574E-05   -1.5150    
  22  Prefactor     13.980        15.401        .42848E-05   -1.4960    
  23  Prefactor     .10000E-03    10.293        .33935E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9713        8.8656        .94136E-05   -1.5363    
  25  Prefactor     .10001E-03    143.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.6663        .22964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.9682        .23681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.0189        .23865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3369        .33830        .48046E-04   -.82472    
  30  Prefactor     .70296        .33894        .13940E-04   -1.0341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3684e-09
Minuit parameter uncertainties:
  1  19.4974
  2  1.61066e-05
  3  8.14952
  4  0.0044856
  5  3.70348
  6  54.0299
  7  3.71245
  8  4.59104
  9  0.00340488
  10  4.77661e-06
  11  9.06954e-07
  12  8.37506e-06
  13  8.5045
  14  4.63965
  15  4.23457
  16  6.76723e-06
  17  0.333557
  18  1.79443e-06
  19  19.0883
  20  5.52833e-06
  21  117.427
  22  15.4053
  23  1.5685e-05
  24  8.86952
  25  0.00244355
  26  8.19722e-06
  27  1.73777e-06
  28  2.9303e-06
  29  0.338865
  30  0.339942
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.946e+00  4.235e+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:  7.030e-01  3.399e-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.337e+00  3.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.24e-08 +/- 6.19e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 3.05e-05

TS (Fixed Index): 2.43
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 2.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532107/likelihoodResults_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.txt

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) = 2974.29276653
delta logL = 0.0544662465632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2974.29176637
delta logL = 0.0554664046676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6518       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9874       1.0000          .0000       10.000    
     3 'Normalizat'    1.3451       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69638       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=   2974.292     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      259 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6484        176.94        .42243E-02    .31891E-03
   2  Index         1.9870        5.6118        .13642        .10796E-03
   3  Normalizat    1.3451        .21385        .54194E-01    .14339E-03
   4  Prefactor     .69642        .25047        .79025E-01    .10008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.64845
  Index      = 1.98698
  Normalizat = 1.34509
  Prefactor  = 0.696419
 **********
 **   18 **HESSE 
 **********

 FCN=   2974.292     FROM HESSE     STATUS=OK            31 CALLS      290 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6484        4.8022        .99416E-04   -1.5233    
   2  Index         1.9870        .48619        .55307E-02   -.64676    
   3  Normalizat    1.3451        .30577        .23962E-03   -.82230    
   4  Prefactor     .69642        .33340        .34990E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27586e-10
Minuit parameter uncertainties:
  1  4.80253
  2  0.487406
  3  0.306185
  4  0.334356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532107': 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) = 2974.29176548
delta logL = 0.0554672934109

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.648e+00  4.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.987e+00  4.874e-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:  6.964e-01  3.344e-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.345e+00  3.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.99 +/- 0.49
Photon Flux (Free Index): 6.50e-08 +/- 5.71e-08
Energy Flux (Free Index): 4.64e-05 +/- 5.39e-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/532107/cmap_HighResolution_538185601_538444801_4FGL_J1221.5+2814_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-02', comment='SUCCESS', photon_flux='7.24e-08', energy_flux2='4.64e-05', photon_flux_error='6.19e-08', dlogl='5.55e-02', energy_flux='3.56e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-09-05 10:11:49.946225', photon_index_error2='0.49', photon_index2='1.99', ts='2.43', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='2.04e-07', energy_flux_error2='5.39e-05', EG='1.34', time_epoch_completed='1630861909.95', return_code='0', job_id='532107', GAL2='0.70', EG2='1.35', return_code2='0', energy_flux_error='3.05e-05', photon_flux_error2='5.71e-08', ts2='2.55', photon_index='2.15' WHERE bin_id='1153' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:11:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 532107: <4FGL_J1221.5+2814_daily_bin1153> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1153> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:32 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:34 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:34 2021
Terminated at Sun Sep  5 10:11:50 2021
Results reported at Sun Sep  5 10:11:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1153 185.378 28.2382 538185601 538444801 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 :                                   648.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

