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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1110
RA = 187.712, Dec = 12.3883
tmin = 527040001, tmax = 527299201
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='757689', job_status='RUN', time_executed='2021-09-05 21:39:28.457087', time_epoch_executed='1630903168.46' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757689

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757689/ft1_4FGL_J1230.8+1223_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757689/ft1_4FGL_J1230.8+1223_daily_bin1110.fits outfile=/scratch/kocevski/757689/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1110.fits ra=187.712 dec=12.3883 rad=12.0 tmin=527040001.0 tmax=527299201.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 6.04
user 5.69
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.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/757689/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1110.fits evtable="EVENTS" outfile="/scratch/kocevski/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.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/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/757689/ltcube_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.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/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits
.....................!
real 15.97
user 15.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/757689/ltcube_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.fits outfile=/scratch/kocevski/757689/expmap_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.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/757689/ltcube_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.fits
.....................!
real 193.72
user 186.55
sys 5.16

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

Setting source of interest to:
4FGL J1230.8+1223 @ 187.712 12.3883

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits scfile=/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits outfile=/scratch/kocevski/757689/cmap_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.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.712 yref=12.3883 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits scfile=/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits outfile=/scratch/kocevski/757689/cmap_HighResolution_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.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.712 yref=12.3883 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/757689/Model_4FGL_J1230.8+1223_daily_bin1110.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/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits.....................!
real 48.91
user 47.21
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits', '/scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits', expMap='/scratch/kocevski/757689/expmap_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.fits', expCube='/scratch/kocevski/757689/ltcube_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/757689/Model_4FGL_J1230.8+1223_daily_bin1110.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1230.8+1223'

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.672e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/757689/ft1_filtered_4FGL_J1230.8+1223_daily_bin1110.fits
Spacecraft file(s): /scratch/kocevski/757689/ft2_4FGL_J1230.8+1223_daily_bin1110.fits
Exposure map: /scratch/kocevski/757689/expmap_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.fits
Exposure cube: /scratch/kocevski/757689/ltcube_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/757689/Model_4FGL_J1230.8+1223_daily_bin1110.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) = 5187.46944787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.022       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6754       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.066       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9504       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    148.68       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10438E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .89947       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.187       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0357       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.466       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9769       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7590       1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.763       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1073       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0444       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5187.460     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3190 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.023        17.152        .53800E-06   -.13113E-04
   2  Prefactor     .10000E-03    31.983        .56286E-06** at limit **
   3  Prefactor     .10000E-03    9.5142       -.12933E-06** at limit **
   4  Prefactor     17.453        25.225       -.23191E-05    .23401E-04
   5  Prefactor     .10000E-03    1.9485       -.44300E-07** at limit **
   6  Prefactor     .10000E-03    72.888       -.31848E-05** at limit **
   7  Prefactor     27.172        40.206       -.11615E-04    .53002E-04
   8  Prefactor     3.6765        3.6818       -.25914E-06   -.33994E-03
   9  Prefactor     .10000E-03    3.5667        .17161E-06** at limit **
  10  Prefactor     10.080        28.372       -.22605E-04    .32490E-04
  11  norm          1.9403        6.4464       -.51290E-05   -.10070E-02
  12  Prefactor     .10000E-03    13.710        .11282E-06** at limit **
  13  norm          .10000E-03    .72496E-01    .19556E-07** at limit **
  14  norm          148.75        85.650        .24598E-04    .95755E-04
  15  Prefactor     .10000E-03    665.87        .18375E-03** at limit **
  16  norm          .90018        .77419       -.57752E-06    .79155E-03
  17  Prefactor     15.186        12.091       -.14105E-05    .26942E-05
  18  Prefactor     .10000E-03    14.972        .26003E-06** at limit **
  19  norm          2.0353        2.3501       -.69640E-06   -.53332E-03
  20  Prefactor     .10000E-03    64.810        .34916E-05** at limit **
  21  Prefactor     36.680        72.440        .83755E-04    .26960E-04
  22  Prefactor     4.9776        9.1691       -.67573E-05   -.12079E-03
  23  Prefactor     9.7436        15.995       -.21238E-04   -.95548E-04
  24  Prefactor     32.766        19.124       -.54930E-06    .51217E-04
  25  Normalizat    1.1073        .23361        .58194E-05   -.13649E-03
  26  Prefactor     1.0444        .19676       -.41350E-05    .31593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1723
  Prefactor  = 3.67653
  Prefactor  = 0.0001
  Prefactor  = 10.0803
  norm       = 1.94029
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 148.747
  Prefactor  = 0.000100003
  norm       = 0.900176
  Prefactor  = 15.1857
  Prefactor  = 0.0001
  norm       = 2.03533
  Prefactor  = 0.0001
  Prefactor  = 36.6804
  Prefactor  = 4.97761
  Prefactor  = 9.74357
  Prefactor  = 32.7656
  Normalizat = 1.10732
  Prefactor  = 1.04438
 **********
 **   18 **HESSE 
 **********

 FCN=   5187.460     FROM HESSE     STATUS=OK           458 CALLS     3648 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.023        17.151        .12068E-03   -1.5044    
   2  Prefactor     .10000E-03    31.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.453        25.355        .95887E-04   -1.4872    
   5  Prefactor     .10000E-03    1.9570        .98122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    72.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.172        40.166        .76878E-04   -1.4665    
   8  Prefactor     3.6765        3.6691        .12929E-03   -1.5324    
   9  Prefactor     .10000E-03    3.6466        .26432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.080        27.843        .12630E-03   -1.5073    
  11  norm          1.9403        6.0117        .22200E-03   -1.5429    
  12  Prefactor     .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .76399E-01    .37766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          148.75        83.960        .16526E-03   -1.3263    
  15  Prefactor     .10000E-03    669.54        .18150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .90018        .73335        .47733E-04   -1.5518    
  17  Prefactor     15.186        12.096        .10278E-03   -1.4928    
  18  Prefactor     .10000E-03    14.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0353        2.3162        .10712E-03   -1.5423    
  20  Prefactor     .10000E-03    65.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.680        72.243        .66367E-04   -1.4496    
  22  Prefactor     4.9776        9.1718        .18027E-03   -1.5262    
  23  Prefactor     9.7436        15.983        .12828E-03   -1.5084    
  24  Prefactor     32.766        19.136        .70006E-04   -1.4563    
  25  Normalizat    1.1073        .27606        .28248E-03   -.89517    
  26  Prefactor     1.0444        .23204        .26015E-03   -.91264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43974e-09
