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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin94
RA = 185.378, Dec = 28.2382
tmin = 263692801, tmax = 263952001
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='524796', job_status='RUN', time_executed='2021-09-05 09:39:15.935040', time_epoch_executed='1630859955.94' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524796/ft1_4FGL_J1221.5+2814_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524796/ft2_4FGL_J1221.5+2814_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524796/ft1_4FGL_J1221.5+2814_daily_bin94.fits outfile=/scratch/kocevski/524796/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin94.fits ra=185.378 dec=28.2382 rad=12.0 tmin=263692801.0 tmax=263952001.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.91
user 1.46
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524796/ft1_filtered_4FGL_J1221.5+2814_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/524796/ft2_4FGL_J1221.5+2814_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/524796/ltcube_263692801_263952001_4FGL_J1221.5+2814_daily_bin94.fits outfile=/scratch/kocevski/524796/expmap_263692801_263952001_4FGL_J1221.5+2814_daily_bin94.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/524796/ltcube_263692801_263952001_4FGL_J1221.5+2814_daily_bin94.fits
.....................!
real 193.74
user 186.14
sys 4.20

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/524796/ft1_filtered_4FGL_J1221.5+2814_daily_bin94.fits scfile=/scratch/kocevski/524796/ft2_4FGL_J1221.5+2814_daily_bin94.fits outfile=/scratch/kocevski/524796/cmap_263692801_263952001_4FGL_J1221.5+2814_daily_bin94.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524796/ft1_filtered_4FGL_J1221.5+2814_daily_bin94.fits scfile=/scratch/kocevski/524796/ft2_4FGL_J1221.5+2814_daily_bin94.fits outfile=/scratch/kocevski/524796/cmap_HighResolution_263692801_263952001_4FGL_J1221.5+2814_daily_bin94.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/524796/ft1_filtered_4FGL_J1221.5+2814_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/524796/ft2_4FGL_J1221.5+2814_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524796/Model_4FGL_J1221.5+2814_daily_bin94.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/524796/ft1_filtered_4FGL_J1221.5+2814_daily_bin94.fits.....................!
real 52.19
user 50.84
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50360E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1144       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6170       1.0000         .10000E-03   10000.    
     7 'norm      '    .77173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11843E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.785       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1452       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5586       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5449       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5321       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39250       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.184       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.270       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.814       1.0000         .10000E-03   10000.    
    26 'norm      '    10.672       1.0000         .10000E-03   10000.    
    27 'norm      '    2.5404       1.0000         .10000E-03   10000.    
    28 'norm      '    .14923E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93746       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=   5784.027     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3980 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.018        .70020E-06** at limit **
   2  Prefactor     .10012E-03    9.1383       -.35848E-06** at limit **
   3  Prefactor     .26083        3.5006       -.94451E-06    .12214E-03
   4  Prefactor     15.609        16.950        .23962E-05    .39226E-04
   5  Prefactor     2.1139        1.7115       -.30099E-06   -.22277E-03
   6  Prefactor     5.6112        27.977        .68549E-05    .62879E-04
   7  norm          .77265        1.0854        .43676E-07   -.52915E-03
   8  Prefactor     .10000E-03    1.8756       -.27530E-06** at limit **
   9  Prefactor     38.760        32.022       -.17361E-04    .10896E-04
  10  Prefactor     1.1454        1.7752       -.37536E-06   -.49853E-03
  11  Prefactor     .10000E-03    1.7487        .80708E-07** at limit **
  12  norm          1.5583        1.6302        .15286E-06    .26490E-03
  13  Prefactor     .10000E-03    13.808        .10384E-05** at limit **
  14  Prefactor     1.5451        1.6896        .99131E-07    .63675E-04
  15  Prefactor     6.5314        2.7130       -.23928E-06   -.30552E-04
  16  Prefactor     .10000E-03    1.6393        .84765E-07** at limit **
  17  norm          .39247        .21710       -.59701E-07   -.29408E-03
  18  norm          .10000E-03    1.0418        .57155E-07** at limit **
  19  Prefactor     20.183        10.468        .20315E-06    .13489E-04
  20  Prefactor     21.274        17.339       -.50716E-06    .41028E-05
  21  Prefactor     .10000E-03    21.379       -.88000E-05** at limit **
  22  Prefactor     .10000E-03    3.7391        .69457E-07** at limit **
  23  Prefactor     .10000E-03    2.8648       -.81799E-07** at limit **
  24  norm          .10000E-03    1.7582        .24804E-07** at limit **
  25  Prefactor     28.801        22.060       -.43549E-05   -.13945E-03
  26  norm          10.671        4.7982       -.21384E-05   -.46387E-04
  27  norm          2.5462        3.5568       -.92893E-06   -.20993E-02
  28  norm          .10004E-03    6.4328        .28133E-05** at limit **
  29  Normalizat    1.0515        .18691        .26249E-05   -.14670E-04
  30  Prefactor     .93674        .20326        .54349E-06    .70196E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  Prefactor  = 0.26083
  Prefactor  = 15.6087
  Prefactor  = 2.11387
  Prefactor  = 5.61117
  norm       = 0.77265
  Prefactor  = 0.000100001
  Prefactor  = 38.7604
  Prefactor  = 1.14541
  Prefactor  = 0.0001
  norm       = 1.55834
  Prefactor  = 0.0001
  Prefactor  = 1.54506
  Prefactor  = 6.53136
  Prefactor  = 0.0001
  norm       = 0.392469
  norm       = 0.0001
  Prefactor  = 20.183
  Prefactor  = 21.274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.8007
  norm       = 10.6711
  norm       = 2.5462
  norm       = 0.000100045
  Normalizat = 1.05149
  Prefactor  = 0.93674
 **********
 **   18 **HESSE 
 **********

 FCN=   5784.027     FROM HESSE     STATUS=OK           600 CALLS     4580 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10012E-03    93.755        .43457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .26083        29.554        .26414E-02   -1.5606    
   4  Prefactor     15.609        16.886        .10132E-03   -1.4918    
   5  Prefactor     2.1139        1.6999        .84914E-04   -1.5417    
   6  Prefactor     5.6112        27.617        .16950E-03   -1.5234    
   7  norm          .77265        .98025        .88104E-03   -1.5532    
   8  Prefactor     .10000E-03    12.679        .19883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.760        31.809        .64359E-04   -1.4462    
  10  Prefactor     1.1454        1.7220        .12139E-03   -1.5494    
  11  Prefactor     .10000E-03    1.8056        .19612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5583        1.6390        .95489E-04   -1.5458    
  13  Prefactor     .10000E-03    14.247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5451        1.6853        .98803E-04   -1.5459    
  15  Prefactor     6.5314        2.7068        .76024E-04   -1.5197    
  16  Prefactor     .10000E-03    1.6432        .95085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .39247        .21412        .25140E-04   -1.5583    
  18  norm          .10000E-03    1.0436        .75802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.183        10.465        .89152E-04   -1.4809    
  20  Prefactor     21.274        17.338        .86847E-04   -1.4785    
  21  Prefactor     .10000E-03    21.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.7628        .14359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.8791        .12569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7698        .98421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.801        22.034        .74636E-04   -1.4634    
  26  norm          10.671        4.7959        .10763E-03   -1.5055    
  27  norm          2.5462        3.0804        .14043E-03   -1.5389    
  28  norm          .10004E-03    22.543        .31959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0515        .21376        .23500E-03   -.91325    
  30  Prefactor     .93674        .23403        .28562E-03   -.94869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95593e-09
