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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1093
RA = 185.378, Dec = 28.2382
tmin = 522633601, tmax = 522892801
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='531975', job_status='RUN', time_executed='2021-09-05 10:02:32.965290', time_epoch_executed='1630861352.97' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531975/ft1_4FGL_J1221.5+2814_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531975/ft2_4FGL_J1221.5+2814_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531975/ft1_4FGL_J1221.5+2814_daily_bin1093.fits outfile=/scratch/kocevski/531975/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1093.fits ra=185.378 dec=28.2382 rad=12.0 tmin=522633601.0 tmax=522892801.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.58
user 3.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531975/ft2_4FGL_J1221.5+2814_daily_bin1093.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/531975/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1093.fits evtable="EVENTS" outfile="/scratch/kocevski/531975/ft1_filtered_4FGL_J1221.5+2814_daily_bin1093.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.51
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531975/ft1_filtered_4FGL_J1221.5+2814_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/531975/ft2_4FGL_J1221.5+2814_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/531975/ltcube_522633601_522892801_4FGL_J1221.5+2814_daily_bin1093.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/531975/ft2_4FGL_J1221.5+2814_daily_bin1093.fits
.....................!
real 14.11
user 13.57
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531975/ft1_filtered_4FGL_J1221.5+2814_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/531975/ft2_4FGL_J1221.5+2814_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/531975/ltcube_522633601_522892801_4FGL_J1221.5+2814_daily_bin1093.fits outfile=/scratch/kocevski/531975/expmap_522633601_522892801_4FGL_J1221.5+2814_daily_bin1093.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/531975/ltcube_522633601_522892801_4FGL_J1221.5+2814_daily_bin1093.fits
.....................!
real 191.53
user 184.99
sys 5.53

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/531975/ft1_filtered_4FGL_J1221.5+2814_daily_bin1093.fits scfile=/scratch/kocevski/531975/ft2_4FGL_J1221.5+2814_daily_bin1093.fits outfile=/scratch/kocevski/531975/cmap_522633601_522892801_4FGL_J1221.5+2814_daily_bin1093.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.58
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1811       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0341       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.204       1.0000         .10000E-03   10000.    
     7 'norm      '    10.002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8208       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8213       1.0000         .10000E-03   10000.    
    12 'norm      '    8.4235       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85313       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3146       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2981       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.409       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2299       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3195       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2920       1.0000         .10000E-03   10000.    
    24 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.259       1.0000         .10000E-03   10000.    
    26 'norm      '    6.4873       1.0000         .10000E-03   10000.    
    27 'norm      '    6.8624       1.0000         .10000E-03   10000.    
    28 'norm      '    .41008E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4444       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .55625       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6681.828     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     3414 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.597        .95320E-07** at limit **
   2  Prefactor     8.1801        1.6629        .15253E-05    .11648E-02
   3  Prefactor     2.6984        5.3248        .55815E-05   -.23201E-02
   4  Prefactor     32.626        1.0049        .27407E-07    .72476E-04
   5  Prefactor     4.0337        2.5986        .30934E-08    .10095E-03
   6  Prefactor     35.207        1.2390        .27293E-06   -.23126E-03
   7  norm          10.002        2.1057       -.79114E-07   -.35145E-03
   8  Prefactor     2.8209        5.0487        .63812E-05    .15104E-02
   9  Prefactor     .10009E-03    79.283        .39520E-04** at limit **
  10  Prefactor     .10000E-03    2.6337       -.18077E-06** at limit **
  11  Prefactor     1.8215        3.2683       -.43452E-07   -.18400E-03
  12  norm          8.4239        3.5931        .49408E-06   -.99564E-04
  13  Prefactor     3.7219        4.3078        .75721E-06    .32228E-02
  14  Prefactor     .85238        1.8249        .17790E-06   -.36570E-03
  15  Prefactor     5.3145        2.8289        .22809E-06    .36009E-03
  16  Prefactor     1.2975        3.1110       -.82804E-05   -.16283E-02
  17  norm          .10000E-03    .10420        .69253E-07** at limit **
  18  norm          14.408        1.7484       -.10592E-05   -.51875E-02
  19  Prefactor     7.2298        1.1720       -.23454E-06    .55084E-03
  20  Prefactor     .10000E-03    28.883       -.26932E-05** at limit **
  21  Prefactor     .10015E-03    263.26       -.49481E-04** at limit **
  22  Prefactor     6.3186        1.7480        .61763E-06   -.36798E-02
  23  Prefactor     1.2935        4.6735       -.11329E-04   -.59581E-03
  24  norm          .10000E-03    2.4591        .55338E-07** at limit **
  25  Prefactor     24.264        1.2692        .22059E-06    .37517E-04
  26  norm          6.4867        3.8631        .67481E-06   -.12145E-02
  27  norm          6.8595        4.4208       -.98437E-07    .10221E-02
  28  norm          .10021E-03    72.338       -.41133E-04** at limit **
  29  Normalizat    1.4445        .22409       -.22783E-05    .12894E-04
  30  Prefactor     .55614        .23360        .21442E-06   -.39761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.18012
  Prefactor  = 2.69841
  Prefactor  = 32.6258
  Prefactor  = 4.0337
  Prefactor  = 35.207
  norm       = 10.0022
  Prefactor  = 2.82092
  Prefactor  = 0.000100088
  Prefactor  = 0.0001
  Prefactor  = 1.82154
  norm       = 8.42391
  Prefactor  = 3.72188
  Prefactor  = 0.852384
  Prefactor  = 5.31452
  Prefactor  = 1.29755
  norm       = 0.0001
  norm       = 14.4081
  Prefactor  = 7.22977
  Prefactor  = 0.0001
  Prefactor  = 0.000100154
  Prefactor  = 6.31863
  Prefactor  = 1.2935
  norm       = 0.0001
  Prefactor  = 24.2638
  norm       = 6.48674
  norm       = 6.85949
  norm       = 0.000100214
  Normalizat = 1.44451
  Prefactor  = 0.556145
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.828     FROM HESSE     STATUS=OK           672 CALLS     4086 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.572        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1801        11.905        .35042E-02   -1.5136    
   3  Prefactor     2.6984        6.7355        .61987E-02   -1.5379    
   4  Prefactor     32.626        29.479        .17538E-02   -1.4565    
   5  Prefactor     4.0337        2.7674        .50192E-02   -1.5306    
   6  Prefactor     35.207        36.737        .16886E-02   -1.4521    
   7  norm          10.002        2.1441        .31675E-02   -1.5075    
   8  Prefactor     2.8209        5.3486        .60541E-02   -1.5372    
   9  Prefactor     .10009E-03    80.941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8215        3.3218        .77350E-02   -1.5438    
  12  norm          8.4239        3.6862        .34531E-02   -1.5127    
  13  Prefactor     3.7219        6.0063        .52328E-02   -1.5322    
  14  Prefactor     .85238        2.1972        .34793E-01   -1.5523    
  15  Prefactor     5.3145        2.8890        .43585E-02   -1.5247    
  16  Prefactor     1.2975        4.8953        .97010E-02   -1.5480    
  17  norm          .10000E-03    .85120E-01    .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.408        6.3690        .26379E-02   -1.4949    
  19  Prefactor     7.2298        7.9191        .37294E-02   -1.5170    
  20  Prefactor     .10000E-03    28.688        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10015E-03    262.51        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.3186        6.6225        .39918E-02   -1.5205    
  23  Prefactor     1.2935        5.6041        .97370E-02   -1.5481    
  24  norm          .10000E-03    2.4544        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.264        36.452        .20332E-02   -1.4722    
  26  norm          6.4867        4.3439        .39392E-02   -1.5199    
  27  norm          6.8595        5.5806        .38289E-02   -1.5184    
  28  norm          .10021E-03    7.1400        .69128E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4445        .20515        .55296E-01   -.79350    
  30  Prefactor     .55614        .21094        .89318E-01   -1.0947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48885e-06
