/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 9 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1312.6+4828_daily_bin93
RA = 198.169, Dec = 48.4701
tmin = 263433601, tmax = 263692801
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='355829', job_status='RUN', time_executed='2021-09-07 05:09:45.488551', time_epoch_executed='1631016585.49' WHERE source_name='4FGL J1312.6+4828' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355829

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355829/ft1_4FGL_J1312.6+4828_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355829/ft2_4FGL_J1312.6+4828_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355829/ft1_4FGL_J1312.6+4828_daily_bin93.fits outfile=/scratch/kocevski/355829/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin93.fits ra=198.169 dec=48.4701 rad=12.0 tmin=263433601.0 tmax=263692801.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.51
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355829/ft2_4FGL_J1312.6+4828_daily_bin93.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/355829/ft1_filteredMKT_4FGL_J1312.6+4828_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/355829/ft1_filtered_4FGL_J1312.6+4828_daily_bin93.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.55
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/355829/ft1_filtered_4FGL_J1312.6+4828_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/355829/ft2_4FGL_J1312.6+4828_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/355829/ltcube_263433601_263692801_4FGL_J1312.6+4828_daily_bin93.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/355829/ft2_4FGL_J1312.6+4828_daily_bin93.fits
.....................!
real 13.19
user 12.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355829/ft1_filtered_4FGL_J1312.6+4828_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/355829/ft2_4FGL_J1312.6+4828_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/355829/ltcube_263433601_263692801_4FGL_J1312.6+4828_daily_bin93.fits outfile=/scratch/kocevski/355829/expmap_263433601_263692801_4FGL_J1312.6+4828_daily_bin93.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/355829/ltcube_263433601_263692801_4FGL_J1312.6+4828_daily_bin93.fits
.....................!
real 192.22
user 185.88
sys 4.51

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/355829/ft1_filtered_4FGL_J1312.6+4828_daily_bin93.fits scfile=/scratch/kocevski/355829/ft2_4FGL_J1312.6+4828_daily_bin93.fits outfile=/scratch/kocevski/355829/cmap_263433601_263692801_4FGL_J1312.6+4828_daily_bin93.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.63
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355829/ft1_filtered_4FGL_J1312.6+4828_daily_bin93.fits scfile=/scratch/kocevski/355829/ft2_4FGL_J1312.6+4828_daily_bin93.fits outfile=/scratch/kocevski/355829/cmap_HighResolution_263433601_263692801_4FGL_J1312.6+4828_daily_bin93.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11662E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.796       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .21448       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.969       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2807       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.146       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8790       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12305E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.633       1.0000         .10000E-03   10000.    
    19 'Prefactor '    81.024       1.0000         .10000E-03   10000.    
    20 'norm      '    .14155       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.4003       1.0000         .10000E-03   10000.    
    23 'norm      '    28.360       1.0000         .10000E-03   10000.    
    24 'Prefactor '    66.842       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4836       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7555       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.6553       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .14561E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .59818       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.5002       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=   5473.263     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3873 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4308        .35293E-06** at limit **
   2  norm          .10000E-03    3.4408        .42870E-06** at limit **
   3  Prefactor     35.805        23.503       -.78264E-07   -.13199E-04
   4  Prefactor     .10000E-03    3.6065        .15667E-06** at limit **
   5  norm          5.2679        2.4762       -.19968E-07   -.69426E-04
   6  Prefactor     .10000E-03    20.334        .79181E-06** at limit **
   7  norm          .21327        2.1719        .21741E-05   -.13015E-04
   8  Prefactor     33.981        49.869        .71741E-07    .93235E-05
   9  Prefactor     .10000E-03    2.5438       -.32234E-07** at limit **
  10  Prefactor     9.2832        19.206        .27479E-06    .21967E-06
  11  norm          .10000E-03    5.0106        .17497E-06** at limit **
  12  norm          23.148        6.8674       -.48059E-07   -.10825E-03
  13  Prefactor     .10000E-03    20.047        .16202E-06** at limit **
  14  Prefactor     .10000E-03    12.189       -.27480E-06** at limit **
  15  Prefactor     .10000E-03    31.084        .38122E-06** at limit **
  16  norm          3.8817        4.9003        .29768E-06   -.24310E-06
  17  Prefactor     .10000E-03    32.766       -.16050E-05** at limit **
  18  Prefactor     83.655        74.155        .29798E-07    .10430E-04
  19  Prefactor     80.966        56.915        .10514E-06   -.57858E-04
  20  norm          .14113        .77236        .47185E-06   -.50175E-03
  21  norm          .10000E-03    30.073        .20326E-06** at limit **
  22  norm          4.4038        4.3155       -.30793E-07    .12873E-03
  23  norm          28.363        20.808       -.61594E-07   -.17067E-04
  24  Prefactor     66.730        63.604        .23163E-05    .11924E-04
  25  Prefactor     2.4865        196.96       -.12273E-04   -.47182E-05
  26  Prefactor     2.7540        3.7411        .25046E-06    .50627E-04
  27  Prefactor     7.6614        22.865        .64668E-06    .96310E-05
  28  Prefactor     .10000E-03    2.8147       -.36939E-05** at limit **
  29  Normalizat    .59745        .18679        .79531E-06   -.11872E-03
  30  Prefactor     1.5012        .22586       -.15670E-05   -.30024E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 35.8055
  Prefactor  = 0.0001
  norm       = 5.26792
  Prefactor  = 0.0001
  norm       = 0.213269
  Prefactor  = 33.9812
  Prefactor  = 0.0001
  Prefactor  = 9.28323
  norm       = 0.0001
  norm       = 23.1481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.88171
  Prefactor  = 0.0001
  Prefactor  = 83.6547
  Prefactor  = 80.9658
  norm       = 0.141132
  norm       = 0.0001
  norm       = 4.40376
  norm       = 28.3632
  Prefactor  = 66.7304
  Prefactor  = 2.48654
  Prefactor  = 2.75402
  Prefactor  = 7.66143
  Prefactor  = 0.0001
  Normalizat = 0.597453
  Prefactor  = 1.50117
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.263     FROM HESSE     STATUS=OK           590 CALLS     4463 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5281        .22506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.4512        .13395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.805        23.523        .66983E-04   -1.4510    
   4  Prefactor     .10000E-03    3.6469        .13710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2679        2.4754        .77552E-04   -1.5249    
   6  Prefactor     .10000E-03    20.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .21327        2.2157        .20886E-03   -1.5616    
   8  Prefactor     33.981        49.922        .68756E-04   -1.4541    
   9  Prefactor     .10000E-03    2.5457        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.2832        19.202        .13155E-03   -1.5099    
  11  norm          .10000E-03    5.0126        .16174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.148        6.8672        .83258E-04   -1.4745    
  13  Prefactor     .10000E-03    20.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8817        4.8872        .17364E-03   -1.5314    
  17  Prefactor     .10000E-03    32.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     83.655        74.170        .43924E-04   -1.3876    
  19  Prefactor     80.966        56.954        .22310E-03   -1.3906    
  20  norm          .14113        1.2031        .12266E-02   -1.5633    
  21  norm          .10000E-03    30.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.4038        4.3000        .14332E-03   -1.5288    
  23  norm          28.363        20.802        .75230E-04   -1.4642    
  24  Prefactor     66.730        63.536        .24546E-03   -1.4072    
  25  Prefactor     2.4865        192.34        .25940E-03   -1.5393    
  26  Prefactor     2.7540        3.7146        .15787E-03   -1.5376    
  27  Prefactor     7.6614        22.801        .14494E-03   -1.5154    
  28  Prefactor     .10000E-03    2.8467        .24053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .59745        .21660        .29021E-03   -1.0809    
  30  Prefactor     1.5012        .26482        .24954E-03   -.77507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01672e-08