Minuit parameter uncertainties:
  1  5.38693e-05
  2  0.00672734
  3  5.55462
  4  16.8916
  5  1.6999
  6  24.9151
  7  0.980269
  8  0.000166497
  9  31.823
  10  1.72211
  11  3.81892e-06
  12  1.63907
  13  0.000145395
  14  1.68534
  15  2.70689
  16  1.71059e-06
  17  0.214119
  18  1.00361e-06
  19  10.4659
  20  17.3421
  21  4.4481e-06
  22  2.50406e-06
  23  3.41634e-06
  24  9.26699e-06
  25  22.0397
  26  4.7961
  27  3.08062
  28  0.0020135
  29  0.213934
  30  0.234282
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.531e+00  2.707e+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:  9.367e-01  2.343e-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.051e+00  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.67
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 9.56e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 4.70e-05 +/- 1.95e-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) = 5783.83906375
delta logL = 0.187763209821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5783.83826316
delta logL = 0.188563806659

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4298       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9669       1.0000          .0000       10.000    
     3 'Normalizat'    1.0633       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92917       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=   5783.838     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      265 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4299        3.2880        .83123E-04   -.34370E-03
   2  Index         1.9669        .29820        .47599E-02   -.87255E-04
   3  Normalizat    1.0633        .20056        .23392E-03    .69257E-04
   4  Prefactor     .92916        .23127        .28692E-03   -.84001E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.42989
  Index      = 1.96689
  Normalizat = 1.06331
  Prefactor  = 0.929162
 **********
 **   18 **HESSE 
 **********

 FCN=   5783.838     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4299        3.2605        .33249E-05   -1.5163    
   2  Index         1.9669        .29564        .19039E-03   -.65180    
   3  Normalizat    1.0633        .20071        .93566E-05   -.90939    
   4  Prefactor     .92916        .23146        .11477E-04   -.95129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35822e-11
Minuit parameter uncertainties:
  1  3.26058
  2  0.29591
  3  0.200851
  4  0.231701
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524796': 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) = 5783.83826315
delta logL = 0.188563808367

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  7.430e+00  3.261e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.967e+00  2.959e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.292e-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.063e+00  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.10
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.97 +/- 0.30
Photon Flux (Free Index): 8.31e-08 +/- 4.09e-08
Energy Flux (Free Index): 6.24e-05 +/- 4.04e-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/524796/cmap_HighResolution_263692801_263952001_4FGL_J1221.5+2814_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.56e-08', energy_flux2='6.24e-05', photon_flux_error='3.96e-08', dlogl='1.89e-01', energy_flux='4.70e-05', photon_flux2='8.31e-08', job_status='DONE', time_completed='2021-09-05 09:51:52.415053', photon_index_error2='0.30', photon_index2='1.97', ts='14.67', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='4.04e-05', EG='1.05', time_epoch_completed='1630860712.42', return_code='0', job_id='524796', GAL2='0.93', EG2='1.06', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='4.09e-08', ts2='15.10', photon_index='2.15' WHERE bin_id='94' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:51:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 524796: <4FGL_J1221.5+2814_daily_bin94> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin94> 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) <bullet0075>, 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:51:53 2021
Results reported at Sun Sep  5 09:51:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin94 185.378 28.2382 263692801 263952001 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

