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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin5
RA = 185.345, Dec = 30.1677
tmin = 240624001, tmax = 240883201
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='511084', job_status='RUN', time_executed='2021-09-05 08:56:47.337208', time_epoch_executed='1630857407.34' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511084

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511084/ft1_4FGL_J1221.3+3010_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511084/ft1_4FGL_J1221.3+3010_daily_bin5.fits outfile=/scratch/kocevski/511084/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin5.fits ra=185.345 dec=30.1677 rad=12.0 tmin=240624001.0 tmax=240883201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.91
user 1.21
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.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/511084/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.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.84
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/511084/ltcube_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.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/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits
.....................!
real 13.26
user 12.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/511084/ltcube_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.fits outfile=/scratch/kocevski/511084/expmap_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.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/511084/ltcube_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.fits
.....................!
real 193.33
user 186.01
sys 4.98

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits scfile=/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits outfile=/scratch/kocevski/511084/cmap_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.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.345 yref=30.1677 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits scfile=/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits outfile=/scratch/kocevski/511084/cmap_HighResolution_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.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.345 yref=30.1677 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511084/Model_4FGL_J1221.3+3010_daily_bin5.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/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits.....................!
real 50.81
user 49.46
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits', '/scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits', expMap='/scratch/kocevski/511084/expmap_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.fits', expCube='/scratch/kocevski/511084/ltcube_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511084/Model_4FGL_J1221.3+3010_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/511084/ft1_filtered_4FGL_J1221.3+3010_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/511084/ft2_4FGL_J1221.3+3010_daily_bin5.fits
Exposure map: /scratch/kocevski/511084/expmap_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.fits
Exposure cube: /scratch/kocevski/511084/ltcube_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511084/Model_4FGL_J1221.3+3010_daily_bin5.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) = 5796.29797723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6358       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5911       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0717       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0208       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6442       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8822       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .47415       1.0000         .10000E-03   10000.    
    17 'norm      '    .14239E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .14653       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.374       1.0000         .10000E-03   10000.    
    27 'norm      '    1.2625       1.0000         .10000E-03   10000.    
    28 'norm      '    47.107       1.0000         .10000E-03   10000.    
    29 'norm      '    9.2308       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89515       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5796.279     FROM MIGRAD    STATUS=CONVERGED    836 CALLS     4211 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.724        .44942E-05** at limit **
   2  Prefactor     2.6437        9.9677       -.55374E-06   -.45307E-03
   3  Prefactor     .10000E-03    3.7121       -.62002E-08** at limit **
   4  Prefactor     6.6233        19.363        .15311E-05   -.74743E-05
   5  Prefactor     .10000E-03    1.2973       -.60800E-08** at limit **
   6  Prefactor     .10000E-03    22.136       -.72802E-06** at limit **
   7  Prefactor     .10000E-03    146.71       -.62848E-05** at limit **
   8  norm          2.1262        1.3326       -.31852E-07   -.12422E-03
   9  Prefactor     4.5896        4.3846        .13763E-06   -.99368E-03
  10  Prefactor     .10000E-03    14.355        .38405E-05** at limit **
  11  norm          3.0712        3.6245        .29848E-06   -.11181E-02
  12  Prefactor     5.0198        6.0749       -.76281E-06   -.25506E-04
  13  Prefactor     3.6441        3.5503       -.16837E-06   -.54114E-04
  14  Prefactor     6.8841        3.3561       -.35881E-07   -.24335E-03
  15  Prefactor     .10000E-03    10.267        .71856E-06** at limit **
  16  norm          .47422        .22220       -.51934E-08   -.62868E-03
  17  norm          .10055E-03    2.6963        .61338E-06** at limit **
  18  Prefactor     .10000E-03    9.7656       -.20591E-06** at limit **
  19  Prefactor     .10000E-03    12.640       -.23771E-05** at limit **
  20  Prefactor     .10000E-03    16.719       -.21674E-05** at limit **
  21  Prefactor     .10000E-03    2.4789       -.38246E-07** at limit **
  22  Prefactor     .10000E-03    2.8690       -.13955E-07** at limit **
  23  norm          .10000E-03    2.8996        .25872E-07** at limit **
  24  Prefactor     .10000E-03    49.014       -.15988E-04** at limit **
  25  norm          .14652        1.8417       -.25462E-07   -.12209E-04
  26  Prefactor     11.367        16.118        .72555E-07   -.42623E-04
  27  norm          1.2623        4.6760        .16924E-06   -.55554E-04
  28  norm          47.104        10.141        .74809E-07    .34267E-03
  29  norm          9.2303        14.194       -.86506E-07   -.11645E-03
  30  Normalizat    .89524        .18609       -.69859E-07   -.50113E-04
  31  Prefactor     1.1186        .20943       -.11717E-06   -.52736E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.64368
  Prefactor  = 0.0001
  Prefactor  = 6.62334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1262
  Prefactor  = 4.58961
  Prefactor  = 0.0001
  norm       = 3.07125
  Prefactor  = 5.01981
  Prefactor  = 3.64406
  Prefactor  = 6.88413
  Prefactor  = 0.0001
  norm       = 0.474224
  norm       = 0.000100554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.146523
  Prefactor  = 11.3673
  norm       = 1.2623
  norm       = 47.1041
  norm       = 9.23026
  Normalizat = 0.895239
  Prefactor  = 1.1186
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.279     FROM HESSE     STATUS=OK           626 CALLS     4837 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6437        15.752        .12533E-02   -1.5383    
   3  Prefactor     .10000E-03    3.7795        .14318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6233        19.266        .15578E-03   -1.5193    
   5  Prefactor     .10000E-03    1.3361        .16828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    147.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1262        1.3245        .65963E-04   -1.5416    
   9  Prefactor     4.5896        4.9871        .84575E-03   -1.5279    
  10  Prefactor     .10000E-03    14.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0712        4.2656        .73640E-03   -1.5357    
  12  Prefactor     5.0198        6.0792        .17946E-03   -1.5260    
  13  Prefactor     3.6441        3.6653        .11621E-03   -1.5326    
  14  Prefactor     6.8841        3.3400        .87572E-04   -1.5183    
  15  Prefactor     .10000E-03    10.582        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .47422        .22144        .23562E-04   -1.5570    
  17  norm          .10055E-03    60.496        .23428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.8269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4939        .11706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8864        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9464        .12654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    49.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .14652        12.417        .19959E-02   -1.5631    
  26  Prefactor     11.367        16.058        .59395E-03   -1.5034    
  27  norm          1.2623        4.6394        .29975E-03   -1.5483    
  28  norm          47.104        10.180        .58421E-04   -1.4334    
  29  norm          9.2303        14.338        .65956E-03   -1.5100    
  30  Normalizat    .89524        .22059        .26225E-03   -.96628    
  31  Prefactor     1.1186        .24671        .27948E-03   -.88874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04545e-08
