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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin617
RA = 198.169, Dec = 48.4701
tmin = 399254401, tmax = 399513601
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='359621', job_status='RUN', time_executed='2021-09-07 05:21:37.629624', time_epoch_executed='1631017297.63' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359621/ft1_4FGL_J1312.6+4828_daily_bin617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359621/ft1_4FGL_J1312.6+4828_daily_bin617.fits outfile=/scratch/kocevski/359621/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin617.fits ra=198.169 dec=48.4701 rad=12.0 tmin=399254401.0 tmax=399513601.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 4.33
user 4.07
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.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/359621/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin617.fits evtable="EVENTS" outfile="/scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.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.45
user 0.27
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits" evtable="EVENTS" scfile=/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits sctable="SC_DATA" outfile=/scratch/kocevski/359621/ltcube_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.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/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits
.....................!
real 10.48
user 10.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits sctable="SC_DATA" expcube=/scratch/kocevski/359621/ltcube_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.fits outfile=/scratch/kocevski/359621/expmap_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.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/359621/ltcube_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.fits
.....................!
real 155.27
user 150.46
sys 4.46

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

Setting source of interest to:
4FGL J1312.6+4828 @ 198.169 48.4701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits scfile=/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits outfile=/scratch/kocevski/359621/cmap_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.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=198.169 yref=48.4701 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.48
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits scfile=/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits outfile=/scratch/kocevski/359621/cmap_HighResolution_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.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=198.169 yref=48.4701 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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359621/Model_4FGL_J1312.6+4828_daily_bin617.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/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits.....................!
real 38.92
user 37.65
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits', '/scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits', expMap='/scratch/kocevski/359621/expmap_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.fits', expCube='/scratch/kocevski/359621/ltcube_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/359621/Model_4FGL_J1312.6+4828_daily_bin617.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1312.6+4828'

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.452e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/359621/ft1_filtered_4FGL_J1312.6+4828_daily_bin617.fits
Spacecraft file(s): /scratch/kocevski/359621/ft2_4FGL_J1312.6+4828_daily_bin617.fits
Exposure map: /scratch/kocevski/359621/expmap_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.fits
Exposure cube: /scratch/kocevski/359621/ltcube_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/359621/Model_4FGL_J1312.6+4828_daily_bin617.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) = 5468.26090662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5239       1.0000         .10000E-03   10000.    
     2 'norm      '    .37172E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7045       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1106       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0839       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.683       1.0000         .10000E-03   10000.    
    12 'norm      '    7.3107       1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.069       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.936       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10942E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4500       1.0000         .10000E-03   10000.    
    21 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7473       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .13106E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    42.596       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0184       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5468.256     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3966 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5245        2.5531        .97551E-07    .48778E-04
   2  norm          .10000E-03    7.6772        .48139E-05** at limit **
   3  Prefactor     2.6696        51.602        .13951E-04    .51791E-04
   4  Prefactor     6.1114        5.2095        .17995E-07    .32425E-04
   5  norm          5.6864        2.8941        .31083E-07    .42859E-04
   6  Prefactor     .10000E-03    4.3748        .63040E-08** at limit **
   7  norm          2.0840        1.8423        .15511E-07    .40958E-04
   8  Prefactor     .10000E-03    17.332        .10363E-05** at limit **
   9  Prefactor     .10000E-03    4.0837       -.32549E-07** at limit **
  10  Prefactor     .10000E-03    7.3963        .62490E-07** at limit **
  11  norm          13.684        12.818       -.29230E-08   -.47779E-05
  12  norm          7.3111        4.8773       -.10785E-07    .69102E-04
  13  Prefactor     46.073        42.229       -.26644E-06    .72200E-04
  14  Prefactor     26.920        21.751       -.21370E-05    .41795E-04
  15  Prefactor     .10000E-03    19.695       -.11004E-05** at limit **
  16  norm          3.7455        5.4384        .30155E-05    .17577E-03
  17  Prefactor     .10000E-03    18.983       -.79140E-06** at limit **
  18  Prefactor     .10000E-03    36.982        .21454E-05** at limit **
  19  Prefactor     .10001E-03    48.803       -.33685E-05** at limit **
  20  norm          3.4501        1.6085        .14897E-07    .56657E-04
  21  norm          .10000E-03    25.769        .92052E-06** at limit **
  22  norm          .10000E-03    2.8023        .31788E-07** at limit **
  23  norm          .10000E-03    10.162        .42889E-07** at limit **
  24  Prefactor     8.7507        82.794       -.13055E-05   -.92764E-05
  25  Prefactor     .10000E-03    107.52        .30637E-05** at limit **
  26  Prefactor     .10000E-03    3.2589        .20277E-07** at limit **
  27  Prefactor     42.608        29.236       -.30737E-06   -.12499E-05
  28  Prefactor     .10000E-03    4.9062        .20443E-06** at limit **
  29  Normalizat    1.0183        .17742       -.82516E-06    .11409E-03
  30  Prefactor     .91744        .21312        .54130E-06    .67155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.52455
  norm       = 0.0001
  Prefactor  = 2.66964
  Prefactor  = 6.11139
  norm       = 5.68641
  Prefactor  = 0.0001
  norm       = 2.08404
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6842
  norm       = 7.31105
  Prefactor  = 46.0726
  Prefactor  = 26.9202
  Prefactor  = 0.000100001
  norm       = 3.74549
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100006
  norm       = 3.45008
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.75075
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 42.6075
  Prefactor  = 0.0001
  Normalizat = 1.01834
  Prefactor  = 0.917437
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.256     FROM HESSE     STATUS=OK           586 CALLS     4552 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5245        2.5452        .11431E-03   -1.5390    
   2  norm          .10000E-03    11.403        .32408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6696        47.452        .12385E-02   -1.5381    
   4  Prefactor     6.1114        5.2118        .14533E-03   -1.5213    
   5  norm          5.6864        2.8957        .83450E-04   -1.5231    
   6  Prefactor     .10000E-03    4.3760        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0840        1.8323        .91491E-04   -1.5419    
   8  Prefactor     .10000E-03    17.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0972        .14591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.684        12.819        .10828E-03   -1.4968    
  12  norm          7.3111        4.8729        .12533E-03   -1.5167    
  13  Prefactor     46.073        42.258        .59072E-04   -1.4349    
  14  Prefactor     26.920        22.131        .38595E-03   -1.4670    
  15  Prefactor     .10000E-03    19.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7455        5.8123        .88553E-03   -1.5321    
  17  Prefactor     .10000E-03    19.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    49.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4501        1.6068        .61571E-04   -1.5336    
  21  norm          .10000E-03    25.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.8512        .12080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.7507        82.295        .13553E-03   -1.5116    
  25  Prefactor     .10000E-03    108.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3206        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     42.608        29.262        .61423E-04   -1.4402    
  28  Prefactor     .10000E-03    5.0664        .31840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0183        .21207        .22549E-03   -.92418    
  30  Prefactor     .91744        .25368        .29307E-03   -.95534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52032e-10
