/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 3 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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin174
RA = 185.378, Dec = 28.2382
tmin = 284428801, tmax = 284688001
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='524910', job_status='RUN', time_executed='2021-09-05 09:36:46.941894', time_epoch_executed='1630859806.94' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524910

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524910/ft1_4FGL_J1221.5+2814_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524910/ft2_4FGL_J1221.5+2814_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524910/ft1_4FGL_J1221.5+2814_daily_bin174.fits outfile=/scratch/kocevski/524910/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin174.fits ra=185.378 dec=28.2382 rad=12.0 tmin=284428801.0 tmax=284688001.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.36
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524910/ft1_filtered_4FGL_J1221.5+2814_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/524910/ft2_4FGL_J1221.5+2814_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/524910/ltcube_284428801_284688001_4FGL_J1221.5+2814_daily_bin174.fits outfile=/scratch/kocevski/524910/expmap_284428801_284688001_4FGL_J1221.5+2814_daily_bin174.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/524910/ltcube_284428801_284688001_4FGL_J1221.5+2814_daily_bin174.fits
.....................!
real 190.42
user 184.95
sys 4.58

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/524910/ft1_filtered_4FGL_J1221.5+2814_daily_bin174.fits scfile=/scratch/kocevski/524910/ft2_4FGL_J1221.5+2814_daily_bin174.fits outfile=/scratch/kocevski/524910/cmap_284428801_284688001_4FGL_J1221.5+2814_daily_bin174.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524910/ft1_filtered_4FGL_J1221.5+2814_daily_bin174.fits scfile=/scratch/kocevski/524910/ft2_4FGL_J1221.5+2814_daily_bin174.fits outfile=/scratch/kocevski/524910/cmap_HighResolution_284428801_284688001_4FGL_J1221.5+2814_daily_bin174.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4370       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.997       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7024       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53544       1.0000         .10000E-03   10000.    
     7 'norm      '    .22627       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0881       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3079       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5893       1.0000         .10000E-03   10000.    
    18 'norm      '    2.8273       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9505       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .55029E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7463       1.0000         .10000E-03   10000.    
    24 'norm      '    .11623E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    59.177       1.0000         .10000E-03   10000.    
    26 'norm      '    3.6081       1.0000         .10000E-03   10000.    
    27 'norm      '    3.0832       1.0000         .10000E-03   10000.    
    28 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82535       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0777       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=   6146.582     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4022 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.351        23.329       -.26690E-05   -.39812E-03
   2  Prefactor     .10000E-03    11.307       -.77835E-06** at limit **
   3  Prefactor     1.4383        8.2592        .24994E-05   -.69203E-04
   4  Prefactor     36.001        25.953        .70706E-07   -.44346E-04
   5  Prefactor     3.7017        2.3439        .54815E-07   -.72583E-04
   6  Prefactor     .51607        29.121       -.12084E-05    .25903E-04
   7  norm          .22576        .85979        .35170E-06   -.45760E-03
   8  Prefactor     .10000E-03    3.6652        .16761E-06** at limit **
   9  Prefactor     .10000E-03    15.402       -.98075E-06** at limit **
  10  Prefactor     .10000E-03    1.9080       -.25625E-06** at limit **
  11  Prefactor     .10000E-03    3.2971        .14763E-06** at limit **
  12  norm          2.0879        1.8861       -.76184E-08   -.28974E-04
  13  Prefactor     .10000E-03    1.4222        .37587E-08** at limit **
  14  Prefactor     .10000E-03    .55547        .36620E-08** at limit **
  15  Prefactor     5.3076        2.5218       -.98125E-08   -.17711E-03
  16  Prefactor     .10000E-03    16.065        .10106E-05** at limit **
  17  norm          3.5893        .51065        .80958E-08   -.24599E-03
  18  norm          2.8274        4.9530        .98786E-06    .86671E-04
  19  Prefactor     .10000E-03    3.1937       -.75836E-07** at limit **
  20  Prefactor     .10000E-03    6.3760       -.14304E-06** at limit **
  21  Prefactor     3.9964        142.69        .17330E-04    .12211E-03
  22  Prefactor     .10000E-03    5.6127       -.10028E-06** at limit **
  23  Prefactor     2.7454        4.2418        .31093E-05   -.97951E-03
  24  norm          .10002E-03    4.0618        .88947E-06** at limit **
  25  Prefactor     59.220        35.917       -.95333E-06   -.16835E-03
  26  norm          3.6095        3.9026        .25960E-07   -.22212E-03
  27  norm          3.0852        4.6592        .11663E-06   -.33098E-03
  28  norm          .10000E-03    3.1573       -.44659E-08** at limit **
  29  Normalizat    .82548        .19684       -.39583E-06   -.11207E-03
  30  Prefactor     1.0777        .20450       -.77441E-06   -.71613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3514
  Prefactor  = 0.0001
  Prefactor  = 1.43825
  Prefactor  = 36.0006
  Prefactor  = 3.70168
  Prefactor  = 0.516068
  norm       = 0.225759
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.08794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.30755
  Prefactor  = 0.0001
  norm       = 3.58931
  norm       = 2.82737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99639
  Prefactor  = 0.000100001
  Prefactor  = 2.74536
  norm       = 0.000100016
  Prefactor  = 59.2203
  norm       = 3.60955
  norm       = 3.08521
  norm       = 0.0001
  Normalizat = 0.825483
  Prefactor  = 1.07774
 **********
 **   18 **HESSE 
 **********

 FCN=   6146.582     FROM HESSE     STATUS=OK           602 CALLS     4624 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.351        23.816        .96193E-04   -1.4875    
   2  Prefactor     .10000E-03    11.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4383        8.1629        .36006E-03   -1.5468    
   4  Prefactor     36.001        25.794        .66796E-04   -1.4507    
   5  Prefactor     3.7017        2.3371        .86870E-04   -1.5323    
   6  Prefactor     .51607        40.541        .10524       -1.5564    
   7  norm          .22576        1.2647        .12893E-02   -1.5613    
   8  Prefactor     .10000E-03    3.7451        .14641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.6984        .20759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4149        .27725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0879        1.8927        .98793E-04   -1.5419    
  13  Prefactor     .10000E-03    1.4224        .91308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .55639        .57047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3076        2.5187        .81666E-04   -1.5247    
  16  Prefactor     .10000E-03    16.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5893        .51214        .19700E-04   -1.5329    
  18  norm          2.8274        4.9086        .21814E-03   -1.5372    
  19  Prefactor     .10000E-03    3.1995        .13684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9964        156.79        .20295E-03   -1.5308    
  22  Prefactor     .10000E-03    18.849        .35677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7454        4.3965        .10136E-02   -1.5377    
  24  norm          .10002E-03    12.685        .28369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     59.220        34.237        .52154E-04   -1.4167    
  26  norm          3.6095        3.8926        .15472E-03   -1.5328    
  27  norm          3.0852        4.6279        .18917E-03   -1.5357    
  28  norm          .10000E-03    3.1587        .13590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82548        .23956        .28609E-03   -.99130    
  30  Prefactor     1.0777        .24619        .28345E-03   -.90181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24786e-08
