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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin384
RA = 185.345, Dec = 30.1677
tmin = 338860801, tmax = 339120001
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='516444', job_status='RUN', time_executed='2021-09-05 09:11:02.609694', time_epoch_executed='1630858262.61' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516444

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516444/ft1_4FGL_J1221.3+3010_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516444/ft2_4FGL_J1221.3+3010_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516444/ft1_4FGL_J1221.3+3010_daily_bin384.fits outfile=/scratch/kocevski/516444/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin384.fits ra=185.345 dec=30.1677 rad=12.0 tmin=338860801.0 tmax=339120001.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 5.01
user 4.47
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516444/ft1_filtered_4FGL_J1221.3+3010_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/516444/ft2_4FGL_J1221.3+3010_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/516444/ltcube_338860801_339120001_4FGL_J1221.3+3010_daily_bin384.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/516444/ft2_4FGL_J1221.3+3010_daily_bin384.fits
.....................!
real 11.54
user 11.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516444/ft1_filtered_4FGL_J1221.3+3010_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/516444/ft2_4FGL_J1221.3+3010_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/516444/ltcube_338860801_339120001_4FGL_J1221.3+3010_daily_bin384.fits outfile=/scratch/kocevski/516444/expmap_338860801_339120001_4FGL_J1221.3+3010_daily_bin384.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/516444/ltcube_338860801_339120001_4FGL_J1221.3+3010_daily_bin384.fits
.....................!
real 189.88
user 185.41
sys 4.13

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/516444/ft1_filtered_4FGL_J1221.3+3010_daily_bin384.fits scfile=/scratch/kocevski/516444/ft2_4FGL_J1221.3+3010_daily_bin384.fits outfile=/scratch/kocevski/516444/cmap_338860801_339120001_4FGL_J1221.3+3010_daily_bin384.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516444/ft1_filtered_4FGL_J1221.3+3010_daily_bin384.fits scfile=/scratch/kocevski/516444/ft2_4FGL_J1221.3+3010_daily_bin384.fits outfile=/scratch/kocevski/516444/cmap_HighResolution_338860801_339120001_4FGL_J1221.3+3010_daily_bin384.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9784       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34761E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5926       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.655       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26062E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7128       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5438       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .70732       1.0000         .10000E-03   10000.    
    17 'norm      '    3.4849       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16780E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11379E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3192       1.0000         .10000E-03   10000.    
    23 'norm      '    .13357E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4022       1.0000         .10000E-03   10000.    
    25 'norm      '    .21187E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.475       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.9281       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2456       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92035       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=   6219.068     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4197 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2081        15.542        .29157E-06   -.11133E-04
   2  Prefactor     .10000E-03    26.041       -.35617E-06** at limit **
   3  Prefactor     15.563        7.3162        .10153E-06   -.53374E-04
   4  Prefactor     1.5075        136.59        .10296E-04    .10431E-04
   5  Prefactor     2.9775        2.2007       -.23085E-06   -.33585E-03
   6  Prefactor     .10000E-03    17.248       -.39654E-07** at limit **
   7  Prefactor     .10001E-03    534.23       -.26344E-04** at limit **
   8  norm          3.5923        1.4978       -.89264E-07   -.47628E-03
   9  Prefactor     .10000E-03    2.8547        .17013E-06** at limit **
  10  Prefactor     19.645        34.804        .71456E-06   -.70840E-04
  11  norm          1.0686        1.9689        .25462E-06    .40327E-03
  12  Prefactor     .10000E-03    6.7547        .10824E-05** at limit **
  13  Prefactor     1.7130        1.6083       -.83090E-08   -.47770E-04
  14  Prefactor     4.5428        2.6946        .88434E-07   -.22447E-03
  15  Prefactor     .10000E-03    1.6980        .28064E-07** at limit **
  16  norm          .70738        .29779        .50335E-07   -.48479E-03
  17  norm          3.4856        3.4045        .13884E-06   -.59748E-04
  18  Prefactor     11.652        9.9916        .18427E-06   -.78045E-04
  19  Prefactor     .10000E-03    13.387       -.22122E-07** at limit **
  20  Prefactor     .10000E-03    82.338        .55972E-06** at limit **
  21  Prefactor     .10004E-03    5.5210       -.59292E-06** at limit **
  22  Prefactor     7.3223        6.3427        .14748E-06   -.89034E-04
  23  norm          .10000E-03    5.0629        .13172E-05** at limit **
  24  Prefactor     3.4241        40.013       -.42615E-06   -.12600E-03
  25  norm          .10062E-03    3.0507        .15812E-05** at limit **
  26  Prefactor     21.475        17.406        .13736E-06   -.55176E-04
  27  norm          .10000E-03    4.1541        .69492E-07** at limit **
  28  norm          3.9298        5.7475        .63299E-06   -.37373E-03
  29  norm          .10000E-03    3.1846        .14597E-07** at limit **
  30  Normalizat    1.2457        .19970       -.88560E-06   -.70344E-03
  31  Prefactor     .91997        .21634       -.34857E-05   -.43244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20808
  Prefactor  = 0.0001
  Prefactor  = 15.5628
  Prefactor  = 1.50745
  Prefactor  = 2.97752
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 3.59231
  Prefactor  = 0.0001
  Prefactor  = 19.6449
  norm       = 1.06858
  Prefactor  = 0.0001
  Prefactor  = 1.71297
  Prefactor  = 4.54279
  Prefactor  = 0.0001
  norm       = 0.707379
  norm       = 3.48556
  Prefactor  = 11.6516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 7.32229
  norm       = 0.000100002
  Prefactor  = 3.42413
  norm       = 0.000100619
  Prefactor  = 21.4752
  norm       = 0.0001
  norm       = 3.92977
  norm       = 0.0001
  Normalizat = 1.24573
  Prefactor  = 0.919968
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.068     FROM HESSE     STATUS=OK           632 CALLS     4829 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2081        15.500        .19636E-03   -1.5298    
   2  Prefactor     .10000E-03    26.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.563        7.3149        .10153E-03   -1.4919    
   4  Prefactor     1.5075        138.89        .34278E-03   -1.5462    
   5  Prefactor     2.9775        2.1659        .91821E-04   -1.5363    
   6  Prefactor     .10000E-03    17.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    527.20        .39326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5923        1.4875        .58487E-04   -1.5329    
   9  Prefactor     .10000E-03    2.9065        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.645        34.568        .90343E-04   -1.4821    
  11  norm          1.0686        1.5729        .14405E-02   -1.5501    
  12  Prefactor     .10000E-03    21.325        .39051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7130        1.6181        .92796E-04   -1.5446    
  14  Prefactor     4.5428        2.6802        .93687E-04   -1.5282    
  15  Prefactor     .10000E-03    1.6999        .10035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .70738        .29618        .26531E-04   -1.5540    
  17  norm          3.4856        3.3998        .13925E-03   -1.5335    
  18  Prefactor     11.652        9.9892        .11737E-03   -1.5025    
  19  Prefactor     .10000E-03    13.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    82.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    27.617        .34964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.3223        6.3378        .14825E-03   -1.5167    
  23  norm          .10000E-03    10.788        .31011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.4241        35.379        .21934E-03   -1.5338    
  25  norm          .10062E-03    42.343        .24367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.475        17.407        .86433E-04   -1.4781    
  27  norm          .10000E-03    4.2385        .15691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.9298        5.6370        .20246E-03   -1.5311    
  29  norm          .10000E-03    3.1865        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2457        .24040        .25175E-03   -.85201    
  31  Prefactor     .91997        .25342        .32201E-03   -.95447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6288e-08
