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


Performing analysis on: 4FGL_J1230.8+1223_daily_bin1616
RA = 187.712, Dec = 12.3883
tmin = 658195201, tmax = 658454401
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='333606', job_status='RUN', time_executed='2021-12-07 23:17:48.195288', time_epoch_executed='1638947868.2' WHERE source_name='4FGL J1230.8+1223' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333606

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333606/ft1_4FGL_J1230.8+1223_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333606/ft2_4FGL_J1230.8+1223_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333606/ft1_4FGL_J1230.8+1223_daily_bin1616.fits outfile=/scratch/kocevski/333606/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1616.fits ra=187.712 dec=12.3883 rad=12.0 tmin=658195201.0 tmax=658454401.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.69
user 4.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/333606/ft2_4FGL_J1230.8+1223_daily_bin1616.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/333606/ft1_filteredMKT_4FGL_J1230.8+1223_daily_bin1616.fits evtable="EVENTS" outfile="/scratch/kocevski/333606/ft1_filtered_4FGL_J1230.8+1223_daily_bin1616.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333606/ft1_filtered_4FGL_J1230.8+1223_daily_bin1616.fits" evtable="EVENTS" scfile=/scratch/kocevski/333606/ft2_4FGL_J1230.8+1223_daily_bin1616.fits sctable="SC_DATA" outfile=/scratch/kocevski/333606/ltcube_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.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/333606/ft2_4FGL_J1230.8+1223_daily_bin1616.fits
.....................!
real 13.17
user 12.80
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333606/ft1_filtered_4FGL_J1230.8+1223_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/333606/ft2_4FGL_J1230.8+1223_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/333606/ltcube_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.fits outfile=/scratch/kocevski/333606/expmap_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.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/333606/ltcube_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.fits
.....................!
real 192.06
user 185.68
sys 5.60

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/333606/ft1_filtered_4FGL_J1230.8+1223_daily_bin1616.fits scfile=/scratch/kocevski/333606/ft2_4FGL_J1230.8+1223_daily_bin1616.fits outfile=/scratch/kocevski/333606/cmap_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/333606/ft1_filtered_4FGL_J1230.8+1223_daily_bin1616.fits scfile=/scratch/kocevski/333606/ft2_4FGL_J1230.8+1223_daily_bin1616.fits outfile=/scratch/kocevski/333606/cmap_HighResolution_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1677       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6661       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .51258E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .31232       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.861       1.0000         .10000E-03   10000.    
    13 'norm      '    .44239       1.0000         .10000E-03   10000.    
    14 'norm      '    16.660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2054       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6154       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.973       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0090       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4096       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.163       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .23752E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96446       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97061       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=   6385.606     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     3132 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1673        8.1311        .19407E-06    .48811E-04
   2  Prefactor     .10000E-03    45.930        .10057E-05** at limit **
   3  Prefactor     .10000E-03    4.8029       -.12937E-07** at limit **
   4  Prefactor     .10000E-03    4.2293       -.38852E-07** at limit **
   5  Prefactor     2.6660        2.3638       -.32642E-06    .99316E-03
   6  Prefactor     28.062        60.965       -.42350E-07   -.23723E-04
   7  Prefactor     .10007E-03    28.171       -.67375E-05** at limit **
   8  Prefactor     1.7086        2.6090        .39484E-06    .46823E-03
   9  Prefactor     .48629        2.7284        .90408E-06    .48001E-03
  10  Prefactor     .10000E-03    12.662        .20508E-06** at limit **
  11  norm          .33816        8.5521        .12148E-04   -.26170E-03
  12  Prefactor     20.856        22.629       -.90143E-06   -.25200E-04
  13  norm          .44241        .22324        .60550E-07    .35118E-03
  14  norm          16.553        41.931       -.66424E-05    .48126E-04
  15  Prefactor     .10000E-03    47.392        .14462E-05** at limit **
  16  norm          1.2050        .63603       -.69135E-06   -.18108E-02
  17  Prefactor     6.6152        7.6676        .29661E-06    .10605E-03
  18  Prefactor     15.978        26.429        .98343E-06    .31852E-05
  19  norm          1.0084        1.5649       -.35913E-06    .35228E-03
  20  Prefactor     .10000E-03    98.036       -.31660E-05** at limit **
  21  Prefactor     .10000E-03    29.393       -.25556E-05** at limit **
  22  Prefactor     9.4096        6.5403        .77356E-07   -.55708E-04
  23  Prefactor     11.164        9.3558       -.17355E-06   -.10555E-03
  24  Prefactor     .10000E-03    9.5564       -.78425E-05** at limit **
  25  Normalizat    .96436        .18750       -.36078E-05   -.49456E-03
  26  Prefactor     .97078        .16008        .95031E-06   -.21294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.16733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66596
  Prefactor  = 28.0621
  Prefactor  = 0.000100066
  Prefactor  = 1.70862
  Prefactor  = 0.486292
  Prefactor  = 0.0001
  norm       = 0.338163
  Prefactor  = 20.8559
  norm       = 0.442408
  norm       = 16.5535
  Prefactor  = 0.0001
  norm       = 1.20498
  Prefactor  = 6.6152
  Prefactor  = 15.9778
  norm       = 1.00838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.40956
  Prefactor  = 11.1642
  Prefactor  = 0.0001
  Normalizat = 0.964358
  Prefactor  = 0.970784
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.606     FROM HESSE     STATUS=OK           472 CALLS     3604 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1673        8.1243        .16165E-03   -1.5211    
   2  Prefactor     .10000E-03    45.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8197        .17096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2323        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6660        2.3478        .55692E-03   -1.5381    
   6  Prefactor     28.062        60.922        .75640E-04   -1.4648    
   7  Prefactor     .10007E-03    191.78        .76944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7086        2.4305        .13020E-03   -1.5447    
   9  Prefactor     .48629        4.2512        .20775E-02   -1.5569    
  10  Prefactor     .10000E-03    12.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .33816        10.883        .18805E-02   -1.5592    
  12  Prefactor     20.856        22.623        .87695E-04   -1.4794    
  13  norm          .44241        .22003        .25327E-04   -1.5575    
  14  norm          16.553        43.267        .98127E-04   -1.4894    
  15  Prefactor     .10000E-03    47.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2050        .63004        .40484E-04   -1.5488    
  17  Prefactor     6.6152        7.6484        .15602E-03   -1.5194    
  18  Prefactor     15.978        26.358        .10022E-03   -1.4908    
  19  norm          1.0084        1.4149        .11345E-02   -1.5507    
  20  Prefactor     .10000E-03    98.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.4096        6.5386        .13065E-03   -1.5094    
  23  Prefactor     11.164        9.2825        .11991E-03   -1.5040    
  24  Prefactor     .10000E-03    26.885        .36771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96436        .21191        .25488E-03   -.94234    
  26  Prefactor     .97078        .18458        .23514E-03   -.93710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21947e-09