Minuit parameter uncertainties:
  1  2.54535
  2  0.000135176
  3  22.5309
  4  5.21222
  5  2.89577
  6  3.32205e-06
  7  1.83234
  8  0.000189033
  9  2.13151e-06
  10  1.5152e-05
  11  12.8213
  12  4.87312
  13  42.2859
  14  22.138
  15  0.000231019
  16  5.81319
  17  0.000144467
  18  0.000584863
  19  0.00109776
  20  1.6068
  21  0.000192111
  22  2.25146e-06
  23  1.47701e-05
  24  53.7683
  25  0.00125582
  26  2.05035e-06
  27  29.2718
  28  3.1437e-05
  29  0.212243
  30  0.254009
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  7.311e+00  4.873e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.066e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.174e-01  2.540e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.018e+00  2.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.37
Ra Dec: 198.169 48.470
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.50e-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) = 5468.23953544
delta logL = 0.016742469068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5468.2392453
delta logL = 0.0170326103071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3231       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9762       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5468.239     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3296        33.788        .37054E-02    .16301E-02
   2  alpha         1.9769        3.4564        .32157        .51880E-04
   3  Normalizat    1.0215        .18781        .43129E-01   -.11239E-04
   4  Prefactor     .91595        .23251        .66316E-01    .22663E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.32959
  alpha      = 1.97689
  Normalizat = 1.02151
  Prefactor  = 0.915945
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.239     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3296        4.8770        .64310E-03   -1.5166    
   2  alpha         1.9769        .48285        .12479E-01   -.21080    
   3  Normalizat    1.0215        .20299        .22521E-03   -.92313    
   4  Prefactor     .91595        .25185        .29334E-03   -.95586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8969e-11
Minuit parameter uncertainties:
  1  4.87727
  2  0.486046
  3  0.20314
  4  0.252175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359621': 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) = 5468.23924344
delta logL = 0.0170344654389

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  7.330e+00  4.877e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  1.977e+00  4.860e-01  0.000e+00  5.000e+00 ( 1.000e+00)
362         beta:  6.200e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
363           Eb:  7.916e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  9.159e-01  2.522e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  1.022e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.40
Ra Dec: 198.169 48.470
Photon Index (Free Index): 1.98 +/- 0.49
Photon Flux (Free Index): 3.95e-08 +/- 3.33e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.90e-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/359621/cmap_HighResolution_399254401_399513601_4FGL_J1312.6+4828_daily_bin617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='2.41e-05', photon_flux_error='2.89e-08', dlogl='1.70e-02', energy_flux='2.24e-05', photon_flux2='3.95e-08', job_status='DONE', time_completed='2021-09-07 05:32:29.089796', photon_index_error2='0.49', photon_index2='1.98', ts='8.37', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.02', time_epoch_completed='1631017949.09', return_code='0', job_id='359621', GAL2='0.92', EG2='1.02', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='3.33e-08', ts2='8.40', photon_index='2.07' WHERE bin_id='617' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:32:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 359621: <4FGL_J1312.6+4828_daily_bin617> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin617> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 05:20:39 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:21:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 05:21:28 2021
Terminated at Tue Sep  7 05:32:29 2021
Results reported at Tue Sep  7 05:32:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin617 198.169 48.4701 399254401 399513601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1312.6+4828 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             380.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            710 sec.

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

