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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin478
RA = 187.935, Dec = 28.7917
tmin = 363225601, tmax = 363484801
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='772079', job_status='RUN', time_executed='2021-09-05 22:17:49.028120', time_epoch_executed='1630905469.03' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/772079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/772079/ft1_4FGL_J1231.7+2847_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/772079/ft1_4FGL_J1231.7+2847_daily_bin478.fits outfile=/scratch/kocevski/772079/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin478.fits ra=187.935 dec=28.7917 rad=12.0 tmin=363225601.0 tmax=363484801.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.01
user 6.69
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.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/772079/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin478.fits evtable="EVENTS" outfile="/scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/772079/ltcube_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.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/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits
.....................!
real 14.74
user 14.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/772079/ltcube_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.fits outfile=/scratch/kocevski/772079/expmap_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.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/772079/ltcube_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.fits
.....................!
real 191.21
user 186.36
sys 4.02

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

Setting source of interest to:
4FGL J1231.7+2847 @ 187.935 28.7917

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits scfile=/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits outfile=/scratch/kocevski/772079/cmap_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.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=187.935 yref=28.7917 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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits scfile=/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits outfile=/scratch/kocevski/772079/cmap_HighResolution_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.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=187.935 yref=28.7917 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/772079/Model_4FGL_J1231.7+2847_daily_bin478.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/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits......................!
real 28.50
user 27.15
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits', '/scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits', expMap='/scratch/kocevski/772079/expmap_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.fits', expCube='/scratch/kocevski/772079/ltcube_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/772079/Model_4FGL_J1231.7+2847_daily_bin478.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.7+2847'

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.388e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/772079/ft1_filtered_4FGL_J1231.7+2847_daily_bin478.fits
Spacecraft file(s): /scratch/kocevski/772079/ft2_4FGL_J1231.7+2847_daily_bin478.fits
Exposure map: /scratch/kocevski/772079/expmap_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.fits
Exposure cube: /scratch/kocevski/772079/ltcube_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/772079/Model_4FGL_J1231.7+2847_daily_bin478.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) = 2130.17453676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.369       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4584       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1155       1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.846       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2003       1.0000         .10000E-03   10000.    
     8 'norm      '    7.0712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30369E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3793       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9241       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7872       1.0000         .10000E-03   10000.    
    14 'norm      '    5.7158       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9816       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.872       1.0000         .10000E-03   10000.    
    17 'Prefactor '    132.42       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .76542E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .47735E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.2101       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    34.595       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4501       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .49954E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2130.146     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     3577 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.340        9.3220       -.12007E-04    .34428E-02
   2  Prefactor     .10000E-03    2.1575       -.14561E-05** at limit **
   3  Prefactor     1.3676        139.36       -.19779E-03    .93546E-03
   4  norm          2.7567        1.8496       -.16517E-06   -.54680E-03
   5  Prefactor     6.1149        1.0188       -.72772E-06    .79992E-03
   6  Prefactor     78.825        6.6037       -.61569E-05    .12078E-02
   7  Prefactor     9.1982        1.0146       -.53471E-06    .85048E-04
   8  norm          7.0866        1.3975        .32468E-05    .29762E-02
   9  Prefactor     .10000E-03    5.9840       -.75414E-05** at limit **
  10  Prefactor     .10224E-03    14.301       -.13773E-04** at limit **
  11  Prefactor     7.3795        1.0840        .16077E-05    .69455E-02
  12  Prefactor     2.9527        6.2723        .28404E-04    .16980E-02
  13  norm          1.7864        .63808       -.46410E-06   -.11285E-02
  14  norm          5.6909        4.1062       -.12767E-04   -.26368E-02
  15  Prefactor     7.9778        1.2101       -.18815E-05    .33861E-03
  16  Prefactor     12.858        3.9178       -.87043E-05   -.55017E-03
  17  Prefactor     132.40        5.1240       -.37727E-05    .96419E-02
  18  Prefactor     .11438E-03    10.849        .40454E-04** at limit **
  19  Prefactor     .10000E-03    3.2782        .17450E-05** at limit **
  20  norm          .10000E-03    6.2586        .34369E-04** at limit **
  21  Prefactor     .10023E-03    42.625        .21360E-05** at limit **
  22  norm          .10268E-03    3.6252        .19454E-04** at limit **
  23  Prefactor     .10001E-03    24.948       -.62497E-05** at limit **
  24  norm          .10000E-03    2.9537        .11415E-06** at limit **
  25  norm          4.2089        3.8441       -.23403E-05    .11319E-03
  26  norm          .10000E-03    14.331        .22828E-05** at limit **
  27  norm          34.564        10.057       -.14307E-04    .26139E-02
  28  Prefactor     .10000E-03    3.6172        .37926E-05** at limit **
  29  Prefactor     .10000E-03    6.5417       -.22060E-04** at limit **
  30  Normalizat    1.4505        .16098        .81845E-05    .70471E-04
  31  Prefactor     .33851E-11    .83809       -.39203E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3405
  Prefactor  = 0.0001
  Prefactor  = 1.36762
  norm       = 2.75671
  Prefactor  = 6.11493
  Prefactor  = 78.8246
  Prefactor  = 9.19821
  norm       = 7.08659
  Prefactor  = 0.0001
  Prefactor  = 0.000102239
  Prefactor  = 7.37945
  Prefactor  = 2.95273
  norm       = 1.78645
  norm       = 5.69094
  Prefactor  = 7.97784
  Prefactor  = 12.8583
  Prefactor  = 132.404
  Prefactor  = 0.00011438
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100233
  norm       = 0.000102675
  Prefactor  = 0.00010001
  norm       = 0.0001
  norm       = 4.20894
  norm       = 0.000100001
  norm       = 34.5639
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.45045
  Prefactor  = 3.38507e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   2130.146     FROM HESSE     STATUS=OK           710 CALLS     4287 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.340        40.522        .15397E-02   -1.4406    
   2  Prefactor     .10000E-03    2.1458        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3676        311.71        .89097E-02   -1.5474    
   4  norm          2.7567        1.8651        .61287E-02   -1.5376    
   5  Prefactor     6.1149        8.9901        .40587E-02   -1.5213    
   6  Prefactor     78.825        62.051        .11307E-02   -1.3930    
   7  Prefactor     9.1982        7.9329        .33033E-02   -1.5101    
   8  norm          7.0866        6.5442        .37714E-02   -1.5175    
   9  Prefactor     .10000E-03    5.9918        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10224E-03    4.8398        .64398E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3795        4.7789        .36911E-02   -1.5165    
  12  Prefactor     2.9527        43.259        .59391E-02   -1.5364    
  13  norm          1.7864        .66611        .47483E-02   -1.5441    
  14  norm          5.6909        13.895        .42002E-02   -1.5231    
  15  Prefactor     7.9778        18.432        .35480E-02   -1.5143    
  16  Prefactor     12.858        25.887        .27911E-02   -1.4991    
  17  Prefactor     132.40        137.47        .87483E-03   -1.3402    
  18  Prefactor     .11438E-03    18.844        .64028E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.3254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10023E-03    56.149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10268E-03    6.7948        .76309E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    24.896        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.9505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.2089        3.9155        .49100E-02   -1.5298    
  26  norm          .10000E-03    14.130        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          34.564        36.409        .17033E-02   -1.4531    
  28  Prefactor     .10000E-03    3.5501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.6761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4505        .24623        .30547E-01   -.79180    
  31  Prefactor     .33851E-11    .43246        .20488       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89805e-06
