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


Performing analysis on: 4FGL_J1213.7+6423_daily_bin905
RA = 183.437, Dec = 64.3961
tmin = 473904001, tmax = 474163201
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='418522', job_status='RUN', time_executed='2021-09-05 04:28:41.175323', time_epoch_executed='1630841321.18' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418522

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418522/ft1_4FGL_J1213.7+6423_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418522/ft1_4FGL_J1213.7+6423_daily_bin905.fits outfile=/scratch/kocevski/418522/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin905.fits ra=183.437 dec=64.3961 rad=12.0 tmin=473904001.0 tmax=474163201.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.30
user 4.84
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.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/418522/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.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.97
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/418522/ltcube_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.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/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits
.....................!
real 12.95
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/418522/ltcube_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.fits outfile=/scratch/kocevski/418522/expmap_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.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/418522/ltcube_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.fits
.....................!
real 195.89
user 185.35
sys 5.33

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/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits scfile=/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits outfile=/scratch/kocevski/418522/cmap_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits scfile=/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits outfile=/scratch/kocevski/418522/cmap_HighResolution_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/418522/Model_4FGL_J1213.7+6423_daily_bin905.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/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits.....................!
real 44.68
user 43.24
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits', '/scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits', expMap='/scratch/kocevski/418522/expmap_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.fits', expCube='/scratch/kocevski/418522/ltcube_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/418522/Model_4FGL_J1213.7+6423_daily_bin905.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/418522/ft1_filtered_4FGL_J1213.7+6423_daily_bin905.fits
Spacecraft file(s): /scratch/kocevski/418522/ft2_4FGL_J1213.7+6423_daily_bin905.fits
Exposure map: /scratch/kocevski/418522/expmap_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.fits
Exposure cube: /scratch/kocevski/418522/ltcube_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/418522/Model_4FGL_J1213.7+6423_daily_bin905.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) = 3816.69935434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3179       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0134       1.0000         .10000E-03   10000.    
     4 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6391       1.0000         .10000E-03   10000.    
    12 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11820E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12217E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.746       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2716       1.0000         .10000E-03   10000.    
    19 'Prefactor '    191.86       1.0000         .10000E-03   10000.    
    20 'norm      '    .74528       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.9182       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11288E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.5499       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .56710       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3692       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=   3816.331     FROM MIGRAD    STATUS=CONVERGED   1524 CALLS     5151 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3179        2.6831        .77654E-04    .32355E-04
   2  Prefactor     .10000E-03    58.776        .18142E-02** at limit **
   3  Prefactor     2.0110        5.1298        .21034E-03   -.36926E-03
   4  norm          .10000E-03    1.4910        .94243E-03** at limit **
   5  norm          .10000E-03    2.1189        .14131E-02** at limit **
   6  Prefactor     .10000E-03    2.8192        .10073E-02** at limit **
   7  Prefactor     .10000E-03    34.416        .18142E-02** at limit **
   8  Prefactor     4.8251        5.8040        .15745E-03    .65526E-04
   9  Prefactor     .10000E-03    10.412        .18142E-02** at limit **
  10  Prefactor     5.6443        19.746        .84520E-03    .12284E-03
  11  Prefactor     5.6380        4.8295        .12080E-03   -.13599E-04
  12  norm          .10000E-03    23.234        .18142E-02** at limit **
  13  norm          .10000E-03    12.254        .36285E-03** at limit **
  14  Prefactor     .10000E-03    18.405        .18142E-02** at limit **
  15  Prefactor     21.705        50.166        .85893E-04    .35340E-04
  16  norm          .10000E-03    1.3529        .69643E-03** at limit **
  17  Prefactor     .10000E-03    49.009        .18142E-02** at limit **
  18  Prefactor     5.2664        48.450        .17506E-03    .18931E-04
  19  Prefactor     191.98        139.71        .14580E-03    .42505E-04
  20  norm          .74411        8.8948        .34696E-03   -.79294E-05
  21  Prefactor     .10000E-03    5.3915        .13954E-02** at limit **
  22  norm          6.9187        3.5742        .81105E-04    .76352E-04
  23  Prefactor     .10000E-03    18.382        .18142E-02** at limit **
  24  Prefactor     .10000E-03    3.5724        .11399E-02** at limit **
  25  Prefactor     .10000E-03    25.454        .18142E-02** at limit **
  26  Prefactor     .10000E-03    35.647        .18142E-02** at limit **
  27  Prefactor     .10000E-03    12.665        .37388E-01** at limit **
  28  Prefactor     1.5538        50.445        .34215E-03    .75260E-05
  29  Prefactor     .10000E-03    13.138        .18142E-02** at limit **
  30  Prefactor     .10000E-03    37.103        .18142E-02** at limit **
  31  Normalizat    .56660        .23408        .27613E-03    .21656E-03
  32  Prefactor     1.3698        .27331        .22279E-03    .96954E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31786
  Prefactor  = 0.0001
  Prefactor  = 2.01101
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82511
  Prefactor  = 0.0001
  Prefactor  = 5.64429
  Prefactor  = 5.63801
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7047
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26635
  Prefactor  = 191.979
  norm       = 0.744107
  Prefactor  = 0.0001
  norm       = 6.91869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.55377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.566605
  Prefactor  = 1.3698
 **********
 **   18 **HESSE 
 **********

 FCN=   3816.331     FROM HESSE     STATUS=OK           635 CALLS     5786 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3179        2.6831        .31062E-05   -1.5292    
   2  Prefactor     .10000E-03    58.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0110        5.1188        .84137E-05   -1.5424    
   4  norm          .10000E-03    1.4930        .18849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.1213        .28262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.8195        .20145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8251        5.8034        .62980E-05   -1.5269    
   9  Prefactor     .10000E-03    10.412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6443        19.743        .33808E-04   -1.5233    
  11  Prefactor     5.6380        4.8290        .48320E-05   -1.5233    
  12  norm          .10000E-03    23.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.255        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.705        50.147        .34357E-05   -1.4776    
  16  norm          .10000E-03    1.3530        .13929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2664        48.427        .70024E-05   -1.5249    
  19  Prefactor     191.98        139.69        .29159E-04   -1.2928    
  20  norm          .74411        8.8898        .13879E-04   -1.5535    
  21  Prefactor     .10000E-03    5.3922        .27908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.9187        3.5739        .16221E-04   -1.5182    
  23  Prefactor     .10000E-03    18.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5724        .22799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    25.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    35.649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.9467        .49308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.5538        50.394        .13686E-04   -1.5459    
  29  Prefactor     .10000E-03    13.140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    37.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .56660        .23396        .11045E-04   -1.0942    
  32  Prefactor     1.3698        .27352        .89116E-05   -.81255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55621e-09
