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


Performing analysis on: 4FGL_J1231.7+2847_daily_bin961
RA = 187.935, Dec = 28.7917
tmin = 488419201, tmax = 488678401
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='775027', job_status='RUN', time_executed='2021-09-05 22:29:22.293724', time_epoch_executed='1630906162.29' WHERE source_name='4FGL J1231.7+2847' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775027/ft1_4FGL_J1231.7+2847_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775027/ft1_4FGL_J1231.7+2847_daily_bin961.fits outfile=/scratch/kocevski/775027/ft1_filteredMKT_4FGL_J1231.7+2847_daily_bin961.fits ra=187.935 dec=28.7917 rad=12.0 tmin=488419201.0 tmax=488678401.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.28
user 6.96
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/775027/ltcube_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.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/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits
.....................!
real 16.36
user 15.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/775027/ltcube_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.fits outfile=/scratch/kocevski/775027/expmap_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.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/775027/ltcube_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.fits
.....................!
real 193.27
user 186.25
sys 4.81

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/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits scfile=/scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits outfile=/scratch/kocevski/775027/cmap_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.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.60
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits scfile=/scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits outfile=/scratch/kocevski/775027/cmap_HighResolution_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.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.61
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775027/Model_4FGL_J1231.7+2847_daily_bin961.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/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits.....................!
real 38.34
user 35.83
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits', '/scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits', expMap='/scratch/kocevski/775027/expmap_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.fits', expCube='/scratch/kocevski/775027/ltcube_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/775027/Model_4FGL_J1231.7+2847_daily_bin961.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/775027/ft1_filtered_4FGL_J1231.7+2847_daily_bin961.fits
Spacecraft file(s): /scratch/kocevski/775027/ft2_4FGL_J1231.7+2847_daily_bin961.fits
Exposure map: /scratch/kocevski/775027/expmap_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.fits
Exposure cube: /scratch/kocevski/775027/ltcube_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/775027/Model_4FGL_J1231.7+2847_daily_bin961.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) = 3638.02455398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.936       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12188E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.0594       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .61427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3620       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7185       1.0000         .10000E-03   10000.    
     8 'norm      '    5.9873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8376       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1257       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .51637       1.0000         .10000E-03   10000.    
    14 'norm      '    8.4089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2826       1.0000         .10000E-03   10000.    
    20 'norm      '    1.8503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .93952       1.0000         .10000E-03   10000.    
    25 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.1603       1.0000         .10000E-03   10000.    
    27 'norm      '    41.725       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .71844       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.

 FCN=   3638.015     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     4067 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.927        25.974       -.27209E-05   -.34528E-03
   2  Prefactor     .10000E-03    1.5250       -.97525E-07** at limit **
   3  Prefactor     .10000E-03    13.783        .18699E-05** at limit **
   4  norm          7.0591        2.0916        .72930E-07    .37579E-04
   5  Prefactor     .61460        3.5312        .12515E-05   -.43235E-04
   6  Prefactor     9.3554        21.589       -.22550E-05   -.17893E-03
   7  Prefactor     5.7182        4.4256       -.43571E-09   -.19313E-04
   8  norm          5.9868        4.1480        .29439E-08   -.20687E-04
   9  Prefactor     4.8374        5.0053       -.60114E-06    .57977E-03
  10  Prefactor     4.6355        3.5675       -.21146E-07   -.63667E-04
  11  Prefactor     7.1249        3.6800        .18359E-07   -.37134E-04
  12  Prefactor     .10000E-03    4.7224       -.15115E-06** at limit **
  13  norm          .51629        .29725       -.30526E-08   -.36377E-04
  14  norm          8.4084        7.2525        .10715E-07   -.46336E-04
  15  Prefactor     .10000E-03    8.4664        .12305E-05** at limit **
  16  Prefactor     .10000E-03    9.0386        .71841E-06** at limit **
  17  Prefactor     .10000E-03    40.570       -.36420E-07** at limit **
  18  Prefactor     .10000E-03    3.7101        .68842E-08** at limit **
  19  Prefactor     4.2813        5.4640        .17930E-05   -.11117E-02
  20  norm          1.8480        4.4989        .86042E-07   -.12247E-03
  21  Prefactor     .10000E-03    11.418       -.17706E-05** at limit **
  22  norm          .10000E-03    3.4912       -.21505E-06** at limit **
  23  Prefactor     .10000E-03    10.184       -.10380E-05** at limit **
  24  norm          .94016        3.4449        .11597E-05    .24458E-03
  25  norm          .10000E-03    2.2117       -.65605E-07** at limit **
  26  norm          3.1595        4.6608       -.10359E-07   -.30240E-04
  27  norm          41.725        32.466       -.44637E-07   -.23152E-05
  28  Prefactor     .10000E-03    1.1756       -.49890E-07** at limit **
  29  Prefactor     .10000E-03    6.9216       -.46717E-06** at limit **
  30  Normalizat    1.0989        .22646        .10952E-05   -.60987E-04
  31  Prefactor     .71774        .25511       -.14800E-05    .39069E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9267
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.05915
  Prefactor  = 0.614604
  Prefactor  = 9.35539
  Prefactor  = 5.71819
  norm       = 5.98681
  Prefactor  = 4.83735
  Prefactor  = 4.63553
  Prefactor  = 7.12493
  Prefactor  = 0.0001
  norm       = 0.516287
  norm       = 8.40842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.28134
  norm       = 1.84802
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.940163
  norm       = 0.0001
  norm       = 3.15948
  norm       = 41.7246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09888
  Prefactor  = 0.717736
 **********
 **   18 **HESSE 
 **********

 FCN=   3638.015     FROM HESSE     STATUS=OK           624 CALLS     4691 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.927        26.883        .83638E-04   -1.4750    
   2  Prefactor     .10000E-03    1.5514        .14490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.0591        2.0926        .45386E-04   -1.5177    
   5  Prefactor     .61460        3.4543        .21888E-03   -1.5551    
   6  Prefactor     9.3554        21.939        .13098E-03   -1.5096    
   7  Prefactor     5.7182        4.4168        .10758E-03   -1.5230    
   8  norm          5.9868        4.1480        .94775E-04   -1.5219    
   9  Prefactor     4.8374        5.0860        .67933E-03   -1.5268    
  10  Prefactor     4.6355        3.5656        .92673E-04   -1.5277    
  11  Prefactor     7.1249        3.6759        .77300E-04   -1.5174    
  12  Prefactor     .10000E-03    4.7398        .12791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .51629        .29555        .23783E-04   -1.5564    
  14  norm          8.4084        7.2460        .13824E-03   -1.5128    
  15  Prefactor     .10000E-03    8.5841        .17218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0696        .17740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7295        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2813        6.0691        .85708E-03   -1.5294    
  20  norm          1.8480        4.4803        .19105E-03   -1.5436    
  21  Prefactor     .10000E-03    11.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    3.5347        .11008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .94016        3.3466        .20976E-02   -1.5514    
  25  norm          .10000E-03    2.2256        .87064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.1595        4.6239        .15290E-03   -1.5352    
  27  norm          41.725        32.474        .62059E-04   -1.4415    
  28  Prefactor     .10000E-03    1.1786        .63877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.9472        .15516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0989        .26274        .22434E-03   -.89788    
  31  Prefactor     .71774        .29465        .31528E-03   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43919e-09
