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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin1006
RA = 198.169, Dec = 48.4701
tmin = 500083201, tmax = 500342401
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='362699', job_status='RUN', time_executed='2021-09-07 05:33:14.392342', time_epoch_executed='1631017994.39' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/362699

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/362699/ft1_4FGL_J1312.6+4828_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/362699/ft2_4FGL_J1312.6+4828_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/362699/ft1_4FGL_J1312.6+4828_daily_bin1006.fits outfile=/scratch/kocevski/362699/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1006.fits ra=198.169 dec=48.4701 rad=12.0 tmin=500083201.0 tmax=500342401.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 7.20
user 5.53
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/362699/ft2_4FGL_J1312.6+4828_daily_bin1006.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/362699/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/362699/ft1_filtered_4FGL_J1312.6+4828_daily_bin1006.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.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/362699/ft1_filtered_4FGL_J1312.6+4828_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/362699/ft2_4FGL_J1312.6+4828_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/362699/ltcube_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.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/362699/ft2_4FGL_J1312.6+4828_daily_bin1006.fits
.....................!
real 16.52
user 16.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/362699/ft1_filtered_4FGL_J1312.6+4828_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/362699/ft2_4FGL_J1312.6+4828_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/362699/ltcube_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.fits outfile=/scratch/kocevski/362699/expmap_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.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/362699/ltcube_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.fits
.....................!
real 191.53
user 186.34
sys 4.48

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/362699/ft1_filtered_4FGL_J1312.6+4828_daily_bin1006.fits scfile=/scratch/kocevski/362699/ft2_4FGL_J1312.6+4828_daily_bin1006.fits outfile=/scratch/kocevski/362699/cmap_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/362699/ft1_filtered_4FGL_J1312.6+4828_daily_bin1006.fits scfile=/scratch/kocevski/362699/ft2_4FGL_J1312.6+4828_daily_bin1006.fits outfile=/scratch/kocevski/362699/cmap_HighResolution_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .85115       1.0000         .10000E-03   10000.    
     5 'norm      '    5.8013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38388E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .89294       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78509E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37346E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30522E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.760       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42115E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.531       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61130       1.0000         .10000E-03   10000.    
    20 'norm      '    10.875       1.0000         .10000E-03   10000.    
    21 'norm      '    44.198       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5076       1.0000         .10000E-03   10000.    
    23 'norm      '    .15885E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19524E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18413E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.8522       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.758       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0515       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1101       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=   4872.660     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     3569 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .61476       -.29990E-08** at limit **
   2  norm          .10000E-03    2.4043       -.14600E-08** at limit **
   3  Prefactor     .10000E-03    8.8653       -.29702E-08** at limit **
   4  Prefactor     .85936        7.2528        .22464E-05   -.21448E-03
   5  norm          5.8023        2.8538       -.14340E-06   -.16404E-03
   6  Prefactor     .10000E-03    40.464        .54520E-08** at limit **
   7  norm          .89311        1.4915        .50650E-07    .40031E-04
   8  Prefactor     .10000E-03    17.596        .43103E-08** at limit **
   9  Prefactor     7.9565        8.1168        .74842E-07   -.78192E-04
  10  Prefactor     .10000E-03    52.264        .15849E-06** at limit **
  11  norm          .10000E-03    5.9253        .67423E-08** at limit **
  12  norm          3.6882        4.8829        .27002E-06   -.83538E-04
  13  Prefactor     .10000E-03    20.129        .61841E-08** at limit **
  14  Prefactor     12.835        15.597        .14259E-05    .27746E-03
  15  Prefactor     10.060        32.015        .56382E-06    .39962E-05
  16  norm          .10000E-03    1.8874        .82148E-07** at limit **
  17  Prefactor     .10000E-03    57.603        .22123E-05** at limit **
  18  Prefactor     46.960        91.954        .10304E-04    .20921E-03
  19  Prefactor     .92413        64.197       -.25910E-06   -.35253E-04
  20  norm          10.877        2.8207        .16930E-07   -.15103E-04
  21  norm          43.354        80.078       -.32015E-06    .27220E-04
  22  norm          1.5260        7.0650        .19950E-05   -.15606E-03
  23  norm          .10000E-03    19.788        .14151E-06** at limit **
  24  Prefactor     .10000E-03    28.859       -.57328E-07** at limit **
  25  Prefactor     .82357        53.988       -.25392E-05    .10498E-04
  26  Prefactor     6.7470        7.7604        .23741E-05   -.62389E-03
  27  Prefactor     19.569        28.140       -.62985E-06    .13572E-04
  28  Prefactor     .10000E-03    4.7109       -.23526E-06** at limit **
  29  Normalizat    1.0507        .20217       -.19689E-05    .60868E-04
  30  Prefactor     1.1108        .23887        .38718E-06   -.55818E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.859356
  norm       = 5.80225
  Prefactor  = 0.0001
  norm       = 0.89311
  Prefactor  = 0.0001
  Prefactor  = 7.95651
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.6882
  Prefactor  = 0.0001
  Prefactor  = 12.8346
  Prefactor  = 10.06
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 46.9596
  Prefactor  = 0.924129
  norm       = 10.877
  norm       = 43.3544
  norm       = 1.52603
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.823573
  Prefactor  = 6.74695
  Prefactor  = 19.5695
  Prefactor  = 0.0001
  Normalizat = 1.05068
  Prefactor  = 1.11078
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.660     FROM HESSE     STATUS=OK           604 CALLS     4173 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .61573        .53449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4101        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .85936        7.3398        .34733E-03   -1.5523    
   5  norm          5.8023        2.8273        .76558E-04   -1.5226    
   6  Prefactor     .10000E-03    41.321        .18427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .89311        1.2517        .10704E-02   -1.5519    
   8  Prefactor     .10000E-03    17.599        .20913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9565        8.1067        .70875E-03   -1.5144    
  10  Prefactor     .10000E-03    52.696        .19578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.9283        .16596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6882        4.8738        .16988E-03   -1.5324    
  13  Prefactor     .10000E-03    20.156        .21382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.835        15.773        .11214E-03   -1.4991    
  15  Prefactor     10.060        31.988        .12622E-03   -1.5074    
  16  norm          .10000E-03    1.8950        .93535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    58.146        .19430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.960        98.259        .58780E-04   -1.4336    
  19  Prefactor     .92413        70.548        .14041       -1.5516    
  20  norm          10.877        2.8224        .56862E-04   -1.5048    
  21  norm          43.354        79.632        .60304E-04   -1.4390    
  22  norm          1.5260        6.9462        .32058E-03   -1.5461    
  23  norm          .10000E-03    19.857        .20425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.870        .18241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .82357        52.988        .13734       -1.5526    
  26  Prefactor     6.7470        8.1539        .76636E-03   -1.5188    
  27  Prefactor     19.569        28.170        .90108E-04   -1.4823    
  28  Prefactor     .10000E-03    4.8003        .14760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0507        .23558        .23857E-03   -.91351    
  30  Prefactor     1.1108        .28058        .29074E-03   -.89123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42085e-09
