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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin1401
RA = 198.169, Dec = 48.4701
tmin = 602467201, tmax = 602726401
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='364286', job_status='RUN', time_executed='2021-09-07 05:40:23.028611', time_epoch_executed='1631018423.03' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/364286

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/364286/ft1_4FGL_J1312.6+4828_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/364286/ft1_4FGL_J1312.6+4828_daily_bin1401.fits outfile=/scratch/kocevski/364286/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1401.fits ra=198.169 dec=48.4701 rad=12.0 tmin=602467201.0 tmax=602726401.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 3.22
user 3.01
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/364286/ft1_filtered_4FGL_J1312.6+4828_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/364286/ltcube_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.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/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits
.....................!
real 15.96
user 15.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/364286/ft1_filtered_4FGL_J1312.6+4828_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/364286/ltcube_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.fits outfile=/scratch/kocevski/364286/expmap_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.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/364286/ltcube_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.fits
.....................!
real 192.86
user 187.41
sys 5.01

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/364286/ft1_filtered_4FGL_J1312.6+4828_daily_bin1401.fits scfile=/scratch/kocevski/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits outfile=/scratch/kocevski/364286/cmap_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/364286/ft1_filtered_4FGL_J1312.6+4828_daily_bin1401.fits scfile=/scratch/kocevski/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits outfile=/scratch/kocevski/364286/cmap_HighResolution_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/364286/ft1_filtered_4FGL_J1312.6+4828_daily_bin1401.fits', '/scratch/kocevski/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits', expMap='/scratch/kocevski/364286/expmap_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.fits', expCube='/scratch/kocevski/364286/ltcube_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/364286/Model_4FGL_J1312.6+4828_daily_bin1401.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/364286/ft1_filtered_4FGL_J1312.6+4828_daily_bin1401.fits
Spacecraft file(s): /scratch/kocevski/364286/ft2_4FGL_J1312.6+4828_daily_bin1401.fits
Exposure map: /scratch/kocevski/364286/expmap_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.fits
Exposure cube: /scratch/kocevski/364286/ltcube_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/364286/Model_4FGL_J1312.6+4828_daily_bin1401.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) = 2889.33578445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    77.161       1.0000         .10000E-03   10000.    
     2 'norm      '    15.428       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33376E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .26449E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8654       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9915       1.0000         .10000E-03   10000.    
    16 'norm      '    .13016E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    50.766       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4574       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2613       1.0000         .10000E-03   10000.    
    21 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.6619       1.0000         .10000E-03   10000.    
    23 'norm      '    .12980E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.492       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.4810       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4008       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .44806       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=   2889.088     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4051 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          77.206        80.923        .15067E-05    .18130E-03
   2  norm          15.591        78.258        .10922E-04    .93525E-04
   3  Prefactor     29.158        204.04       -.16089E-04    .30746E-04
   4  Prefactor     .10069E-03    79.709        .23580E-04** at limit **
   5  norm          .10000E-03    7.6136        .14961E-05** at limit **
   6  Prefactor     .10000E-03    58.208        .12668E-05** at limit **
   7  norm          .10000E-03    1.8203       -.86095E-07** at limit **
   8  Prefactor     65.470        102.26        .69667E-07   -.73530E-05
   9  Prefactor     9.8559        16.235        .11371E-05    .23018E-03
  10  Prefactor     4.8644        18.236       -.26941E-06    .85365E-06
  11  norm          .10000E-03    11.068       -.28920E-06** at limit **
  12  norm          .10000E-03    2.5767       -.26116E-07** at limit **
  13  Prefactor     .10000E-03    140.57        .42257E-06** at limit **
  14  Prefactor     2.0447        93.677        .10636E-04    .13171E-03
  15  Prefactor     5.9920        26.461       -.29509E-05    .26590E-04
  16  norm          .39360E-01    36.206       -.15723E-04    .88734E-03
  17  Prefactor     50.877        75.904        .15591E-06    .67946E-04
  18  Prefactor     .10000E-03    104.74       -.98722E-07** at limit **
  19  Prefactor     3.4397        155.91       -.18438E-05    .91614E-05
  20  norm          3.2609        1.7866       -.58914E-08    .22032E-03
  21  norm          .10000E-03    27.510       -.15039E-08** at limit **
  22  norm          4.6630        5.5474       -.26354E-07    .19097E-03
  23  norm          .10000E-03    85.842       -.40042E-06** at limit **
  24  Prefactor     .10000E-03    23.658        .16701E-07** at limit **
  25  Prefactor     18.496        27.704        .99699E-07    .34136E-04
  26  Prefactor     .10000E-03    1.3208       -.13127E-08** at limit **
  27  Prefactor     .10000E-03    10.515       -.59198E-08** at limit **
  28  Prefactor     1.4793        4.2302       -.42816E-06    .19593E-04
  29  Normalizat    1.4012        .27348        .71850E-06    .46254E-03
  30  Prefactor     .44761        .29895        .55380E-06    .19464E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 77.2064
  norm       = 15.5911
  Prefactor  = 29.1584
  Prefactor  = 0.000100686
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.4698
  Prefactor  = 9.85588
  Prefactor  = 4.8644
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.04467
  Prefactor  = 5.99198
  norm       = 0.0393596
  Prefactor  = 50.8765
  Prefactor  = 0.0001
  Prefactor  = 3.43974
  norm       = 3.26095
  norm       = 0.0001
  norm       = 4.66303
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47929
  Normalizat = 1.40123
  Prefactor  = 0.44761
 **********
 **   18 **HESSE 
 **********

 FCN=   2889.088     FROM HESSE     STATUS=OK           592 CALLS     4643 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          77.206        79.686        .45714E-04   -1.3948    
   2  norm          15.591        77.394        .10197E-03   -1.4918    
   3  Prefactor     29.158        204.36        .73652E-04   -1.4627    
   4  Prefactor     .10069E-03    85.861        .41433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.741        .26332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    58.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.8242        .70832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     65.470        102.03        .24829E-03   -1.4088    
   9  Prefactor     9.8559        15.897        .12773E-03   -1.5080    
  10  Prefactor     4.8644        18.223        .18237E-03   -1.5267    
  11  norm          .10000E-03    11.081        .17466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.5851        .84259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    145.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0447        158.95        .28268E-03   -1.5422    
  15  Prefactor     5.9920        26.182        .82021E-03   -1.5218    
  16  norm          .39360E-01    25.529        .33010E-01   -1.5668    
  17  Prefactor     50.877        75.849        .56286E-04   -1.4280    
  18  Prefactor     .10000E-03    104.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.4397        154.61        .21750E-03   -1.5337    
  20  norm          3.2609        1.7885        .50304E-04   -1.5347    
  21  norm          .10000E-03    27.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.6630        5.4780        .12188E-03   -1.5276    
  23  norm          .10000E-03    89.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.496        27.707        .93140E-04   -1.4848    
  26  Prefactor     .10000E-03    1.3229        .60324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.545        .17023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.4793        4.1782        .16819E-03   -1.5465    
  29  Normalizat    1.4012        .30261        .19475E-03   -.80593    
  30  Prefactor     .44761        .32357        .38203E-03   -1.1444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61172e-08