Minuit parameter uncertainties:
  1  26.8969
  2  2.50271e-05
  3  0.000273504
  4  2.09263
  5  2.91415
  6  21.9575
  7  4.41709
  8  4.14819
  9  5.08649
  10  3.56572
  11  3.67605
  12  1.20548e-05
  13  0.295549
  14  7.24678
  15  0.000130396
  16  7.93567e-05
  17  2.00497e-05
  18  1.96264e-06
  19  6.06998
  20  4.48116
  21  0.000233478
  22  2.03202e-05
  23  0.000146748
  24  3.3473
  25  5.05761e-06
  26  4.62444
  27  32.488
  28  3.79486e-06
  29  5.05692e-05
  30  0.263053
  31  0.295291
Done.

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

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.000e-04  1.304e-04  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:  7.177e-01  2.953e-01  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.099e+00  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.935 28.792
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775027/likelihoodResults_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3638.01570689
delta logL = -0.000554095858661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3638.01515296
delta logL = -1.67994585354e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9726       1.0000          .0000       10.000    
     3 'Normalizat'    1.0989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71776       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=   3638.015     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10270E-03    4.7779        .17652E-01** at limit **
   2  Index         1.8860        7.4853        .50000        .17843E-04
   3  Normalizat    1.0989        .37876E-02    .22434E-03   -.66968E-04
   4  Prefactor     .71773        .44055E-02    .31528E-03   -.39341E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102701
  Index      = 1.88597
  Normalizat = 1.09888
  Prefactor  = 0.717734
 **********
 **   18 **HESSE 
 **********

 FCN=   3638.015     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10270E-03    119.83        .18015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8860        5.9399        .50000       -.67232    
   3  Normalizat    1.0989        .19046E-01    .44868E-04   -.89788    
   4  Prefactor     .71773        .22153E-01    .12611E-04   -1.0284    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.67683e-09
Minuit parameter uncertainties:
  1  0.0360498
  2  421.553
  3  0.0190464
  4  0.0221534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775027': 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): 102
logL (Free Index) = 3638.01515235
delta logL = 4.44664237875e-07

Extracting fit parameters...

4FGL J1231.7+2847
   Spectrum: PowerLaw
334    Prefactor:  1.027e-04  3.605e-02  1.000e-04  1.000e+04 ( 1.000e-13)
335        Index:  1.886e+00  4.216e+02  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:  7.177e-01  2.215e-02  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.099e+00  1.905e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/775027/cmap_HighResolution_488419201_488678401_4FGL_J1231.7+2847_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-09-05 22:41:24.297238', job_id='775027', GAL2='0.72', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630906884.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='4.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='961' AND source_name='4FGL J1231.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:41:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 775027: <4FGL_J1231.7+2847_daily_bin961> in cluster <slac> Done

Job <4FGL_J1231.7+2847_daily_bin961> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 22:25:42 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:29:04 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:29:04 2021
Terminated at Sun Sep  5 22:41:27 2021
Results reported at Sun Sep  5 22:41:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.7+2847_daily_bin961 187.935 28.7917 488419201 488678401 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 :                                   712.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            945 sec.

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

