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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1023
RA = 187.712, Dec = 12.3883
tmin = 504489601, tmax = 504748801
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='757555', job_status='RUN', time_executed='2021-09-05 21:38:48.305451', time_epoch_executed='1630903128.31' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757555

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757555/ft1_4FGL_J1230.8+1223_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757555/ft1_4FGL_J1230.8+1223_daily_bin1023.fits outfile=/scratch/kocevski/757555/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1023.fits ra=187.712 dec=12.3883 rad=12.0 tmin=504489601.0 tmax=504748801.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 4.46
user 4.17
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.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/757555/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/757555/ft1_filtered_4FGL_J1230.8+1223_daily_bin1023.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.56
user 0.32
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757555/ft1_filtered_4FGL_J1230.8+1223_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/757555/ltcube_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.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/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits
.....................!
real 14.30
user 13.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757555/ft1_filtered_4FGL_J1230.8+1223_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/757555/ltcube_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.fits outfile=/scratch/kocevski/757555/expmap_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.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/757555/ltcube_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.fits
.....................!
real 191.66
user 186.31
sys 4.66

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/757555/ft1_filtered_4FGL_J1230.8+1223_daily_bin1023.fits scfile=/scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits outfile=/scratch/kocevski/757555/cmap_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757555/ft1_filtered_4FGL_J1230.8+1223_daily_bin1023.fits scfile=/scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits outfile=/scratch/kocevski/757555/cmap_HighResolution_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/757555/ft1_filtered_4FGL_J1230.8+1223_daily_bin1023.fits', '/scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits', expMap='/scratch/kocevski/757555/expmap_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.fits', expCube='/scratch/kocevski/757555/ltcube_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/757555/Model_4FGL_J1230.8+1223_daily_bin1023.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/757555/ft1_filtered_4FGL_J1230.8+1223_daily_bin1023.fits
Spacecraft file(s): /scratch/kocevski/757555/ft2_4FGL_J1230.8+1223_daily_bin1023.fits
Exposure map: /scratch/kocevski/757555/expmap_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.fits
Exposure cube: /scratch/kocevski/757555/ltcube_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/757555/Model_4FGL_J1230.8+1223_daily_bin1023.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) = 5859.46988072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.924       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20164E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    89.899       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.0452       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8196       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4152       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.055       1.0000         .10000E-03   10000.    
    13 'norm      '    .14063       1.0000         .10000E-03   10000.    
    14 'norm      '    8.4440       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4949       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.1475       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.495       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9478       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.916       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2116       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62982       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=   5859.464     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3119 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.178       -.60689E-06** at limit **
   2  Prefactor     31.899        85.941       -.48107E-05    .44931E-04
   3  Prefactor     .10000E-03    24.404       -.67817E-06** at limit **
   4  Prefactor     .92810        151.08        .27962E-04   -.97468E-05
   5  Prefactor     .10000E-03    1.4666       -.15431E-06** at limit **
   6  Prefactor     89.778        123.55       -.11269E-04    .51405E-04
   7  Prefactor     .10000E-03    13.336       -.85639E-06** at limit **
   8  Prefactor     6.0445        3.4519        .13319E-06    .33941E-03
   9  Prefactor     .10000E-03    2.0024       -.53302E-06** at limit **
  10  Prefactor     6.8048        21.497        .26475E-07    .73322E-05
  11  norm          4.4124        4.3593       -.23262E-06    .39942E-04
  12  Prefactor     20.052        21.313       -.14344E-06    .14510E-04
  13  norm          .14066        .23687       -.26384E-06   -.15110E-02
  14  norm          8.4526        46.469        .10290E-05   -.10926E-04
  15  Prefactor     .10000E-03    112.65       -.85478E-06** at limit **
  16  norm          3.5837        .75893       -.97357E-08    .97279E-03
  17  Prefactor     1.4940        4.6710       -.36417E-06    .86553E-04
  18  Prefactor     .10000E-03    29.045       -.35273E-05** at limit **
  19  norm          1.1476        1.2795       -.27553E-06   -.26059E-03
  20  Prefactor     .10000E-03    13.140        .66526E-06** at limit **
  21  Prefactor     .10000E-03    20.324       -.12224E-05** at limit **
  22  Prefactor     15.493        9.3272       -.20466E-06    .84039E-04
  23  Prefactor     1.9425        15.510       -.54809E-05    .99444E-04
  24  Prefactor     19.910        18.554       -.41384E-06    .13627E-03
  25  Normalizat    1.2120        .20811        .31920E-06    .33550E-04
  26  Prefactor     .62950        .16233        .41401E-05    .27680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 31.8994
  Prefactor  = 0.000100002
  Prefactor  = 0.928096
  Prefactor  = 0.0001
  Prefactor  = 89.7784
  Prefactor  = 0.0001
  Prefactor  = 6.04448
  Prefactor  = 0.0001
  Prefactor  = 6.80484
  norm       = 4.41239
  Prefactor  = 20.0518
  norm       = 0.14066
  norm       = 8.45258
  Prefactor  = 0.0001
  norm       = 3.58367
  Prefactor  = 1.49399
  Prefactor  = 0.0001
  norm       = 1.14758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4933
  Prefactor  = 1.9425
  Prefactor  = 19.9103
  Normalizat = 1.21202
  Prefactor  = 0.629497
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.464     FROM HESSE     STATUS=OK           464 CALLS     3583 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.899        85.843        .70917E-04   -1.4578    
   3  Prefactor     .10000E-03    25.602        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92810        179.25        .51800E-02   -1.5515    
   5  Prefactor     .10000E-03    1.4737        .90544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     89.778        134.82        .21189E-03   -1.3810    
   7  Prefactor     .10000E-03    13.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.0445        3.4544        .10137E-03   -1.5216    
   9  Prefactor     .10000E-03    2.0481        .10593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8048        21.437        .15364E-03   -1.5186    
  11  norm          4.4124        4.3405        .12790E-03   -1.5288    
  12  Prefactor     20.052        21.311        .89438E-04   -1.4812    
  13  norm          .14066        .23343        .45473E-04   -1.5633    
  14  norm          8.4526        46.355        .13796E-03   -1.5126    
  15  Prefactor     .10000E-03    112.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5837        .76243        .27399E-04   -1.5329    
  17  Prefactor     1.4940        4.6138        .28384E-03   -1.5464    
  18  Prefactor     .10000E-03    29.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.1476        1.2533        .86824E-04   -1.5494    
  20  Prefactor     .10000E-03    13.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.493        9.3320        .10175E-03   -1.4921    
  23  Prefactor     1.9425        16.265        .14869E-02   -1.5429    
  24  Prefactor     19.910        18.600        .89749E-04   -1.4815    
  25  Normalizat    1.2120        .24534        .24194E-03   -.86232    
  26  Prefactor     .62950        .19352        .28075E-03   -1.0636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4e-08
