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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin92
RA = 185.345, Dec = 30.1677
tmin = 263174401, tmax = 263433601
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='513142', job_status='RUN', time_executed='2021-09-05 09:03:40.584546', time_epoch_executed='1630857820.58' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513142

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513142/ft1_4FGL_J1221.3+3010_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513142/ft1_4FGL_J1221.3+3010_daily_bin92.fits outfile=/scratch/kocevski/513142/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin92.fits ra=185.345 dec=30.1677 rad=12.0 tmin=263174401.0 tmax=263433601.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.36
user 1.19
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.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/513142/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/513142/ft1_filtered_4FGL_J1221.3+3010_daily_bin92.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513142/ft1_filtered_4FGL_J1221.3+3010_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/513142/ltcube_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.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/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits
.....................!
real 11.92
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513142/ft1_filtered_4FGL_J1221.3+3010_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/513142/ltcube_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.fits outfile=/scratch/kocevski/513142/expmap_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.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/513142/ltcube_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.fits
.....................!
real 190.86
user 185.03
sys 5.51

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/513142/ft1_filtered_4FGL_J1221.3+3010_daily_bin92.fits scfile=/scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits outfile=/scratch/kocevski/513142/cmap_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513142/ft1_filtered_4FGL_J1221.3+3010_daily_bin92.fits scfile=/scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits outfile=/scratch/kocevski/513142/cmap_HighResolution_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/513142/ft1_filtered_4FGL_J1221.3+3010_daily_bin92.fits', '/scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits', expMap='/scratch/kocevski/513142/expmap_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.fits', expCube='/scratch/kocevski/513142/ltcube_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/513142/Model_4FGL_J1221.3+3010_daily_bin92.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/513142/ft1_filtered_4FGL_J1221.3+3010_daily_bin92.fits
Spacecraft file(s): /scratch/kocevski/513142/ft2_4FGL_J1221.3+3010_daily_bin92.fits
Exposure map: /scratch/kocevski/513142/expmap_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.fits
Exposure cube: /scratch/kocevski/513142/ltcube_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/513142/Model_4FGL_J1221.3+3010_daily_bin92.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) = 4717.99505054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.914       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7390       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3486       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43085E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1303       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4532       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4149       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3617       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7218       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3908       1.0000         .10000E-03   10000.    
    16 'norm      '    .87512       1.0000         .10000E-03   10000.    
    17 'norm      '    .10502E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9646       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7268       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    8.4724       1.0000         .10000E-03   10000.    
    29 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96691       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0096       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=   4717.962     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4120 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.915        21.931       -.61045E-06   -.14014E-04
   2  Prefactor     3.7388        10.372        .29100E-05   -.71306E-05
   3  Prefactor     .10000E-03    2.0235        .11797E-07** at limit **
   4  Prefactor     .10000E-03    4.3829        .10640E-06** at limit **
   5  Prefactor     4.3486        2.1212        .23335E-07   -.20627E-04
   6  Prefactor     .10000E-03    18.357        .14303E-05** at limit **
   7  Prefactor     .10000E-03    259.41        .20000E-04** at limit **
   8  norm          3.1304        1.5090        .29177E-07   -.14026E-03
   9  Prefactor     2.9195        4.2644        .19929E-05   -.19102E-05
  10  Prefactor     .10000E-03    19.722        .13212E-05** at limit **
  11  norm          3.4530        4.2330        .12054E-06   -.27499E-04
  12  Prefactor     3.4145        8.0995        .34921E-05   -.19983E-04
  13  Prefactor     2.3616        2.4957       -.45228E-07   -.29515E-04
  14  Prefactor     7.7225        3.4687        .10084E-06   -.30733E-04
  15  Prefactor     5.3930        5.7086        .46386E-07    .20417E-04
  16  norm          .87520        .33697        .18568E-07   -.11693E-04
  17  norm          .10000E-03    4.0513       -.33763E-06** at limit **
  18  Prefactor     .10000E-03    7.6521        .21932E-06** at limit **
  19  Prefactor     .10000E-03    8.3587        .27273E-06** at limit **
  20  Prefactor     .10000E-03    25.779       -.24281E-05** at limit **
  21  Prefactor     4.9646        9.7265        .38002E-06   -.10395E-04
  22  Prefactor     .10000E-03    3.1326        .14620E-07** at limit **
  23  norm          .10000E-03    4.0634       -.70757E-07** at limit **
  24  Prefactor     .10000E-03    53.104        .56160E-06** at limit **
  25  norm          2.7267        3.6092        .38010E-06    .12418E-04
  26  Prefactor     .10000E-03    13.131       -.11795E-05** at limit **
  27  norm          .10000E-03    7.0763        .34137E-07** at limit **
  28  norm          8.4725        5.2032        .27313E-06    .17181E-03
  29  norm          .10000E-03    7.0342       -.34548E-06** at limit **
  30  Normalizat    .96686        .20270       -.11986E-05   -.88947E-04
  31  Prefactor     1.0097        .23500       -.10206E-05   -.78935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9152
  Prefactor  = 3.73879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34861
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.13036
  Prefactor  = 2.91951
  Prefactor  = 0.0001
  norm       = 3.45305
  Prefactor  = 3.41451
  Prefactor  = 2.36164
  Prefactor  = 7.72252
  Prefactor  = 5.39296
  norm       = 0.875196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96465
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.72673
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.47247
  norm       = 0.0001
  Normalizat = 0.96686
  Prefactor  = 1.00973
 **********
 **   18 **HESSE 
 **********

 FCN=   4717.962     FROM HESSE     STATUS=OK           624 CALLS     4744 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.915        21.890        .74508E-04   -1.4632    
   2  Prefactor     3.7388        10.346        .10441E-02   -1.5321    
   3  Prefactor     .10000E-03    2.0350        .95408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3846        .14044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3486        2.1209        .67535E-04   -1.5291    
   6  Prefactor     .10000E-03    18.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    259.72        .21229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1304        1.5065        .56039E-04   -1.5354    
   9  Prefactor     2.9195        4.2618        .82383E-03   -1.5366    
  10  Prefactor     .10000E-03    19.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4530        4.2025        .13822E-03   -1.5336    
  12  Prefactor     3.4145        8.0995        .10945E-02   -1.5338    
  13  Prefactor     2.3616        2.4897        .10198E-03   -1.5401    
  14  Prefactor     7.7225        3.4578        .78775E-04   -1.5152    
  15  Prefactor     5.3930        5.6547        .16115E-03   -1.5243    
  16  norm          .87520        .33553        .23358E-04   -1.5521    
  17  norm          .10000E-03    8.4220        .26314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.3636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.9646        9.7086        .18050E-03   -1.5262    
  22  Prefactor     .10000E-03    3.1435        .11872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.1365        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    53.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7267        3.5963        .14456E-03   -1.5378    
  26  Prefactor     .10000E-03    13.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.3427        .35671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.4725        5.1897        .11641E-03   -1.5126    
  29  norm          .10000E-03    7.0655        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96686        .23741        .25159E-03   -.94149    
  31  Prefactor     1.0097        .27500        .29055E-03   -.92406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21104e-10