Minuit parameter uncertainties:
  1  5.26893e-07
  2  4.615e-06
  3  23.5295
  4  3.50239e-07
  5  2.47541
  6  5.03755e-06
  7  1.37458
  8  49.9837
  9  1.7826e-06
  10  19.215
  11  1.92558e-06
  12  6.86748
  13  9.77951e-06
  14  8.38609e-06
  15  2.37429e-05
  16  4.88766
  17  4.20464e-05
  18  74.2523
  19  56.992
  20  0.823846
  21  3.82185e-05
  22  4.30028
  23  20.8071
  24  63.6006
  25  43.8848
  26  3.71493
  27  22.8272
  28  9.79433e-06
  29  0.216905
  30  0.265065
Done.

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

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  2.315e+01  6.867e+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.501e+00  2.651e-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:  5.975e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.72
Ra Dec: 198.169 48.470
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 1.37e-07 +/- 4.07e-08
Energy Flux (Fixed Index): 7.11e-05 +/- 2.11e-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) = 5473.26110765
delta logL = 0.00145884845097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5473.26084651
delta logL = 0.00171998269343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.009       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0813       1.0000          .0000       5.0000    
     3 'Normalizat'    .59574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5025       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=   5473.261     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      223 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.009        10.974        .20876E-02    .50808E-03
   2  alpha         2.0812        .37952        .15582        .26584E-04
   3  Normalizat    .59574        .17422        .65667E-01    .27114E-04
   4  Prefactor     1.5025        .22470        .56419E-01    .34637E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 23.0094
  alpha      = 2.08125
  Normalizat = 0.59574
  Prefactor  = 1.50245
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.261     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.009        7.2455        .83505E-04   -1.4748    
   2  alpha         2.0812        .25775        .66782E-02   -.16829    
   3  Normalizat    .59574        .20277        .29059E-03   -1.0817    
   4  Prefactor     1.5025        .26274        .24945E-03   -.77471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48162e-11