Minuit parameter uncertainties:
  1  23.8289
  2  6.37345e-05
  3  6.85402
  4  25.802
  5  2.33718
  6  9.1536
  7  1.06847
  8  2.08157e-05
  9  0.000172387
  10  7.01921e-05
  11  2.13042e-05
  12  1.8927
  13  1.5741e-07
  14  3.27304e-08
  15  2.51875
  16  4.97478e-07
  17  0.512142
  18  4.90925
  19  1.04369e-05
  20  1.64176e-05
  21  50.2054
  22  0.000317251
  23  4.39705
  24  0.000909392
  25  34.2485
  26  3.89282
  27  4.62844
  28  4.15475e-06
  29  0.239872
  30  0.246448
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.308e+00  2.519e+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.078e+00  2.464e-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.255e-01  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.33
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 7.77e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 1.81e-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) = 6146.49843764
delta logL = 0.0836550516206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6146.49015177
delta logL = 0.0919409262488

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6183       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9817       1.0000          .0000       10.000    
     3 'Normalizat'    .84034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0688       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=   6146.490     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6154        63.176        .42371E-02    .38894E-04
   2  Index         1.9812        5.9391        .16769        .30998E-04
   3  Normalizat    .84052        .17699        .64172E-01   -.48444E-05
   4  Prefactor     1.0686        .12842        .64342E-01   -.42965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61543
  Index      = 1.98116
  Normalizat = 0.840522
  Prefactor  = 1.06855
 **********
 **   18 **HESSE 
 **********

 FCN=   6146.490     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6154        2.7865        .88123E-04   -1.5234    
   2  Index         1.9812        .39980        .61576E-02   -.64822    
   3  Normalizat    .84052        .21686        .28386E-03   -.98583    
   4  Prefactor     1.0686        .24080        .28459E-03   -.90478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86776e-10
Minuit parameter uncertainties:
  1  2.78659
  2  0.400471
  3  0.217088
  4  0.241043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524910': 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) = 6146.49014983
delta logL = 0.0919428631978

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.615e+00  2.787e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.981e+00  4.005e-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.069e+00  2.410e-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.405e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.44
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.98 +/- 0.40
Photon Flux (Free Index): 6.41e-08 +/- 4.41e-08
Energy Flux (Free Index): 4.64e-05 +/- 3.34e-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/524910/cmap_HighResolution_284428801_284688001_4FGL_J1221.5+2814_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.77e-08', energy_flux2='4.64e-05', photon_flux_error='3.68e-08', dlogl='9.19e-02', energy_flux='3.82e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-05 09:49:51.416962', photon_index_error2='0.40', photon_index2='1.98', ts='16.33', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.34e-05', EG='0.83', time_epoch_completed='1630860591.42', return_code='0', job_id='524910', GAL2='1.07', EG2='0.84', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='4.41e-08', ts2='16.44', photon_index='2.15' WHERE bin_id='174' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:49:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 524910: <4FGL_J1221.5+2814_daily_bin174> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin174> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:34 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:35 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:35 2021
Terminated at Sun Sep  5 09:49:52 2021
Results reported at Sun Sep  5 09:49:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin174 185.378 28.2382 284428801 284688001 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 :                                   778.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