Minuit parameter uncertainties:
  1  4.57033e-07
  2  2.94098e-06
  3  9.49654e-06
  4  5.02348
  5  2.82738
  6  0.000104814
  7  1.25177
  8  5.48757e-06
  9  8.10785
  10  8.64769e-05
  11  1.53051e-06
  12  4.87432
  13  1.78826e-06
  14  15.7785
  15  32.043
  16  6.47279e-06
  17  0.000750312
  18  98.6006
  19  16.1677
  20  2.82246
  21  79.8281
  22  6.5126
  23  1.69534e-05
  24  1.41264e-07
  25  13.2235
  26  8.15524
  27  28.1895
  28  9.92895e-06
  29  0.235814
  30  0.280956
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  3.688e+00  4.874e+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:  1.111e+00  2.810e-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.051e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/362699/likelihoodResults_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.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) = 4872.61004293
delta logL = 0.0497596143814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4872.60812753
delta logL = 0.0516750137785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8931       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7450       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1021       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=   4872.608     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8941        4.9756        .16879E-03   -.91604E-05
   2  alpha         1.7461        .85824        .18814E-01   -.96509E-04
   3  Normalizat    1.0602        .22091        .23762E-03   -.93774E-05
   4  Prefactor     1.1014        .27689        .29176E-03    .16210E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.89406
  alpha      = 1.74613
  Normalizat = 1.06018
  Prefactor  = 1.10142
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.608     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8941        5.0030        .67514E-05   -1.5313    
   2  alpha         1.7461        .86299        .37628E-02   -.30631    
   3  Normalizat    1.0602        .22109        .95048E-05   -.91041    
   4  Prefactor     1.1014        .27709        .11670E-04   -.89421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84805e-12
Minuit parameter uncertainties:
  1  5.00352
  2  0.883046
  3  0.22128
  4  0.277456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/362699': 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) = 4872.60812235
delta logL = 0.051680202122

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  3.894e+00  5.004e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  1.746e+00  8.830e-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:  1.101e+00  2.775e-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.060e+00  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
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/362699/cmap_HighResolution_500083201_500342401_4FGL_J1312.6+4828_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.71e-05', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-09-07 05:46:52.387826', job_id='362699', GAL2='1.10', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1631018812.39', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.17e-02', ts2='0.86', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='1006' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:46:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 362699: <4FGL_J1312.6+4828_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin1006> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep  7 05:30:38 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:31:05 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:31:05 2021
Terminated at Tue Sep  7 05:46:53 2021
Results reported at Tue Sep  7 05:46:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin1006 198.169 48.4701 500083201 500342401 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 :                                   813.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            975 sec.

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