Minuit parameter uncertainties:
  1  7.24579
  2  0.258219
  3  0.203022
  4  0.262978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355829': 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) = 5473.26084643
delta logL = 0.00172007066976

Extracting fit parameters...

4FGL J1312.6+4828
   Spectrum: LogParabola
360         norm:  2.301e+01  7.246e+00  1.000e-04  1.000e+04 ( 1.000e-12)
361        alpha:  2.081e+00  2.582e-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.502e+00  2.630e-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:  5.957e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.49
Ra Dec: 198.169 48.470
Photon Index (Free Index): 2.08 +/- 0.26
Photon Flux (Free Index): 1.39e-07 +/- 4.75e-08
Energy Flux (Free Index): 7.00e-05 +/- 2.77e-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/355829/cmap_HighResolution_263433601_263692801_4FGL_J1312.6+4828_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.37e-07', energy_flux2='7.00e-05', photon_flux_error='4.07e-08', dlogl='1.72e-03', energy_flux='7.11e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-07 05:22:39.898962', photon_index_error2='0.26', photon_index2='2.08', ts='36.72', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='2.77e-05', EG='0.60', time_epoch_completed='1631017359.9', return_code='0', job_id='355829', GAL2='1.50', EG2='0.60', return_code2='0', energy_flux_error='2.11e-05', photon_flux_error2='4.75e-08', ts2='36.49', photon_index='2.07' WHERE bin_id='93' AND source_name='4FGL J1312.6+4828' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 05:22:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 355829: <4FGL_J1312.6+4828_daily_bin93> in cluster <slac> Done

Job <4FGL_J1312.6+4828_daily_bin93> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 05:08:56 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 05:09: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:09:05 2021
Terminated at Tue Sep  7 05:22:40 2021
Results reported at Tue Sep  7 05:22:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1312.6+4828_daily_bin93 198.169 48.4701 263433601 263692801 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 :                                   765.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            824 sec.

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