Minuit parameter uncertainties:
  1  21.8956
  2  10.3514
  3  6.90216e-07
  4  3.81394e-07
  5  2.12094
  6  7.45017e-06
  7  0.000880293
  8  1.50655
  9  4.2622
  10  2.46452e-06
  11  4.20291
  12  8.10208
  13  2.48977
  14  3.4579
  15  5.65523
  16  0.335527
  17  7.00494e-05
  18  3.06661e-06
  19  1.76778e-06
  20  6.4793e-06
  21  9.71168
  22  2.52775e-06
  23  5.46641e-06
  24  5.2603e-05
  25  3.59662
  26  1.22201e-05
  27  1.11077e-05
  28  5.18995
  29  6.26167e-07
  30  0.237669
  31  0.275381
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.362e+00  2.490e+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.010e+00  2.754e-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:  9.669e-01  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.49
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 2.32e-08
Energy Flux (Fixed Index): 3.52e-05 +/- 3.71e-05

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

Saving results to:
/scratch/kocevski/513142/likelihoodResults_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.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) = 4717.94529929
delta logL = 0.0166725708887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4717.94020141
delta logL = 0.0217704557117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1032       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8566       1.0000          .0000       10.000    
     3 'Normalizat'    .96153       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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=   4717.940     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1040        60.817        .71134E-02    .30553E-03
   2  Index         1.8574        5.7826        .11282        .13908E-03
   3  Normalizat    .96162        .10268        .45683E-01   -.89019E-04
   4  Prefactor     1.0115        .91371E-01    .65619E-01   -.61779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.10396
  Index      = 1.85743
  Normalizat = 0.961623
  Prefactor  = 1.01149
 **********
 **   18 **HESSE 
 **********

 FCN=   4717.940     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1040        2.6593        .92057E-04   -1.5418    
   2  Index         1.8574        .74837        .72304E-02   -.67964    
   3  Normalizat    .96162        .23145        .25213E-03   -.94327    
   4  Prefactor     1.0115        .27129        .29024E-03   -.92348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17623e-10
Minuit parameter uncertainties:
  1  2.65947
  2  0.753069
  3  0.231688
  4  0.271657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513142': 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) = 4717.94019977
delta logL = 0.0217720911169

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.104e+00  2.659e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.857e+00  7.531e-01  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.011e+00  2.717e-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:  9.616e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.86 +/- 0.75
Photon Flux (Free Index): 2.88e-08 +/- 4.37e-08
Energy Flux (Free Index): 2.91e-05 +/- 3.99e-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/513142/cmap_HighResolution_263174401_263433601_4FGL_J1221.3+3010_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='2.91e-05', photon_flux_error='2.32e-08', dlogl='2.18e-02', energy_flux='3.52e-05', photon_flux2='2.88e-08', job_status='DONE', time_completed='2021-09-05 09:16:40.995166', photon_index_error2='0.75', photon_index2='1.86', ts='3.49', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='8.63e-08', energy_flux_error2='3.99e-05', EG='0.97', time_epoch_completed='1630858601.0', return_code='0', job_id='513142', GAL2='1.01', EG2='0.96', return_code2='0', energy_flux_error='3.71e-05', photon_flux_error2='4.37e-08', ts2='3.55', photon_index='1.71' WHERE bin_id='92' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 513142: <4FGL_J1221.3+3010_daily_bin92> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin92> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 09:00:35 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:00:36 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:00:36 2021
Terminated at Sun Sep  5 09:16:41 2021
Results reported at Sun Sep  5 09:16:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin92 185.345 30.1677 263174401 263433601 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 :                                   779.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            966 sec.

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

