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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1401
RA = 185.378, Dec = 28.2382
tmin = 602467201, tmax = 602726401
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='532478', job_status='RUN', time_executed='2021-09-05 10:02:38.692092', time_epoch_executed='1630861358.69' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532478

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532478/ft1_4FGL_J1221.5+2814_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532478/ft2_4FGL_J1221.5+2814_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532478/ft1_4FGL_J1221.5+2814_daily_bin1401.fits outfile=/scratch/kocevski/532478/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1401.fits ra=185.378 dec=28.2382 rad=12.0 tmin=602467201.0 tmax=602726401.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.22
user 2.94
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532478/ft1_filtered_4FGL_J1221.5+2814_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/532478/ft2_4FGL_J1221.5+2814_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/532478/ltcube_602467201_602726401_4FGL_J1221.5+2814_daily_bin1401.fits outfile=/scratch/kocevski/532478/expmap_602467201_602726401_4FGL_J1221.5+2814_daily_bin1401.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/532478/ltcube_602467201_602726401_4FGL_J1221.5+2814_daily_bin1401.fits
.....................!
real 190.30
user 185.31
sys 4.56

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/532478/ft1_filtered_4FGL_J1221.5+2814_daily_bin1401.fits scfile=/scratch/kocevski/532478/ft2_4FGL_J1221.5+2814_daily_bin1401.fits outfile=/scratch/kocevski/532478/cmap_602467201_602726401_4FGL_J1221.5+2814_daily_bin1401.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.54
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    198.56       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29293E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.466       1.0000         .10000E-03   10000.    
     9 'Prefactor '    299.21       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1900       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.522       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .30818       1.0000         .10000E-03   10000.    
    18 'norm      '    .14755E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    131.63       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4159       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10650E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.206       1.0000         .10000E-03   10000.    
    26 'norm      '    4.9164       1.0000         .10000E-03   10000.    
    27 'norm      '    .10361E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    19.431       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .48390       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4489       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=   1857.638     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     4807 TOTAL
                     EDM=   .72E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     198.45        205.47       -.49627E-05    .11927E-04
   2  Prefactor     .10000E-03    351.89       -.16730E-04** at limit **
   3  Prefactor     .10000E-03    30.334       -.48613E-06** at limit **
   4  Prefactor     .10000E-03    33.319       -.15682E-06** at limit **
   5  Prefactor     .10000E-03    3.1106        .67596E-08** at limit **
   6  Prefactor     .10000E-03    53.639        .29857E-06** at limit **
   7  norm          .10000E-03    1.6383        .22459E-06** at limit **
   8  Prefactor     20.464        15.850       -.95742E-07   -.92982E-05
   9  Prefactor     299.30        159.71        .14741E-06    .12268E-04
  10  Prefactor     .10000E-03    2.7484        .13611E-07** at limit **
  11  Prefactor     .10000E-03    2.7490        .27247E-07** at limit **
  12  norm          .10000E-03    8.3493        .25019E-06** at limit **
  13  Prefactor     .10000E-03    8.8730        .32999E-06** at limit **
  14  Prefactor     8.1866        7.0762       -.22873E-06   -.37055E-04
  15  Prefactor     19.522        7.5243       -.39362E-07   -.29381E-04
  16  Prefactor     .10000E-03    5.2970        .12650E-07** at limit **
  17  norm          .30853        .55117        .10196E-06    .88528E-04
  18  norm          .10000E-03    13.000        .16200E-06** at limit **
  19  Prefactor     .10000E-03    6.7603       -.44071E-07** at limit **
  20  Prefactor     .10000E-03    190.58        .15937E-05** at limit **
  21  Prefactor     131.53        160.41       -.40889E-07   -.24819E-05
  22  Prefactor     6.4160        6.3138       -.48888E-07   -.41857E-05
  23  Prefactor     .10000E-03    9.4719        .15497E-06** at limit **
  24  norm          .10000E-03    5.5567       -.11420E-05** at limit **
  25  Prefactor     13.196        38.778        .33577E-06    .13702E-04
  26  norm          4.9169        4.4585       -.35812E-08    .21484E-05
  27  norm          .10000E-03    10.227       -.29885E-06** at limit **
  28  norm          19.428        13.097       -.21725E-06    .30834E-04
  29  Normalizat    .48404        .34653       -.18226E-07    .47487E-05
  30  Prefactor     1.4487        .38830       -.68040E-07    .49608E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 198.448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.464
  Prefactor  = 299.297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.18656
  Prefactor  = 19.5221
  Prefactor  = 0.0001
  norm       = 0.308534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.53
  Prefactor  = 6.41605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1962
  norm       = 4.91692
  norm       = 0.0001
  norm       = 19.428
  Normalizat = 0.484039
  Prefactor  = 1.44865
 **********
 **   18 **HESSE 
 **********

 FCN=   1857.638     FROM HESSE     STATUS=OK           574 CALLS     5381 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     198.45        200.39        .14336E-03   -1.2881    
   2  Prefactor     .10000E-03    339.71        .19854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.1184        .74234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    53.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6523        .53926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.464        15.839        .88535E-04   -1.4803    
   9  Prefactor     299.30        159.97        .11739E-03   -1.2230    
  10  Prefactor     .10000E-03    2.7504        .69760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7521        .69790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4737        .24196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.8797        .12544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1866        7.0482        .10018E-03   -1.5136    
  15  Prefactor     19.522        7.5267        .68827E-04   -1.4824    
  16  Prefactor     .10000E-03    5.3053        .96873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .30853        .53266        .38559E-04   -1.5597    
  18  norm          .10000E-03    13.589        .30322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7617        .10946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    192.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     131.53        160.89        .17548E-03   -1.3409    
  22  Prefactor     6.4160        6.3180        .10456E-03   -1.5201    
  23  Prefactor     .10000E-03    9.5242        .12955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.6183        .99440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.196        38.693        .11022E-03   -1.4981    
  26  norm          4.9169        4.4554        .83585E-04   -1.5264    
  27  norm          .10000E-03    10.338        .26570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          19.428        12.956        .90862E-04   -1.4826    
  29  Normalizat    .48404        .38111        .36520E-03   -1.1316    
  30  Prefactor     1.4487        .43864        .26108E-03   -.78988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44659e-11
