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


Performing analysis on: 4FGL_J1312.6+4828_daily_bin836
RA = 198.169, Dec = 48.4701
tmin = 456019201, tmax = 456278401
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='361171', job_status='RUN', time_executed='2021-09-07 05:26:58.150885', time_epoch_executed='1631017618.15' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361171/ft1_4FGL_J1312.6+4828_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361171/ft2_4FGL_J1312.6+4828_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361171/ft1_4FGL_J1312.6+4828_daily_bin836.fits outfile=/scratch/kocevski/361171/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin836.fits ra=198.169 dec=48.4701 rad=12.0 tmin=456019201.0 tmax=456278401.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.07
user 6.73
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361171/ft2_4FGL_J1312.6+4828_daily_bin836.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/361171/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/361171/ft1_filtered_4FGL_J1312.6+4828_daily_bin836.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.71
user 0.36
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361171/ft1_filtered_4FGL_J1312.6+4828_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/361171/ft2_4FGL_J1312.6+4828_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/361171/ltcube_456019201_456278401_4FGL_J1312.6+4828_daily_bin836.fits outfile=/scratch/kocevski/361171/expmap_456019201_456278401_4FGL_J1312.6+4828_daily_bin836.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/361171/ltcube_456019201_456278401_4FGL_J1312.6+4828_daily_bin836.fits
.....................!
real 193.28
user 185.93
sys 5.32

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/361171/ft1_filtered_4FGL_J1312.6+4828_daily_bin836.fits scfile=/scratch/kocevski/361171/ft2_4FGL_J1312.6+4828_daily_bin836.fits outfile=/scratch/kocevski/361171/cmap_456019201_456278401_4FGL_J1312.6+4828_daily_bin836.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361171/ft1_filtered_4FGL_J1312.6+4828_daily_bin836.fits scfile=/scratch/kocevski/361171/ft2_4FGL_J1312.6+4828_daily_bin836.fits outfile=/scratch/kocevski/361171/cmap_HighResolution_456019201_456278401_4FGL_J1312.6+4828_daily_bin836.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7449       1.0000         .10000E-03   10000.    
     2 'norm      '    .10742E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0260       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0940       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4329       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2792       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0303       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1098       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10762E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1061       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.454       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.251       1.0000         .10000E-03   10000.    
    20 'norm      '    9.4047       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.9406       1.0000         .10000E-03   10000.    
    23 'norm      '    45.835       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.274       1.0000         .10000E-03   10000.    
    25 'Prefactor '    40.503       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1371       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80771       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=   4598.627     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3919 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7451        2.5705        .17997E-06    .11115E-03
   2  norm          .10000E-03    8.5917       -.19904E-06** at limit **
   3  Prefactor     .96354        35.540       -.23190E-05    .17456E-03
   4  Prefactor     3.0935        6.1316        .38097E-06    .49168E-04
   5  norm          1.7987        1.9313       -.35201E-07   -.14377E-04
   6  Prefactor     .10000E-03    25.344       -.25994E-06** at limit **
   7  norm          4.4331        2.8940        .16862E-07    .74615E-04
   8  Prefactor     7.2808        58.880        .25268E-06    .40903E-05
   9  Prefactor     11.466        13.331        .26132E-07    .67504E-05
  10  Prefactor     6.0286        17.753        .23174E-06    .50909E-05
  11  norm          6.1096        10.875        .58361E-07    .97156E-05
  12  norm          .10000E-03    2.2669       -.70588E-07** at limit **
  13  Prefactor     .10000E-03    107.31        .28932E-06** at limit **
  14  Prefactor     2.7331        41.187        .19444E-05    .19912E-04
  15  Prefactor     3.1132        181.37        .64966E-06    .30028E-05
  16  norm          .10000E-03    5.1215       -.46256E-06** at limit **
  17  Prefactor     13.472        189.97       -.14520E-05   -.16937E-05
  18  Prefactor     .10000E-03    51.977       -.33043E-06** at limit **
  19  Prefactor     23.258        83.794       -.19373E-07   -.20044E-05
  20  norm          9.4048        2.6741        .13065E-07    .24078E-04
  21  norm          .10000E-03    55.902        .11531E-06** at limit **
  22  norm          4.9374        8.8186        .49880E-06   -.40255E-04
  23  norm          45.832        26.512       -.29971E-07   -.45793E-05
  24  Prefactor     27.380        84.716       -.14274E-05   -.25596E-05
  25  Prefactor     40.492        48.006        .47082E-07   -.13797E-04
  26  Prefactor     .10000E-03    1.7963        .21943E-07** at limit **
  27  Prefactor     .10000E-03    21.015       -.10469E-06** at limit **
  28  Prefactor     .10000E-03    4.9833        .29350E-05** at limit **
  29  Normalizat    1.1372        .21204       -.11791E-05    .18853E-03
  30  Prefactor     .80777        .24191        .18389E-05    .72121E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74511
  norm       = 0.0001
  Prefactor  = 0.963539
  Prefactor  = 3.09355
  norm       = 1.79873
  Prefactor  = 0.0001
  norm       = 4.43311
  Prefactor  = 7.28078
  Prefactor  = 11.4655
  Prefactor  = 6.02864
  norm       = 6.10955
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73313
  Prefactor  = 3.11317
  norm       = 0.0001
  Prefactor  = 13.4716
  Prefactor  = 0.0001
  Prefactor  = 23.2575
  norm       = 9.40476
  norm       = 0.0001
  norm       = 4.93743
  norm       = 45.8321
  Prefactor  = 27.3803
  Prefactor  = 40.4917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13717
  Prefactor  = 0.807767
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.627     FROM HESSE     STATUS=OK           596 CALLS     4515 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7451        2.5467        .12751E-03   -1.5444    
   2  norm          .10000E-03    8.6524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .96354        276.31        .67597E-02   -1.5512    
   4  Prefactor     3.0935        6.1089        .22687E-03   -1.5356    
   5  norm          1.7987        1.9347        .94273E-04   -1.5440    
   6  Prefactor     .10000E-03    25.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4331        2.8927        .90101E-04   -1.5287    
   8  Prefactor     7.2808        58.801        .14867E-03   -1.5168    
   9  Prefactor     11.466        13.309        .11831E-03   -1.5031    
  10  Prefactor     6.0286        17.764        .16351E-03   -1.5217    
  11  norm          6.1096        10.863        .16242E-03   -1.5214    
  12  norm          .10000E-03    2.2759        .99689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    108.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7331        40.556        .24668E-03   -1.5377    
  15  Prefactor     3.1132        178.86        .23008E-03   -1.5355    
  16  norm          .10000E-03    5.2183        .29821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.472        187.92        .10920E-03   -1.4974    
  18  Prefactor     .10000E-03    52.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.258        83.600        .83070E-04   -1.4743    
  20  norm          9.4048        2.6709        .55370E-04   -1.5095    
  21  norm          .10000E-03    55.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.9374        8.7232        .18094E-03   -1.5264    
  23  norm          45.832        26.513        .59222E-04   -1.4353    
  24  Prefactor     27.380        84.665        .76710E-04   -1.4661    
  25  Prefactor     40.492        47.990        .62984E-04   -1.4434    
  26  Prefactor     .10000E-03    1.7969        .88762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    21.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.0505        .14817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1372        .24712        .22393E-03   -.88567    
  30  Prefactor     .80777        .27603        .31447E-03   -.99443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87666e-09