Minuit parameter uncertainties:
  1  6.78186e-05
  2  11.9086
  3  6.73743
  4  29.4926
  5  2.76748
  6  36.7609
  7  2.14409
  8  5.34951
  9  0.0053449
  10  3.14444e-06
  11  3.3221
  12  3.68633
  13  6.00722
  14  2.19736
  15  2.88904
  16  4.89682
  17  7.43469e-07
  18  6.36931
  19  7.92028
  20  0.0001519
  21  0.0127865
  22  6.62328
  23  5.38541
  24  2.3849e-05
  25  36.4852
  26  4.34413
  27  5.58106
  28  0.00246987
  29  0.205265
  30  0.211244
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.315e+00  2.889e+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:  5.561e-01  2.112e-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.445e+00  2.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.81
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.78e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 2.08e-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) = 6681.78242053
delta logL = 0.04592927664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6681.77748448
delta logL = 0.0508653202423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5875       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0155       1.0000          .0000       10.000    
     3 'Normalizat'    1.4550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54950       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=   6681.777     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      244 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5876        3.0336        .99455E-04   -.71273E-03
   2  Index         2.0155        .42644        .64833E-02   -.10909E-03
   3  Normalizat    1.4550        .22137        .24384E-03    .20410E-03
   4  Prefactor     .54952        .23127        .39808E-03    .15190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58757
  Index      = 2.01548
  Normalizat = 1.455
  Prefactor  = 0.549516
 **********
 **   18 **HESSE 
 **********

 FCN=   6681.777     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5876        3.0173        .39782E-05   -1.5235    
   2  Index         2.0155        .42395        .25933E-03   -.63964    
   3  Normalizat    1.4550        .22141        .48768E-04   -.79051    
   4  Prefactor     .54952        .23133        .15923E-04   -1.0976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8293e-10
Minuit parameter uncertainties:
  1  3.01741
  2  0.424747
  3  0.22156
  4  0.231731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531975': 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) = 6681.77748447
delta logL = 0.0508653299958

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.588e+00  3.017e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.015e+00  4.247e-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:  5.495e-01  2.317e-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.455e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.99
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.02 +/- 0.42
Photon Flux (Free Index): 6.69e-08 +/- 4.94e-08
Energy Flux (Free Index): 4.45e-05 +/- 3.30e-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/531975/cmap_HighResolution_522633601_522892801_4FGL_J1221.5+2814_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.78e-08', energy_flux2='4.45e-05', photon_flux_error='4.23e-08', dlogl='5.09e-02', energy_flux='3.82e-05', photon_flux2='6.69e-08', job_status='DONE', time_completed='2021-09-05 10:16:04.075154', photon_index_error2='0.42', photon_index2='2.02', ts='10.81', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='3.30e-05', EG='1.44', time_epoch_completed='1630862164.08', return_code='0', job_id='531975', GAL2='0.55', EG2='1.45', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='4.94e-08', ts2='10.99', photon_index='2.15' WHERE bin_id='1093' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:16:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 531975: <4FGL_J1221.5+2814_daily_bin1093> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1093> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:25 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:27 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:27 2021
Terminated at Sun Sep  5 10:16:04 2021
Results reported at Sun Sep  5 10:16:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1093 185.378 28.2382 522633601 522892801 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 :                                   789.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