Minuit parameter uncertainties:
  1  7.24044e-05
  2  86.1777
  3  0.000489623
  4  25.8735
  5  1.07638e-05
  6  135.287
  7  1.91058e-05
  8  3.4545
  9  3.13143e-05
  10  21.461
  11  4.34085
  12  21.3193
  13  0.233435
  14  39.6362
  15  6.96799e-05
  16  0.762428
  17  4.61492
  18  7.47981e-06
  19  1.25331
  20  5.44711e-05
  21  5.51073e-06
  22  9.33286
  23  11.2457
  24  18.6056
  25  0.245578
  26  0.19373
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.494e+00  4.615e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  6.295e-01  1.937e-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.212e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 187.712 12.388
Photon Flux Upper Limit: 4.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757555/likelihoodResults_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.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) = 5859.46075018
delta logL = 0.0028794854552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5859.46010212
delta logL = 0.00352755137646

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3174       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1915       1.0000          .0000       10.000    
     3 'Normalizat'    1.2114       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62981       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=   5859.460     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      225 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3209        80.491        .95905E-02    .72773E-03
   2  Index         2.1945        2.3464        .40454        .14155E-04
   3  Normalizat    1.2115        .25186E-01    .54728E-01    .29259E-05
   4  Prefactor     .62974        .21563E-01    .63444E-01    .23058E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32092
  Index      = 2.19446
  Normalizat = 1.21146
  Prefactor  = 0.62974
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.460     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3209        4.9959        .26166E-03   -1.5478    
   2  Index         2.1945        1.7130        .87766E-02   -.59572    
   3  Normalizat    1.2115        .21923        .24199E-03   -.86249    
   4  Prefactor     .62974        .18992        .28070E-03   -1.0635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02231e-12
Minuit parameter uncertainties:
  1  4.99745
  2  1.76615
  3  0.219397
  4  0.190116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757555': 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) = 5859.46009844
delta logL = 0.00353122481465

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  1.321e+00  4.997e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.194e+00  1.766e+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:  6.297e-01  1.901e-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.211e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 187.712 12.388

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/757555/cmap_HighResolution_504489601_504748801_4FGL_J1230.8+1223_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.76e-03', job_status='DONE', photon_flux_upper_limit='4.99e-08', time_completed='2021-09-05 21:50:46.230883', job_id='757555', GAL2='0.63', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630903846.23', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='3.53e-03', ts2='0.14', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1023' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 757555: <4FGL_J1230.8+1223_daily_bin1023> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1023> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 21:35:34 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:36:24 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:36:24 2021
Terminated at Sun Sep  5 21:50:47 2021
Results reported at Sun Sep  5 21:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1023 187.712 12.3883 504489601 504748801 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 :                                   702.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             281.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            913 sec.

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