Minuit parameter uncertainties:
  1  201.085
  2  0.000756469
  3  5.50842e-05
  4  4.0232e-05
  5  1.22128e-06
  6  3.94968e-05
  7  1.7331e-06
  8  15.8423
  9  160.208
  10  3.43095e-08
  11  2.12093e-07
  12  1.69278e-05
  13  5.24121e-06
  14  7.04887
  15  7.52706
  16  1.30562e-06
  17  0.532664
  18  6.13178e-06
  19  1.09015e-06
  20  0.000196844
  21  161.434
  22  6.31868
  23  5.70626e-06
  24  6.10504e-06
  25  38.767
  26  4.4557
  27  2.188e-05
  28  12.9575
  29  0.383183
  30  0.439785
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.952e+01  7.527e+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.449e+00  4.398e-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:  4.840e-01  3.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.92
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.86e-07 +/- 1.10e-07
Energy Flux (Fixed Index): 1.40e-04 +/- 5.41e-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) = 1855.02527785
delta logL = 2.61312769555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1854.98359753
delta logL = 2.65480801226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.619       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4794       1.0000          .0000       10.000    
     3 'Normalizat'    .58937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3959       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=   1854.984     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.617        10.067       -.43923E-05   -.76031E-03
   2  Index         1.4792        .27729       -.44385E-05    .71468E-03
   3  Normalizat    .58947        .32213        .14821E-05   -.53476E-06
   4  Prefactor     1.3958        .37821        .44124E-06    .25274E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6166
  Index      = 1.47917
  Normalizat = 0.589473
  Prefactor  = 1.39585
 **********
 **   18 **HESSE 
 **********

 FCN=   1854.984     FROM HESSE     STATUS=OK            27 CALLS      238 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.617        10.054        .80733E-04   -1.4800    
   2  Index         1.4792        .28765        .29166E-03   -.78125    
   3  Normalizat    .58947        .36823        .33515E-03   -1.0843    
   4  Prefactor     1.3958        .43413        .26635E-03   -.80500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68013e-09
Minuit parameter uncertainties:
  1  10.0548
  2  0.287963
  3  0.369775
  4  0.435275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532478': 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) = 1854.98359709
delta logL = 2.65480845455

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.062e+01  1.005e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.479e+00  2.880e-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.396e+00  4.353e-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:  5.895e-01  3.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.22
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.48 +/- 0.29
Photon Flux (Free Index): 1.41e-07 +/- 8.20e-08
Energy Flux (Free Index): 4.77e-04 +/- 3.37e-04

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/532478/cmap_HighResolution_602467201_602726401_4FGL_J1221.5+2814_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.86e-07', energy_flux2='4.77e-04', photon_flux_error='1.10e-07', dlogl='2.65e+00', energy_flux='1.40e-04', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-05 10:10:43.297908', photon_index_error2='0.29', photon_index2='1.48', ts='33.92', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', energy_flux_error2='3.37e-04', EG='0.48', time_epoch_completed='1630861843.3', return_code='0', job_id='532478', GAL2='1.40', EG2='0.59', return_code2='0', energy_flux_error='5.41e-05', photon_flux_error2='8.20e-08', ts2='39.22', photon_index='2.15' WHERE bin_id='1401' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:10:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 532478: <4FGL_J1221.5+2814_daily_bin1401> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1401> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:01:04 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:01:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:01:05 2021
Terminated at Sun Sep  5 10:10:44 2021
Results reported at Sun Sep  5 10:10:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1401 185.378 28.2382 602467201 602726401 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 :                                   476.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            580 sec.

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