Minuit parameter uncertainties:
  1  17.1591
  2  3.42723e-05
  3  3.68513e-05
  4  25.3709
  5  2.21855e-06
  6  0.000111755
  7  40.2062
  8  3.66929
  9  1.31614e-06
  10  27.8791
  11  6.01352
  12  1.36216e-05
  13  5.88774e-08
  14  84.0276
  15  0.0029208
  16  0.733356
  17  12.0982
  18  3.28366e-07
  19  2.31627
  20  3.93697e-05
  21  72.4156
  22  9.17442
  23  15.9898
  24  19.1395
  25  0.276419
  26  0.232261
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.519e+01  1.210e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.057e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.044e+00  2.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.107e+00  2.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.14e-08 +/- 3.30e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.99e-05

TS (Fixed Index): 3.16
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757689/likelihoodResults_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.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) = 5186.67605786
delta logL = 0.784317185288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5186.45981991
delta logL = 1.00055513481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3333       1.0000         .10000E-03   10000.    
     2 'Index     '    .73595       1.0000          .0000       10.000    
     3 'Normalizat'    1.1218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0564       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5186.460     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      227 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3365        3.9340        .55425E-02   -.45877E-02
   2  Index         .73542        .43630        .22628       -.53045E-04
   3  Normalizat    1.1222        .21377        .63466E-01    .11085E-03
   4  Prefactor     1.0561        .19298        .58581E-01    .10717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3365
  Index      = 0.735421
  Normalizat = 1.12217
  Prefactor  = 1.05608
 **********
 **   18 **HESSE 
 **********

 FCN=   5186.460     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3365        10.586        .65632E-03   -1.5343    
   2  Index         .73542        1.1132        .10234E-02   -1.0215    
   3  Normalizat    1.1222        .25226        .28073E-03   -.89043    
   4  Prefactor     1.0561        .22800        .25905E-03   -.90883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31045e-11
Minuit parameter uncertainties:
  1  10.5919
  2  1.15009
  3  0.252535
  4  0.228209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757689': 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) = 5186.45981627
delta logL = 1.00055877557

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  3.337e+00  1.059e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  7.354e-01  1.150e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.570e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.056e+00  2.282e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.122e+00  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 187.712 12.388
Photon Index (Free Index): 0.74 +/- 1.15
Photon Flux (Free Index): 4.99e-09 +/- 7.32e-09
Energy Flux (Free Index): 1.24e-04 +/- 1.67e-04

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/757689/cmap_HighResolution_527040001_527299201_4FGL_J1230.8+1223_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', comment='SUCCESS', photon_flux='4.14e-08', energy_flux2='1.24e-04', photon_flux_error='3.30e-08', dlogl='1.00e+00', energy_flux='2.50e-05', photon_flux2='4.99e-09', job_status='DONE', time_completed='2021-09-05 21:51:41.638950', photon_index_error2='1.15', photon_index2='0.74', ts='3.16', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.67e-04', EG='1.11', time_epoch_completed='1630903901.64', return_code='0', job_id='757689', GAL2='1.06', EG2='1.12', return_code2='0', energy_flux_error='1.99e-05', photon_flux_error2='7.32e-09', ts2='5.14', photon_index='2.06' WHERE bin_id='1110' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 757689: <4FGL_J1230.8+1223_daily_bin1110> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1110> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:44 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:37:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:37:02 2021
Terminated at Sun Sep  5 21:51:42 2021
Results reported at Sun Sep  5 21:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1110 187.712 12.3883 527040001 527299201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1230.8+1223 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   682.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            958 sec.

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