Minuit parameter uncertainties:
  1  2.54687
  2  2.51279e-05
  3  32.7853
  4  6.11009
  5  1.93476
  6  1.17524e-05
  7  2.89282
  8  41.4376
  9  13.3128
  10  17.7797
  11  10.867
  12  1.48028e-06
  13  2.25141e-05
  14  21.0735
  15  47.3433
  16  2.72465e-05
  17  101.015
  18  5.54476e-05
  19  84.0253
  20  2.67094
  21  4.78793e-05
  22  8.72548
  23  26.5199
  24  85.0402
  25  48.0353
  26  2.55374e-07
  27  3.11516e-06
  28  6.20298e-05
  29  0.247372
  30  0.276501
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  1.000e-04  1.480e-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:  8.078e-01  2.765e-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.137e+00  2.474e-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: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361171/likelihoodResults_456019201_456278401_4FGL_J1312.6+4828_daily_bin836.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) = 4598.62885514
delta logL = -0.00207275417961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4598.62678238
delta logL = 5.80894266022e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0733       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80778       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=   4598.564     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      291 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42925E-01    4.2611        .83958E-02    .15506E-02
   2  alpha         5.0000        4.9985        .50000    ** at limit **
   3  Normalizat    1.1071        .48910E-01    .22393E-03   -.18121E-03
   4  Prefactor     .83051        .55441E-01    .31447E-03   -.82100E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0429251
  alpha      = 5
  Normalizat = 1.10707
  Prefactor  = 0.830512
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.564     FROM HESSE     STATUS=OK            33 CALLS      324 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42925E-01    .14176        .32167E-03   -1.5667    
   2  alpha         5.0000        4.9953        .50000        7.8539    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1071        .24368        .44787E-04   -.89525    
   4  Prefactor     .83051        .28154        .12579E-04   -.98613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85167e-10
Minuit parameter uncertainties:
  1  0.141756
  2  0.000473895
  3  0.243928
  4  0.282036
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361171': 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) = 4598.56444123
delta logL = 0.0623411513398

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  4.293e-02  1.418e-01  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  5.000e+00  4.739e-04  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:  8.305e-01  2.820e-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.107e+00  2.439e-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/361171/cmap_HighResolution_456019201_456278401_4FGL_J1312.6+4828_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', job_status='DONE', photon_flux_upper_limit='6.21e-08', time_completed='2021-09-07 05:40:26.262254', job_id='361171', GAL2='0.83', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1631018426.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.23e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.07' WHERE bin_id='836' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:40:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 361171: <4FGL_J1312.6+4828_daily_bin836> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin836> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 05:25:31 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:26:46 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:26:46 2021
Terminated at Tue Sep  7 05:40:26 2021
Results reported at Tue Sep  7 05:40:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin836 198.169 48.4701 456019201 456278401 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 :                                   803.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            895 sec.

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

