/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 72 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 = 7527
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1213.7+6423_daily_bin750
RA = 183.437, Dec = 64.3961
tmin = 433728001, tmax = 433987201
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='418196', job_status='RUN', time_executed='2021-09-05 04:28:12.293725', time_epoch_executed='1630841292.29' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418196/ft1_4FGL_J1213.7+6423_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418196/ft1_4FGL_J1213.7+6423_daily_bin750.fits outfile=/scratch/kocevski/418196/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin750.fits ra=183.437 dec=64.3961 rad=12.0 tmin=433728001.0 tmax=433987201.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 8.43
user 5.81
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.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/418196/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin750.fits evtable="EVENTS" outfile="/scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.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 3.35
user 0.31
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits" evtable="EVENTS" scfile=/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits sctable="SC_DATA" outfile=/scratch/kocevski/418196/ltcube_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.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/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits
.....................!
real 14.44
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/418196/ltcube_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.fits outfile=/scratch/kocevski/418196/expmap_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.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/418196/ltcube_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.fits
.....................!
real 200.89
user 187.05
sys 4.71

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

Setting source of interest to:
4FGL J1213.7+6423 @ 183.437 64.3961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits scfile=/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits outfile=/scratch/kocevski/418196/cmap_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.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=183.437 yref=64.3961 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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits scfile=/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits outfile=/scratch/kocevski/418196/cmap_HighResolution_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.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=183.437 yref=64.3961 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.60
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/418196/Model_4FGL_J1213.7+6423_daily_bin750.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/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits.....................!
real 33.51
user 32.19
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits', '/scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits', expMap='/scratch/kocevski/418196/expmap_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.fits', expCube='/scratch/kocevski/418196/ltcube_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/418196/Model_4FGL_J1213.7+6423_daily_bin750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1213.7+6423'

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.253e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/418196/ft1_filtered_4FGL_J1213.7+6423_daily_bin750.fits
Spacecraft file(s): /scratch/kocevski/418196/ft2_4FGL_J1213.7+6423_daily_bin750.fits
Exposure map: /scratch/kocevski/418196/expmap_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.fits
Exposure cube: /scratch/kocevski/418196/ltcube_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/418196/Model_4FGL_J1213.7+6423_daily_bin750.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) = 2308.99978441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0202       1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1733       1.0000         .10000E-03   10000.    
    12 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.388       1.0000         .10000E-03   10000.    
    16 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    305.50       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12704E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15661       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3900       1.0000         .10000E-03   10000.    
    22 'norm      '    7.6678       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .90713E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.7724       1.0000         .10000E-03   10000.    
    28 'Prefactor '    51.687       1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.230       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0310       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2308.971     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4402 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.7782       -.61969E-06** at limit **
   2  Prefactor     .10000E-03    396.09        .26762E-05** at limit **
   3  Prefactor     .10000E-03    1.9243       -.54254E-07** at limit **
   4  norm          1.0202        .64661        .39751E-07    .65154E-03
   5  norm          .10000E-03    1.5492       -.42484E-06** at limit **
   6  Prefactor     .10000E-03    2.8116       -.11193E-06** at limit **
   7  Prefactor     .10000E-03    60.701       -.38764E-05** at limit **
   8  Prefactor     .10000E-03    3.9868       -.27895E-06** at limit **
   9  Prefactor     63.714        66.252        .40369E-05    .55328E-04
  10  Prefactor     .10000E-03    30.694       -.56733E-06** at limit **
  11  Prefactor     8.1783        9.1658        .70416E-06    .83384E-04
  12  norm          .10000E-03    18.429       -.14687E-06** at limit **
  13  norm          .10000E-03    6.2396        .20875E-06** at limit **
  14  Prefactor     4.6232        36.578        .10903E-04    .51148E-04
  15  Prefactor     58.506        135.96       -.21409E-04   -.53928E-04
  16  norm          .10000E-03    4.4531       -.72253E-06** at limit **
  17  Prefactor     4.7383        481.27       -.26442E-04   -.11449E-04
  18  Prefactor     305.50        150.99        .79618E-07   -.27452E-04
  19  Prefactor     .10001E-03    133.62        .29669E-05** at limit **
  20  norm          .66477E-01    19.260        .19845E-05   -.15992E-03
  21  Prefactor     1.3793        51.611        .29518E-04   -.87886E-04
  22  norm          7.6688        6.5934       -.25432E-05    .70696E-04
  23  Prefactor     .10000E-03    65.309        .34577E-05** at limit **
  24  Prefactor     .10000E-03    9.9691        .77296E-07** at limit **
  25  Prefactor     .10000E-03    1555.3        .36892E-04** at limit **
  26  Prefactor     .10000E-03    39.417       -.29941E-05** at limit **
  27  Prefactor     8.7673        12.097       -.58516E-06   -.14976E-03
  28  Prefactor     51.687        49.864       -.10244E-05   -.12758E-03
  29  Prefactor     17.230        23.613       -.37365E-06   -.82892E-04
  30  Prefactor     .10000E-03    36.585        .31770E-05** at limit **
  31  Normalizat    1.0312        .29323        .81439E-06    .15410E-03
  32  Prefactor     .81140        .31176       -.41212E-06    .11431E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02019
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 63.7145
  Prefactor  = 0.0001
  Prefactor  = 8.17827
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.62316
  Prefactor  = 58.5056
  norm       = 0.0001
  Prefactor  = 4.73831
  Prefactor  = 305.505
  Prefactor  = 0.000100007
  norm       = 0.0664775
  Prefactor  = 1.37931
  norm       = 7.66878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.76734
  Prefactor  = 51.6867
  Prefactor  = 17.2302
  Prefactor  = 0.0001
  Normalizat = 1.03116
  Prefactor  = 0.8114
 **********
 **   18 **HESSE 
 **********

 FCN=   2308.971     FROM HESSE     STATUS=OK           657 CALLS     5059 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2730        .18043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    396.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9342        .65083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0202        .64377        .29601E-04   -1.5506    
   5  norm          .10000E-03    2.3347        .11484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8251        .78618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    61.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9914        .93712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     63.714        66.358        .50257E-04   -1.4110    
  10  Prefactor     .10000E-03    30.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1783        9.1618        .14024E-03   -1.5136    
  12  norm          .10000E-03    18.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.2492        .11721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6232        36.310        .18677E-03   -1.5278    
  15  Prefactor     58.506        135.70        .52503E-04   -1.4177    
  16  norm          .10000E-03    8.6953        .19471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7383        477.55        .18610E-03   -1.5273    
  18  Prefactor     305.50        151.80        .11621E-03   -1.2194    
  19  Prefactor     .10001E-03    133.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .66477E-01    26.264        .53107E-01   -1.5656    
  21  Prefactor     1.3793        53.632        .18431E-02   -1.5473    
  22  norm          7.6688        6.7133        .91042E-04   -1.5154    
  23  Prefactor     .10000E-03    65.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.9829        .14819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1564.4        .20825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    39.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     8.7673        12.077        .13533E-03   -1.5116    
  28  Prefactor     51.687        49.981        .55785E-04   -1.4269    
  29  Prefactor     17.230        23.582        .96488E-04   -1.4878    
  30  Prefactor     .10000E-03    36.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0312        .34544        .23766E-03   -.91994    
  32  Prefactor     .81140        .36865        .29382E-03   -.99309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60272e-10
