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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin78
RA = 185.378, Dec = 28.2382
tmin = 259545601, tmax = 259804801
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='524774', job_status='RUN', time_executed='2021-09-05 09:38:27.338859', time_epoch_executed='1630859907.34' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524774/ft1_4FGL_J1221.5+2814_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524774/ft2_4FGL_J1221.5+2814_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524774/ft1_4FGL_J1221.5+2814_daily_bin78.fits outfile=/scratch/kocevski/524774/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin78.fits ra=185.378 dec=28.2382 rad=12.0 tmin=259545601.0 tmax=259804801.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.68
user 1.48
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524774/ft1_filtered_4FGL_J1221.5+2814_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/524774/ft2_4FGL_J1221.5+2814_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/524774/ltcube_259545601_259804801_4FGL_J1221.5+2814_daily_bin78.fits outfile=/scratch/kocevski/524774/expmap_259545601_259804801_4FGL_J1221.5+2814_daily_bin78.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/524774/ltcube_259545601_259804801_4FGL_J1221.5+2814_daily_bin78.fits
.....................!
real 191.03
user 185.45
sys 4.89

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/524774/ft1_filtered_4FGL_J1221.5+2814_daily_bin78.fits scfile=/scratch/kocevski/524774/ft2_4FGL_J1221.5+2814_daily_bin78.fits outfile=/scratch/kocevski/524774/cmap_259545601_259804801_4FGL_J1221.5+2814_daily_bin78.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/524774/ft1_filtered_4FGL_J1221.5+2814_daily_bin78.fits scfile=/scratch/kocevski/524774/ft2_4FGL_J1221.5+2814_daily_bin78.fits outfile=/scratch/kocevski/524774/cmap_HighResolution_259545601_259804801_4FGL_J1221.5+2814_daily_bin78.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26595       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6806       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3829       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0782       1.0000         .10000E-03   10000.    
     7 'norm      '    5.0694       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9576       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.7351       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3704       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3776       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1394       1.0000         .10000E-03   10000.    
    17 'norm      '    .21047       1.0000         .10000E-03   10000.    
    18 'norm      '    .88787       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .78133       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.678       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4154       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .12766E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    46.573       1.0000         .10000E-03   10000.    
    26 'norm      '    15.954       1.0000         .10000E-03   10000.    
    27 'norm      '    4.1999       1.0000         .10000E-03   10000.    
    28 'norm      '    4.6202       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79282       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0636       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=   6703.518     FROM MIGRAD    STATUS=CONVERGED    771 CALLS     3970 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1678        .54287E-07** at limit **
   2  Prefactor     1.2135        6.4361        .63797E-06    .18166E-03
   3  Prefactor     .26837        3.3272        .10704E-05   -.88044E-04
   4  Prefactor     6.6818        11.960        .80869E-06    .59920E-04
   5  Prefactor     2.3826        1.7293       -.32625E-07   -.11494E-04
   6  Prefactor     6.0572        21.837       -.82604E-06   -.29921E-04
   7  norm          5.0696        1.3963        .23953E-07    .15184E-03
   8  Prefactor     1.9577        2.7867        .86018E-07    .77477E-04
   9  Prefactor     30.456        30.163       -.12937E-05   -.37703E-04
  10  Prefactor     .10000E-03    1.4193        .21836E-06** at limit **
  11  Prefactor     7.7395        3.9998       -.87523E-07   -.16306E-03
  12  norm          1.1092        2.2504       -.37373E-06   -.70734E-03
  13  Prefactor     .84873        9.5862        .21982E-05    .31719E-03
  14  Prefactor     5.3710        2.8204        .67366E-07   -.59957E-04
  15  Prefactor     3.3783        2.2892        .48821E-07    .34543E-04
  16  Prefactor     7.1402        5.7921        .28876E-07    .66974E-05
  17  norm          .21045        .16654        .60602E-08   -.13896E-03
  18  norm          .88715        3.1615        .44974E-06    .16281E-03
  19  Prefactor     .77892        22.056        .53188E-05   -.28898E-03
  20  Prefactor     .10000E-03    8.5366       -.12760E-06** at limit **
  21  Prefactor     56.676        56.404        .18841E-06    .11881E-04
  22  Prefactor     7.4149        5.7377        .25970E-07    .10249E-04
  23  Prefactor     .10000E-03    1.9723       -.10514E-06** at limit **
  24  norm          .10000E-03    2.3592       -.44021E-06** at limit **
  25  Prefactor     46.548        30.371        .13609E-05    .11722E-03
  26  norm          15.954        5.1512        .11718E-07    .13629E-04
  27  norm          4.2032        5.4831       -.83025E-07   -.44357E-04
  28  norm          4.6198        7.8420       -.28588E-06   -.46048E-04
  29  Normalizat    .79245        .17872       -.10801E-06    .49064E-05
  30  Prefactor     1.0642        .19600       -.21870E-07    .11932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.21348
  Prefactor  = 0.268366
  Prefactor  = 6.68184
  Prefactor  = 2.38258
  Prefactor  = 6.05717
  norm       = 5.0696
  Prefactor  = 1.95765
  Prefactor  = 30.4564
  Prefactor  = 0.0001
  Prefactor  = 7.73954
  norm       = 1.10916
  Prefactor  = 0.848729
  Prefactor  = 5.37099
  Prefactor  = 3.37827
  Prefactor  = 7.14019
  norm       = 0.210449
  norm       = 0.887153
  Prefactor  = 0.778923
  Prefactor  = 0.0001
  Prefactor  = 56.6758
  Prefactor  = 7.4149
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.5482
  norm       = 15.9538
  norm       = 4.20323
  norm       = 4.61985
  Normalizat = 0.792446
  Prefactor  = 1.0642
 **********
 **   18 **HESSE 
 **********

 FCN=   6703.518     FROM HESSE     STATUS=OK           610 CALLS     4580 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1694        .16323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2135        6.5732        .40881E-03   -1.5488    
   3  Prefactor     .26837        7.7646        .26796E-02   -1.5604    
   4  Prefactor     6.6818        11.932        .15525E-03   -1.5191    
   5  Prefactor     2.3826        1.7196        .86496E-04   -1.5399    
   6  Prefactor     6.0572        21.676        .16285E-03   -1.5216    
   7  norm          5.0696        1.3956        .48535E-04   -1.5258    
   8  Prefactor     1.9577        2.7668        .15593E-03   -1.5428    
   9  Prefactor     30.456        30.056        .72622E-04   -1.4604    
  10  Prefactor     .10000E-03    2.2206        .18104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.7395        3.8531        .10817E-03   -1.5151    
  12  norm          1.1092        1.9728        .16001E-02   -1.5497    
  13  Prefactor     .84873        10.780        .50025E-03   -1.5524    
  14  Prefactor     5.3710        2.7741        .87559E-04   -1.5244    
  15  Prefactor     3.3783        2.2662        .92343E-04   -1.5340    
  16  Prefactor     7.1402        5.7106        .15013E-03   -1.5173    
  17  norm          .21045        .16511        .28189E-04   -1.5616    
  18  norm          .88715        3.1200        .25523E-03   -1.5520    
  19  Prefactor     .77892        31.770        .44137E-02   -1.5531    
  20  Prefactor     .10000E-03    8.5599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     56.676        56.416        .53285E-04   -1.4201    
  22  Prefactor     7.4149        5.7369        .14728E-03   -1.5163    
  23  Prefactor     .10000E-03    1.9773        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.4091        .12339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     46.548        30.509        .58754E-04   -1.4342    
  26  norm          15.954        5.1526        .10027E-03   -1.4909    
  27  norm          4.2032        5.6386        .15448E-03   -1.5298    
  28  norm          4.6198        8.0780        .18725E-03   -1.5278    
  29  Normalizat    .79245        .21135        .26695E-03   -1.0035    
  30  Prefactor     1.0642        .23362        .27226E-03   -.90619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11167e-08
