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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin524
RA = 185.378, Dec = 28.2382
tmin = 375148801, tmax = 375408001
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='527608', job_status='RUN', time_executed='2021-09-05 09:45:57.403491', time_epoch_executed='1630860357.4' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/527608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/527608/ft1_4FGL_J1221.5+2814_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/527608/ft2_4FGL_J1221.5+2814_daily_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/527608/ft1_4FGL_J1221.5+2814_daily_bin524.fits outfile=/scratch/kocevski/527608/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin524.fits ra=185.378 dec=28.2382 rad=12.0 tmin=375148801.0 tmax=375408001.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 4.57
user 4.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/527608/ft1_filtered_4FGL_J1221.5+2814_daily_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/527608/ft2_4FGL_J1221.5+2814_daily_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/527608/ltcube_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.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/527608/ft2_4FGL_J1221.5+2814_daily_bin524.fits
.....................!
real 12.15
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/527608/ft1_filtered_4FGL_J1221.5+2814_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/527608/ft2_4FGL_J1221.5+2814_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/527608/ltcube_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.fits outfile=/scratch/kocevski/527608/expmap_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.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/527608/ltcube_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.fits
.....................!
real 190.32
user 184.68
sys 5.24

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/527608/ft1_filtered_4FGL_J1221.5+2814_daily_bin524.fits scfile=/scratch/kocevski/527608/ft2_4FGL_J1221.5+2814_daily_bin524.fits outfile=/scratch/kocevski/527608/cmap_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.378 yref=28.2382 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/527608/ft1_filtered_4FGL_J1221.5+2814_daily_bin524.fits scfile=/scratch/kocevski/527608/ft2_4FGL_J1221.5+2814_daily_bin524.fits outfile=/scratch/kocevski/527608/cmap_HighResolution_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.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/527608/ft1_filtered_4FGL_J1221.5+2814_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/527608/ft2_4FGL_J1221.5+2814_daily_bin524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/527608/Model_4FGL_J1221.5+2814_daily_bin524.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/527608/ft1_filtered_4FGL_J1221.5+2814_daily_bin524.fits.....................!
real 60.12
user 58.33
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0679       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13495       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2187       1.0000         .10000E-03   10000.    
    12 'norm      '    16.943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11482E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1429       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1061       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2291       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8296       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .38620E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.7523       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.766       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4679       1.0000         .10000E-03   10000.    
    27 'norm      '    29.575       1.0000         .10000E-03   10000.    
    28 'norm      '    3.1414       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89941       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2480       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=   6951.377     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     3429 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8835       -.83288E-08** at limit **
   2  Prefactor     .10000E-03    7.8464        .12627E-06** at limit **
   3  Prefactor     1.5555        5.3997        .21426E-05    .89905E-04
   4  Prefactor     .10000E-03    15.123        .27579E-06** at limit **
   5  Prefactor     2.0679        1.7669        .11437E-06   -.18989E-05
   6  Prefactor     .10794E-03    26.385       -.14346E-05** at limit **
   7  norm          .10000E-03    .30129        .75472E-07** at limit **
   8  Prefactor     .10000E-03    2.6434        .18929E-06** at limit **
   9  Prefactor     5.7336        17.259       -.21018E-06    .37407E-04
  10  Prefactor     .10000E-03    1.6254        .60430E-06** at limit **
  11  Prefactor     3.2177        4.4530       -.49447E-06   -.17528E-03
  12  norm          16.942        4.7516       -.41188E-06   -.44833E-03
  13  Prefactor     3.9526        5.6963        .13723E-06    .79588E-05
  14  Prefactor     .10000E-03    1.6340        .45493E-06** at limit **
  15  Prefactor     2.1427        2.3779        .92590E-07   -.13927E-03
  16  Prefactor     3.1056        4.2830        .80383E-07   -.51903E-05
  17  norm          2.2291        .42539        .23619E-07   -.72591E-03
  18  norm          .10000E-03    3.2800        .19686E-06** at limit **
  19  Prefactor     5.8263        9.8590       -.37994E-07    .50406E-04
  20  Prefactor     .10000E-03    7.1914       -.11861E-06** at limit **
  21  Prefactor     .10001E-03    449.73       -.70542E-05** at limit **
  22  Prefactor     .10000E-03    1.8303        .42937E-07** at limit **
  23  Prefactor     .10000E-03    4.8108       -.61166E-06** at limit **
  24  norm          5.7503        5.3177       -.34700E-06    .42491E-03
  25  Prefactor     12.739        31.136       -.57477E-07    .10288E-04
  26  norm          1.4678        1.9165        .58903E-07    .33976E-04
  27  norm          29.567        11.340        .10875E-06    .19488E-03
  28  norm          3.1607        23.955       -.45557E-06    .42283E-04
  29  Normalizat    .89950        .18713       -.23474E-05    .15580E-03
  30  Prefactor     1.2479        .20272       -.30610E-06    .25791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.55553
  Prefactor  = 0.0001
  Prefactor  = 2.06787
  Prefactor  = 0.000107941
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73359
  Prefactor  = 0.0001
  Prefactor  = 3.21774
  norm       = 16.9418
  Prefactor  = 3.95261
  Prefactor  = 0.0001
  Prefactor  = 2.14268
  Prefactor  = 3.10555
  norm       = 2.22907
  norm       = 0.0001
  Prefactor  = 5.82634
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.75029
  Prefactor  = 12.7392
  norm       = 1.46781
  norm       = 29.5674
  norm       = 3.16067
  Normalizat = 0.899503
  Prefactor  = 1.24791
 **********
 **   18 **HESSE 
 **********

 FCN=   6951.377     FROM HESSE     STATUS=OK           602 CALLS     4031 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8862        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.9280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5555        5.5150        .17090E-02   -1.5459    
   4  Prefactor     .10000E-03    15.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0679        1.7575        .98112E-04   -1.5420    
   6  Prefactor     .10794E-03    28.344        .10223       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .30668        .44712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7407        .26478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.7336        17.263        .16781E-03   -1.5229    
  10  Prefactor     .10000E-03    2.6821        .19738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2177        4.3110        .19046E-03   -1.5349    
  12  norm          16.942        4.5629        .86824E-04   -1.4885    
  13  Prefactor     3.9526        5.6873        .20289E-03   -1.5310    
  14  Prefactor     .10000E-03    5.4321        .19033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1427        2.3483        .12492E-03   -1.5415    
  16  Prefactor     3.1056        4.2676        .19588E-03   -1.5355    
  17  norm          2.2291        .42555        .22111E-04   -1.5409    
  18  norm          .10000E-03    3.3455        .14734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8263        9.8270        .16634E-03   -1.5225    
  20  Prefactor     .10000E-03    7.1928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    447.52        .21280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8334        .11016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8014        .17765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.7503        5.2734        .16638E-03   -1.5228    
  25  Prefactor     12.739        31.102        .11211E-03   -1.4994    
  26  norm          1.4678        1.9003        .12852E-03   -1.5466    
  27  norm          29.567        10.830        .73673E-04   -1.4620    
  28  norm          3.1607        21.838        .22872E-03   -1.5352    
  29  Normalizat    .89950        .22099        .28909E-03   -.96478    
  30  Prefactor     1.2479        .24251        .28771E-03   -.84870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10561e-10