Minuit parameter uncertainties:
  1  40.5486
  2  1.85513e-05
  3  41.513
  4  1.86519
  5  8.99212
  6  62.1018
  7  7.93384
  8  6.54484
  9  5.78889e-05
  10  0.00658392
  11  4.77918
  12  22.6231
  13  0.666113
  14  13.9028
  15  18.4448
  16  25.9101
  17  137.808
  18  0.0329331
  19  2.98102e-05
  20  0.000265953
  21  0.00724299
  22  0.00852833
  23  0.000996363
  24  2.78735e-05
  25  3.91572
  26  0.000184103
  27  36.4325
  28  8.60713e-06
  29  0.000266086
  30  0.246431
  31  2.43759e-06
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  7.978e+00  1.844e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.998e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  3.385e-12  2.438e-06  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.450e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/772079/likelihoodResults_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.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) = 2129.98397697
delta logL = 0.162259532808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2129.9836103
delta logL = 0.162626200271

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0390       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6441       1.0000          .0000       10.000    
     3 'Normalizat'    1.4371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75762E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6150E+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=   2129.984     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      307 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0359        15.615        .14703E-03    .12116E-03
   2  Index         2.6441        1.4139        .57098E-02    .39336E-04
   3  Normalizat    1.4374        .15440        .19269E-03    .11044E-03
   4  Prefactor     .18580E-11    1.0448        .12945E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.03588
  Index      = 2.64407
  Normalizat = 1.43743
  Prefactor  = 1.85796e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   2129.984     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0359        12.855        .58813E-05   -1.5259    
   2  Index         2.6441        1.1700        .22839E-03   -.49064    
   3  Normalizat    1.4374        .15348        .38538E-04   -.79552    
   4  Prefactor     .18580E-11    1.0483        .25889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93297e-11
Minuit parameter uncertainties:
  1  12.8617
  2  1.18418
  3  0.153526
  4  2.84222e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/772079': 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) = 2129.98360505
delta logL = 0.162631445398

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  5.036e+00  1.286e+01  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  2.644e+00  1.184e+00  0.000e+00  1.000e+01 (-1.000e+00)
336        Scale:  1.597e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
612    Prefactor:  1.858e-12  2.842e-06  0.000e+00  1.000e+01 ( 1.000e+00)
613        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
614        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
611   Normalization:  1.437e+00  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 187.935 28.792

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/772079/cmap_HighResolution_363225601_363484801_4FGL_J1231.7+2847_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-05 22:27:03.742224', job_id='772079', GAL2='0.00', fit_tolerance='1e-08', EG2='1.44', EG='1.45', time_epoch_completed='1630906023.74', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.63e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='478' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:27:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 772079: <4FGL_J1231.7+2847_daily_bin478> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin478> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 22:16:46 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:17:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:17:33 2021
Terminated at Sun Sep  5 22:27:04 2021
Results reported at Sun Sep  5 22:27:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin478 187.935 28.7917 363225601 363484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1231.7+2847 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   548.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            618 sec.

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