Minuit parameter uncertainties:
  1  8.1257
  2  0.00019884
  3  2.23628e-05
  4  1.03281e-05
  5  2.34793
  6  61.0577
  7  0.00715912
  8  2.43069
  9  2.87563
  10  6.25507e-06
  11  3.83694
  12  22.6326
  13  0.220026
  14  43.3492
  15  0.000216315
  16  0.630048
  17  7.64954
  18  26.3776
  19  1.41493
  20  0.000443131
  21  0.00018599
  22  6.53913
  23  9.28371
  24  6.27518e-05
  25  0.212095
  26  0.184698
Done.

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

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  6.615e+00  7.650e+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:  9.708e-01  1.847e-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:  9.644e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 187.712 12.388
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 2.09e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/333606/likelihoodResults_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.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) = 6385.55202725
delta logL = 0.0535238136981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6385.53602704
delta logL = 0.0695240223022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2838       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3630       1.0000          .0000       10.000    
     3 'Normalizat'    .95637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97411       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=   6385.536     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      223 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2838        171.30        .43714E-02    .54224E-03
   2  Index         2.3631        6.1302        .15838        .88701E-04
   3  Normalizat    .95637        .77431E-01    .45618E-01    .13850E-04
   4  Prefactor     .97412        .55933E-01    .45943E-01    .89515E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28376
  Index      = 2.36307
  Normalizat = 0.95637
  Prefactor  = 0.974118
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.536     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2838        7.7974        .17485E-03   -1.5248    
   2  Index         2.3631        .89787        .84891E-02   -.55552    
   3  Normalizat    .95637        .19803        .25581E-03   -.94507    
   4  Prefactor     .97412        .18265        .23475E-03   -.93597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42889e-09
Minuit parameter uncertainties:
  1  7.79888
  2  0.904698
  3  0.198178
  4  0.182761
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333606': 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) = 6385.53602703
delta logL = 0.0695240302721

Extracting fit parameters...

4FGL J1230.8+1223
   Spectrum: PowerLaw
309    Prefactor:  5.284e+00  7.799e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.363e+00  9.047e-01  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:  9.741e-01  1.828e-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:  9.564e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 187.712 12.388
Photon Index (Free Index): 2.36 +/- 0.90
Photon Flux (Free Index): 2.60e-08 +/- 3.36e-08
Energy Flux (Free Index): 8.95e-06 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/333606/cmap_HighResolution_658195201_658454401_4FGL_J1230.8+1223_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='8.95e-06', photon_flux_error='2.09e-08', dlogl='6.95e-02', energy_flux='1.09e-05', photon_flux2='2.60e-08', job_status='DONE', time_completed='2021-12-07 23:30:13.390912', photon_index_error2='0.90', photon_index2='2.36', ts='1.78', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='1.03e-05', EG='0.96', time_epoch_completed='1638948613.39', return_code='0', job_id='333606', GAL2='0.97', EG2='0.96', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.36e-08', ts2='1.92', photon_index='2.06' WHERE bin_id='1616' AND source_name='4FGL J1230.8+1223' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:30:13 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 333606: <4FGL_J1230.8+1223_daily_bin1616> in cluster <slac> Done

Job <4FGL_J1230.8+1223_daily_bin1616> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 23:15:17 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:15:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:15:39 2021
Terminated at Tue Dec  7 23:30:14 2021
Results reported at Tue Dec  7 23:30:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1230.8+1223_daily_bin1616 187.712 12.3883 658195201 658454401 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 :                                   743.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            897 sec.

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