Minuit parameter uncertainties:
  1  2.24647e-06
  2  5.64926
  3  2.88692
  4  11.9366
  5  1.71964
  6  21.7046
  7  1.39564
  8  2.76699
  9  30.0714
  10  1.17067e-05
  11  3.85327
  12  1.97289
  13  6.05061
  14  2.77417
  15  2.26624
  16  5.71099
  17  0.165112
  18  3.12058
  19  9.95416
  20  1.40695e-05
  21  56.4692
  22  5.73732
  23  7.92104e-06
  24  4.3349e-05
  25  30.5194
  26  5.15271
  27  5.63933
  28  8.07994
  29  0.211564
  30  0.233842
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.378e+00  2.266e+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.064e+00  2.338e-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:  7.924e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.94e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.63e-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) = 6703.4183191
delta logL = 0.0997749515882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6703.41168256
delta logL = 0.106411494227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8783       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3882       1.0000          .0000       10.000    
     3 'Normalizat'    .77689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0755       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=   6703.412     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      264 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8778        36.606        .59893E-02    .51848E-03
   2  Index         2.3884        3.4405        .12674        .12041E-03
   3  Normalizat    .77668        .75881E-01    .43308E-01   -.15387E-04
   4  Prefactor     1.0759        .73730E-01    .61264E-01   -.67150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.8778
  Index      = 2.38839
  Normalizat = 0.776681
  Prefactor  = 1.07591
 **********
 **   18 **HESSE 
 **********

 FCN=   6703.412     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8778        2.3885        .80805E-04   -1.5369    
   2  Index         2.3884        .55515        .62386E-02   -.54957    
   3  Normalizat    .77668        .20097        .26933E-03   -1.0094    
   4  Prefactor     1.0759        .23210        .27095E-03   -.90240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85738e-11
Minuit parameter uncertainties:
  1  2.38859
  2  0.556735
  3  0.201166
  4  0.232313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524774': 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) = 6703.41167984
delta logL = 0.106414217462

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.878e+00  2.389e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.388e+00  5.567e-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.076e+00  2.323e-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:  7.767e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.39 +/- 0.56
Photon Flux (Free Index): 6.13e-08 +/- 4.34e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/524774/cmap_HighResolution_259545601_259804801_4FGL_J1221.5+2814_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.94e-08', energy_flux2='2.04e-05', photon_flux_error='3.32e-08', dlogl='1.06e-01', energy_flux='2.43e-05', photon_flux2='6.13e-08', job_status='DONE', time_completed='2021-09-05 09:51:56.108832', photon_index_error2='0.56', photon_index2='2.39', ts='4.61', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.79', time_epoch_completed='1630860716.11', return_code='0', job_id='524774', GAL2='1.08', EG2='0.78', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.34e-08', ts2='4.83', photon_index='2.15' WHERE bin_id='78' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 524774: <4FGL_J1221.5+2814_daily_bin78> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin78 185.378 28.2382 259545601 259804801 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 :                                   806.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