Minuit parameter uncertainties:
  1  2.68314
  2  5.61912e-05
  3  5.11987
  4  8.07215e-05
  5  4.4973e-05
  6  1.40166e-05
  7  8.69903e-05
  8  5.80404
  9  2.6576e-06
  10  19.7657
  11  4.82937
  12  3.90416e-05
  13  7.35909e-05
  14  0.000112175
  15  50.2449
  16  2.69991e-06
  17  4.61238e-05
  18  31.9736
  19  139.937
  20  5.14452
  21  7.38443e-06
  22  3.57405
  23  9.17865e-06
  24  3.89555e-07
  25  1.41275e-06
  26  0.000127278
  27  0.000169227
  28  17.7132
  29  5.56196e-05
  30  5.72897e-05
  31  0.234366
  32  0.273805
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  5.266e+00  3.197e+01  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:  1.370e+00  2.738e-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:  5.666e-01  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 183.437 64.396
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/418522/likelihoodResults_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.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) = 3816.12732067
delta logL = 0.203286074059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3816.08442253
delta logL = 0.246184212453

Fit tolerance = 1e-08

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

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

 FCN=   3816.084     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      244 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2102        102.31        .69037E-02    .44759E-03
   2  Index         3.9719        6.9482        .12148        .93161E-04
   3  Normalizat    .52224        .53264E-01    .64840E-01    .21006E-04
   4  Prefactor     1.4021        .63337E-01    .49889E-01   -.14568E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21019
  Index      = 3.97192
  Normalizat = 0.522235
  Prefactor  = 1.40209
 **********
 **   18 **HESSE 
 **********

 FCN=   3816.084     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2102        215.73        .12553E-03   -1.5411    
   2  Index         3.9719        6.1823        .73630E-02   -.20709    
   3  Normalizat    .52224        .19976        .28695E-03   -1.1140    
   4  Prefactor     1.4021        .23800        .22054E-03   -.80320    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05591e-09
Minuit parameter uncertainties:
  1  43.8337
  2  10.7098
  3  0.200036
  4  0.238191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418522': 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) = 3816.08442191
delta logL = 0.246184831736

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  2.210e+00  4.383e+01  1.000e-04  1.000e+04 ( 1.000e-13)
371        Index:  3.972e+00  1.071e+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:  1.402e+00  2.382e-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:  5.222e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 183.437 64.396

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/418522/cmap_HighResolution_473904001_474163201_4FGL_J1213.7+6423_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-05 04:42:43.224665', job_id='418522', GAL2='1.40', fit_tolerance='1e-08', EG2='0.52', EG='0.57', time_epoch_completed='1630842163.22', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='2.46e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='905' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:42:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 418522: <4FGL_J1213.7+6423_daily_bin905> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin905> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 04:26:23 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:26:24 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:26:24 2021
Terminated at Sun Sep  5 04:42:43 2021
Results reported at Sun Sep  5 04:42:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin905 183.437 64.3961 473904001 474163201 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 :                                   822.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             285.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