Minuit parameter uncertainties:
  1  1.90708e-05
  2  0.000271449
  3  3.20042e-06
  4  0.643777
  5  1.70994e-05
  6  7.50207e-06
  7  0.000627788
  8  2.45247e-05
  9  66.4347
  10  4.19895e-05
  11  9.1634
  12  2.34767e-05
  13  2.19142e-05
  14  25.9342
  15  136.424
  16  0.00010875
  17  95.934
  18  152.001
  19  0.00194448
  20  2.64186
  21  17.2177
  22  6.71399
  23  0.000120224
  24  1.90598e-05
  25  0.00314355
  26  8.82695e-05
  27  12.0801
  28  50.0219
  29  23.5949
  30  9.57875e-05
  31  0.346197
  32  0.36978
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.055e+02  1.520e+02  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  8.114e-01  3.698e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.031e+00  3.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.66
Ra Dec: 183.437 64.396
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 4.72e-07 +/- 2.35e-07
Energy Flux (Fixed Index): 1.42e-04 +/- 7.04e-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) = 2306.8139522
delta logL = 2.15680928694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2306.80370389
delta logL = 2.16705760103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.043       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7652       1.0000          .0000       10.000    
     3 'Normalizat'    .81456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+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=   2306.804     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      318 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.052        83.533        .48308E-04   -.20747E-03
   2  Index         3.7648        .71687        .19776E-03   -.19790E-03
   3  Normalizat    .81530        .35094        .26199E-03    .79910E-04
   4  Prefactor     .98019        .38062        .26982E-03    .14872E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.0519
  Index      = 3.76485
  Normalizat = 0.815302
  Prefactor  = 0.98019
 **********
 **   18 **HESSE 
 **********

 FCN=   2306.804     FROM HESSE     STATUS=OK            23 CALLS      341 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.052        81.956        .96616E-05   -1.4044    
   2  Index         3.7648        .70338        .79105E-05   -.24961    
   3  Normalizat    .81530        .35119        .10480E-04   -.99504    
   4  Prefactor     .98019        .38090        .53963E-04   -.93393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22651e-10
Minuit parameter uncertainties:
  1  82.0905
  2  0.705869
  3  0.352169
  4  0.381951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418196': 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) = 2306.80370153
delta logL = 2.16705996309

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  6.905e+01  8.209e+01  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  3.765e+00  7.059e-01  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.802e-01  3.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  8.153e-01  3.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.89
Ra Dec: 183.437 64.396
Photon Index (Free Index): 3.76 +/- 0.71
Photon Flux (Free Index): 9.74e-07 +/- 4.05e-07
Energy Flux (Free Index): 1.52e-04 +/- 5.82e-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/418196/cmap_HighResolution_433728001_433987201_4FGL_J1213.7+6423_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.72e-07', energy_flux2='1.52e-04', photon_flux_error='2.35e-07', dlogl='2.17e+00', energy_flux='1.42e-04', photon_flux2='9.74e-07', job_status='DONE', time_completed='2021-09-05 04:38:07.785682', photon_index_error2='0.71', photon_index2='3.76', ts='12.66', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='5.82e-05', EG='1.03', time_epoch_completed='1630841887.79', return_code='0', job_id='418196', GAL2='0.98', EG2='0.82', return_code2='0', energy_flux_error='7.04e-05', photon_flux_error2='4.05e-07', ts2='17.89', photon_index='2.47' WHERE bin_id='750' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:38:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 418196: <4FGL_J1213.7+6423_daily_bin750> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin750> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 04:25:56 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:25:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:25:57 2021
Terminated at Sun Sep  5 04:38:08 2021
Results reported at Sun Sep  5 04:38:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin750 183.437 64.3961 433728001 433987201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1213.7+6423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   561.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            732 sec.

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