Minuit parameter uncertainties:
  1  1.34017e-06
  2  1.4461e-05
  3  5.51677
  4  2.65073e-05
  5  1.75755
  6  0.0300203
  7  9.11734e-07
  8  5.31571e-06
  9  17.2778
  10  3.22903e-05
  11  4.31143
  12  4.56295
  13  5.68805
  14  1.41867e-05
  15  2.3484
  16  4.26803
  17  0.425549
  18  5.15281e-06
  19  9.82976
  20  1.30676e-05
  21  0.00351649
  22  1.93054e-06
  23  6.3253e-05
  24  5.27381
  25  31.1416
  26  1.9004
  27  10.831
  28  16.6243
  29  0.221216
  30  0.242731
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.143e+00  2.348e+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.248e+00  2.427e-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.995e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.14e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.69e-05

TS (Fixed Index): 1.38
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/527608/likelihoodResults_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6950.90851646
delta logL = 0.468349131792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6950.8935841
delta logL = 0.483281492348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1461       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9910       1.0000          .0000       10.000    
     3 'Normalizat'    .85408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2795       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=   6950.894     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      249 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1467        15.057        .10829E-01    .89044E-03
   2  Index         2.9913        3.1259        .11981        .16764E-03
   3  Normalizat    .85388        .51381E-01    .66818E-01    .54420E-04
   4  Prefactor     1.2797        .56705E-01    .64326E-01   -.35308E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14665
  Index      = 2.99125
  Normalizat = 0.853875
  Prefactor  = 1.2797
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.894     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1467        2.9061        .66134E-04   -1.5494    
   2  Index         2.9913        1.4921        .63939E-02   -.41343    
   3  Normalizat    .85388        .22008        .29560E-03   -.98100    
   4  Prefactor     1.2797        .24791        .28451E-03   -.83913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90634e-11
Minuit parameter uncertainties:
  1  2.90642
  2  1.51988
  3  0.220309
  4  0.24814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/527608': 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) = 6950.8935832
delta logL = 0.483282392075

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.147e+00  2.906e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.991e+00  1.520e+00  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.280e+00  2.481e-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.539e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.99 +/- 1.52
Photon Flux (Free Index): 7.16e-08 +/- 6.38e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.20e-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/527608/cmap_HighResolution_375148801_375408001_4FGL_J1221.5+2814_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', comment='SUCCESS', photon_flux='3.14e-08', energy_flux2='1.44e-05', photon_flux_error='3.44e-08', dlogl='4.83e-01', energy_flux='1.54e-05', photon_flux2='7.16e-08', job_status='DONE', time_completed='2021-09-05 10:01:35.705005', photon_index_error2='1.52', photon_index2='2.99', ts='1.38', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='1.20e-05', EG='0.90', time_epoch_completed='1630861295.71', return_code='0', job_id='527608', GAL2='1.28', EG2='0.85', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.38e-08', ts2='2.40', photon_index='2.15' WHERE bin_id='524' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:01:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 527608: <4FGL_J1221.5+2814_daily_bin524> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin524> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 09:45:41 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:45:42 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:45:42 2021
Terminated at Sun Sep  5 10:01:36 2021
Results reported at Sun Sep  5 10:01:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin524 185.378 28.2382 375148801 375408001 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 :                                   933.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            955 sec.

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