Minuit parameter uncertainties:
  1  79.7969
  2  69.6183
  3  155.146
  4  0.015366
  5  0.000188258
  6  3.06118e-05
  7  5.58248e-06
  8  102.304
  9  15.904
  10  18.2442
  11  6.41165e-06
  12  2.36429e-06
  13  0.00114103
  14  36.1548
  15  25.0688
  16  2.00313
  17  75.9931
  18  9.27306e-05
  19  46.2487
  20  1.78855
  21  1.2502e-06
  22  5.47864
  23  0.000390085
  24  2.54536e-05
  25  27.7262
  26  7.84224e-07
  27  6.60508e-06
  28  4.17906
  29  0.302993
  30  0.324909
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  2.364e-06  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:  4.476e-01  3.249e-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.401e+00  3.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.169 48.470
Photon Flux Upper Limit: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/364286/likelihoodResults_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.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): 102
logL (Free Index) = 2889.09000221
delta logL = -0.00175739907354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2889.08824536
delta logL = -5.40802830074e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0622       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44794       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2889.088     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      226 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.4375        .84317E-03** at limit **
   2  alpha         1.9586        3.3889        .16791        .22343E-07
   3  Normalizat    1.4012        .26850        .19475E-03    .13623E-03
   4  Prefactor     .44761        .31304        .38206E-03    .62013E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95856
  Normalizat = 1.40123
  Prefactor  = 0.44761
 **********
 **   18 **HESSE 
 **********

 FCN=   2889.088     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6095        .16863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9586        3.9370        .67166E-02   -.21831    
   3  Normalizat    1.4012        .26860        .38949E-04   -.80593    
   4  Prefactor     .44761        .31316        .15282E-04   -1.1444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26633e-11
Minuit parameter uncertainties:
  1  1.06984e-05
  2  178.757
  3  0.268875
  4  0.314373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/364286': 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) = 2889.08824463
delta logL = 1.79841208592e-07

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  1.070e-05  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  1.959e+00  1.788e+02  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:  4.476e-01  3.144e-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.401e+00  2.689e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.169 48.470

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/364286/cmap_HighResolution_602467201_602726401_4FGL_J1312.6+4828_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-05', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-07 05:51:03.769960', job_id='364286', GAL2='0.45', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1631019063.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='1.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1401' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 364286: <4FGL_J1312.6+4828_daily_bin1401> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1401> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 05:35:27 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:40:11 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:40:11 2021
Terminated at Tue Sep  7 05:51:04 2021
Results reported at Tue Sep  7 05:51:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1401 198.169 48.4701 602467201 602726401 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 :                                   637.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            937 sec.

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