Minuit parameter uncertainties:
  1  5.90766e-05
  2  12.9113
  3  1.23406e-06
  4  19.2839
  5  6.05891e-06
  6  8.36061e-07
  7  7.30007e-06
  8  1.32456
  9  4.98755
  10  1.86972e-05
  11  4.26601
  12  6.07997
  13  3.66555
  14  3.34006
  15  3.7115e-05
  16  0.221442
  17  0.0115876
  18  1.2667e-07
  19  4.61749e-06
  20  8.32199e-06
  21  2.9983e-08
  22  1.10178e-06
  23  6.3666e-06
  24  0.000149302
  25  2.69739
  26  16.0638
  27  4.64075
  28  10.1801
  29  14.3435
  30  0.220813
  31  0.246958
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.644e+00  3.666e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.119e+00  2.470e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.952e-01  2.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 5.42e-05 +/- 5.46e-05

TS (Fixed Index): 3.20
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 9.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511084/likelihoodResults_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.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) = 5791.74697117
delta logL = 4.53170615402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5791.58128319
delta logL = 4.69739412973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19492       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2347       1.0000          .0000       10.000    
     3 'Normalizat'    .71392       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2423       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5791.581     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      298 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19487        .84199        .25496E-02    .81281E-03
   2  Index         3.2348        1.2089        .37512E-01    .28024E-03
   3  Normalizat    .71386        .73906E-01    .65170E-01    .22646E-04
   4  Prefactor     1.2423        .83631E-01    .60145E-01    .21543E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.19487
  Index      = 3.23478
  Normalizat = 0.713862
  Prefactor  = 1.2423
 **********
 **   18 **HESSE 
 **********

 FCN=   5791.581     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19487        1.1713        .11338E-04   -1.5620    
   2  Index         3.2348        1.4964        .16107E-02   -.36082    
   3  Normalizat    .71386        .21667        .28834E-03   -1.0335    
   4  Prefactor     1.2423        .24882        .26597E-03   -.85039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.10641e-10
Minuit parameter uncertainties:
  1  0.955289
  2  1.52321
  3  0.21693
  4  0.249055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511084': 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): 102
logL (Free Index) = 5791.58128308
delta logL = 4.69739424574

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.949e-01  9.553e-01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  3.235e+00  1.523e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.242e+00  2.491e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  7.139e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.20
Ra Dec: 185.345 30.168
Photon Index (Free Index): 3.23 +/- 1.52
Photon Flux (Free Index): 1.95e-07 +/- 8.25e-08
Energy Flux (Free Index): 3.52e-05 +/- 1.69e-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/511084/cmap_HighResolution_240624001_240883201_4FGL_J1221.3+3010_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='3.52e-05', photon_flux_error='3.42e-08', dlogl='4.70e+00', energy_flux='5.42e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-05 09:11:48.090751', photon_index_error2='1.52', photon_index2='3.23', ts='3.20', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='9.96e-08', energy_flux_error2='1.69e-05', EG='0.90', time_epoch_completed='1630858308.09', return_code='0', job_id='511084', GAL2='1.24', EG2='0.71', return_code2='102', energy_flux_error='5.46e-05', photon_flux_error2='8.25e-08', ts2='13.20', photon_index='1.71' WHERE bin_id='5' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 511084: <4FGL_J1221.3+3010_daily_bin5> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin5> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:55:34 2021
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:55:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 08:55:38 2021
Terminated at Sun Sep  5 09:11:48 2021
Results reported at Sun Sep  5 09:11:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin5 185.345 30.1677 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   897.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            974 sec.

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