Minuit parameter uncertainties:
  1  15.5147
  2  5.28563e-05
  3  7.31535
  4  29.0074
  5  2.16592
  6  4.79515e-05
  7  0.00428755
  8  1.4875
  9  1.40646e-05
  10  34.6033
  11  1.57298
  12  1.63388e-05
  13  1.61817
  14  2.6803
  15  1.82624e-06
  16  0.296181
  17  3.40001
  18  9.99063
  19  2.55824e-06
  20  0.000206953
  21  0.00219679
  22  6.33836
  23  0.000326935
  24  22.0292
  25  0.0102482
  26  17.411
  27  7.00203e-06
  28  5.6378
  29  3.10355e-06
  30  0.240618
  31  0.253747
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.713e+00  1.618e+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:  9.200e-01  2.537e-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:  1.246e+00  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 1.60e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 2.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) = 6218.8874286
delta logL = 0.18072978614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6218.88725684
delta logL = 0.180901541303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7389       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2263       1.0000          .0000       10.000    
     3 'Normalizat'    1.2515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92058       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6218.887     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      257 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7390        1.8209        .99853E-04   -.11727E-04
   2  Index         1.2263        .77691        .14871E-01   -.56600E-04
   3  Normalizat    1.2515        .22263        .25132E-03    .48402E-05
   4  Prefactor     .92052        .24989        .32209E-03    .88949E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.73896
  Index      = 1.22626
  Normalizat = 1.25151
  Prefactor  = 0.920518
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.887     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .46E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7390        1.8391        .39941E-05   -1.5444    
   2  Index         1.2263        .78464        .29743E-02   -.85527    
   3  Normalizat    1.2515        .22283        .10053E-04   -.85026    
   4  Prefactor     .92052        .25012        .12883E-04   -.95428    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58165e-13
Minuit parameter uncertainties:
  1  1.83915
  2  0.792322
  3  0.223001
  4  0.250433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516444': 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) = 6218.88725681
delta logL = 0.180901567735

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.739e+00  1.839e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.226e+00  7.923e-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:  9.205e-01  2.504e-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:  1.252e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.10
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.23 +/- 0.79
Photon Flux (Free Index): 6.47e-09 +/- 1.07e-08
Energy Flux (Free Index): 4.99e-05 +/- 7.40e-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/516444/cmap_HighResolution_338860801_339120001_4FGL_J1221.3+3010_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.60e-08', energy_flux2='4.99e-05', photon_flux_error='1.51e-08', dlogl='1.81e-01', energy_flux='2.55e-05', photon_flux2='6.47e-09', job_status='DONE', time_completed='2021-09-05 09:24:25.470246', photon_index_error2='0.79', photon_index2='1.23', ts='7.75', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='7.40e-05', EG='1.25', time_epoch_completed='1630859065.47', return_code='0', job_id='516444', GAL2='0.92', EG2='1.25', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='1.07e-08', ts2='8.10', photon_index='1.71' WHERE bin_id='384' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:24:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 516444: <4FGL_J1221.3+3010_daily_bin384> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin384> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:10:41 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:10: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:10:42 2021
Terminated at Sun Sep  5 09:24:26 2021
Results reported at Sun Sep  5 09:24:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin384 185.345 30.1677 338860801 339120001 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 :                                   798.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

